/* =========================
   Kandov Psychiatric Services
   Single-page site styles
   ========================= */

:root {
  --teal: #2ec4b6;
  --teal-dark: #1f9a8e;
  --teal-deep: #146e65;
  --sage: #bbf49b;
  --cream: #fffaf2;
  --bg: #ffffff;
  --bg-soft: #f6fbfa;
  --ink: #1b2a32;
  --ink-soft: #4a5b66;
  --muted: #7a8a93;
  --line: #e6edee;
  --warm: #ff8728;
  --shadow-sm: 0 2px 8px rgba(20, 110, 101, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 110, 101, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 110, 101, 0.14);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 104px); }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-deep); }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.75rem); }
h3 { font-size: 1.25rem; }
h2 span, h1 span { color: var(--teal-dark); }

.eyebrow {
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 .6em;
}
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; }

/* ========= Buttons ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ========= NAV ========= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--ink);
}
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--ink); }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--teal-dark); }

.primary-nav ul {
  display: flex; align-items: center; gap: 8px;
}
.primary-nav a {
  padding: 10px 14px; color: var(--ink); font-weight: 500; font-size: .95rem;
  border-radius: 8px;
}
.primary-nav a:hover { background: var(--bg-soft); color: var(--teal-deep); }
.primary-nav a.nav-cta {
  background: var(--teal); color: #fff !important;
  padding: 10px 20px; border-radius: 999px; margin-left: 8px;
}
.primary-nav a.nav-cta:hover { background: var(--teal-dark); color: #fff; }

/* GTranslate widget inside nav */
.nav-translate { display: flex; align-items: center; margin-left: 8px; }
#gtranslate_wrapper { display: flex; align-items: center; gap: 6px; }
#gtranslate_wrapper a.glink { display: inline-flex; padding: 6px; border-radius: 6px; line-height: 0; transition: background .15s ease; }
#gtranslate_wrapper a.glink:hover { background: var(--bg-soft); }
#gtranslate_wrapper a.glink img { width: 22px; height: 22px; opacity: .85; vertical-align: middle; }
#gtranslate_wrapper a.glink.gt-current-lang img,
#gtranslate_wrapper a.glink:hover img { opacity: 1; }
.skiptranslate, #google_translate_element2 { display: none !important; }
body { top: 0 !important; }
font font { background-color: transparent !important; box-shadow: none !important; position: initial !important; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========= HERO ========= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
  color: #fff;
}
.hero-slides {
  position: absolute; inset: 0; z-index: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(20,110,101,.78) 0%, rgba(27,42,50,.55) 60%, rgba(27,42,50,.35) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero h1 { color: #fff; }
.hero h1 span { color: var(--sage); }
.hero .lede { color: rgba(255,255,255,.92); font-size: 1.2rem; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-phone {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  padding: 12px 20px; border-radius: 999px;
  color: #fff !important;
  backdrop-filter: blur(8px);
}
.hero-phone:hover { background: rgba(255,255,255,.2); }
.hero-phone .phone-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--sage); color: var(--teal-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
}
.hero-phone small { display: block; font-size: .72rem; opacity: .8; letter-spacing: .1em; text-transform: uppercase; }
.hero-phone strong { display: block; font-size: 1.1rem; font-weight: 700; }

/* ========= QUICK ACTIONS ========= */
.quick-actions {
  background: var(--bg-soft);
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.quick-actions ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.quick-actions a {
  display: block;
  padding: 28px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-align: center;
}
.quick-actions a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.qa-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg-soft); color: var(--teal-dark);
  font-size: 1.6rem; margin-bottom: 14px;
}
.quick-actions h3 { margin-bottom: 6px; font-size: 1.15rem; }
.quick-actions p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ========= ABOUT ========= */
.about { padding: 100px 0; background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-body p { color: var(--ink-soft); margin-bottom: 1.1em; }
.about-body .btn { margin-top: 1em; }

/* ========= SERVICES ========= */
.services { padding: 100px 0; background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.05rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card img {
  width: 100%; height: 220px; object-fit: cover;
}
.service-body { padding: 24px; }
.service-body h3 { margin-bottom: .5em; color: var(--ink); }
.service-body p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ========= WHY ========= */
.why { padding: 100px 0; background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-intro p { color: var(--ink-soft); margin-bottom: 1em; }
.why-list { display: flex; flex-direction: column; gap: 20px; }
.why-list li {
  display: flex; gap: 20px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-list li:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.why-icon {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-soft); color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.why-list h3 { margin-bottom: 4px; font-size: 1.15rem; }
.why-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ========= BOOKING ========= */
.booking {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-dark) 100%);
  color: #fff;
}
.booking .eyebrow { color: var(--sage); }
.booking h2 { color: #fff; }
.booking .section-head p:last-child { color: rgba(255,255,255,.9); }

.booking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.booking-card {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform .3s ease, background .3s ease;
}
.booking-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.12); }
.booking-card h3 { color: #fff; margin-bottom: .6em; }
.booking-card p { color: rgba(255,255,255,.85); margin-bottom: 1.5em; font-size: .95rem; }
.booking-card .btn-primary { background: #fff; color: var(--teal-deep); }
.booking-card .btn-primary:hover { background: var(--sage); color: var(--teal-deep); }

/* Zocdoc inline embed area */
.zocdoc-embed {
  margin-top: 56px;
  padding: 32px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  text-align: center;
}
.zocdoc-embed h3 { color: #fff; margin-bottom: 24px; }
#zd-plugin-container { display: flex; justify-content: center; min-height: 80px; }
/* Zocdoc's injected iframe should fit nicely on white */
#zd-plugin-container iframe {
  background: #fff;
  border-radius: var(--radius);
  max-width: 100%;
}

/* ========= TESTIMONIALS ========= */
.testimonials { padding: 100px 0; background: #fff; }
.testimonials-track {
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
}
.testimonials-track::-webkit-scrollbar { height: 8px; }
.testimonials-track::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }
.testimonial {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-width: 280px;
}
.testimonial .stars { color: #f5b400; font-size: 1.1rem; letter-spacing: 2px; margin: 0 0 14px; }
.testimonial blockquote {
  font-size: 1rem; color: var(--ink-soft);
  margin: 0 0 20px; flex: 1;
  font-style: italic;
  line-height: 1.65;
}
.testimonial blockquote::before { content: '"'; font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--teal); line-height: 0; vertical-align: -.25em; margin-right: 4px; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--ink); }

.testimonials-controls {
  display: flex; justify-content: center; gap: 12px; margin-top: 24px;
}
.t-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--teal-deep);
  font-size: 1.3rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.t-btn:hover { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ========= FORMS ========= */
.forms { padding: 100px 0; background: var(--bg-soft); }
.forms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.forms-list li {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.forms-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.forms-list h3 { font-size: 1.05rem; margin-bottom: .35em; }
.forms-list p { margin: 0 0 12px; font-size: .9rem; color: var(--ink-soft); }
.forms-list a { font-weight: 600; font-size: .92rem; }
.forms-note { text-align: center; color: var(--ink-soft); margin: 0; }

/* ========= CONTACT ========= */
.contact { padding: 100px 0; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: stretch;
}
.contact-info p { color: var(--ink-soft); margin-bottom: 1.5em; }
.contact-list {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 28px;
}
.contact-list li {
  display: flex; align-items: center; gap: 16px;
}
.c-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-soft); color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { color: var(--ink); font-weight: 500; }

.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  transition: background .2s ease, transform .2s ease;
}
.social a:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; min-height: 420px; }

/* ========= FOOTER ========= */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }
.footer-brand img { background: #fff; border-radius: 12px; padding: 8px; }
.footer-brand p { margin: 0; font-size: .95rem; line-height: 1.55; }
.footer-brand strong { color: #fff; }
.footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .12em; color: var(--sage); margin-bottom: 18px; font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.75); font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-info li { font-size: .95rem; color: rgba(255,255,255,.75); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ========= RESPONSIVE ========= */
@media (max-width: 980px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { max-width: 460px; margin: 0 auto; }
  .testimonial { flex-basis: calc(50% - 12px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; align-items: stretch; padding: 12px; gap: 4px; }
  .primary-nav a { padding: 14px 16px; }
  .primary-nav a.nav-cta { margin: 8px 16px 0; text-align: center; }

  .brand-text em { display: none; }
  .brand img { width: 40px; height: 40px; }

  .hero { min-height: 90vh; padding-top: calc(var(--nav-h) + 24px); }
  .hero .lede { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-phone { width: 100%; justify-content: center; }

  .about, .services, .why, .booking, .testimonials, .forms, .contact { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .testimonial { flex-basis: 85%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
