/* FILE: hemrent-theme/assets/css/main.css
   HemRent Sverige AB — Premium Scandinavian Modernism
   Version: 2.0.0
*/

/* ─────────────────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────────────────── */
:root {
    --green:         #1E3A2F;
    --green-dark:    #162e25;
    --green-mid:     #2d5443;
    --sage:          #A3B19B;
    --sage-light:    #c0cdba;
    --ivory:         #EAE7E2;
    --ivory-dark:    #dedad4;
    --white:         #FFFFFF;
    --text-muted:    #5a6e64;
    --text-body:     #2e4a3e;

    --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    --nav-h:        72px;
    --radius:       14px;
    --radius-sm:    8px;
    --radius-xs:    4px;
    --transition:   0.22s ease;

    --container:    1280px;
    --pad:          clamp(1rem, 4vw, 2rem);

    --shadow-xs:    0 1px 3px rgba(30,58,47,.06);
    --shadow-sm:    0 2px 12px rgba(30,58,47,.08);
    --shadow-md:    0 6px 24px rgba(30,58,47,.11);
    --shadow-lg:    0 16px 48px rgba(30,58,47,.14);
    --shadow-hero:  0 24px 64px rgba(30,58,47,.22);
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a        { color: inherit; text-decoration: none; }
ul, ol   { list-style: none; }
button, input, select, textarea { font: inherit; }
address  { font-style: normal; }
fieldset { border: none; }

:focus-visible {
    outline: 2px solid var(--sage);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
}

/* ─────────────────────────────────────────────────────────
   UTILITY
───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.section-padding { padding-block: 4.5rem; }

/* Section header (centered) */
.section-header      { text-align: center; margin-bottom: 2.75rem; }
.section-eyebrow     { display: inline-block; font-size: .6875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); border: 1px solid rgba(163,177,155,.5); border-radius: 20px; padding: .2rem .875rem; margin-bottom: .75rem; }
.section-heading     { font-size: clamp(1.625rem, 3.5vw, 2.375rem); font-weight: 500; line-height: 1.2; color: var(--green); letter-spacing: -.02em; margin-bottom: .75rem; }
.section-lead        { font-size: 1rem; color: var(--text-muted); max-width: 560px; margin-inline: auto; line-height: 1.7; }

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s cubic-bezier(.2,.6,.4,1), transform .65s cubic-bezier(.2,.6,.4,1);
}
.reveal.visible { opacity: 1; transform: none; }

/* Spin animation */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .9s linear infinite; }


/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .875rem 1.875rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .9375rem;
    letter-spacing: .01em;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition),
                border-color var(--transition), transform .18s ease,
                box-shadow .18s ease;
    line-height: 1;
}

/* Hero primary CTA */
.btn-hero-primary {
    background: var(--sage);
    color: var(--green);
    border-color: var(--sage);
    padding: 1rem 2.25rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(163,177,155,.3);
}
.btn-hero-primary:hover, .btn-hero-primary:focus-visible {
    background: var(--sage-light);
    border-color: var(--sage-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(163,177,155,.4);
}

/* Hero ghost */
.btn-hero-ghost {
    background: transparent;
    color: var(--ivory);
    border-color: rgba(234,231,226,.3);
    padding: 1rem 2.25rem;
    font-size: 1rem;
}
.btn-hero-ghost:hover, .btn-hero-ghost:focus-visible {
    border-color: var(--ivory);
    background: rgba(234,231,226,.08);
    transform: translateY(-2px);
}

/* Inquire */
.btn-inquire {
    background: transparent;
    color: var(--green);
    border-color: var(--ivory-dark);
    padding: .625rem 1.25rem;
    font-size: .875rem;
    width: 100%;
    margin-top: auto;
    gap: .375rem;
}
.btn-inquire:hover, .btn-inquire:focus-visible {
    background: var(--green);
    color: var(--ivory);
    border-color: var(--green);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Submit */
.btn-submit {
    background: var(--green);
    color: var(--ivory);
    border-color: var(--green);
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .02em;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}
.btn-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.06) 100%);
    pointer-events: none;
}
.btn-submit:hover, .btn-submit:focus-visible {
    background: var(--green-dark);
    border-color: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(30,58,47,.28);
}
.btn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }


/* ─────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ivory);
    transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled {
    box-shadow: 0 2px 28px rgba(30,58,47,.09);
    border-color: rgba(234,231,226,.8);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

/* Logo */
.nav-logo {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.nav-logo:hover { opacity: .8; }

/* Desktop menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-menu > li > a {
    font-size: .9375rem;
    font-weight: 400;
    color: var(--green);
    padding-bottom: 2px;
    position: relative;
    transition: color var(--transition);
}
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1.5px;
    background: var(--sage);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-menu > li > a:hover { color: var(--green-mid); }
.nav-menu > li > a:hover::after { width: 100%; }

/* Nav CTA pill */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: .5625rem 1.25rem;
    background: var(--green);
    color: var(--ivory) !important;
    border-radius: 30px;
    font-size: .875rem;
    font-weight: 500;
    transition: background var(--transition), transform .18s, box-shadow .18s;
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30,58,47,.2);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1100;
    border-radius: var(--radius-xs);
    transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--ivory); }

.hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
}
.hamburger-bar:last-child { width: 16px; }
.nav-hamburger.open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 22px; }
.nav-hamburger.open .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 22px; }

/* Mobile backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(22,46,37,.55);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity .3s ease;
}
.nav-backdrop.open { opacity: 1; }


/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero-section {
    position: relative;
    background: var(--green);
    overflow: hidden;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Decorative background pattern */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 70% 50%, rgba(163,177,155,.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 15% 30%, rgba(234,231,226,.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Dot grid overlay */
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(163,177,155,.12) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding-block: 5.5rem 4rem;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(163,177,155,.12);
    border: 1px solid rgba(163,177,155,.25);
    border-radius: 30px;
    padding: .3125rem .875rem;
    font-size: .75rem;
    font-weight: 500;
    color: var(--sage);
    letter-spacing: .02em;
    margin-bottom: 1.25rem;
    width: fit-content;
}
.hero-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.6; transform:scale(1.3); } }

/* Headline */
.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.625rem, 6vw, 4.25rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--ivory);
    letter-spacing: -.025em;
    margin-bottom: 1.5rem;
}
.hero-headline em {
    font-style: italic;
    color: var(--sage);
}

/* Subheadline */
.hero-sub {
    font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
    font-weight: 300;
    color: rgba(234,231,226,.72);
    line-height: 1.75;
    max-width: 460px;
    margin-bottom: 2rem;
}

/* Actions row */
.hero-actions {
    display: flex;
    gap: .875rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

/* Trust row */
.hero-trust {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    color: rgba(234,231,226,.55);
}
.trust-item svg { color: var(--sage); flex-shrink: 0; }
.trust-sep { color: rgba(163,177,155,.3); font-size: 1rem; }

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

.hero-illustration-wrap {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    filter: drop-shadow(0 32px 64px rgba(0,0,0,.3));
}

.hero-illustration {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* Floating stat cards */
.hero-float {
    position: absolute;
    background: rgba(255,255,255,.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: .875rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 110px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    animation: floatCard 3s ease-in-out infinite alternate;
}
.hero-float--tl { top: 16px; left: -18px; }
.hero-float--br { bottom: 28px; right: -18px; flex-direction: row; align-items: center; gap: .5rem; }

@keyframes floatCard {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}

.hf-number {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--ivory);
    line-height: 1;
}
.hf-label {
    font-size: .6875rem;
    color: var(--sage);
    font-weight: 400;
    letter-spacing: .04em;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .375rem;
    animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-indicator-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, transparent, var(--sage));
}
@keyframes scrollBounce {
    0%,100% { transform: translateX(-50%) translateY(0); opacity: .7; }
    50%      { transform: translateX(-50%) translateY(7px); opacity: 1; }
}


/* ─────────────────────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────────── */
.trust-bar {
    background: var(--green);
    border-bottom: none;
    padding-block: 0;
}

/* Always-horizontal flex strip — never collapses to single column */
.trust-grid {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    max-width: var(--container);
    margin-inline: auto;
}

.trust-pillar {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: 1.375rem 1.75rem;
    border-right: 1px solid rgba(163,177,155,.15);
    transition: background var(--transition);
    min-width: 0; /* prevent flex overflow */
}
.trust-pillar:last-child { border-right: none; }
.trust-pillar:hover { background: rgba(255,255,255,.04); }

.trust-pillar-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(163,177,155,.15);
    border: 1px solid rgba(163,177,155,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sage);
    transition: background var(--transition), color var(--transition);
}
.trust-pillar:hover .trust-pillar-icon {
    background: rgba(163,177,155,.25);
    color: var(--ivory);
}

.trust-pillar-text { min-width: 0; }

.trust-pillar strong {
    display: block;
    font-size: .875rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: .15rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trust-pillar p {
    font-size: .75rem;
    color: rgba(163,177,155,.8);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─────────────────────────────────────────────────────────
   SERVICES
───────────────────────────────────────────── */
.services-section { background: var(--white); }

/* Tabs */
.services-tabs {
    display: inline-flex;
    background: var(--ivory);
    border: 1px solid var(--ivory-dark);
    border-radius: 50px;
    padding: 4px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
    gap: 0;
    /* Center it without using width:fit-content (compatibility) */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .625rem 1.375rem;
    border: none;
    background: transparent;
    color: var(--green);
    font-size: .875rem;
    font-weight: 400;
    cursor: pointer;
    border-radius: 50px;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.tab-btn.tab-btn--active {
    background: var(--green);
    color: var(--ivory);
    box-shadow: 0 2px 10px rgba(30,58,47,.18);
    font-weight: 500;
}
.tab-btn:hover:not(.tab-btn--active) { background: rgba(30,58,47,.06); }

/* Service grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Tab panel */
.tab-panel { animation: panelFade .3s ease; }
.tab-panel[hidden] { display: none; }
@keyframes panelFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Service card */
.service-card {
    background: var(--white);
    border: 1px solid var(--ivory);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--sage));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage-light);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-icon {
    width: 48px;
    height: 48px;
    background: var(--ivory);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.625rem 1.625rem 0;
    color: var(--green);
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}
.service-card:hover .service-card-icon {
    background: var(--green);
    color: var(--ivory);
    transform: scale(1.06);
}

.service-card-body {
    padding: 1.125rem 1.625rem 1.625rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: .5rem;
}
.service-tag--local { color: #006AA7; }

.service-card-body h3 {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--green);
    line-height: 1.3;
    margin-bottom: .625rem;
    letter-spacing: -.015em;
}
.service-card-body p {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--green);
    transition: gap var(--transition), color var(--transition);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--ivory);
}
.service-link:hover { color: var(--sage); gap: .625rem; }


/* ─────────────────────────────────────────────────────────
   STATS
───────────────────────────────────────────── */
.stats-section {
    background: var(--green-dark);
    padding-block: 4rem;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(163,177,155,.08) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

.stats-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 2rem;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--ivory);
    line-height: 1;
    margin-bottom: .5rem;
    letter-spacing: -.03em;
}

.stat-label {
    display: block;
    font-size: .875rem;
    font-weight: 400;
    color: var(--sage);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .75rem;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(163,177,155,.2);
    flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────
   PRODUCTS
───────────────────────────────────────────── */
.products-section { background: var(--ivory); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Product card */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Image wrapper */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.product-card:hover .product-img { transform: scale(1.04); }

/* Category badge */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--green);
    color: var(--ivory);
    padding: .3rem .7rem;
    border-radius: 4px;
}
.product-badge--design  { background: #5c4a2a; }
.product-badge--plumbing { background: #1a3a5c; }
.product-badge--smart   { background: #2d1a5c; }

.product-card-body {
    padding: 1.375rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--green);
    line-height: 1.3;
    margin-bottom: .5rem;
    letter-spacing: -.01em;
}

.product-desc {
    font-size: .875rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1.25rem;
}


/* ─────────────────────────────────────────────────────────
   CONTACT
───────────────────────────────────────────── */
.contact-section { background: var(--white); border-top: 1px solid var(--ivory); }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
}

/* Info card */
.contact-info-card {
    background: var(--green);
    border-radius: var(--radius);
    padding: 2.5rem;
    color: var(--ivory);
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}
.contact-info-card h3 {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--ivory);
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}
.contact-tagline {
    font-size: .9375rem;
    color: rgba(234,231,226,.65);
    line-height: 1.65;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(163,177,155,.2);
}

.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    font-size: .9375rem;
    color: rgba(234,231,226,.8);
    line-height: 1.6;
}
.cd-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: rgba(163,177,155,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sage);
    margin-top: 1px;
}

.contact-services-quick { padding-top: 1.5rem; border-top: 1px solid rgba(163,177,155,.2); }
.csq-label { font-size: .75rem; font-weight: 500; color: var(--sage); letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: .75rem; }
.csq-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.csq-tags span {
    font-size: .75rem;
    background: rgba(163,177,155,.12);
    border: 1px solid rgba(163,177,155,.2);
    color: rgba(234,231,226,.7);
    padding: .25rem .7rem;
    border-radius: 20px;
}

/* Form wrapper */
.contact-form {
    background: var(--white);
    border: 1px solid var(--ivory-dark);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

/* Form elements */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.form-group { margin-bottom: 1.375rem; }
.form-group:last-child { margin-bottom: 0; }

label, legend {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: .5rem;
    line-height: 1.4;
}
.required { color: #c0392b; margin-left: .2rem; }

.form-control {
    width: 100%;
    padding: .8125rem 1rem;
    background: var(--white);
    border: 1.5px solid #d0ccc6;
    border-radius: var(--radius-sm);
    color: var(--green);
    font-size: .9375rem;
    line-height: 1.5;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
}
.form-control::placeholder { color: #9ba89e; }
.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(30,58,47,.1);
}
.form-control.is-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231E3A2F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.75rem;
    cursor: pointer;
}

.tel-wrapper { display: flex; gap: .625rem; }
.dial-select  { flex: 0 0 auto; width: 170px; font-size: .875rem; }
.tel-input    { flex: 1; }

textarea.form-control { resize: vertical; min-height: 130px; }

.field-error { display: block; font-size: .8125rem; color: #c0392b; margin-top: .35rem; min-height: 1.1em; }

.form-error-message {
    background: #fdf2f2;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    padding: .875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    margin-bottom: 1.375rem;
}

/* Success message */
.form-success {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #f0f9f3;
    border: 1px solid #a3d9b3;
    color: #1e5c31;
    padding: 1.5rem;
    border-radius: var(--radius);
    font-size: .9375rem;
    margin-bottom: 1.5rem;
}
.form-success[hidden] { display: none; }
.form-success-icon {
    width: 44px; height: 44px;
    background: #d4f4de;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e5c31;
}
.form-success strong { display: block; font-size: 1rem; margin-bottom: .25rem; }

/* Custom checkboxes */
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; margin-top: .625rem; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .625rem;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 400;
    color: var(--text-body);
    line-height: 1.45;
    padding: .625rem .875rem;
    border: 1.5px solid var(--ivory-dark);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), background var(--transition);
}
.checkbox-label:hover { border-color: var(--sage); background: rgba(163,177,155,.05); }

.checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }

.checkbox-custom {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border: 2px solid #c8c4be;
    border-radius: 4px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    margin-top: 1px;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--green);
    border-color: var(--green);
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    width: 10px; height: 6px;
    border-left: 2px solid var(--ivory);
    border-bottom: 2px solid var(--ivory);
    transform: rotate(-45deg) translateY(-1px);
    display: block;
}
.checkbox-label input[type="checkbox"]:focus-visible + .checkbox-custom {
    outline: 2px solid var(--sage);
    outline-offset: 2px;
}


/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
    background: var(--green);
    color: var(--ivory);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.4fr;
    gap: 3.5rem;
    padding-block: 4rem;
    align-items: start;
}

.footer-logo { display: inline-block; margin-bottom: 1.25rem; transition: opacity var(--transition); }
.footer-logo:hover { opacity: .8; }

.footer-address {
    font-size: .9375rem;
    color: var(--sage);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: .875rem;
    color: rgba(234,231,226,.45);
    line-height: 1.65;
    max-width: 280px;
}

.footer-nav-heading {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.25rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.footer-nav a {
    font-size: .9375rem;
    color: rgba(234,231,226,.6);
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--ivory); }

.footer-bottom {
    border-top: 1px solid rgba(163,177,155,.12);
    padding-block: 1.375rem;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p {
    font-size: .875rem;
    color: rgba(234,231,226,.35);
}
.footer-tagline-bottom {
    font-size: .8125rem;
    color: rgba(163,177,155,.4);
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 1280px
───────────────────────────────────────────── */
@media (max-width: 1280px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    /* trust-grid stays flex-nowrap — no collapse */
    .trust-pillar  { padding: 1.125rem 1.25rem; }
    .trust-pillar strong { font-size: .8125rem; }
    .trust-pillar p      { font-size: .6875rem; }
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-grid  { grid-template-columns: 1fr; gap: 3rem; padding-block: 5rem 4rem; }
    .hero-visual { display: none; }
    .hero-headline { font-size: clamp(2.25rem, 7vw, 3.25rem); }
    .hero-sub   { max-width: 100%; }

    .services-grid  { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .contact-info-card { position: static; }
    .contact-details { flex-direction: row; flex-wrap: wrap; gap: 1.25rem; }
    .contact-details li { flex: 1 1 45%; }
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 768px (tablet)
───────────────────────────────────────────── */
@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    /* Mobile nav */
    .nav-hamburger { display: flex; }
    .nav-backdrop  { display: block; pointer-events: none; }
    .nav-backdrop.open { pointer-events: auto; }

    .nav-menu {
        position: fixed;
        top: var(--nav-h); right: 0; bottom: 0;
        width: 290px;
        max-width: 88vw;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.75rem;
        gap: .25rem;
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.4,0,.2,1);
        box-shadow: -8px 0 40px rgba(30,58,47,.14);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { display: block; font-size: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ivory); }
    .nav-menu > li:last-child > a { border-bottom: none; }
    .nav-cta-btn { margin-top: .5rem; width: 100%; justify-content: center; border-radius: var(--radius-sm); }

    /* Tabs: full width */
    .services-tabs { flex-direction: column; border-radius: var(--radius-sm); left: 0; transform: none; width: 100%; }
    .tab-btn { width: 100%; justify-content: center; border-radius: var(--radius-xs); }

    .services-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }

    /* Trust bar: wrap to 2×2 on narrow viewports */
    .trust-grid    { flex-wrap: wrap; }
    .trust-pillar  { flex: 1 1 48%; border-right: none; border-bottom: 1px solid rgba(163,177,155,.12); padding: 1rem 1.25rem; }
    .trust-pillar:nth-child(odd)  { border-right: 1px solid rgba(163,177,155,.12); }
    .trust-pillar:nth-last-child(-n+2) { border-bottom: none; }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.5rem; }
    .footer-bottom-inner { flex-direction: column; text-align: center; gap: .375rem; }

    .contact-form, .contact-info-card { padding: 1.75rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .tel-wrapper { flex-direction: column; }
    .dial-select { width: 100%; }

    .section-padding { padding-block: 4rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 480px
───────────────────────────────────────────── */
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    /* trust: 1 column on very small screens */
    .trust-pillar  { flex: 1 1 100%; border-right: none !important; border-bottom: 1px solid rgba(163,177,155,.12) !important; }
    .trust-pillar:last-child { border-bottom: none !important; }
    .stats-grid    { grid-template-columns: 1fr; }
    .stat-divider  { display: none; }
    .stat-item     { border-right: none !important; padding: 1.25rem 1.5rem; }

    .hero-headline { font-size: 2.125rem; }
    .services-grid { grid-template-columns: 1fr; }
    .section-padding { padding-block: 3rem; }
    .contact-details { flex-direction: column; }
}


/* ─────────────────────────────────────────────────────────
   RESPONSIVE — 360px minimum
───────────────────────────────────────────── */
@media (max-width: 360px) {
    :root { --pad: 1rem; }
    .tab-btn { font-size: .875rem; padding: .6875rem 1rem; }
    .hero-headline { font-size: 1.875rem; }
}


/* ─────────────────────────────────────────────────────────
   4K (2560px+)
───────────────────────────────────────────── */
@media (min-width: 2560px) {
    :root { --container: 1600px; }
    body  { font-size: 18px; }
}


/* ─────────────────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}


/* ─────────────────────────────────────────────────────────
   PRINT
───────────────────────────────────────────── */
@media print {
    .site-header, .scroll-indicator, .nav-hamburger, .hero-float, .stats-section { display: none !important; }
    body { color: #000; background: #fff; }
    .hero-section { min-height: auto; padding: 2rem 0; }
    .hero-headline, .hero-sub { color: #000; }
}
