/* ===================================
   Bruce T. Wilson, DMD — Custom Styles
   Plum + Amber | Classic & Elegant
===================================== */

/* ---------- Custom Properties ---------- */
:root {
    --plum-950: #1a0a1e;
    --plum-900: #2d1233;
    --plum-800: #3d1a44;
    --plum-700: #5a2066;
    --plum-600: #7b2d8a;
    --plum-500: #9b3aad;
    --plum-400: #b860c4;
    --plum-100: #f3e5f7;
    --plum-50:  #faf0fd;

    --amber-600: #b8770e;
    --amber-500: #d4900f;
    --amber-400: #e8a824;
    --amber-300: #f0c05a;
    --amber-200: #f7d98a;
    --amber-100: #fdf3d8;
    --amber-50:  #fefce8;

    --stone-900: #1c1917;
    --stone-800: #292524;
    --stone-700: #44403c;
    --stone-600: #57534e;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50:  #fafaf9;
    --white: #ffffff;

    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Lato', system-ui, -apple-system, sans-serif;

    --shadow-sm: 0 1px 2px rgba(26, 10, 30, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 10, 30, 0.08);
    --shadow-lg: 0 8px 32px rgba(26, 10, 30, 0.12);
    --shadow-xl: 0 16px 48px rgba(26, 10, 30, 0.16);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--stone-800);
    background: var(--stone-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--stone-900);
}

.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--plum-600);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--stone-600);
    max-width: 600px;
    line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-amber {
    background: var(--amber-500);
    color: var(--stone-900);
    border-color: var(--amber-500);
}
.btn-amber:hover {
    background: var(--amber-400);
    border-color: var(--amber-400);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-plum {
    background: var(--plum-700);
    color: var(--white);
    border-color: var(--plum-700);
}
.btn-plum:hover {
    background: var(--plum-600);
    border-color: var(--plum-600);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--white);
}

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stone-200);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--stone-900);
}

.logo-icon {
    color: var(--plum-600);
    flex-shrink: 0;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
    transition: color var(--transition);
    position: relative;
}

.nav-list a:not(.btn):hover {
    color: var(--plum-600);
}

.nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--plum-500);
    transition: width var(--transition);
}

.nav-list a:not(.btn):hover::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--stone-700);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--plum-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.pexels.com/photos/18448916/pexels-photo-18448916.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1200') center center / cover no-repeat;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 10, 30, 0.82) 0%,
        rgba(45, 18, 51, 0.72) 50%,
        rgba(26, 10, 30, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 720px;
}

.hero-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
}

.hero-title em {
    font-style: italic;
    color: var(--amber-300);
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-desc {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 36px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stone-200);
    background: var(--stone-50);
    transition: all var(--transition);
}

.service-card:hover {
    border-color: var(--plum-300, #d4b8e8);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: var(--white);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--plum-100);
    color: var(--plum-700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--plum-700);
    color: var(--white);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--stone-900);
}

.service-desc {
    font-size: 0.925rem;
    color: var(--stone-600);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--stone-50);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image-wrapper img {
    border-radius: var(--radius-xl);
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-xl);
    background: var(--plum-100);
    z-index: -1;
}

.about-eyebrow { margin-bottom: 12px; }

.about-title { margin-bottom: 24px; }

.about-text {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid var(--stone-200);
    border-bottom: 1px solid var(--stone-200);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--plum-700);
    line-height: 1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--stone-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--stone-300);
    flex-shrink: 0;
}

/* ---------- Facility ---------- */
.facility {
    padding: 100px 0;
    background: var(--white);
}

.facility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.facility-grid .facility-image-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.facility-grid .facility-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.facility-text {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.8;
    margin-bottom: 28px;
}

.facility-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.facility-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--stone-700);
}

.facility-list svg {
    color: var(--plum-500);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---------- Testimonials ---------- */
.testimonials {
    padding: 100px 0;
    background: var(--plum-900);
}

.testimonials .section-eyebrow { color: var(--amber-400); }
.testimonials .section-title { color: var(--white); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.testimonial-quote {
    color: var(--amber-400);
    margin-bottom: 16px;
    opacity: 0.6;
}

.testimonial-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-style: normal;
    color: var(--amber-300);
    font-weight: 500;
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0;
    background: var(--stone-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-title { margin-bottom: 16px; }

.contact-text {
    font-size: 1rem;
    color: var(--stone-600);
    line-height: 1.75;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--plum-100);
    color: var(--plum-700);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--stone-500);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    color: var(--stone-800);
    line-height: 1.6;
}

.contact-value a {
    color: var(--plum-600);
    font-weight: 600;
    transition: color var(--transition);
}

.contact-value a:hover {
    color: var(--plum-500);
    text-decoration: underline;
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--stone-200);
}

.form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--stone-900);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--stone-700);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--stone-300);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--stone-800);
    background: var(--stone-50);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(155, 58, 173, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--stone-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-notice {
    font-size: 0.8rem;
    color: var(--stone-500);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 40px 20px;
}

.form-success svg {
    color: var(--plum-500);
    margin: 0 auto 16px;
}

.form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--stone-900);
}

.form-success p {
    color: var(--stone-600);
    margin-bottom: 24px;
}

/* ---------- Map ---------- */
.map-section {
    background: var(--stone-200);
}

.map-section iframe {
    display: block;
    width: 100%;
    height: 350px;
    filter: grayscale(30%);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--plum-950);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-light {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber-400);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact svg {
    color: var(--amber-400);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .facility-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-wrapper { order: -1; }
    .facility-grid .facility-image-wrapper { order: -1; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-list {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--stone-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-list.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-content { padding: 120px 24px 100px; }

    .hero-title { font-size: clamp(1.75rem, 7vw, 2.75rem); }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper { padding: 28px 20px; }

    .about-image-accent { display: none; }

    .about-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .hero-scroll { animation: none; }
}
