/* ============================================
   LENHAC PUBLIC SITE - BASE STYLESHEET
   Tokens, type, header, footer, buttons, forms.
   Page styles build on these; nothing here is page-specific.
   ============================================ */

:root {
    /* Palette: green-black ink, the Lenhac forest green, a muted moss for dark
       grounds, a pale green-grey surface, and the logo red used only as a signature. */
    --ink: #0E1F14;
    --ink-2: #1F3324;
    --ink-3: #4F6356;
    --ink-4: #7E8F84;
    --forest: #2D5016;
    --forest-2: #244211;
    --moss: #6E9B4A;
    --moss-2: #A9C98C;
    --mist: #EEF2EA;
    --mist-2: #E2E8DC;
    --paper: #FFFFFF;
    --ivory: #F7F5F0;
    --signal: #D7262C;
    --signal-soft: #D7262C; /* small red text on ink or forest grounds: the brand red, never a pink tint */
    --signal-deep: #A8161C; /* the big figures and numerals on dark grounds: deeper still, by the owner's eye */
    --line: rgba(14, 31, 20, 0.12);
    --line-strong: rgba(14, 31, 20, 0.24);
    --line-dark: rgba(247, 245, 240, 0.14);

    /* Legacy names, kept so page styles written against them still resolve. */
    --color-primary: var(--forest);
    --color-primary-light: #3d6a1f;
    --color-primary-dark: var(--forest-2);
    --color-secondary: var(--ink);
    --color-secondary-light: var(--ink-2);
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-grey-50: #F7F9F5;
    --color-grey-100: #EEF2EA;
    --color-grey-200: #DEE5D8;
    --color-grey-300: #C5CFBE;
    --color-grey-400: #93A08B;
    --color-grey-500: #6B7A66;
    --color-grey-600: #4F6356;
    --color-grey-700: #37483C;
    --color-grey-800: #1F3324;
    --color-grey-900: #0E1F14;

    /* Typography: one family for display and text. */
    --font-heading: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-blog: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
    --font-code: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --section-y: clamp(64px, 9vw, 120px);

    /* Radii: buttons and inputs, cards, large panels */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows: only for things that float */
    --shadow-sm: 0 1px 2px rgba(14, 31, 20, 0.06);
    --shadow-md: 0 8px 24px -12px rgba(14, 31, 20, 0.18);
    --shadow-lg: 0 24px 48px -24px rgba(14, 31, 20, 0.28);
    --shadow-xl: 0 32px 64px -24px rgba(14, 31, 20, 0.32);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 24px;
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink-2);
    background-color: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.main-content {
    flex: 1;
}

img, svg, video {
    max-width: 100%;
    height: auto;
}

/* Honeypot: a field people never see or reach; a form that fills it in is a bot. */
.hp-field {
    position: absolute !important;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* A <picture> is only a wrapper for sources; the <img> inside keeps its own layout. */
picture {
    display: contents;
}

::selection {
    background: var(--moss-2);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 3px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -0.025em; line-height: 1.08; }
h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; }
h5 { font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
h6 { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--forest);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--forest-2);
}

/* The one place the wordmark's red appears in a page. */
.stop {
    color: var(--signal);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast),
                border-color var(--transition-fast), transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

.btn-primary:hover {
    background-color: var(--forest-2);
    border-color: var(--forest-2);
    color: var(--paper);
}

.btn-secondary {
    background-color: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-secondary:hover {
    background-color: var(--ink-2);
    border-color: var(--ink-2);
    color: var(--paper);
}

.btn-outline {
    background-color: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-outline:hover {
    background-color: var(--mist);
    border-color: var(--ink);
    color: var(--ink);
}

.btn-white,
.btn-ivory {
    background-color: var(--ivory);
    color: var(--ink);
    border-color: var(--ivory);
}

.btn-white:hover,
.btn-ivory:hover {
    background-color: var(--paper);
    border-color: var(--paper);
    color: var(--ink);
}

.btn-outline-white {
    background: transparent;
    color: var(--ivory);
    border-color: var(--line-dark);
}

.btn-outline-white:hover {
    background: rgba(247, 245, 240, 0.08);
    border-color: var(--ivory);
    color: var(--ivory);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: transparent;
    padding-left: 8px;
    padding-right: 8px;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.btn-ghost:hover {
    color: var(--forest);
    text-decoration-color: var(--forest);
}

.btn-lg {
    padding: 15px 28px;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 0.875rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.94);
    border-bottom-color: var(--line);
}

.navbar {
    padding: 0;
    position: relative;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
    max-width: 1280px;
    padding: 0 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-brand .logo {
    height: 40px;
    width: auto;
}

.mobile-nav-header .navbar-brand .logo {
    height: 36px;
}

.navbar-brand .logo-text,
.mobile-nav-header .navbar-brand span {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
}

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

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-3);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
    color: var(--ink);
    background-color: var(--mist);
}

.nav-link.active {
    color: var(--ink);
    background-color: var(--mist);
}

.navbar-cta {
    margin-left: 8px;
    padding: 10px 18px;
    font-size: 0.9375rem;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Services Dropdown */
.nav-item.has-dropdown {
    position: relative;
}

.nav-item.has-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
    padding: 8px;
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 0;
}

.dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink-3);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: var(--mist);
    color: var(--ink);
}

.dropdown-item.view-all {
    color: var(--forest);
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: var(--line);
    margin: 8px 0;
}

/* Mega Menu */
.nav-item.has-megamenu {
    position: static;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 1000;
}

.nav-item.has-megamenu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    gap: 32px;
}

.mega-column {
    flex: 1;
    min-width: 0;
}

.mega-column-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.mega-column-header a {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
}

.mega-column-header a:hover {
    color: var(--forest);
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-list li {
    margin-bottom: 2px;
}

.mega-list a {
    display: block;
    padding: 6px 0;
    color: var(--ink-3);
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.mega-list a:hover {
    color: var(--ink);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--forest);
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.view-all-link i {
    font-size: 0.7rem;
}

/* Featured panel inside the mega menu */
.mega-column.mega-featured {
    flex: 0 0 240px;
}

.featured-panel {
    background: var(--mist);
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-label {
    font-size: 0.8125rem;
    color: var(--forest);
    font-weight: 600;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 8px 0 12px;
    line-height: 1.2;
}

.featured-desc {
    font-size: 0.875rem;
    color: var(--ink-3);
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--forest);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.875rem;
}

.featured-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    margin-right: -10px;
    border-radius: var(--radius-md);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger-icon span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--ink);
    transition: all var(--transition-fast);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    background-color: var(--paper);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    /* Revealed with a clip rather than moved off-screen, so the hidden panel never widens the page */
    clip-path: inset(0 0 0 100%);
    visibility: hidden;
    transition: clip-path var(--transition-normal), visibility 0s linear var(--transition-normal);
    padding: 20px 24px 32px;
    overflow-y: auto;
}

.mobile-nav > * {
    transform: translateX(24px);
    transition: transform var(--transition-normal);
}

.mobile-nav.active {
    clip-path: inset(0);
    visibility: visible;
    transition: clip-path var(--transition-normal), visibility 0s;
}

.mobile-nav.active > * {
    transform: none;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 48px;
    margin-bottom: 24px;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-3);
    padding: 8px;
    margin-right: -8px;
    border-radius: var(--radius-md);
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    border-top: 1px solid var(--line);
}

.mobile-nav-links li:last-child {
    border-top: 0;
    margin-top: 20px;
}

.mobile-nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--forest);
}

.mobile-nav-links .btn {
    margin-top: 0;
    display: flex;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    text-align: center;
}

.mobile-nav-links .mobile-nav-cta,
.mobile-nav-links .mobile-nav-cta:hover {
    color: var(--paper);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(14, 31, 20, 0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

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

body.menu-open {
    overflow: hidden;
}

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

.site-footer {
    background-color: var(--ink);
    color: rgba(247, 245, 240, 0.72);
    padding: 72px 0 32px;
    margin-top: auto;
    font-size: 0.9375rem;
    border-top: 1px solid var(--line-dark);
}

.site-footer a {
    color: rgba(247, 245, 240, 0.72);
    transition: color var(--transition-fast);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 48px;
    margin-bottom: 56px;
}

/* Phones: the blog's titles stay on the blog; the footer keeps products and contact */
@media (max-width: 600px) {
    .footer-posts {
        display: none;
    }
}

.footer-brand {
    grid-column: span 1;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ivory);
}

.footer-slogan {
    color: rgba(247, 245, 240, 0.6);
    max-width: 30ch;
    margin: 0;
}

.footer-heading {
    color: var(--ivory);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin-bottom: 16px;
    text-transform: none;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-contact .icon {
    color: var(--moss-2);
    flex-shrink: 0;
}

.footer-hours {
    margin-top: 24px;
}

.footer-hours h5 {
    color: var(--ivory);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.footer-hours p {
    font-size: 0.875rem;
    margin-bottom: 2px;
    color: rgba(247, 245, 240, 0.6);
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    color: rgba(247, 245, 240, 0.72);
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a:hover {
    color: var(--ivory);
    border-color: rgba(247, 245, 240, 0.4);
}

/* Footer Newsletter */
.footer-newsletter {
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    padding: 32px 0;
    margin-bottom: 24px;
}

.footer-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.footer-newsletter-text h4 {
    color: var(--ivory);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.footer-newsletter-text p {
    color: rgba(247, 245, 240, 0.6);
    margin: 0;
    font-size: 0.9375rem;
}

.footer-newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.footer-newsletter-form input {
    padding: 11px 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-md);
    background: rgba(247, 245, 240, 0.06);
    color: var(--ivory);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    width: 200px;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.footer-newsletter-form input::placeholder {
    color: rgba(247, 245, 240, 0.45);
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--moss-2);
    background: rgba(247, 245, 240, 0.1);
}

.footer-newsletter-form .btn {
    padding: 11px 18px;
    font-size: 0.9375rem;
    background: var(--ivory);
    color: var(--ink);
    border-color: var(--ivory);
}

.footer-newsletter-form .btn:hover {
    background: var(--paper);
}

.newsletter-input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.newsletter-recaptcha {
    flex-basis: 100%;
    order: 10;
}

.newsletter-recaptcha:empty {
    display: none;
}

.newsletter-recaptcha-small {
    margin: var(--spacing-sm) 0;
}

.newsletter-recaptcha .g-recaptcha,
.newsletter-recaptcha-small .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 0.875rem;
    color: rgba(247, 245, 240, 0.5);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal a {
    color: rgba(247, 245, 240, 0.6);
    font-size: 0.875rem;
}

.footer-legal .separator {
    display: none;
}

.footer-copyright {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(247, 245, 240, 0.5);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background-color: #25D366;
    color: var(--paper);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px -8px rgba(14, 31, 20, 0.4);
    z-index: 999;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    color: var(--paper);
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.9375rem;
}

.alert-success {
    background-color: #E6F1DC;
    color: #244211;
    border: 1px solid #BFD8A4;
}

.alert-error {
    background-color: #FBE7E7;
    color: #8A1C20;
    border: 1px solid #F0B9BB;
}

.main-content > .alert {
    max-width: var(--container-max-width);
    margin: 16px auto;
    width: calc(100% - 2 * var(--container-padding));
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-2);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control::placeholder {
    color: var(--ink-4);
}

.form-control:focus {
    outline: none;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.14);
}

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

.has-error .form-control {
    border-color: var(--signal);
}

.error-message {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--signal);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background-color: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.card:hover {
    border-color: var(--line-strong);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--ink-3);
    margin-bottom: var(--spacing-md);
}

/* ============================================
   SECTIONS & HEADINGS (shared across pages)
   ============================================ */

.section {
    padding: var(--section-y) 0;
}

.section-grey,
.bg-light {
    background-color: var(--mist);
}

.section-primary,
.bg-primary {
    background-color: var(--forest);
    color: var(--paper);
}

.section-primary h2,
.section-primary h3,
.bg-primary h2,
.bg-primary h3 {
    color: var(--paper);
}

.section-header,
.section-head {
    margin-bottom: 48px;
    max-width: 680px;
}

.section-header.text-center,
.section-head.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* Kicker: the short red line above a section title. Sentence case, never tracked out. */
.kicker,
.section-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--signal);
    text-transform: none;
    letter-spacing: -0.005em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--ink-3);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
    max-width: 54ch; /* about 70 characters in Schibsted Grotesk, whose ch runs wide */
}

/* ============================================
   REVEAL ON SCROLL
   The class is added by main.js when the element enters view.
   Without JS nothing is hidden.
   ============================================ */

html.js [data-animate] {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html.js [data-animate].animated {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   SECTION GROUNDS
   Paper is the default. Ivory warms a section, forest and ink darken it.
   ============================================ */

.section-ivory {
    background-color: var(--ivory);
}

.section-forest {
    background-color: var(--forest);
    color: var(--ivory);
}

.section-ink {
    background-color: var(--ink);
    color: var(--ivory);
}

.section-forest h1, .section-forest h2, .section-forest h3, .section-forest h4,
.section-ink h1, .section-ink h2, .section-ink h3, .section-ink h4,
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 {
    color: var(--ivory);
}

.section-forest .section-subtitle,
.section-ink .section-subtitle,
.on-dark .section-subtitle {
    color: rgba(247, 245, 240, 0.72);
}

.section-forest .kicker, .section-forest .section-label,
.section-ink .kicker, .section-ink .section-label,
.on-dark .kicker, .on-dark .section-label,
.kicker-light {
    color: var(--signal-soft);
}

.section-forest .num,
.section-ink .num,
.on-dark .num {
    color: var(--signal-deep);
}

/* ============================================
   ACCENTS: the logo red at work
   Numerals, the marquee stars and the big figures carry the red. Buttons never do.
   ============================================ */

.num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--signal);
    margin-bottom: 14px;
}

.figure-big {
    display: block;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--signal);
}

.section-forest .figure-big,
.section-ink .figure-big,
.on-dark .figure-big {
    color: var(--signal-deep);
}

/* Marquee: a slow line of what we do, separated by red stars.
   Markup: .marquee > .marquee-track > ul.marquee-list ×2 (the second aria-hidden). */
.marquee {
    overflow: hidden;
    padding: 18px 0;
    background: var(--ivory);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-run 70s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-list {
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0 18px 0 36px;
    margin: 0;
    list-style: none;
}

.marquee-list li {
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ink);
}

.marquee-list li::after {
    content: '\2731';
    font-family: system-ui, sans-serif;
    font-size: 0.875rem;
    color: var(--signal);
}

@keyframes marquee-run {
    to { transform: translateX(-50%); }
}

/* ============================================
   TILES AND MOCKS
   A tile is a photo or a colour block with a caption. A mock is a small, believable
   piece of the product drawn in HTML. Mocks are the one thing allowed a shadow: they float.
   ============================================ */

.tile {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tile-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--mist);
}

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

.tile-body {
    padding: 24px 28px 28px;
}

.tile-body h3 {
    margin: 0 0 8px;
}

.tile-body p {
    margin: 0;
    font-size: 1rem;
    color: var(--ink-3);
}

.tile-forest {
    background: var(--forest);
    border-color: var(--forest);
    color: var(--ivory);
}

.tile-forest h3 {
    color: var(--ivory);
}

.tile-forest p {
    color: rgba(247, 245, 240, 0.78);
}

.mock {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-lg);
    font-size: 0.9375rem;
    color: var(--ink-2);
    text-align: left;
}

.mock-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.mock-kicker {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--signal);
    margin-bottom: 2px;
}

.mock-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 1rem;
}

.mock-pill {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-3);
    border: 1px solid var(--line);
    border-radius: var(--radius-full);
    padding: 3px 9px;
    white-space: nowrap;
}

.mock-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mock-rows li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.mock-rows li:first-child {
    border-top: 0;
}

.mock-rows .ok {
    color: var(--forest);
    font-weight: 600;
    white-space: nowrap;
}

.mock-rows .due {
    color: var(--signal);
    font-weight: 600;
    white-space: nowrap;
}

.mock-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.8125rem;
    color: var(--ink-3);
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        width: auto;
    }

    .marquee-list {
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .marquee-list[aria-hidden="true"] {
        display: none;
    }
}

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

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    body {
        font-size: 1rem;
    }

    .navbar .container {
        height: 60px;
        padding: 0 16px;
    }

    .navbar-nav,
    .navbar-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .site-footer {
        padding-top: 56px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-newsletter-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-newsletter-form {
        width: 100%;
        justify-content: flex-start;
    }

    .footer-newsletter-form input {
        width: 100%;
    }

    .footer-newsletter-form .btn {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .section-header,
    .section-head {
        margin-bottom: 32px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.py-1 { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-2 { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-3 { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }
.py-4 { padding-top: var(--spacing-xl); padding-bottom: var(--spacing-xl); }
.py-5 { padding-top: var(--spacing-2xl); padding-bottom: var(--spacing-2xl); }

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
