/* ============================================
   DUI SCHOOL OF NEWNAN — Brand Styles
   Palette: Burgundy + Blush | Clean Minimalist
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --burgundy: #722F37;
    --burgundy-deep: #5A252C;
    --burgundy-light: #8B3A42;
    --blush: #F5E6E0;
    --blush-light: #FAF3F0;
    --blush-mid: #F0D5CC;
    --cream: #FDFCFA;
    --white: #FFFFFF;
    --text-dark: #1A1414;
    --text-mid: #4A3F3F;
    --text-light: #7A6E6E;
    --text-muted: #A89898;
    --line: #E8DDD8;
    --line-light: #F0E8E4;
    
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-lg);
    color: var(--text-dark);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-light);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.06);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-dark);
}

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

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

.nav-link {
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-mid);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.btn-nav {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--burgundy);
    border: 1px solid var(--burgundy);
    padding: 0.55rem 1.2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.btn-nav:hover {
    background: var(--burgundy);
    color: var(--white);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-dark);
    transition: all var(--transition);
}

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

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

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

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: calc(72px + var(--space-xl)) var(--space-lg) var(--space-xl);
    position: relative;
    background: var(--cream);
}

.hero-inner {
    max-width: 780px;
}

.hero-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.hero-headline {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.hero-headline em {
    font-style: italic;
    color: var(--burgundy);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, var(--burgundy), transparent);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

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

.btn-primary:hover {
    background: var(--burgundy-deep);
    border-color: var(--burgundy-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(114, 47, 55, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--burgundy);
    color: var(--burgundy);
}

.btn-full {
    width: 100%;
}

/* ============================================
   INTRO / ABOUT
   ============================================ */

.intro {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

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

.intro-text .section-label {
    margin-bottom: var(--space-sm);
}

.intro-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: var(--space-md);
    line-height: 1.25;
}

.intro-text p {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: var(--space-sm);
}

.intro-image {
    position: relative;
}

.intro-image img {
    border-radius: var(--radius-md);
    width: 100%;
    object-fit: cover;
}

.intro-image::before {
    content: '';
    position: absolute;
    top: -16px;
    right: -16px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--blush-mid);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* ============================================
   PROGRAMS
   ============================================ */

.programs {
    padding: var(--space-3xl) 0;
    background: var(--blush-light);
}

.programs .container {
    text-align: center;
}

.programs .section-label {
    margin-bottom: var(--space-sm);
}

.programs .section-title {
    margin-bottom: var(--space-2xl);
}

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

.program-card {
    background: var(--white);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition);
}

.program-card:hover {
    border-color: var(--blush-mid);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(114, 47, 55, 0.07);
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    color: var(--burgundy);
}

.program-card h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-sm);
}

.program-card > p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: var(--space-md);
}

.card-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-list li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.6;
}

.card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 1px;
    background: var(--burgundy);
}

/* ============================================
   APPROACH
   ============================================ */

.approach {
    padding: var(--space-3xl) 0;
    background: var(--cream);
}

.approach-inner {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.approach-inner .section-label {
    margin-bottom: var(--space-sm);
}

.approach-inner .section-title {
    margin-bottom: var(--space-2xl);
}

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

.approach-item {
    padding: var(--space-md);
    border-top: 1px solid var(--line);
}

.approach-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--blush-mid);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.approach-item h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.approach-item p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.75;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
    padding: var(--space-3xl) 0;
    background: var(--blush-light);
}

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

.contact-info .section-label {
    margin-bottom: var(--space-sm);
}

.contact-info .section-title {
    margin-bottom: var(--space-sm);
}

.contact-intro {
    color: var(--text-mid);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.detail {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}

.detail svg {
    color: var(--burgundy);
    flex-shrink: 0;
    margin-top: 4px;
}

.detail strong {
    display: block;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.detail p, .detail a {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.detail a:hover {
    color: var(--burgundy);
    text-decoration: underline;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--line-light);
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-wrap {
    background: var(--white);
    border: 1px solid var(--line-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.contact-form-wrap h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

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

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
}

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

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

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

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

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.form-success p {
    color: var(--text-mid);
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--text-dark);
    color: var(--blush);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(245, 230, 224, 0.12);
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: var(--space-sm);
    display: inline-block;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 280px;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-lg);
}

.footer-links a {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   SCROLL ANIMATIONS (progressive enhancement)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }
    
    .approach-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --space-xl: 3rem;
        --space-2xl: 4rem;
        --space-3xl: 5rem;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 250, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--line-light);
        padding: var(--space-md) var(--space-lg);
        transform: translateY(-110%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-list {
        flex-direction: column;
        gap: var(--space-sm);
        align-items: flex-start;
    }
    
    .btn-nav {
        display: none;
    }
    
    .intro-grid {
        grid-template-columns: 1fr;
    }
    
    .intro-image {
        order: -1;
    }
    
    .intro-image::before {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-headline {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
    }
    
    .program-card {
        padding: var(--space-md);
    }
    
    .contact-form-wrap {
        padding: var(--space-md);
    }
}
