/* VelaVerba — multi-page site (home, services, about, pricing).
   The landing page at /connect/business has its own stylesheet.
   Pages keep the design's inline styles for layout; this file holds the
   shared interactive/stateful/responsive styles. */

:root {
  --fh: 'DM Serif Display', Georgia, serif;
  --fb: 'Manrope', system-ui, sans-serif;
  --hw: 'Caveat', cursive;
}
html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #F8FAFC;
  color: #2F3E46;
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
}
a { color: #1E3A5F; text-decoration: none; }
a:hover { color: #C96F5B; }
h1, h2, h3, p { margin: 0; }
input, textarea, button, select { font-family: inherit; }

/* Responsive visibility — breakpoint matches the design's 760px switch */
.only-m { display: none !important; }
@media (max-width: 759px) {
  .only-m { display: block !important; }
  .only-d { display: none !important; }
  header.only-m { display: block !important; }
}

/* Buttons */
.btn-y { background: #F2C94C; color: #1E3A5F; }
.btn-y:hover { background: #E9BD38; color: #1E3A5F; }
.btn-ghost { background: #FFFFFF; color: #1E3A5F; border: 1px solid #D5DEE8; }
.btn-ghost:hover { border-color: #1E3A5F; color: #1E3A5F; }

/* Cards that lift on hover */
.card-lift { transition: transform .25s ease, box-shadow .25s ease; color: #2F3E46; }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(30,58,95,0.35); color: #2F3E46; }

/* Desktop nav */
.nav-pill { font-size: 14px; font-weight: 600; padding: 9px 18px; border-radius: 9px; color: #2F3E46; background: transparent; }
.nav-pill:hover { background: #FFFFFF; color: #1E3A5F; }
.nav-pill.is-current { color: #1E3A5F; background: #FFFFFF; }
.nav-services-btn { font-family: var(--fb); font-size: 14px; font-weight: 600; padding: 9px 16px 9px 18px; border-radius: 9px; border: none; cursor: pointer; display: flex; gap: 8px; align-items: center; background: transparent; color: #2F3E46; }
.nav-services-btn:hover { background: #FFFFFF; color: #1E3A5F; }
.nav-services-btn.is-open, .nav-services-btn.is-current { background: #1E3A5F; color: #F8FAFC; }
.nav-services-btn.is-current:not(.is-open) { background: #FFFFFF; color: #1E3A5F; }
.nav-services-btn svg { transition: transform .2s ease; }
.nav-services-btn.is-open svg { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 12px); left: -4px; width: 340px; background: #FFFFFF; border: 1px solid #E3E9F0; border-radius: 16px; box-shadow: 0 24px 48px -20px rgba(30,58,95,0.35); padding: 10px; z-index: 30; display: none; flex-direction: column; gap: 2px; }
.nav-dropdown.is-open { display: flex; }
.svc-item { text-align: left; width: 100%; border: none; cursor: pointer; border-radius: 10px; padding: 10px 12px; display: flex; gap: 12px; align-items: center; background: transparent; }
.svc-item:hover { background: #F1F5F9; }
.svc-item.is-current { background: #F1F5F9; }
.svc-group { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #5B6B73; padding: 8px 12px 4px; }

/* Mobile nav */
.m-menu { display: none; padding: 4px 20px 20px; flex-direction: column; gap: 4px; border-top: 1px solid #E3E9F0; max-height: calc(100vh - 73px); overflow-y: auto; }
.m-menu.is-open { display: flex; }
.m-link { font-size: 16px; font-weight: 600; color: #1E3A5F; min-height: 48px; display: flex; align-items: center; border-bottom: 1px solid #E3E9F0; }
.m-services { display: none; flex-direction: column; gap: 2px; padding: 6px 0 10px; border-bottom: 1px solid #E3E9F0; }
.m-services.is-open { display: flex; }
.m-services-btn { font-family: var(--fb); font-size: 16px; font-weight: 600; color: #1E3A5F; min-height: 48px; display: flex; align-items: center; justify-content: space-between; border: none; border-bottom: 1px solid #E3E9F0; background: transparent; padding: 0; cursor: pointer; }
.m-services-btn svg { transition: transform .2s ease; }
.m-services-btn.is-open svg { transform: rotate(180deg); }
.menu-icon-close { display: none; }
.m-toggle.is-open .menu-icon-burger { display: none; }
.m-toggle.is-open .menu-icon-close { display: block; }

/* Handwritten accents */
.hand { font-family: var(--hw); color: #1E3A5F; }

/* Photo placeholder (empty design slots — swap for a real <img> any time) */
.photo-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.photo-ph img { width: 44%; height: auto; opacity: 0.35; }

/* Flip cards (tutoring lesson types) */
.vv-flip { perspective: 1400px; }
.vv-flip-inner { position: relative; display: grid; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.45,.05,.55,.95); }
.vv-flip-inner.is-flipped { transform: rotateY(180deg); }
.vv-flip-face { grid-area: 1/1; border-radius: 18px; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.vv-flip-face * { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.vv-flip-front { visibility: visible; transition: visibility 0s linear 0s, box-shadow .25s ease 0s; }
.vv-flip-inner.is-flipped .vv-flip-front { visibility: hidden; transition-delay: .3s, 0s; }
.vv-flip-back { transform: rotateY(180deg); visibility: hidden; transition: visibility 0s linear .3s, box-shadow .25s ease 0s; }
.vv-flip-inner.is-flipped .vv-flip-back { visibility: visible; transition-delay: 0s, 0s; }
.vv-flip:hover .vv-flip-face { box-shadow: 0 18px 40px -24px rgba(30,58,95,0.35); }
.vv-flip-btn { font-family: var(--fb); align-self: flex-end; background: none; border: none; padding: 0; cursor: pointer; font-size: 14px; font-weight: 600; color: #1E3A5F; display: flex; gap: 6px; align-items: center; position: relative; }
.vv-flip-btn::after { content: ""; position: absolute; inset: -20px -12px -26px; border-radius: 0 0 18px 18px; }
.vv-flip-btn:focus-visible { outline: 2px solid #1E3A5F; outline-offset: 3px; border-radius: 4px; }
.vv-flip-unflip { font-family: var(--fb); margin-left: auto; background: transparent; border: 1px solid rgba(30,58,95,0.3); border-radius: 9px; padding: 8px 10px; font-size: 13px; font-weight: 600; color: #1E3A5F; cursor: pointer; display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.vv-flip-unflip:hover { border-color: #1E3A5F; }
@media (prefers-reduced-motion: reduce) { .vv-flip-inner, .vv-flip-front, .vv-flip-back { transition: none !important; } }

/* Review carousels with parallax blobs */
.review-strip { position: relative; margin: 0 calc(50% - 50vw); min-height: 480px; }
.review-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.review-blob { position: absolute; will-change: transform; }
@media (max-width: 759px) { .review-blob.only-db { display: none; } }
@media (min-width: 760px) { .review-blob.only-mb { display: none; } }
.review-carousel { position: relative; z-index: 1; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: max(32px, calc(50vw - 588px)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.review-carousel::-webkit-scrollbar { display: none; }
.carousel-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #D5DEE8; background: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.carousel-arrow:hover { border-color: #1E3A5F; }

/* Enquiry / CTA box forms */
.vv-form-reveal { animation: vv-form-reveal .5s ease .12s both; }
@keyframes vv-form-reveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vv-form-reveal { animation: none; } }
/* !important needed: these elements carry inline display values from the design */
.cta-teaser.is-hidden, .cta-head.is-hidden { display: none !important; }
.cta-form { display: none; }
.cta-form.is-open { display: grid; }
.vv-input { width: 100%; min-width: 0; font-family: var(--fb); font-size: 15px; padding: 12px 14px; border-radius: 10px; border: 1px solid #D5DEE8; background: #FFFFFF; color: #2F3E46; outline: none; }
.vv-input:focus-visible { border-color: #1E3A5F; box-shadow: 0 0 0 2px rgba(168,192,217,0.55); }
.vv-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: #D6E1EC; }
.vv-label .opt { font-weight: 500; }
#book select.vv-input { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%231E3A5F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 12px; padding-right: 44px; cursor: pointer; }
.vv-file { width: 100%; min-width: 0; font-family: var(--fb); font-size: 14px; font-weight: 500; color: #D6E1EC; padding: 12px; border: 1.5px dashed rgba(248,250,252,0.45); border-radius: 10px; background: rgba(255,255,255,0.05); cursor: pointer; }
.vv-file::file-selector-button { font-family: var(--fb); font-weight: 600; font-size: 14px; margin-right: 12px; padding: 10px 16px; border: none; border-radius: 8px; background: #F2C94C; color: #1E3A5F; cursor: pointer; }
.vv-file:hover { border-color: #F8FAFC; }
.vv-file:focus-visible { outline: 2px solid #F2C94C; outline-offset: 2px; }
.vv-pill { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(248,250,252,0.4); font-size: 14px; font-weight: 600; color: #F8FAFC; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.vv-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.vv-pill:hover { border-color: #F8FAFC; }
.vv-pill:has(input:checked) { background: #F2C94C; border-color: #F2C94C; color: #1E3A5F; }
.vv-pill:has(input:focus-visible) { outline: 2px solid #F2C94C; outline-offset: 2px; }
.vv-submit { font-family: var(--fb); background: #F2C94C; color: #1E3A5F; font-weight: 600; font-size: 15px; padding: 14px 24px; border-radius: 10px; border: none; cursor: pointer; }
.vv-submit:hover { background: #E9BD38; }
.vv-submit:disabled { opacity: 0.75; cursor: default; }
.form-error { font-size: 14px; font-weight: 600; color: #F2C94C; }
.form-error[hidden] { display: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf-turnstile { min-height: 65px; }

/* FAQ */
details.faq { background: #F1F5F9; border-radius: 14px; padding: 18px 22px; }
details.faq summary { cursor: pointer; font-size: 16px; font-weight: 600; color: #1E3A5F; }

/* Back to top (mobile only) */
#back-to-top { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 44px; height: 44px; border-radius: 10px; border: none; background: #1E3A5F; display: none; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 10px 24px -10px rgba(30,58,95,0.6); }
#back-to-top:hover { background: #2A4A73; }
@media (max-width: 759px) { #back-to-top.is-visible { display: flex; } }
