/* ============================================================
   SMILE & DIAL — site styles layered on top of base.css
   (base.css carries the design system: colors, fonts, utilities)
   ============================================================ */

html { scroll-behavior: smooth; }
body { font-family: var(--app-font-sans); color: var(--ink); background: var(--cream); }

.font-serif-display { font-family: var(--app-font-serif); }

/* ---------- Header ---------- */
.sd-header { position: sticky; top: 0; z-index: 50; transition: all .3s; background: rgba(255,255,255,.9); backdrop-filter: blur(4px); border-bottom: 1px solid transparent; }
.sd-header.is-scrolled { background: rgba(255,255,255,.95); backdrop-filter: blur(12px); box-shadow: 0 1px 2px 0 rgb(0 0 0 / .05); border-bottom: 1px solid rgba(28,53,101,.1); }
.sd-nav-link { color: var(--ink); padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.sd-nav-link:hover { color: var(--navy); border-color: var(--brass); }
.sd-nav-link.is-active { color: var(--navy); border-color: var(--brass); }
.sd-mobile-link { display: block; padding: .875rem 1.5rem; font-size: .875rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid rgba(28,53,101,.1); transition: background .2s; }
.sd-mobile-link:hover { background: var(--cream); }

/* ---------- Buttons ---------- */
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .875rem 1.75rem; border-radius: 9999px; font-weight: 600; font-size: .875rem; letter-spacing: .05em; text-transform: uppercase; transition: all .2s; cursor: pointer; border: 0; }
.sd-btn:hover { opacity: .9; transform: translateY(-1px); }
.sd-btn-navy { background: var(--navy); color: #fff; }
.sd-btn-brass { background: var(--brass); color: #fff; }
.sd-btn-cream { background: var(--cream); color: var(--navy); }
.sd-btn-ghost-light { background: transparent; border: 1px solid rgba(250,246,237,.55); color: var(--cream); }
.sd-btn-ghost-light:hover { background: rgba(255,255,255,.1); opacity: 1; }
.sd-btn-outline-navy { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.sd-btn-outline-navy:hover { background: var(--navy); color: #fff; opacity: 1; }

/* ---------- Hero carousel ---------- */
.sd-hero { position: relative; overflow: hidden; height: clamp(540px, 86vh, 780px); background: var(--navy-deep); }
.sd-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.sd-hero-slide.is-active { opacity: 1; pointer-events: auto; }
.sd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sd-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,37,72,.58) 0%, rgba(18,37,72,.38) 40%, rgba(18,37,72,.72) 100%); }
.sd-hero-content { position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 1.5rem; max-width: 56rem; margin: 0 auto; }
.sd-hero-eyebrow { color: var(--brass); font-size: .75rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.25rem; text-shadow: 0 1px 8px rgba(18,37,72,.5); }
.sd-hero-headline { font-family: var(--app-font-serif); color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 500; line-height: 1.08; margin-bottom: 1.25rem; text-shadow: 0 2px 16px rgba(18,37,72,.45); }
.sd-hero-sub { color: rgba(250,246,237,.92); font-size: clamp(1rem, 1.6vw, 1.125rem); line-height: 1.6; max-width: 34rem; margin: 0 auto 2rem; text-shadow: 0 1px 8px rgba(18,37,72,.5); }
.sd-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 44px; height: 44px; border-radius: 9999px; background: rgba(250,246,237,.14); border: 1px solid rgba(250,246,237,.3); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s; }
.sd-hero-arrow:hover { background: rgba(250,246,237,.28); }
.sd-hero-arrow.prev { left: 1.25rem; } .sd-hero-arrow.next { right: 1.25rem; }
.sd-hero-dots { position: absolute; bottom: 1.5rem; left: 0; right: 0; display: flex; justify-content: center; gap: .625rem; z-index: 20; }
.sd-hero-dot { width: 9px; height: 9px; border-radius: 9999px; background: rgba(250,246,237,.5); border: 0; cursor: pointer; transition: all .3s; padding: 0; }
.sd-hero-dot.is-active { width: 28px; background: #fff; }

/* ---------- Cards ---------- */
.sd-card { background: #fff; border-radius: 1rem; border: 1px solid rgba(28,53,101,.12); box-shadow: 0 2px 8px rgba(28,53,101,.06); overflow: hidden; display: flex; flex-direction: column; transition: all .3s; }
.sd-card:hover { transform: translateY(-6px); box-shadow: 0 14px 40px rgba(18,37,72,.14); }
.sd-card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1 / 1.06; background: var(--mist); }
.sd-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sd-card:hover .sd-card-img-wrap img { transform: scale(1.05); }
.sd-badge { position: absolute; top: .75rem; left: .75rem; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .375rem .625rem; border-radius: 9999px; color: #fff; background: var(--navy); }
.sd-badge.sold { background: var(--brass); }
.sd-chip { padding: .5rem 1rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(28,53,101,.2); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.sd-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.sd-inquire-btn { font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .375rem .75rem; border-radius: 9999px; border: 1px solid var(--navy); color: var(--navy); background: transparent; cursor: pointer; transition: all .2s; }
.sd-inquire-btn:hover { background: var(--navy); color: #fff; }
.sd-details-btn { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); background: none; border: 0; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: .3rem; }
.sd-details-btn:hover { color: var(--navy); }

/* ---------- Value cards (navy section) ---------- */
.sd-value-card { text-align: center; padding: 2.25rem; border-radius: 1rem; border: 1px solid rgba(250,246,237,.12); background: rgba(250,246,237,.07); box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: all .3s; }
.sd-value-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.22); background: rgba(250,246,237,.12); }

/* ---------- Forms ---------- */
.sd-label { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .375rem; color: #6b7a96; }
.sd-input { width: 100%; padding: .75rem 1rem; border-radius: .75rem; border: 1px solid rgba(28,53,101,.2); font-size: .875rem; color: var(--ink); background: #fff; outline: none; transition: border-color .2s; font-family: inherit; }
.sd-input:focus { border-color: var(--navy); }
textarea.sd-input { resize: none; }
select.sd-input { appearance: auto; }

/* ---------- Product modal ---------- */
.sd-modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(18,37,72,.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1.25rem; }
.sd-modal-backdrop.is-open { display: flex; }
.sd-modal { background: #fff; border-radius: 1.25rem; max-width: 60rem; width: 100%; max-height: 90vh; overflow: auto; display: grid; grid-template-columns: 1fr; box-shadow: 0 32px 80px rgba(18,37,72,.35); position: relative; }
@media (min-width: 768px) { .sd-modal { grid-template-columns: 1.05fr .95fr; overflow: hidden; max-height: 86vh; } .sd-modal-info { overflow: auto; } }
.sd-modal-img { background: var(--mist); min-height: 280px; }
.sd-modal-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-modal-info { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.sd-modal-close { position: absolute; top: .875rem; right: .875rem; z-index: 10; width: 38px; height: 38px; border-radius: 9999px; background: rgba(255,255,255,.92); border: 1px solid rgba(28,53,101,.15); color: var(--navy); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.sd-modal-close:hover { background: var(--navy); color: #fff; }
.sd-detail-li { display: flex; align-items: flex-start; gap: .625rem; font-size: .875rem; color: #46536f; }
.sd-detail-li::before { content: ""; margin-top: .5rem; width: 6px; height: 6px; border-radius: 9999px; background: var(--brass); flex-shrink: 0; }
body.sd-modal-open { overflow: hidden; }

/* ---------- Page hero (sub pages) ---------- */
.sd-page-hero { background: linear-gradient(165deg, var(--navy) 0%, var(--navy-deep) 100%); padding: 4.5rem 1.25rem 4rem; text-align: center; }
.sd-page-hero h1 { font-family: var(--app-font-serif); color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 500; line-height: 1.1; }
.sd-page-hero p.sd-eyebrow { color: #D8C9A0; }
.sd-page-hero .sd-page-sub { color: rgba(250,246,237,.8); max-width: 36rem; margin: 1rem auto 0; line-height: 1.65; }
.sd-eyebrow { font-size: .75rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--brass); margin-bottom: .75rem; }
.sd-h2 { font-family: var(--app-font-serif); color: var(--navy); font-weight: 500; line-height: 1.15; font-size: clamp(1.875rem, 4vw, 3rem); }

/* ---------- Testimonials ---------- */
.sd-quote-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; opacity: 0; transition: opacity .6s; pointer-events: none; }
.sd-quote-slide.is-active { opacity: 1; pointer-events: auto; }

/* ---------- Footer ---------- */
.sd-footer a { transition: color .2s; }
.sd-footer a:hover { color: #D8C9A0; }
.sd-social { width: 38px; height: 38px; border-radius: 9999px; border: 1px solid rgba(250,246,237,.25); display: inline-flex; align-items: center; justify-content: center; color: rgba(250,246,237,.85); transition: all .2s; }
.sd-social:hover { background: rgba(250,246,237,.12); color: #fff !important; }

/* ---------- Misc ---------- */
.sd-live-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .375rem .75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: rgba(172,157,114,.18); color: #D8C9A0; }
.sd-live-dot { width: 9px; height: 9px; border-radius: 9999px; background: #e46a5a; animation: sdpulse 1.6s ease-in-out infinite; }
@keyframes sdpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.sd-step-num { width: 44px; height: 44px; border-radius: 9999px; background: rgba(172,157,114,.16); color: var(--brass); font-family: var(--app-font-serif); font-size: 1.25rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-weight: 600; }
.sd-success-panel { text-align: center; padding: 3.5rem 2rem; border-radius: 1rem; border: 1px solid rgba(28,53,101,.12); background: #fff; }
