/* ========================================
   Daniel M. Stiegler, D.D.S. — Dental Practice
   Clean Minimalist | Terracotta + Sand
   ======================================== */

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

:root {
    --terracotta: #B85C3E;
    --terracotta-dark: #9A4B32;
    --terracotta-light: #D4845E;
    --sand: #F5F0EB;
    --sand-dark: #E8E0D8;
    --sand-medium: #EDE5DC;
    --cream: #FDFCFA;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --gray: #7A7A7A;
    --gray-light: #A8A8A8;
    --white: #FFFFFF;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s var(--ease-out);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---------- Typography ---------- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

.section-title--light {
    color: var(--white);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 560px;
    line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 0;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--large {
    font-size: 0.85rem;
    padding: 1.15rem 2.5rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
    border-color: var(--terracotta);
}

.btn-primary:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 92, 62, 0.25);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

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

.btn-outline-light:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease-out);
}

.nav.scrolled {
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav.scrolled .nav-logo-main,
.nav.scrolled .nav-logo-sub,
.nav.scrolled .nav-link {
    color: var(--charcoal);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.nav-logo-main {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
    transition: color var(--transition);
}

.nav-logo-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
    transition: color var(--transition);
}

.nav.scrolled .nav-logo-sub {
    color: var(--gray);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--terracotta);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--white);
}

.nav.scrolled .nav-link:hover {
    color: var(--terracotta);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--white);
    color: var(--charcoal) !important;
    border-color: var(--white);
}

.nav.scrolled .nav-cta {
    color: var(--terracotta) !important;
    background: transparent;
    border-color: var(--terracotta);
}

.nav.scrolled .nav-cta:hover {
    background: var(--terracotta);
    color: var(--white) !important;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle-bar {
    width: 22px;
    height: 1.5px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav.scrolled .nav-toggle-bar {
    background: var(--charcoal);
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(44, 30, 22, 0.72) 0%,
        rgba(44, 30, 22, 0.55) 50%,
        rgba(44, 30, 22, 0.4) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 5rem;
}

.hero-tag {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.75rem;
    max-width: 800px;
}

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

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    line-height: 1.85;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-details {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-detail-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.03em;
}

.hero-detail-item svg {
    opacity: 0.6;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ---------- Intro ---------- */
.intro {
    padding: 8rem 0;
    background: var(--cream);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.intro-text .section-title {
    margin-bottom: 1.5rem;
}

.intro-text p {
    font-size: 1rem;
    color: var(--charcoal-light);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

.intro-image {
    position: relative;
}

.intro-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.intro-image-accent {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 60%;
    height: 40%;
    background: var(--sand-dark);
    z-index: -1;
}

/* ---------- Services ---------- */
.services {
    padding: 8rem 0;
    background: var(--sand);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease-out);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border-color: var(--sand-dark);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--terracotta);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
}

/* ---------- Differentiator ---------- */
.differentiator {
    padding: 8rem 0;
    background: var(--charcoal);
}

.differentiator-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.differentiator-content .section-title {
    margin-bottom: 3rem;
}

.differentiator-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.diff-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.diff-number {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--terracotta);
    line-height: 1;
    min-width: 2.5rem;
    padding-top: 0.25rem;
}

.diff-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.diff-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
}

.differentiator-images {
    position: relative;
    height: 700px;
}

.diff-img {
    position: absolute;
    overflow: hidden;
}

.diff-img--main {
    top: 0;
    right: 0;
    width: 75%;
    height: 80%;
}

.diff-img--main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.diff-img--accent {
    bottom: 0;
    left: 0;
    width: 50%;
    height: 45%;
    border: 6px solid var(--charcoal);
}

.diff-img--accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Patient Info ---------- */
.patient-info {
    padding: 8rem 0;
    background: var(--cream);
}

.patient-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.patient-info-card {
    padding: 2.5rem 2rem;
    border: 1px solid var(--sand-dark);
    transition: all 0.4s var(--ease-out);
}

.patient-info-card:hover {
    border-color: var(--terracotta);
    box-shadow: 0 12px 36px rgba(184, 92, 62, 0.08);
}

.patient-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
}

.patient-info-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.patient-info-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.85;
}

/* ---------- CTA Strip ---------- */
.cta-strip {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.cta-strip-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-strip-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-strip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(44, 30, 22, 0.82),
        rgba(44, 30, 22, 0.65)
    );
}

.cta-strip .container {
    position: relative;
    z-index: 1;
}

.cta-strip-content {
    max-width: 680px;
}

.cta-label {
    color: rgba(255, 255, 255, 0.6);
}

.cta-title {
    margin-bottom: 1.25rem;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.85;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Contact ---------- */
.contact {
    padding: 8rem 0;
    background: var(--sand);
}

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

.contact-info .section-title {
    margin-bottom: 1.25rem;
}

.contact-text {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.85;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--sand-dark);
    color: var(--terracotta);
    flex-shrink: 0;
}

.contact-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 0.3rem;
}

.contact-detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact-link {
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--terracotta);
}

/* Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.6rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem 0;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--sand-dark);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: var(--gray-light);
}

.form-input:focus {
    border-color: var(--terracotta);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
    background: #f0f7f4;
    border: 1px solid #d1e7db;
    color: #2d6a4f;
    font-size: 0.9rem;
}

.form-success.show {
    display: flex;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--charcoal);
    padding: 4rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.75;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-phone,
.footer-email {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

.footer-phone:hover,
.footer-email:hover {
    color: var(--terracotta-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

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

/* ---------- Scroll Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .differentiator-layout {
        gap: 3rem;
    }

    .differentiator-images {
        height: 500px;
    }
}

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

    .intro-image {
        order: -1;
    }

    .intro-image img {
        height: 400px;
    }

    .differentiator-layout {
        grid-template-columns: 1fr;
    }

    .differentiator-images {
        height: 400px;
        order: -1;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(253, 252, 250, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s var(--ease-out);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links .nav-link {
        color: var(--charcoal);
        font-size: 1rem;
    }

    .nav-links .nav-link:hover {
        color: var(--terracotta);
    }

    .nav-links .nav-cta {
        color: var(--terracotta) !important;
        background: transparent;
        border-color: var(--terracotta);
        font-size: 0.85rem;
    }

    .nav-links .nav-cta:hover {
        background: var(--terracotta);
        color: var(--white) !important;
    }

    .hero-title {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        justify-content: center;
    }

    .hero-details {
        flex-direction: column;
        gap: 1rem;
    }

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

    .patient-info-grid {
        grid-template-columns: 1fr;
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        justify-content: center;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav-inner {
        padding: 0 1.25rem;
    }

    .hero {
        min-height: 600px;
    }

    .intro,
    .services,
    .differentiator,
    .patient-info,
    .contact {
        padding: 5rem 0;
    }
}
