/* ========================================
   GI Dental Arts - Custom Styles
   Burgundy & Blush | Confident Corporate
======================================== */

/* --- CSS Variables --- */
:root {
    --color-burgundy: #780000;
    --color-burgundy-dark: #5a0000;
    --color-burgundy-light: #9e1f1f;
    --color-blush: #F5E6E0;
    --color-blush-light: #FBF5F3;
    --color-blush-dark: #E8D0C8;
    --color-neutral-dark: #1a1a1a;
    --color-neutral-mid: #4a4a4a;
    --color-neutral-light: #f8f6f5;
    --color-white: #ffffff;
    --color-border: #e8e0dc;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 50px rgba(0,0,0,0.12);
}

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

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

body {
    font-family: var(--font-body);
    color: var(--color-neutral-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.text-accent-dark {
    color: var(--color-burgundy);
}

.text-accent-light {
    color: var(--color-burgundy);
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-neutral-dark);
    letter-spacing: -0.02em;
}

.logo-icon {
    color: var(--color-burgundy);
}

.logo-text .text-accent-light {
    color: var(--color-burgundy);
}

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

.logo-light .text-accent-light {
    color: var(--color-blush);
}

.nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-neutral-mid);
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav a:hover {
    color: var(--color-burgundy);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--color-burgundy-dark);
    border-color: var(--color-burgundy-dark);
}

.btn-outline {
    background: transparent;
    color: var(--color-neutral-dark);
    border-color: var(--color-neutral-dark);
}

.btn-outline:hover {
    background: var(--color-neutral-dark);
    color: var(--color-white);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 0.95rem;
}

.btn-light {
    background: var(--color-white);
    color: var(--color-burgundy);
    border-color: var(--color-white);
}

.btn-light:hover {
    background: var(--color-blush-light);
}

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

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-neutral-dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
    padding-top: 72px;
    background: var(--color-blush-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-burgundy);
    margin-bottom: var(--space-lg);
}

.label-line {
    width: 40px;
    height: 2px;
    background: var(--color-burgundy);
    flex-shrink: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-neutral-mid);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero-credentials {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

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

.credential-num {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-burgundy);
    font-weight: 600;
}

.credential-label {
    font-size: 0.8rem;
    color: var(--color-neutral-mid);
    line-height: 1.4;
}

.credential-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-md);
}

.hero-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero-img-secondary {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-top: var(--space-lg);
    margin-left: var(--space-lg);
    max-width: 75%;
}

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

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--color-burgundy);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
}

/* --- Section Shared --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

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

/* --- Services Section --- */
.services {
    padding: var(--space-3xl) 0;
    background: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--color-blush-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-blush-dark);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--color-burgundy);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-xs);
    font-family: var(--font-body);
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-neutral-mid);
    line-height: 1.6;
}

/* --- About Section --- */
.about {
    padding: var(--space-3xl) 0;
    background: var(--color-neutral-light);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-img-stack {
    position: relative;
    height: 550px;
}

.about-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 80%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 50%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-white);
}

.about-img-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content .section-title {
    margin-bottom: var(--space-lg);
}

.about-text {
    font-size: 1rem;
    color: var(--color-neutral-mid);
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    gap: var(--space-xl);
    margin: var(--space-xl) 0;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-burgundy);
    font-weight: 600;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-neutral-mid);
    line-height: 1.3;
}

.about-content .btn {
    margin-top: var(--space-md);
}

/* --- Why Us Section --- */
.why-us {
    padding: var(--space-3xl) 0;
    background: var(--color-burgundy);
}

.why-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.why-header .section-label {
    color: var(--color-blush);
}

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

.why-header .section-title .text-accent-dark {
    color: var(--color-blush);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.why-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

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

.why-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-blush);
    font-weight: 400;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.why-card h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.why-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* --- CTA Section --- */
.cta {
    padding: var(--space-3xl) 0;
    background: var(--color-blush-light);
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.cta-content .section-title {
    margin-bottom: var(--space-md);
}

.cta-content .section-title .text-accent-light {
    color: var(--color-burgundy);
}

.cta-text {
    font-size: 1.05rem;
    color: var(--color-neutral-mid);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.cta-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.cta-phone, .cta-email {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-neutral-dark);
    transition: color 0.2s ease;
}

.cta-phone:hover, .cta-email:hover {
    color: var(--color-burgundy);
}

.cta-phone svg, .cta-email svg {
    color: var(--color-burgundy);
    flex-shrink: 0;
}

.cta-address {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-neutral-mid);
    line-height: 1.5;
}

.cta-address svg {
    color: var(--color-burgundy);
    flex-shrink: 0;
    margin-top: 2px;
}

/* --- Contact Form --- */
.cta-form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.contact-form h3 {
    font-size: 1.4rem;
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-lg);
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-neutral-dark);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-neutral-dark);
    background: var(--color-blush-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-burgundy);
    box-shadow: 0 0 0 3px rgba(120, 0, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-neutral-mid);
    opacity: 0.6;
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--color-neutral-mid);
    text-align: center;
    margin-top: var(--space-sm);
}

.form-success {
    display: none;
    text-align: center;
    padding: var(--space-xl);
}

.form-success svg {
    color: var(--color-burgundy);
    margin-bottom: var(--space-md);
}

.form-success h3 {
    font-size: 1.4rem;
    color: var(--color-neutral-dark);
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
}

.form-success p {
    font-size: 0.95rem;
    color: var(--color-neutral-mid);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--color-neutral-dark);
    color: var(--color-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-info h4,
.footer-links h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-blush);
    margin-bottom: var(--space-md);
}

.footer-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-info a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        max-width: 500px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
        max-width: 500px;
    }
    
    .about-img-stack {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-lg);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav a {
        font-size: 1rem;
    }
    
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-xl);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-credentials {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .credential-divider {
        display: none;
    }
    
    .hero-img-secondary {
        margin-left: 0;
        max-width: 100%;
    }
    
    .hero-badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: var(--space-sm);
        display: inline-flex;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

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