/* =========================================================
   Solvit Tech — WordPress extras (blog, pages, admin bar, booking)
   ========================================================= */

/* Logged-in admin bar: keep the sticky header below it */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Simple page header (pages, blog, posts) */
.hero-simple { padding: 80px 0 88px; }
.hero-simple .hero-grid { grid-template-columns: 1fr; max-width: 820px; }
.hero-simple h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 16px; }
.hero-simple p { max-width: 52ch; margin-bottom: 0; }
.hero-simple .meta { color: rgba(255, 255, 255, .6); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
@media (max-width: 560px) { .hero-simple { padding: 48px 0 56px; } }

.hero-simple .btn { margin-top: 30px; }
.about-lead { text-align: center; color: rgba(255, 255, 255, .78); font-size: 1.2rem; max-width: 46ch; margin: 0 auto 36px; }
.stats-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.contact-page { padding-top: 64px; }
@media (max-width: 768px) { .contact-page { padding-top: 32px; } }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: rgba(34, 197, 94, .5); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.06rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--accent-600); border-radius: 2px; transition: transform .2s ease;
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); font-size: 1rem; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--accent); }
.form-privacy a { color: var(--accent-600); font-weight: 600; }
@media (max-width: 560px) { .faq-item summary { padding: 16px; font-size: 1rem; } .faq-item p { padding: 0 16px 16px; } }

/* Small businesses band */
.biz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.biz-icon { width: 58px; height: 58px; margin-bottom: 22px; background: rgba(34, 197, 94, .14); color: var(--accent); }
.biz-copy h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-bottom: 16px; }
.biz-copy p { color: rgba(255, 255, 255, .76); font-size: 1.125rem; max-width: 44ch; margin-bottom: 28px; }
.biz-list { display: grid; gap: 12px; }
.biz-list li {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-weight: 600;
}
.biz-list .tick {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--navy-900);
}
.biz-list .tick .i { width: 16px; height: 16px; stroke-width: 3; }
@media (max-width: 960px) { .biz-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 560px) {
  .biz-icon { width: 50px; height: 50px; margin-bottom: 16px; }
  .biz-copy h2 { font-size: 1.9rem; }
  .biz-copy .btn { width: 100%; }
  .biz-list li { padding: 13px 14px; font-size: .97rem; }
}

/* Text content written in the WordPress editor */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.1rem; line-height: 1.75; color: #24324d; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 1.8em; color: var(--ink); }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; color: var(--ink); }
.prose a { color: var(--accent-600); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose img, .prose .wp-block-image img { border-radius: 16px; height: auto; }
.prose figcaption { color: var(--muted); font-size: .92rem; text-align: center; margin-top: 8px; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent); font-weight: 600; color: var(--ink); }
.prose .wp-block-button__link { background: var(--navy-800); color: #fff; border-radius: 999px; padding: 14px 26px; font-weight: 700; text-decoration: none; }
.prose .alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.prose .featured { margin: 0 0 2em; }
.prose .featured img { width: 100%; border-radius: 22px; }

/* Blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(34, 197, 94, .5); }
.post-card .thumb {
  aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--accent);
  background: radial-gradient(260px 160px at 70% 20%, rgba(34, 197, 94, .22), transparent 70%), linear-gradient(160deg, var(--navy-700), var(--navy-900));
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .thumb .i { width: 48px; height: 48px; stroke-width: 1.4; }
.post-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card time { color: var(--muted); font-size: .9rem; font-weight: 600; }
.post-card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.post-card p { color: var(--muted); font-size: .98rem; }
.post-card .text-link { margin-top: auto; padding-top: 6px; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers {
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px;
  display: inline-grid; place-items: center; text-decoration: none; font-weight: 700;
  background: var(--white); border: 1px solid var(--line); color: var(--ink);
}
.pagination .page-numbers.current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.empty-note { text-align: center; color: var(--muted); font-size: 1.1rem; }

/* Extra booking fields */
.field input[type="date"] { min-height: 52px; }

/* Booking plugin shown instead of the built-in form */
.booking-embed { padding: 28px; }
.booking-embed * { font-family: var(--font); }

/* =========================================================
   Language menu with flags
   ========================================================= */
.flag {
  display: inline-block; flex-shrink: 0; width: 24px; height: 16px; border-radius: 3px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}
.flag svg { display: block; width: 100%; height: 100%; }

/* One-click language button: flag + code of the other language */
.nav a.lang { gap: 8px; font-weight: 700; }
.nav a.lang .flag { width: 22px; height: 15px; }

.footer-langs a { display: inline-flex; align-items: center; gap: 10px; }
.footer-langs a[aria-current="true"] { color: var(--white); }

/* =========================================================
   Day + time picker (30-minute slots)
   ========================================================= */
.slot-picker { gap: 10px; }
.slot-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: .93rem; }
.slot-legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: .8rem; color: var(--muted); }
.slot-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.slot-legend .lg-free { background: #fff; border: 1.5px solid var(--line); }
.slot-legend .lg-busy { background: #eef1f6; border: 1.5px solid #eef1f6; margin-left: 6px; }

.day-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px 6px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.day {
  flex: 0 0 64px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 4px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.day span { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.day b { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.day small { font-size: .74rem; color: var(--muted); }
.day:hover:not(:disabled) { border-color: var(--navy-600); }
.day[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.day[aria-pressed="true"] span, .day[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.day:disabled { opacity: .38; cursor: not-allowed; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; min-height: 48px; }
.slot {
  padding: 12px 0; border-radius: 11px; border: 1.5px solid var(--line); background: var(--white);
  font: inherit; font-weight: 700; font-size: .95rem; color: var(--ink); cursor: pointer; transition: all .15s ease;
}
.slot:hover:not(:disabled) { border-color: var(--accent-600); }
.slot.on { background: var(--accent); border-color: var(--accent); color: var(--navy-900); box-shadow: 0 6px 16px -8px rgba(34, 197, 94, .8); }
.slot.busy { background: #eef1f6; border-color: #eef1f6; color: #9aa6b8; text-decoration: line-through; cursor: not-allowed; }
.slot-msg { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .95rem; }

@media (max-width: 560px) {
  .day { flex-basis: 58px; padding: 8px 2px; }
  .slot-grid { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .slot { padding: 11px 0; font-size: .9rem; }
}
@media (max-width: 359px) { .slot-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   Phone view — compact, form first, less scrolling
   ========================================================= */
@media (max-width: 1024px) {
  /* Contact: heading, short line, then straight to the booking form */
  .contact-grid { display: flex; flex-direction: column; gap: 0; }
  .contact-copy { display: contents; }
  .contact-copy h2 { order: 1; }
  .contact-copy > p { order: 2; margin-bottom: 28px; }
  .contact-grid > .form-card { order: 3; }
  .contact-actions { order: 4; margin: 36px 0 28px; }
  .contact-list { order: 5; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .header-inner { height: 64px; }
  .nav { top: 64px; }
  .brand img { width: 36px; height: 36px; }
  .brand img.logo-full { height: 38px; }
  .brand span { font-size: 1.15rem; }

  .section { padding: 60px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1.02rem; }

  .steps { gap: 28px; }
  .step .num { width: 56px; height: 56px; margin-bottom: 14px; }
}

@media (max-width: 560px) {
  .hero, .hero-sub { padding: 36px 0 44px; }
  .hero-grid { gap: 28px; }
  .hero p { margin-bottom: 26px; }
  .hero-art { max-width: 300px; }
  .tile-art { max-width: 230px; gap: 10px; padding-bottom: 20px; }
  .tile-art .tile:nth-child(3n+2) { transform: translateY(18px); }
  .hero-simple { padding: 40px 0 44px; }

  .section { padding: 52px 0; }

  .problem-card { padding: 16px; }
  .service-card { padding: 18px; gap: 14px; }
  .service-card .icon-tile, .problem-card .icon-tile { width: 46px; height: 46px; border-radius: 13px; }

  .mode-grid { gap: 14px; }
  .mode-card { padding: 12px 12px 24px; border-radius: 20px; }
  .mode-art { height: 130px; margin-bottom: 18px; }
  .mode-art svg { width: 64%; }
  .mode-card h3 { font-size: 1.3rem; padding: 0 12px; }
  .mode-card > p { padding: 0 12px; margin-bottom: 16px; }
  .check-mini { padding: 0 12px; gap: 8px; }

  .stat { padding: 20px 16px; }
  .about-copy .btn { margin-top: 16px; }

  /* Booking form: name + phone side by side, choices as one row of tap buttons */
  .form-card { padding: 22px 16px; }
  .form-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .form-grid .field.full, .form-grid .field-wide { grid-column: 1 / -1; }
  .choice-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .choice span { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: .82rem; line-height: 1.2; }
  .choice span .i { width: 20px; height: 20px; }
  .field textarea { min-height: 84px; }
  .form-card .btn { margin-top: 18px; }

  .contact-copy h2 { font-size: 2rem; }
  .contact-actions .btn { flex: 1 1 0; padding: 14px 12px; }
  .contact-list { gap: 14px; }

  .cat { padding: 22px 16px; }
  .cat-items li { padding: 12px 14px; }
  .cta-band .contact-actions { margin-top: 0; }

  .site-footer { padding: 48px 0 24px; }
  .footer-grid { gap: 26px; padding-bottom: 32px; }
}

@media (max-width: 359px) {
  .form-grid { grid-template-columns: 1fr; }
  .choice span { font-size: .75rem; }
}

/* WordPress core helpers */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
