/* ===========================================================
   Borivli Smiles Dental Clinic — preview styles
   Warm, calm, editorial. System fonts (no external deps).
   =========================================================== */

:root {
  --bg: #fbf8f2;          /* ivory / warm off-white */
  --panel: #ffffff;
  --soft: #f5efe4;        /* pale warm grey-cream */
  --ink: #2b2722;         /* warm soft black */
  --muted: #79705f;       /* warm grey text */
  --line: #ebe3d4;        /* thin elegant border */
  --amber: #bd8439;       /* gold-ochre accent */
  --amber-deep: #a86d27;  /* deeper for contrast */
  --amber-soft: #f4e8d3;  /* icon circle wash */
  --wood: #8a5f38;        /* subtle wood-brown */
  --espresso: #2f2a23;    /* warm near-black CTA */
  --shadow: 0 16px 40px rgba(58, 43, 24, 0.06);
  --shadow-sm: 0 6px 18px rgba(58, 43, 24, 0.05);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { width: min(1120px, calc(100% - 44px)); margin: 0 auto; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.italic-amber { font-style: italic; color: var(--amber); }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.7rem; font-weight: 600; color: var(--amber-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  padding: 0.75rem 1.45rem; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent; transition: all 0.16s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--espresso); color: #fff; box-shadow: 0 10px 22px rgba(47, 42, 35, 0.16); }
.btn-primary:hover { background: #1f1b15; transform: translateY(-1px); }
.btn-amber { background: var(--amber-deep); color: #fff; box-shadow: 0 10px 22px rgba(168, 109, 39, 0.2); }
.btn-amber:hover { background: #905c1f; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; }

/* ---------- top bar ---------- */
.topbar { background: var(--espresso); color: #efe7d8; font-size: 0.78rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.3rem 1.4rem; padding: 0.48rem 0; }
.topbar span { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.95; }
.topbar svg { width: 13px; height: 13px; color: var(--amber); }
.topbar .star { color: var(--amber); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  background: var(--amber-soft); color: var(--amber-deep);
  display: flex; align-items: center; justify-content: center;
}
.brand .mark svg { width: 22px; height: 22px; }
.brand .bname { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); line-height: 1.1; }
.brand .btag { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
nav.main { display: flex; align-items: center; gap: 1.8rem; }
nav.main a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.15s; }
nav.main a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 0.55rem; }
.header-cta .btn-ghost svg { color: var(--amber-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem 0.55rem; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; color: var(--ink); }

/* mobile menu */
.mobile-menu { display: none; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 22px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.8rem 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.mobile-menu .mm-cta { display: flex; gap: 0.7rem; padding: 1rem 0 1.2rem; }
.mobile-menu .mm-cta .btn { flex: 1; }

/* ---------- hero ---------- */
.hero { padding: 3.6rem 0 3.2rem; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 3.2rem; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--amber-soft); color: var(--amber-deep); border: 1px solid #ecdcc0;
  padding: 0.38rem 0.9rem; border-radius: 999px; font-size: 0.76rem; font-weight: 600;
}
.hero .badge .star { color: var(--amber-deep); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.16; letter-spacing: -0.015em;
  color: var(--ink); margin: 1.2rem 0 0; max-width: 14ch;
}
.hero .support { color: var(--muted); font-size: 1.02rem; max-width: 32rem; margin-top: 1.1rem; }
.hero .creds { font-size: 0.92rem; color: var(--ink); margin-top: 0.9rem; font-weight: 500; }
.hero .creds strong { font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.7rem; }

/* hero image — restrained, contained */
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow); background: var(--soft);
}
.hero-media .frame img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; object-position: center; }
.rating-card {
  position: absolute; left: -16px; bottom: -16px;
  background: #fff; border: 1px solid var(--line); border-radius: 15px;
  padding: 0.7rem 0.95rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 0.6rem;
}
.rating-card .num { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); line-height: 1; }
.rating-card .stars { color: var(--amber); font-size: 0.74rem; letter-spacing: 0.06em; }
.rating-card .meta { font-size: 0.68rem; color: var(--muted); }

/* ---------- trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.trust-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 1rem; padding: 1.15rem 0; }
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--ink); }
.trust-item svg { width: 16px; height: 16px; color: var(--amber-deep); flex: 0 0 auto; }
.trust-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* ---------- generic section ---------- */
section.block { padding: 4.4rem 0; }
.sec-head { max-width: 38rem; margin: 0 auto 2.8rem; text-align: center; }
.sec-head .eyebrow { margin-bottom: 0.85rem; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.9vw, 2.2rem); color: var(--ink); line-height: 1.2; letter-spacing: -0.012em; }
.sec-head p { color: var(--muted); margin-top: 0.9rem; font-size: 1rem; }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: 0.84fr 1.16fr; gap: 3rem; align-items: center; }
.about-media { position: relative; }
.about-media .frame { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-media .frame img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; object-position: center; }
.about-media .exp-card {
  position: absolute; right: -16px; bottom: -16px; background: var(--espresso); color: #fff;
  border-radius: 15px; padding: 0.8rem 1.1rem; box-shadow: var(--shadow); text-align: center;
}
.about-media .exp-card .y { font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.about-media .exp-card .t { font-size: 0.66rem; color: #d8cdb8; margin-top: 0.25rem; letter-spacing: 0.04em; }
.about-body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.9vw, 2.15rem); color: var(--ink); line-height: 1.2; letter-spacing: -0.012em; }
.about-body .role { color: var(--amber-deep); font-weight: 600; font-size: 0.92rem; margin-top: 0.5rem; }
.about-body p { color: var(--muted); margin-top: 1rem; font-size: 1rem; max-width: 34rem; }
.about-facts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.about-facts .f { display: inline-flex; align-items: center; gap: 0.45rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.9rem; font-size: 0.83rem; box-shadow: var(--shadow-sm); }
.about-facts .f svg { width: 14px; height: 14px; color: var(--amber-deep); }

/* ---------- treatments ---------- */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.treat-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform 0.16s ease, box-shadow 0.16s ease; }
.treat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.treat-card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.treat-card .ic svg { width: 22px; height: 22px; }
.treat-card h3 { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); margin-bottom: 0.35rem; }
.treat-card p { color: var(--muted); font-size: 0.9rem; }
.also { margin-top: 2.2rem; text-align: center; }
.also .lbl { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pill { background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.84rem; color: var(--ink); }

/* ---------- clinic gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--soft); }
.gallery figure img { width: 100%; height: 230px; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 1; }

/* ---------- why / comfort ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.why-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); }
.why-card .ic { width: 42px; height: 42px; border-radius: 50%; background: var(--amber-soft); color: var(--amber-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.why-card .ic svg { width: 20px; height: 20px; }
.why-card h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin-bottom: 0.4rem; }
.why-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- contact ---------- */
.contact { padding: 4.4rem 0; }
.contact-panel { background: var(--espresso); color: #efe7d8; border-radius: 26px; padding: clamp(2.2rem, 4vw, 3.4rem); }
.contact-top { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; margin-bottom: 2.2rem; }
.contact-top .eyebrow { color: #e3b878; }
.contact-top h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; line-height: 1.2; margin-top: 0.7rem; letter-spacing: -0.012em; }
.contact-top p { color: #cdc2ac; margin-top: 0.9rem; font-size: 0.98rem; }
.contact-top .contact-phone { margin-top: 0.9rem; font-family: var(--serif); font-size: 1.3rem; }
.contact-top .contact-phone a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(227,184,120,0.5); }
.contact-top .contact-phone a:hover { border-bottom-color: #e3b878; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-end; }
.contact-top .btn-light:hover { background: #f3ece0; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 2rem; }
.info .ih { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #e3b878; margin-bottom: 0.55rem; }
.info .ih svg { width: 15px; height: 15px; }
.info p { font-size: 0.92rem; color: #ddd3bf; line-height: 1.55; }
.info a { color: #ddd3bf; text-decoration: none; border-bottom: 1px solid rgba(227,184,120,0.4); }
.info a:hover { color: #fff; }

/* ---------- footer ---------- */
footer.site { padding: 3.2rem 0 2rem; border-top: 1px solid var(--line); }
footer.site .cols { display: grid; grid-template-columns: 1.5fr 0.8fr 1.2fr; gap: 2.4rem; }
footer.site .fbrand { display: flex; align-items: center; gap: 0.55rem; margin-bottom: 0.85rem; }
footer.site .fbrand .mark { width: 36px; height: 36px; border-radius: 11px; background: var(--amber-soft); color: var(--amber-deep); display: flex; align-items: center; justify-content: center; }
footer.site .fbrand .mark svg { width: 20px; height: 20px; }
footer.site .fbrand .bname { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); }
footer.site p { color: var(--muted); font-size: 0.89rem; max-width: 26rem; }
footer.site h4 { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.85rem; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 0.5rem; }
footer.site li a { color: var(--muted); text-decoration: none; font-size: 0.89rem; }
footer.site li a:hover { color: var(--ink); }
.fcontact p { font-size: 0.87rem; margin-bottom: 0.45rem; }
.fbottom { border-top: 1px solid var(--line); margin-top: 2.4rem; padding-top: 1.4rem; }
.fbottom p { font-size: 0.79rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  nav.main, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-media { order: -1; max-width: 440px; margin: 0 auto; width: 100%; }
  .hero h1 { max-width: 20ch; }
  .about .wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .about-media { max-width: 420px; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-top { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  footer.site .fabout { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .header-cta .btn-amber { display: none; }
  .treat-grid, .why-grid, .gallery, .info-grid { grid-template-columns: 1fr; }
  .gallery figure img { height: 210px; }
  .hero-media .frame img { max-height: 340px; }
  .about-media .frame img { max-height: 380px; }
  section.block, .contact { padding: 3rem 0; }
  .trust-strip .trust-sep { display: none; }
}
