/* ============================================
   ATRA Janitorial Supply Inc. — Styles
   Burgundy + Blush | Clean Minimalist
   ============================================ */

/* CSS Custom Properties */
:root {
    --burgundy: #800020;
    --burgundy-dark: #5C0017;
    --burgundy-light: #A0314D;
    --blush: #F5E6E0;
    --blush-light: #FBF5F3;
    --blush-mid: #E8D5CF;
    --cream: #FDF8F6;
    --white: #FFFFFF;
    --text-dark: #1A0A0E;
    --text-body: #3D1F28;
    --text-muted: #7A5560;
    --text-light: #A07880;
    --border: #E8D5CF;
    --shadow-sm: 0 1px 3px rgba(128, 0, 32, 0.06);
    --shadow-md: 0 4px 20px rgba(128, 0, 32, 0.08);
    --shadow-lg: 0 8px 40px rgba(128, 0, 32, 0.12);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --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-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--cream);
}

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

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

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

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

.section-eyebrow {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-1px);
}

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

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

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

.btn-lg {
    padding: 18px 36px;
    font-size: 15px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 246, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.logo-mark {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--burgundy);
    letter-spacing: 0.08em;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.main-nav a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-body);
    transition: color var(--transition);
    position: relative;
}

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

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

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

.nav-cta {
    color: var(--burgundy) !important;
    font-weight: 500 !important;
    border: 1.5px solid var(--burgundy);
    padding: 8px 20px;
    border-radius: 5px;
    transition: all var(--transition);
}

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

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    padding: 8px;
}

/* Nav Overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-overlay-inner ul {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.nav-overlay-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text-dark);
    transition: color var(--transition);
}

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

.nav-overlay-cta {
    margin-top: 16px;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 500;
    border: 1.5px solid var(--burgundy);
    padding: 12px 32px;
    border-radius: 6px;
    color: var(--burgundy) !important;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 80% 20%, rgba(128, 0, 32, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(245, 230, 224, 0.8) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 20px;
}

.hero-headline {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.hero-subheadline {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 36px;
}

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

/* Hero Image Stack */
.hero-visual {
    position: relative;
}

.hero-image-stack {
    position: relative;
}

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

.hero-img-main {
    width: 100%;
    aspect-ratio: 6/7;
}

.hero-img-secondary {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 55%;
    aspect-ratio: 4/3;
    border: 4px solid var(--cream);
}

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

.hero-stat {
    position: absolute;
    top: 40px;
    right: -20px;
    background: var(--burgundy);
    color: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    color: var(--white);
}

.stat-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blush);
    margin-top: 4px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    animation: scrollBounce 2s ease-in-out infinite;
}

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

/* ============================================
   About
   ============================================ */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-content {
    max-width: 520px;
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 40px;
}

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
}

.about-feature h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-visual {
    position: relative;
}

.about-image-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img-1 {
    aspect-ratio: 4/5;
}

.about-img-2 {
    aspect-ratio: 4/3;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img:hover img {
    transform: scale(1.03);
}

/* ============================================
   Products
   ============================================ */
.products {
    padding: 120px 0;
    background: var(--cream);
}

.section-header {
    margin-bottom: 64px;
}

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

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

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

.product-image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: 24px;
}

.product-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-content p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.services-content {
    max-width: 520px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 48px;
}

.service-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.service-number {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--burgundy);
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
}

.service-item h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.service-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.services-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 5/6.5;
}

.services-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Why Us
   ============================================ */
.why-us {
    padding: 120px 0;
    background: var(--blush-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 64px;
}

.why-card {
    background: var(--white);
    padding: 36px 28px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 20px;
}

.why-card h3 {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Trust
   ============================================ */
.trust {
    padding: 100px 0;
    background: var(--burgundy);
}

.trust-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trust-content .section-eyebrow {
    color: var(--blush);
}

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

.trust-text {
    color: var(--blush);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 440px;
}

.trust-stats {
    display: flex;
    gap: 48px;
}

.trust-stat {
    text-align: left;
}

.trust-stat .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1;
}

.trust-stat .stat-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blush);
    margin-top: 8px;
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 120px 0;
    background: var(--cream);
}

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

.cta-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 120px 0;
    background: var(--white);
}

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 40px 0;
}

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

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

.contact-item h4 {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-item a {
    color: var(--burgundy);
    font-weight: 500;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--burgundy-dark);
}

.contact-map {
    margin-top: 8px;
    overflow: hidden;
}

.contact-form-wrapper {
    background: var(--cream);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}

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

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

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

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

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--blush);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--burgundy);
}

.form-success h4 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.form-success p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--text-dark);
    color: var(--blush);
    padding: 64px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(245, 230, 224, 0.15);
}

.footer-brand .logo-mark {
    color: var(--white);
}

.footer-brand .logo-sub {
    color: var(--blush);
}

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
    transition: color var(--transition);
}

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

.footer-contact p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--blush);
    transition: color var(--transition);
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================
   Reveal Animations (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* Default visible state for no-JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .nav-toggle {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 60px 0;
        text-align: center;
    }

    .hero-subheadline {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-visual {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-img-secondary {
        left: -16px;
        bottom: -20px;
    }

    .hero-stat {
        right: -10px;
        top: 20px;
    }

    .about-inner,
    .services-layout,
    .contact-layout,
    .trust-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-content {
        max-width: 100%;
    }

    .services-content {
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .why-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .trust-stats {
        gap: 32px;
    }

    .trust-stat .stat-number {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

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

    .hero-headline {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .trust-stats {
        flex-direction: column;
        gap: 24px;
    }

    .about-img-2 {
        display: none;
    }
}
