/* ============================================================
   Sukh-Mukh Dental Atelier — Stylesheet
   Palette and type sampled/derived from the clinic's own logo:
   deep navy, warm gold, and a soft cream background.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* --- Color tokens --- */
  --navy-950: #08142b;
  --navy-900: #0c2353;
  --navy-800: #143163;
  --navy-700: #1d4079;
  --gold-600: #a8813f;
  --gold-500: #c6a35f;
  --gold-400: #d9bd85;
  --gold-100: #f1e6cd;
  --cream-50:  #faf8f4;
  --cream-100: #f4eee4;
  --cream-200: #ece2d3;
  --ink-900: #1b2233;
  --ink-600: #4b5266;
  --ink-400: #7b8194;
  --white: #ffffff;
  --line: rgba(12, 35, 83, 0.10);

  /* --- Type --- */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* --- Layout --- */
  --container: 1180px;
  --nav-height: 84px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 12px 32px rgba(12, 24, 53, 0.10);
  --shadow-lift: 0 20px 44px rgba(12, 24, 53, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 720px) {
  :root { --nav-height: 68px; }
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; font-weight: 600; }

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

body {
  font-family: var(--font-body);
  color: var(--ink-600);
  background: var(--cream-50);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

section { scroll-margin-top: calc(var(--nav-height) + 12px); }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy-900); color: var(--cream-50);
  padding: 10px 18px; border-radius: var(--radius-sm);
  z-index: 999; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ============ Section scaffolding ============ */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
@media (max-width: 780px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 52px 0; }
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}
.section-head p { font-size: 1.05rem; color: var(--ink-600); }

.section--alt { background: var(--cream-100); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-500));
  color: var(--navy-950);
  box-shadow: 0 10px 24px rgba(166, 128, 58, 0.35);
}
.btn--gold:hover { box-shadow: 0 14px 30px rgba(166, 128, 58, 0.45); transform: translateY(-2px); }

.btn--outline-light {
  border-color: rgba(250, 248, 244, 0.5);
  color: var(--cream-50);
}
.btn--outline-light:hover { background: rgba(250, 248, 244, 0.1); border-color: var(--cream-50); }

.btn--outline-navy {
  border-color: var(--navy-900);
  color: var(--navy-900);
}
.btn--outline-navy:hover { background: var(--navy-900); color: var(--cream-50); }

.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.btn .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(8, 20, 43, 0.25);
  border-top-color: var(--navy-950);
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Navigation ============ */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-height);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: 46px; object-fit: cover; border-radius: 50%; }
.brand-word { font-family: var(--font-display); line-height: 1.05; }
.brand-word .name { display: block; font-size: 1.12rem; font-weight: 600; color: var(--navy-900); letter-spacing: 0.01em; }
.brand-word .sub { display: block; font-size: 0.68rem; color: var(--gold-600); font-weight: 500; letter-spacing: 0.08em; }

.nav-links {
  display: flex; align-items: center; gap: 34px;
}
.nav-links a {
  font-size: 0.96rem; font-weight: 500; color: var(--ink-600);
  position: relative; padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold-500); transition: right 0.28s var(--ease);
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links a:hover::after { right: 0; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 12px 24px; font-size: 0.92rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; color: var(--navy-900); }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn--book-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

.mobile-menu {
  display: none;
  position: fixed; inset: var(--nav-height) 0 0 0;
  background: var(--cream-50);
  z-index: 490;
  padding: 28px 24px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block; padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); font-weight: 500;
}
.mobile-menu .btn { margin-top: 26px; }

/* ============ Hero ============ */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 85% 0%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  color: var(--cream-100);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 88px;
  min-height: 640px;
}
.hero-copy [data-reveal] { opacity: 0; transform: translateY(18px); }
.hero.is-ready .hero-copy [data-reveal] {
  animation: heroRise 0.7s var(--ease) forwards;
}
.hero-copy [data-reveal="1"] { animation-delay: 0.05s; }
.hero-copy [data-reveal="2"] { animation-delay: 0.18s; }
.hero-copy [data-reveal="3"] { animation-delay: 0.32s; }
.hero-copy [data-reveal="4"] { animation-delay: 0.46s; }
@keyframes heroRise { to { opacity: 1; transform: translateY(0); } }

.hero-copy h1 {
  color: var(--cream-50);
  font-size: clamp(2.3rem, 4.1vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero-copy .lede {
  margin-top: 22px;
  font-size: 1.1rem;
  color: rgba(244, 238, 228, 0.82);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 48px; min-height: unset; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; }
  .hero-art svg { max-width: 280px; }
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.about-copy p { font-size: 1.05rem; margin-bottom: 16px; }
.about-copy p:last-of-type { margin-bottom: 0; }

.about-points {
  display: grid;
  gap: 20px;
}
.about-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.about-point .icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex; align-items: center; justify-content: center;
}
.about-point .icon svg { width: 20px; height: 20px; }
.about-point h4 { font-size: 1.02rem; margin-bottom: 4px; }
.about-point p { font-size: 0.92rem; color: var(--ink-600); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--gold-400);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--ink-600); }

@media (max-width: 940px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ============ Why choose us ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.why-card {
  text-align: left;
  padding: 26px 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--line);
}
.why-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.why-card .icon svg { width: 22px; height: 22px; }
.why-card h4 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.9rem; color: var(--ink-600); }

@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .why-grid { grid-template-columns: 1fr; } }

/* ============ Booking ============ */
.booking {
  background: radial-gradient(140% 160% at 10% 10%, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: var(--cream-100);
}
.booking-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.booking-info h2 { color: var(--cream-50); font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.booking-info p { color: rgba(244, 238, 228, 0.8); font-size: 1.02rem; margin-bottom: 28px; }

.booking-contact {
  display: grid;
  gap: 16px;
}
.booking-contact a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(244, 238, 228, 0.18);
  border-radius: var(--radius-sm);
  color: var(--cream-50);
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.booking-contact a:hover { background: rgba(244, 238, 228, 0.08); border-color: var(--gold-400); }
.booking-contact svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; }
.booking-contact span small { display: block; color: rgba(244, 238, 228, 0.6); font-size: 0.78rem; font-weight: 400; margin-top: 2px; }

.booking-form-card {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lift);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.86rem; font-weight: 600; color: var(--navy-900);
  margin-bottom: 7px;
}
.field .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-900);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(198, 163, 95, 0.18);
  outline: none;
}
.field textarea { resize: vertical; min-height: 96px; }
.field .error-msg {
  display: none;
  color: #a4353a;
  font-size: 0.8rem;
  margin-top: 6px;
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #a4353a; }
.field.has-error .error-msg { display: block; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
}
.form-status.is-visible { display: flex; }
.form-status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form-status--success { background: #e6f2e9; color: #285c3a; }
.form-status--error { background: #fbe9e7; color: #8a2f27; }
.form-status a { text-decoration: underline; font-weight: 600; }

@media (max-width: 980px) {
  .booking-grid { grid-template-columns: 1fr; }
  .booking-form-card { padding: 26px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-card .tagline { color: var(--gold-600); font-style: italic; font-family: var(--font-display); margin-bottom: 22px; }
.contact-list { display: grid; gap: 14px; margin-bottom: 26px; }
.contact-list a, .contact-list .plain {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-list a:hover { border-color: var(--gold-400); background: var(--cream-100); }
.contact-list svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; margin-top: 2px; }
.contact-list strong { display: block; color: var(--navy-900); font-size: 0.95rem; }
.contact-list span.detail { font-size: 0.9rem; color: var(--ink-600); }

.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
  position: relative;
  background: var(--cream-200);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-950);
  color: rgba(244, 238, 228, 0.75);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(244, 238, 228, 0.12);
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.footer-brand img { height: 52px; width: 52px; border-radius: 50%; object-fit: cover; }
.footer-brand .name { font-family: var(--font-display); color: var(--cream-50); font-size: 1.15rem; font-weight: 600; }
.footer-brand .tag { font-style: italic; color: var(--gold-400); font-family: var(--font-display); font-size: 0.92rem; }
.site-footer p.desc { font-size: 0.92rem; max-width: 34ch; }

.footer-col h5 { color: var(--cream-50); font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold-400); }
.footer-col .btn { margin-top: 6px; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 24px 0 30px;
  font-size: 0.82rem;
  color: rgba(244, 238, 228, 0.5);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ Back to top ============ */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
  z-index: 400;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ============ Reveal on scroll ============ */
[data-reveal-on-scroll] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal-on-scroll].is-visible {
  opacity: 1;
  transform: translateY(0);
}
