/* ========================================
   Triple D's Hardware & Supply — Styles
   Palette: Charcoal + Coral + Pastel Airy
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --charcoal: #2D2D2D;
    --charcoal-light: #3D3D3D;
    --charcoal-dark: #1A1A1A;
    --coral: #F4845F;
    --coral-light: #F7A08A;
    --coral-pale: #FDE8E2;
    --coral-muted: #F4845F18;
    --cream: #FDF8F5;
    --cream-dark: #F5EDE8;
    --warm-white: #FFFAF8;
    --sand: #E8DDD6;
    --sand-light: #F0E8E2;
    --text-primary: #2D2D2D;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --text-inverse: #FDF8F5;
    --text-on-coral: #FFFFFF;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(45,45,45,0.06), 0 1px 2px rgba(45,45,45,0.04);
    --shadow-md: 0 4px 16px rgba(45,45,45,0.08), 0 2px 4px rgba(45,45,45,0.04);
    --shadow-lg: 0 12px 40px rgba(45,45,45,0.10), 0 4px 12px rgba(45,45,45,0.05);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--warm-white);
    -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 {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 48px;
    }
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--coral);
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--coral);
    color: var(--text-on-coral);
    box-shadow: 0 4px 16px rgba(244, 132, 95, 0.3);
}

.btn-primary:hover {
    background: var(--coral-light);
    box-shadow: 0 6px 24px rgba(244, 132, 95, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--sand);
}

.btn-secondary:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--text-inverse);
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 248, 245, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(45, 45, 45, 0.06);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(253, 248, 245, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--charcoal);
    color: var(--text-inverse) !important;
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--coral);
    color: var(--text-on-coral) !important;
}

/* Mobile toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(253, 248, 245, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-menu-link {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--charcoal);
    transition: var(--transition);
}

.mobile-menu-link:hover {
    color: var(--coral);
}

.mobile-menu-cta {
    margin-top: 16px;
    background: var(--coral);
    color: var(--text-on-coral);
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
    .nav-links {
        display: flex;
    }
    .mobile-menu {
        display: none;
    }
}

/* ========================================
   Hero Section — Asymmetric Magazine Layout
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 50%, var(--coral-pale) 100%);
    padding-top: 72px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(244, 132, 95, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(244, 132, 95, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        padding: 80px 48px;
    }
}

.hero-left {
    max-width: 560px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 28px;
}

.eyebrow-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--coral);
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--charcoal-dark);
    margin-bottom: 24px;
}

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

.hero-sub {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Hero Image Stack — Asymmetric */
.hero-right {
    position: relative;
}

.hero-image-stack {
    position: relative;
    height: 500px;
}

@media (min-width: 1024px) {
    .hero-image-stack {
        height: 620px;
    }
}

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

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

.hero-img-main {
    width: 75%;
    top: 0;
    right: 0;
    height: 420px;
    z-index: 2;
}

@media (min-width: 1024px) {
    .hero-img-main {
        height: 520px;
    }
}

.hero-img-accent {
    width: 55%;
    bottom: 60px;
    left: 0;
    height: 200px;
    z-index: 3;
    border: 4px solid var(--warm-white);
}

@media (min-width: 1024px) {
    .hero-img-accent {
        height: 240px;
    }
}

.hero-img-float {
    width: 45%;
    bottom: 0;
    right: 10%;
    height: 160px;
    z-index: 4;
    border: 4px solid var(--warm-white);
}

@media (min-width: 1024px) {
    .hero-img-float {
        height: 200px;
    }
}

/* Decorative elements */
.hero-image-stack::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--coral-pale);
    top: -20px;
    left: 20%;
    z-index: 0;
    opacity: 0.7;
}

.hero-image-stack::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--sand-light);
    bottom: 40px;
    right: -10px;
    z-index: 0;
    opacity: 0.7;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll-hint span {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--coral), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

@media (max-width: 1023px) {
    .hero-scroll-hint {
        display: none;
    }
}

/* ========================================
   Products Section
   ======================================== */
.products {
    padding: 100px 0;
    background: var(--warm-white);
}

@media (min-width: 768px) {
    .products {
        padding: 120px 0;
    }
}

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

.products .section-desc {
    margin: 0 auto 56px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: var(--warm-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--sand-light);
    transition: var(--transition);
}

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

.product-card-img {
    height: 200px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .product-card-img {
        height: 220px;
    }
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card-body {
    padding: 24px;
    text-align: left;
}

.product-card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--charcoal);
}

.product-card-body p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 100px 0;
    background: var(--cream);
}

@media (min-width: 768px) {
    .about {
        padding: 120px 0;
    }
}

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

@media (min-width: 1024px) {
    .about-layout {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.about-image {
    position: relative;
}

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

@media (min-width: 768px) {
    .about-image img {
        height: 520px;
    }
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--coral-pale);
    border-radius: var(--radius-lg);
    z-index: -1;
}

@media (min-width: 768px) {
    .about-image-accent {
        width: 160px;
        height: 160px;
        bottom: -30px;
        right: -30px;
    }
}

.about-content .section-desc {
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--sand);
}

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

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

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Why Us Section
   ======================================== */
.why-us {
    padding: 100px 0;
    background: var(--charcoal);
}

@media (min-width: 768px) {
    .why-us {
        padding: 120px 0;
    }
}

.why-us .section-title {
    color: var(--text-inverse);
}

.why-us .section-desc {
    color: rgba(253, 248, 245, 0.6);
}

.why-us .container {
    text-align: center;
}

.why-us .section-desc {
    margin: 0 auto 56px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    background: rgba(253, 248, 245, 0.05);
    border: 1px solid rgba(253, 248, 245, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: left;
    transition: var(--transition);
}

.feature-card:hover {
    background: rgba(253, 248, 245, 0.08);
    border-color: rgba(244, 132, 95, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(244, 132, 95, 0.15);
    color: var(--coral);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-inverse);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    color: rgba(253, 248, 245, 0.55);
    line-height: 1.7;
}

/* ========================================
   Visit / Contact Section
   ======================================== */
.visit {
    padding: 100px 0;
    background: var(--cream);
}

@media (min-width: 768px) {
    .visit {
        padding: 120px 0;
    }
}

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

@media (min-width: 1024px) {
    .visit-layout {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }
}

.visit-info .section-desc {
    margin-bottom: 36px;
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.visit-detail {
    display: flex;
    gap: 16px;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--coral-pale);
    color: var(--coral);
}

.visit-detail div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.visit-detail strong {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.visit-detail span,
.visit-detail a {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.visit-detail a:hover {
    color: var(--coral);
}

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

.visit-map {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
    height: 100%;
}

@media (min-width: 1024px) {
    .visit-map {
        min-height: 480px;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--charcoal-dark);
    padding: 64px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand .nav-logo span {
    color: var(--text-inverse);
}

.footer-brand p {
    font-size: 0.95rem;
    color: rgba(253, 248, 245, 0.5);
    line-height: 1.7;
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.footer p,
.footer a {
    font-size: 0.95rem;
    color: rgba(253, 248, 245, 0.55);
    line-height: 1.8;
}

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

.footer-bottom {
    border-top: 1px solid rgba(253, 248, 245, 0.08);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(253, 248, 245, 0.3);
}

/* ========================================
   Scroll Reveal Animations
   Progressive enhancement — content is visible by default
   ======================================== */
@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.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Fallback: ensure content is always visible */
@supports not (opacity: 0) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
