/* ============================================================
   DIVYA INDUSTRIES — Premium Adaptive Design System
   Architecture: Mobile-First, Fluid Typography, True Grid
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
    --bg-primary:    #F7F1E3; /* Silk Cream - Rich & Premium */
    --bg-secondary:  #FFFFFF;
    --bg-tertiary:   #F3F1EA;

    --text-primary:   #2D3142; /* Rich Charcoal - High Visibility */
    --text-secondary: #4A4A4A;
    --text-muted:     #808080;

    --accent-primary:   #11224D; /* Midnight Navy */
    --accent-hover:     #0A1633; /* Deep Navy */
    --accent-light:     rgba(17, 34, 77, 0.05); 
    --accent-neon:      #B5935B; /* Burnished Bronze */
    --accent-neon-dark: #8E7044; 

    --border-color: rgba(181, 147, 91, 0.2);
    --border-light: rgba(181, 147, 91, 0.1);

    --shadow-sm:    0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md:    0 10px 20px -5px rgba(45, 49, 66, 0.08);
    --shadow-lg:    0 25px 50px -12px rgba(45, 49, 66, 0.12);
    --shadow-hover: 0 35px 60px -15px rgba(45, 49, 66, 0.2);

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   24px;
    --radius-pill: 9999px;

    --transition-fast:   0.15s ease-out;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow:   0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* ─── Fluid Type Scale — Engineered for Modern Flagships ──
     *
     *  Target devices:  iPhone 16 (393px) · S24 Ultra (384px) · OnePlus 11R (412px)
     *  Design targets @ 400px CSS width → 1440px desktop:
     *
     *  Formula:  clamp(floor, preferred-rem + fluid-vw, desktop-max)
     *  The rem part anchors to user zoom; the vw part gives fluidity.
     *
     *  H1 hero    :  ~46px → 80px
     *  H2 section :  ~36px → 56px
     *  H3 heading :  ~28px → 35px
     *  H4 card    :  ~22px → 24px
     *  Body large :  ~18px → 19.2px
     *  Body base  :  ~17px → 17.6px
     *  Captions   :  ~15px → 16px
     * ─────────────────────────────────────────────────────────── */

    /* clamp math notes (at 400px CSS width):
       H1:     1rem + 7.5vw = 16 + 30 = 46px  ✓
       H2:     0.75rem + 6.5vw = 12 + 26 = 38px, capped at 3.5rem if > 56px ✓
       H3:     0.75rem + 4.5vw = 12 + 18 = 30px  ✓
       H4:     0.75rem + 3.5vw = 12 + 14 = 26px, floor 1.375rem (22px) → 26px ✓
       body-lg: 0.75rem + 1.5vw = 12 + 6 = 18px ✓
       body-md: 0.75rem + 1.1vw = 12 + 4.4 = 16.4px, floor 1.0625rem (17px) → 17px ✓
       body-sm: 0.6rem + 0.9vw  = 9.6 + 3.6 = 13.2px, floor 0.9375rem (15px) → 15px ✓ */

    --font-heading-xl:  clamp(2.875rem, 1rem + 7.5vw, 5rem);      /* H1 hero  */
    --font-heading-lg:  clamp(2.25rem,  0.75rem + 6.5vw, 3.5rem);  /* H2 page  */
    --font-heading-md:  clamp(1.75rem,  0.75rem + 4.5vw, 2.2rem);  /* H3 sect  */
    --font-heading-sm:  clamp(1.375rem, 0.75rem + 3.5vw, 1.5rem);  /* H4 card  */
    --font-body-lg:     clamp(1.125rem, 0.75rem + 1.5vw, 1.2rem);  /* body +   */
    --font-body-md:     clamp(1.0625rem,0.75rem + 1.1vw, 1.1rem);  /* body     */
    --font-body-sm:     clamp(0.9375rem,0.6rem  + 0.9vw, 1rem);    /* labels   */

    --section-padding:    clamp(3.5rem, 10vw, 8rem);
    --container-padding:  clamp(1.5rem, 5vw, 3rem);
    --card-padding:       clamp(1.5rem, 4vw, 2.5rem);
    --nav-height:         72px;
}

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

html {
    font-size: 16px; /* base = 1rem = 16px, users can override in browser settings */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%; /* prevent iOS auto-font-scaling on orientation change */
    text-size-adjust: 100%;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--font-body-md);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px; /* Force premium corners for content images */
    border: 2px solid var(--accent-primary); /* Midnight Navy border */
    box-shadow: var(--shadow-sm);
}

/* Global SVG reset (no borders for background/utility SVGs) */
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

/* ─── Layout Utilities ───────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-center { text-align: center; }
.text-highlight {
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-secondary);
}

.btn-silver {
    background: #11224D;
    color: #FFFFFF;
    border: none;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.btn-silver:hover {
    background: #0A1633;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: #10b981;
    color: white;
    box-shadow: var(--shadow-md);
    border: none;
}
.btn-whatsapp:hover {
    background: #059669;
    box-shadow: 0 20px 40px -10px rgba(16,185,129,0.25);
    transform: translateY(-2px);
}

.btn-blob-cta {
    position: relative;
    z-index: 10;
    background: rgba(18, 18, 18, 0.9);
    color: white;
    min-height: 58px;
    padding: 1.1rem 3rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    transition: var(--transition-normal);
}
.btn-blob-cta:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-normal);
    background: rgba(247, 241, 227, 0.85); /* Silk Cream Glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: none; /* Removed unnecessary line */
}
.navbar.scrolled {
    background: rgba(249, 247, 242, 0.98);
    box-shadow: 0 4px 20px rgba(45, 49, 66, 0.05);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}
.logo-icon {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}
.logo-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    transition: var(--transition-normal);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--accent-primary);
}

.nav-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

/* Hamburger */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.mobile-menu-btn span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Mobile Nav Overlay — hidden by default on ALL sizes */
.mobile-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100%;
    min-height: 100dvh;
    background: var(--bg-secondary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    overflow-y: auto;
}
.mobile-nav.active { right: 0; }
.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    padding: 0.5rem 1rem;
}
.mobile-nav-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
    padding: 0.5rem;
}
/* CTA inside mobile nav */
.mobile-nav .btn {
    margin-top: 1rem;
    min-width: 200px;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 4rem) var(--container-padding) 4rem;
    background-color: var(--bg-primary);
    overflow: hidden;
    text-align: center;
}

.hero-blobs-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.float-svg {
    position: absolute;
    opacity: 0.75;
    filter: drop-shadow(0 15px 25px rgba(125,135,148,0.15));
    will-change: transform;
    pointer-events: none;
    z-index: 1;
    stroke: rgba(0, 0, 0, 0.7); /* Darker, more defined border */
    stroke-width: 0.3px;
    border: none !important; /* Remove the global SVG border box */
    background: transparent !important;
    box-shadow: none !important;
}
.size-sm { width: 70px;  height: 70px;  }
.size-md { width: 120px; height: 120px; }
.size-lg { width: 200px; height: 200px; }
.size-xl { width: 270px; height: 270px; }

.hero-container {
    position: relative;
    z-index: 10;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 1.1rem;
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    font-size: var(--font-body-sm);
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: var(--font-heading-xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 2.5rem;
}

/* Page Hero (non-home pages) */
.page-hero {
    background: var(--bg-primary);
    padding: calc(var(--nav-height) + 3.5rem) var(--container-padding) 3rem;
    text-align: center;
    border-bottom: none; /* Removed unnecessary line */
}
.page-hero .hero-title {
    text-transform: none;
    font-size: var(--font-heading-lg);
}
.page-hero .hero-subtitle {
    margin-top: 0.75rem;
    max-width: 560px;
    font-size: var(--font-body-lg);
}

/* ─── Stats Band ─────────────────────────────────────────── */
.stats {
    padding: 3.5rem var(--container-padding);
    background: var(--accent-primary);
    color: white;
}

.stats-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 0 1rem;
}

.stat-number {
    font-size: clamp(2.25rem, 1rem + 5vw, 3.2rem);
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: var(--font-body-sm);
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ─── Sections ───────────────────────────────────────────── */
.section-full {
    padding: var(--section-padding) var(--container-padding);
}

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 6vw, 5rem);
    text-align: center;
}

.section-title {
    font-size: var(--font-heading-lg);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ─── About Grid ─────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 7vw, 6rem);
    align-items: center;
    max-width: 1440px;
    margin: 0 auto;
}

.about-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}
.about-visual img,
.about-visual .blueprint-graphic {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-text p {
    font-size: var(--font-body-lg);
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 1rem;
    font-weight: 500;
}
.check-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    background: var(--accent-light);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Floating stat card — desktop only */
.stat-float-card {
    position: absolute;
    bottom: -2rem;
    left: -2rem;
    width: 220px;
    padding: 1.75rem;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--accent-primary);
    z-index: 20;
}
.stat-float-card .stat-big {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-float-card p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

/* ─── Category & Product Grid ────────────────────────────── */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    max-width: 1440px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(181, 147, 91, 0.15); /* Soft Bronze accent */
    border-radius: var(--radius-lg);
    padding: var(--card-padding);
    transition: var(--transition-slow);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
}
.product-card h3 {
    font-size: var(--font-heading-sm);
    margin-bottom: 0.6rem;
    color: var(--accent-primary);
}
.product-card p {
    font-size: var(--font-body-md);
    color: var(--text-secondary);
    flex: 1;
    line-height: 1.65;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.card-image {
    width: 100%;
    aspect-ratio: 1/1;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
    animation: floating 4s ease-in-out infinite;
}
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.product-card.card-dark {
    background: #11224D !important;
    color: #FFFFFF !important;
    border: none !important;
}
.product-card.card-dark h3 { color: #FFFFFF !important; }
.product-card.card-dark p  { color: rgba(255,255,255,0.8) !important; }
.product-card.card-dark:hover { background: #1a1a2e !important; }

.arrow-icon {
    width: clamp(36px,7vw,55px);
    height: auto;
    stroke: currentColor;
    animation: side-to-side 2s ease-in-out infinite;
}
@keyframes side-to-side {
    0%, 100% { transform: translateX(0); }
    50%       { transform: translateX(12px); }
}

/* ─── Contact Grid ───────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h2 { margin-bottom: 1rem; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.form-group label {
    font-size: var(--font-body-sm);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}
.form-control {
    width: 100%;
    padding: 0.875rem 1.1rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: white;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    -webkit-appearance: none;
    appearance: none;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(125,135,148,0.15);
}
textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

/* ─── CTA Box ────────────────────────────────────────────── */
.cta-box {
    background: var(--text-primary);
    color: white;
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem,8vw,5rem) clamp(1.5rem,5vw,4rem);
    text-align: center;
    max-width: 1440px;
    margin: 0 auto;
}
.cta-box h2 {
    font-size: var(--font-heading-md);
    color: white;
    margin-bottom: 1rem;
}
.cta-box p {
    color: rgba(255,255,255,0.75);
    font-size: var(--font-body-lg);
    max-width: 560px;
    margin: 0 auto 2rem;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
    background: var(--text-primary);
    padding: var(--section-padding) var(--container-padding) 2rem;
    color: white;
}

.footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
}

.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col h4 {
    font-size: var(--font-body-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.25rem;
}
.footer-col a,
.footer-col p {
    font-size: var(--font-body-md);
    color: rgba(255,255,255,0.7);
    line-height: 1.65;
    margin-bottom: 0;
    transition: var(--transition-fast);
}
.footer-col a:hover { color: white; }

.brand-col .logo { color: white; margin-bottom: 1rem; }
.brand-col .logo-text { color: white !important; }
.brand-col .accent-text { color: var(--accent-neon) !important; font-weight: 500 !important; }
.brand-col > p { font-size: var(--font-body-sm); color: rgba(255,255,255,0.55); line-height: 1.7; }

.footer-bottom {
    max-width: 1440px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(255,255,255,0.35);
    font-size: var(--font-body-sm);
}

/* ─── Animations ─────────────────────────────────────────── */
.fade-in, .fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
                transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.fade-in-up    { transform: translateY(28px); }
.fade-in-left  { transform: translateX(-28px); }
.fade-in-right { transform: translateX(28px); }
.is-visible    { opacity: 1 !important; transform: none !important; }

/* ─── Blueprint Component ────────────────────────────────── */
.blueprint-graphic {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.blueprint-graphic::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    z-index: 0;
}
.blueprint-svg {
    width: 80%; height: 80%;
    color: var(--accent-primary);
    position: relative;
    z-index: 10;
}
.blueprint-spin { animation: rotateSlow 90s linear infinite; }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
.blueprint-draw {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawPath 4s cubic-bezier(0.16,1,0.3,1) forwards infinite alternate;
}
@keyframes drawPath { to { stroke-dashoffset: 0; } }

.fastener-icon {
    width: 100%; height: 100%;
    color: var(--accent-primary);
    transition: var(--transition-slow);
}
.product-card:hover .fastener-icon { transform: scale(1.1) rotate(5deg); }

/* ─── RESPONSIVE — Tablet (≤ 1024px) ────────────────────── */
@media (max-width: 1024px) {
    /* Show hamburger, hide desktop nav */
    .nav-links { display: none; }
    .nav-cta .btn-primary { display: none; } /* hide "Get Quote" from header */
    .mobile-menu-btn { display: flex; }

    /* Layouts → single column */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-visual { order: -1; } /* image first on mobile */

    /* Hide floating card — it overlaps on mobile */
    .stat-float-card { display: none; }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 3rem;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .stat-item {
        padding: 1.5rem;
        background: rgba(255,255,255,0.08);
        border-radius: var(--radius-md);
    }

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

/* ─── RESPONSIVE — Mobile (≤ 640px) ─────────────────────── */
@media (max-width: 640px) {
    :root { --nav-height: 60px; }

    .navbar { padding: 0.75rem 0; }

    .logo { font-size: 1.1rem; }
    .logo-icon { width: 32px; height: 32px; }

    /* Hero */
    .hero {
        padding: calc(var(--nav-height) + 2.5rem) 1.25rem 3rem;
        min-height: 80vh;
        text-align: center;
    }
    /* DO NOT override hero-subtitle or hero-title here — fluid tokens handle it */
    .btn-blob-cta {
        width: 100%;
        max-width: 340px;
        padding: 1.1rem 2rem;
    }

    /* Physics blobs — shrink & reduce opacity so they don't crowd text */
    .size-xl { width: 120px; height: 120px; }
    .size-lg { width: 90px;  height: 90px;  }
    .size-md { width: 65px;  height: 65px;  }
    .size-sm { width: 45px;  height: 45px;  }
    .float-svg { opacity: 0.75 !important; }

    /* Page hero */
    .page-hero { padding: calc(var(--nav-height) + 2.5rem) 1.25rem 2rem; }

    /* Stats — 2 × 2 */
    .stats { padding: 2.5rem 1.25rem; }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .stat-item {
        padding: 1.25rem 0.75rem;
        border-radius: var(--radius-md);
        background: rgba(255,255,255,0.1);
    }

    /* Sections */
    .section-full { padding: 3rem 1.25rem; }

    /* Cards — 2 columns on mobile for product grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .product-card {
        padding: 1rem 0.875rem;
        text-align: center;
    }
    /* Keep card images SQUARE on mobile */
    .product-card .card-image {
        aspect-ratio: 1/1 !important;
        margin-bottom: 0.6rem;
        padding: 10px !important;
    }
    /* Card text — readable but not oversized */
    .product-card h3 {
        font-size: 0.88rem !important;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }
    .product-card p {
        font-size: 0.76rem !important;
        line-height: 1.5;
        color: var(--text-secondary);
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 0.5rem;
    }
    /* Request Quote button — compact and readable */
    .product-card .btn {
        font-size: 0.76rem !important;
        padding: 0.45rem 0.7rem !important;
        border-radius: var(--radius-pill) !important;
        width: 100% !important;
        margin-top: auto;
    }

    /* Contact form */
    .contact-form { padding: 2rem 1.25rem !important; }
    .form-control { font-size: 16px; } /* prevent iOS zoom */

    /* Buttons in CTA section */
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; }

    /* Footer stacks */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom { margin-top: 2rem; }

    /* CTA box */
    .cta-box { border-radius: var(--radius-md); }

    /* About */
    .about-text .feature-list { margin: 1.5rem 0; }

    /* Section titles — readable on small screens */
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
    }
    .section-subtitle {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }

} /* end @media 640px */

/* ─── Extra small (≤ 380px — very old or small Androids only) ─ */
/* NOTE: Samsung S24 is 384px. We only shrink text below 380px. */
@media (max-width: 380px) {
    .stats-container { grid-template-columns: 1fr 1fr; }
    .mobile-nav a { font-size: 1.5rem; }
    /* stat-number uses token, no override needed */
}


/* CRITICAL FIX: Ensure floating background elements never show bounding boxes */
.float-svg { border: none !important; background: transparent !important; box-shadow: none !important; }

