/* ══════════════════════════════════════
   Traktor — Shared Styles
   ══════════════════════════════════════ */

:root {
    --green: #5B8C51;
    --green-dark: #4a7a43;
    --green-light: #EDF2EC;
    --dark: #0A2803;
    --dark-light: #1E3917;
    --orange: #E25F29;
    --orange-dark: #c94f1f;
    --cream: #FFF9E8;
    --text: #0A2803;
    --text-light: #404A3D;
    --text-muted: #5C6672;
    --gray: #5C6672;
    --border: #dde3db;
    --bg-light: #EDF2EC;
    --bg-input: #FFF9E8;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { transition: color 0.2s; }

/* ── Typography base scale (unified across all pages) ── */
h1, h2, h3, h4 {
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--dark);
}
h1 { font-size: 40px; font-weight: 700; margin-bottom: 20px; }
h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
p  { font-size: 16px; line-height: 1.7; color: var(--text-light); }

.section-dark h1, .section-dark h2, .section-dark h3,
.hero h1, .hero h2, .hero h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    p  { font-size: 15px; }
}

/* ── Semantic text utilities ── */
.block-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.2px; }
.block-lede  { color: var(--text-light); margin-bottom: 32px; }
.subsection-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; color: var(--dark); }
.lead { font-size: 18px; line-height: 1.8; color: var(--text-light); }
.callout-accent { text-align: center; color: var(--orange); font-weight: 600; font-size: 18px; margin-top: 32px; }
.text-list { margin: 0 0 16px 20px; line-height: 1.8; color: var(--text-light); }
.text-list li { font-size: 16px; margin-bottom: 4px; }
.stat-icon { margin-bottom: 12px; }

/* ── Eyebrow label (small caps kicker above H2) ── */
.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 16px;
}
.section-dark .eyebrow { color: rgba(255, 255, 255, 0.6); }

/* ── Brands section on home (image-led tiles, B2B premium look) ── */
.brands-section { padding: 112px 0; }
.brands-section--nav { padding: 56px 0 24px; } /* compact variant for page-products anchor nav */

.brands-head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}
.brands-head h2 {
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 0 0 16px;
    text-wrap: balance;
}
.brands-head > p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

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

.brand-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--dark);
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow .4s cubic-bezier(0.22, 1, 0.36, 1),
                border-color .3s ease;
}
.brand-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(10, 40, 3, 0.12);
    border-color: transparent;
}

.brand-tile-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    overflow: hidden;
}
.brand-tile-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,40,3,0) 45%, rgba(10,40,3,0.55));
}

.brand-tile-count {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 999px;
}

.brand-tile-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.brand-tile-kicker {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--green);
    margin-bottom: 10px;
}

.brand-tile h3 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 12px;
    color: var(--dark);
}

.brand-tile p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 24px;
    flex: 1;
}

.brand-tile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    transition: gap .25s ease;
}
.brand-tile-cta svg { transition: transform .25s ease; }
.brand-tile:hover .brand-tile-cta { gap: 12px; }
.brand-tile:hover .brand-tile-cta svg { transform: translateX(2px); }

@media (max-width: 900px) {
    .brands-section { padding: 72px 0; }
    .brands-head { margin-bottom: 40px; }
    .brands-head h2 { font-size: 32px; }
    .brands-grid { grid-template-columns: 1fr; gap: 16px; }
    .brand-tile-body { padding: 24px; }
    .brand-tile h3 { font-size: 22px; }
}

/* ── "Our Position" section — asymmetric split layout (modern B2B) ── */
.position-section { padding: 96px 0; }

.position-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 96px;
    align-items: start;
}

.position-head h2 {
    color: #fff;
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 20px;
    text-align: left;
}
.position-head > p {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px;
    max-width: 380px;
}

.pull-quote {
    margin: 0;
    padding: 0 0 0 20px;
    border-left: 3px solid var(--orange);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    max-width: 380px;
    font-style: normal;
}

.position-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.position-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: padding 0.3s ease;
}
.position-item:hover { padding-left: 8px; }
.position-num {
    font-size: 36px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    letter-spacing: -1.5px;
    font-variant-numeric: tabular-nums;
}
.position-title {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

@media (max-width: 900px) {
    .position-section { padding: 64px 0; }
    .position-layout { grid-template-columns: 1fr; gap: 48px; }
    .position-head h2 { font-size: 32px; }
    .position-num { font-size: 28px; }
    .position-title { font-size: 17px; }
    .position-item { grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; }
}

@media (max-width: 768px) {
    .block-title { font-size: 20px; }
    .subsection-title { font-size: 19px; }
    .lead { font-size: 16px; }
    .callout-accent { font-size: 16px; }
}

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

/* ── Header Top Bar (cerealis.co.za style) ── */
.header-top {
    background: var(--cream);
    color: var(--text-light);
    padding: 12px 0;
    font-size: 12px;
    position: relative;
    z-index: 1001;
}

.header-top .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-top-center {
    display: flex;
    justify-content: center;
}

.header-logo {
    height: 54px !important;
    width: auto !important;
    max-width: 200px;
}

.header-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.header-top a {
    color: var(--text-light);
    text-decoration: none;
}

.header-top a:hover { color: var(--green); }

.social-links {
    display: flex;
    gap: 16px;
}

/* ── Header ── */
.header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 12px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo {
    height: 66px !important;
    width: auto !important;
    max-width: 269px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo img {
    height: 36px !important;
    width: auto !important;
    max-width: 160px;
}

.logo span { color: var(--green); }

/* ── Hide Polylang auto-injected language items (keep only .lang-switcher) ── */
li.lang-item { display: none !important; }
.lang-switcher li.lang-item { display: inline !important; }

/* ── Language Switcher ── */
.lang-switcher { display: flex; gap: 4px; align-items: center; }
.lang-switcher ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.lang-switcher li { display: inline; }
.lang-switcher a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}
.lang-switcher a:hover { color: var(--green); }
.lang-switcher .current-lang a {
    color: var(--orange);
    background: var(--cream);
}
.header-top .container { gap: 16px; }

nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

nav a:hover, nav a.active { color: var(--orange); }

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--orange);
    border-radius: 2px 2px 0 0;
}

.btn-login {
    background: var(--orange);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
}

.btn-login:hover { background: var(--orange-dark); }

/* ── Mobile menu ── */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-secondary {
    background: #fff;
    color: var(--dark);
    font-weight: 600;
}
.btn-secondary:hover { background: var(--cream); }

.btn-outline {
    background: transparent;
    color: var(--green);
    border: 2px solid var(--green);
}
.btn-outline:hover {
    background: var(--green);
    color: #fff;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(86deg, rgba(10,40,3,0.8) 30%, rgba(10,40,3,0.4) 100%), url('../img/aerial-fields.jpg') center/cover no-repeat;
    color: #fff;
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-large {
    padding: 140px 0 120px;
}

.hero-large h1 { font-size: 64px; }

/* Hero per-page backgrounds */
.hero-home {
    background: var(--dark);
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: left;
}
.hero-home .container {
    max-width: 700px;
    margin-left: max(24px, calc((100vw - 1200px) / 2));
    margin-right: auto;
}

/* Hero Video */
.hero-video-wrap {
    position: relative;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero Slider */
.hero-slider-wrap {
    position: relative;
    overflow: hidden;
}
.hero-slides {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide.active {
    opacity: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(86deg, rgba(10,40,3,0.75) 25%, rgba(10,40,3,0.3) 100%);
    z-index: 1;
}
.hero-products { background-image: linear-gradient(86deg, rgba(10,40,3,0.8) 30%, rgba(10,40,3,0.35) 100%), url('../img/aerial-fields.jpg'); background-position: center; background-size: cover; }
.hero-dealers { background-image: linear-gradient(86deg, rgba(10,40,3,0.8) 30%, rgba(10,40,3,0.35) 100%), url('../img/aerial-fields.jpg'); background-position: center; background-size: cover; }
.hero-news { background-image: linear-gradient(86deg, rgba(10,40,3,0.8) 30%, rgba(10,40,3,0.35) 100%), url('../img/harvest.jpg'); background-position: center; background-size: cover; }
.hero-about { background-image: linear-gradient(86deg, rgba(10,40,3,0.85) 30%, rgba(10,40,3,0.3) 100%), url('../img/about-tractor.jpg'); background-position: center; background-size: cover; }
.hero-contact { background-image: linear-gradient(86deg, rgba(10,40,3,0.8) 30%, rgba(10,40,3,0.35) 100%), url('../img/harvest-aerial.jpg'); background-position: center; background-size: cover; }

.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Left-aligned hero (home) — keep paragraph and actions against the left edge */
.hero-home p {
    margin: 0;
    max-width: 560px;
}
.hero-home .hero-actions {
    justify-content: flex-start;
}

/* ── Section ── */
.section {
    padding: 80px 0;
}

.section-light { background: var(--bg-light); }
.section-dark { background: linear-gradient(rgba(10,40,3,0.9), rgba(10,40,3,0.9)), url('../img/aerial-fields.jpg') center/cover no-repeat; color: #fff; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-header p { color: rgba(255, 255, 255, 0.7); }

/* ── Cards ── */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* When card-img has no photo — show product name as centered label over gradient */
.card-img .card-img-label {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 0 16px;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.card-img.has-photo {
    background-color: #fff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    padding: 16px;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body > .link-green { margin-top: auto; }

.card-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-body p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

/* ── Grids ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ── Stats ── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--green);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ── Badge ── */
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-green { background: var(--cream); color: var(--orange); }
.badge-dark { background: #eee; color: #555; }

/* ── Form (modern B2B style) ── */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: 0;
    text-transform: none;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%235C6672' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A5AEA2;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #B8C0B5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(91, 140, 81, 0.15);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(rgba(10,40,3,0.85), rgba(10,40,3,0.85)), url('../img/harvest-aerial.jpg') center/cover no-repeat;
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.cta-section p {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin-bottom: 24px;
}

/* ── Footer ── */
.footer {
    background: var(--dark-light);
    color: rgba(255, 255, 255, 0.82);
    padding: 60px 0 30px;
}

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

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.82);
}

.footer-col a {
    display: block;
    color: #C6CDC5;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a { color: #C6CDC5; text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ── Page-specific: Search Panel ── */
.search-panel {
    background: #fff;
    margin-top: -30px;
    position: relative;
    z-index: 100;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-form .form-group { margin-bottom: 0; flex: 1; min-width: 200px; }

/* ── Page-specific: Dealer cards ── */
.dealers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.dealer-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dealer-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--orange);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.dealer-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.dealer-card:hover::before { transform: scaleX(1); }

.dealer-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.dealer-info { display: flex; flex-direction: column; gap: 8px; }

.dealer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.dealer-info-row .icon {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    color: var(--green);
    margin-top: 2px;
}

.dealer-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.dealer-actions a {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}

.dealer-actions a:hover { color: var(--green-dark); }

/* ── Map ── */
#map,
#officesMap {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-info h2 { font-size: 22px; font-weight: 600; }
.results-count { color: var(--text-muted); font-size: 14px; }

/* Leaflet popup */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.custom-popup .leaflet-popup-content {
    margin: 16px;
    font-family: 'Inter', sans-serif;
}
.popup-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--dark); }
.popup-address { font-size: 13px; color: #666; margin-bottom: 8px; }
.popup-phone { font-size: 13px; color: var(--orange); font-weight: 500; }

/* ── Features grid (premium B2B style — no Tilda-like icon circles) ── */
.feature-item {
    text-align: left;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 3px solid var(--green);
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: block;
    margin: 0 0 20px;
    padding: 0;
}
.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--green);
    stroke-width: 1.5;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.1px;
}

.feature-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 40, 3, 0.08);
}

.feature-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

/* Dark section stat tiles — readable on dark bg */
.section-dark .stat {
    text-align: center;
    padding: 8px 12px;
}
.section-dark .stat-icon {
    display: flex;
    justify-content: center;
    margin: 0 auto 14px;
    width: auto;
    height: auto;
    background: none;
}
.section-dark .stat-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}
.section-dark .stat-label {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    line-height: 1.5;
}

/* ── Timeline / About ── */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--green);
}

.timeline-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-item .year {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 8px;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ── Team (cerealis.co.za style) ── */
.team-grid {
    gap: 28px;
}

.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 40, 3, 0.08);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    margin: 0 auto 20px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.team-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 32px;
}

.team-role {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.team-contacts {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    text-align: left;
}

.team-contacts li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text);
}

.team-contacts a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.team-contacts a:hover {
    color: var(--green);
}

.team-contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.team-cta {
    display: block;
    margin-top: auto;
    padding: 10px 16px;
    background: var(--green-light);
    color: var(--green);
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.team-cta:hover {
    background: var(--green);
    color: #fff;
}

.team-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--bg-light);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo-initials {
    font-size: 72px;
    font-weight: 700;
    color: var(--green);
    opacity: 0.35;
    line-height: 1;
}

.team-photo.has-photo .team-photo-initials { display: none; }

/* ── News ── */
.news-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* ── Contact ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* ── Contact info cards (modern B2B) ── */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-info-item:hover {
    border-color: var(--green);
    box-shadow: 0 6px 20px rgba(10, 40, 3, 0.06);
    transform: translateY(-1px);
}

.contact-info-item .ci-icon {
    width: 40px;
    height: 40px;
    background: var(--green-light);
    color: var(--green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .ci-icon svg {
    width: 18px;
    height: 18px;
}

.contact-info-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
}

.contact-info-item p {
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

.contact-info-item p a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}
.contact-info-item p a:hover { color: var(--green); }

.contact-info-item .ci-sub {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 400;
}
.contact-info-item .ci-sub a {
    font-weight: 500;
    color: var(--green);
}

/* ── Button variants ── */
.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

/* ── Link styles ── */
.link-green {
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    text-decoration: none;
}
.link-green:hover { color: var(--orange-dark); }

/* ── Social icons ── */
.social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s;
}

.social-icons a svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.header .social-icons a {
    color: var(--text-light);
}
.header .social-icons a:hover {
    color: var(--green);
}

.footer .social-icons {
    margin-top: 16px;
}
.footer .social-icons a {
    color: #C6CDC5;
    background: rgba(255, 255, 255, 0.08);
}
.footer .social-icons a:hover {
    color: #fff;
    background: var(--orange);
}

/* ── SVG card illustration ── */
.card-img svg {
    width: 80px;
    height: 80px;
}

/* ── Featured grid (news) ── */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: center;
}

/* ── Mission grid (about) ── */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

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

/* ── Event row (news) ── */
.event-row {
    display: flex;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    align-items: center;
    transition: all 0.3s;
}
.event-row:hover {
    box-shadow: var(--shadow-hover);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.event-date-day {
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
}

.event-date-month {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange-dark);
    text-transform: uppercase;
}

.event-body { flex: 1; }

.event-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.event-body p {
    font-size: 14px;
    color: var(--text-light);
}

/* ── Team avatar (initials) ── */
.team-avatar-initials {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

/* ── Mission image placeholder ── */
.mission-img {
    background: url('../img/about-tractor.jpg') center/cover no-repeat;
    border-radius: 16px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

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

@media (max-width: 768px) {
    .mobile-toggle { display: block; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-hover);
    }
    nav.open { display: flex; }
    nav a.active::after { display: none; }

    .hero h1 { font-size: 32px; }
    .hero-large h1 { font-size: 36px; }

    .search-form { flex-direction: column; }
    .search-form .form-group { min-width: 100%; }

    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .dealers-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 32px; }
    .stat-number { font-size: 36px; }

    #map { height: 350px; }

    .header-main .container { gap: 12px; }
    .header-logo { height: 48px !important; max-width: 209px; }
    .header-right { gap: 8px; }
    .header-right .lang-switcher a {
        font-size: 12px;
        padding: 2px 4px;
    }

    .section { padding: 48px 0; }

    /* Mobile: featured grid, mission grid, form row */
    .featured-grid { grid-template-columns: 1fr; }
    .mission-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Mobile: event rows */
    .event-row {
        flex-wrap: wrap;
    }
    .event-row .btn {
        width: 100%;
        text-align: center;
    }

    .mission-img { height: 260px; }
}

/* ── Legal Pages ── */
.legal-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--dark);
}
.legal-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-content ul {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0 0 16px 24px;
}
.legal-content li {
    margin-bottom: 4px;
}
.legal-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ── FAQ Accordion ── */
.faq-category {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green);
}
.faq-category:first-of-type { margin-top: 0; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.faq-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 18px 48px 18px 20px;
    border: none;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    font-family: inherit;
    line-height: 1.5;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--green);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question::after {
    content: '\2212';
    transform: translateY(-50%);
}
.faq-item.open .faq-question {
    color: var(--green);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.3s ease;
    padding: 0 20px;
}
.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}
.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* ══════════════════════════════════════
   Animations (inspired by Cerealis.co.za)
   ══════════════════════════════════════ */

/* ── Fade-in on scroll ── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.animate-on-scroll.animated .card:nth-child(1),
.animate-on-scroll.animated .feature-item:nth-child(1),
.animate-on-scroll.animated .stat:nth-child(1),
.animate-on-scroll.animated .team-card:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.animated .card:nth-child(2),
.animate-on-scroll.animated .feature-item:nth-child(2),
.animate-on-scroll.animated .stat:nth-child(2),
.animate-on-scroll.animated .team-card:nth-child(2) { transition-delay: 0.15s; }
.animate-on-scroll.animated .card:nth-child(3),
.animate-on-scroll.animated .feature-item:nth-child(3),
.animate-on-scroll.animated .stat:nth-child(3),
.animate-on-scroll.animated .team-card:nth-child(3) { transition-delay: 0.3s; }
.animate-on-scroll.animated .feature-item:nth-child(4),
.animate-on-scroll.animated .stat:nth-child(4),
.animate-on-scroll.animated .team-card:nth-child(4) { transition-delay: 0.45s; }

/* Children start hidden too */
.animate-on-scroll .card,
.animate-on-scroll .feature-item,
.animate-on-scroll .stat,
.animate-on-scroll .team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.animated .card,
.animate-on-scroll.animated .feature-item,
.animate-on-scroll.animated .stat,
.animate-on-scroll.animated .team-card {
    opacity: 1;
    transform: translateY(0);
}

/* ── Hero text entrance ── */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero p {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
.hero-actions {
    animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

/* ── Card hover lift ── */
.card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

/* ── Card image zoom on hover ── */
.card-img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    background-size: cover;
    background-position: center;
}
.card:hover .card-img {
    transform: scale(1.05);
}

/* ── Button hover effects ── */
.btn {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(91, 140, 81, 0.3);
}
.btn-outline:hover,
.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* ── Feature icon pulse on hover ── */
.feature-item {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}
.feature-icon {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-item:hover .feature-icon {
    transform: scale(1.15);
}

/* ── Stats counter glow ── */
.stat-number {
    transition: color 0.3s ease;
}
.section-dark .stat:hover .stat-number {
    color: var(--orange);
}

/* ── Team card hover ── */
.team-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

/* ── CTA section subtle float ── */
@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.cta-section .btn {
    animation: subtleFloat 3s ease-in-out infinite;
}
.cta-section .btn:hover {
    animation-play-state: paused;
}

/* ── Smooth scroll behavior ── */
html {
    scroll-behavior: smooth;
}

/* ── "Our Approach" horizontal process stepper (about page) ── */
.approach-section { padding: 112px 0; }
.approach-head {
    max-width: 640px;
    margin: 0 auto 72px;
    text-align: center;
}
.approach-head h2 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 16px;
    text-wrap: balance;
}

.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}
.process-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 56px;
    right: 56px;
    height: 2px;
    background-image: linear-gradient(90deg, var(--green) 50%, transparent 50%);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 1;
}
.process-step__num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--green);
    color: var(--green);
    font-size: 22px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}
.process-step:hover .process-step__num {
    background: var(--green);
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 24px rgba(91, 140, 81, 0.3);
}

.process-step__body h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--dark);
    letter-spacing: -0.2px;
    line-height: 1.25;
}
.process-step__body p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 900px) {
    .approach-section { padding: 72px 0; }
    .approach-head { margin-bottom: 48px; }
    .approach-head h2 { font-size: 32px; }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .process-steps::before {
        top: 32px;
        bottom: 32px;
        left: 31px;
        right: auto;
        width: 2px;
        height: auto;
        background-image: linear-gradient(180deg, var(--green) 50%, transparent 50%);
        background-size: 2px 10px;
    }
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }
    .process-step__body { padding-top: 14px; }
}

/* ── "What Sets Us Apart" manifesto (editorial split) ── */
.sets-apart { padding: 112px 0; }
.sets-apart__grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 96px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}
.sets-apart__head h2 {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 20px;
    text-wrap: balance;
}
.sets-apart__head > p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
    max-width: 380px;
}
.sets-apart__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sets-apart__item {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-top: 1px solid rgba(10, 40, 3, 0.12);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: var(--dark);
    transition: padding-left 0.3s ease;
}
.sets-apart__item:last-child {
    border-bottom: 1px solid rgba(10, 40, 3, 0.12);
}
.sets-apart__item:hover { padding-left: 8px; }
.sets-apart__item svg {
    width: 24px;
    height: 24px;
    color: var(--green);
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .sets-apart { padding: 72px 0; }
    .sets-apart__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .sets-apart__head h2 { font-size: 30px; }
    .sets-apart__item { font-size: 17px; padding: 18px 0; gap: 14px; grid-template-columns: 22px 1fr; }
    .sets-apart__item svg { width: 20px; height: 20px; }
}

/* ── "Why We Do This" editorial zig-zag (about page) ── */
.why-story { padding: 112px 0; }

.why-story__head {
    max-width: 640px;
    margin: 0 auto 72px;
    text-align: center;
}
.why-story__head h2 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0 0 16px;
    text-wrap: balance;
}

.story-rows {
    display: flex;
    flex-direction: column;
    gap: 96px;
}

.story-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.story-row:nth-child(even) .story-row__media { order: 2; } /* flip image side */

.story-row__media {
    aspect-ratio: 5 / 4;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(10, 40, 3, 0.12);
}
.story-row__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 40, 3, 0) 55%, rgba(226, 95, 41, 0.28));
    pointer-events: none;
}

.story-row__kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 20px;
}
.story-row__kicker::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--orange);
    display: inline-block;
}

.story-row__body h3 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    color: var(--dark);
    text-wrap: balance;
}
.story-row__body p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}

@media (max-width: 900px) {
    .why-story { padding: 72px 0; }
    .why-story__head { margin-bottom: 48px; }
    .why-story__head h2 { font-size: 32px; }
    .story-rows { gap: 48px; }
    .story-row { grid-template-columns: 1fr; gap: 24px; }
    .story-row:nth-child(even) .story-row__media { order: 0; } /* always image on top on mobile */
    .story-row__body h3 { font-size: 24px; }
    .story-row__body p { font-size: 16px; }
}

/* ── "Why Cerealis" bento (mixed-size tiles, different treatments) ── */
.why-section { padding: 112px 0; }

.why-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.why-head h2 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
    margin: 0;
    text-wrap: balance;
}

.why-bento {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    grid-template-rows: auto auto;
    gap: 20px;
    grid-template-areas:
        "hero  hero  stat    stat"
        "comp  photo photo   photo";
}

.why-tile {
    position: relative;
    padding: 36px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(10, 40, 3, 0.08);
}

.why-tile h3 {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin: 0;
    color: var(--dark);
    text-wrap: balance;
}
.why-tile p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.why-tile__icon {
    width: 40px;
    height: 40px;
    color: var(--green);
    flex-shrink: 0;
}
.why-tile__icon svg { width: 100%; height: 100%; }
.why-tile__icon--lg { width: 56px; height: 56px; }

/* Hero tile — dark accent */
.why-tile--hero {
    grid-area: hero;
    background: linear-gradient(135deg, #0A2803 0%, #1E3917 100%);
    color: #fff;
    border-color: transparent;
    min-height: 280px;
    justify-content: flex-end;
}
.why-tile--hero h3 { color: #fff; font-size: 26px; }
.why-tile--hero p { color: rgba(255, 255, 255, 0.75); }
.why-tile--hero .why-tile__icon { color: var(--green); }
.why-tile__badge {
    position: absolute;
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(91, 140, 81, 0.18);
    color: #c7e3bf;
    border: 1px solid rgba(91, 140, 81, 0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Stat tile — big number */
.why-tile--stat {
    grid-area: stat;
    justify-content: center;
    text-align: left;
    background: #fff;
}
.why-tile__stat {
    font-size: 72px;
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -3px;
    color: var(--green);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--green) 0%, #2d5a27 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}
.why-tile__stat-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-top: -4px;
}
.why-tile__stat-foot {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: auto;
}

/* Compact tile */
.why-tile--compact { grid-area: comp; min-height: 280px; }

/* Photo-backed tile */
.why-tile--photo {
    grid-area: photo;
    background-size: cover;
    background-position: center;
    color: #fff;
    border-color: transparent;
    min-height: 280px;
    justify-content: flex-end;
}
.why-tile--photo h3 { color: #fff; font-size: 26px; }
.why-tile--photo p { color: rgba(255, 255, 255, 0.85); }
.why-tile--photo .why-tile__icon { color: #fff; opacity: 0.85; }

@media (max-width: 1040px) {
    .why-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "hero  hero"
            "stat  comp"
            "photo photo";
    }
    .why-tile--photo { min-height: 220px; }
}

@media (max-width: 640px) {
    .why-section { padding: 72px 0; }
    .why-head { margin-bottom: 40px; }
    .why-head h2 { font-size: 30px; }
    .why-bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "stat"
            "comp"
            "photo";
    }
    .why-tile { padding: 28px; }
    .why-tile--hero, .why-tile--photo, .why-tile--compact { min-height: 200px; }
    .why-tile__stat { font-size: 56px; letter-spacing: -2px; }
    .why-tile--hero h3, .why-tile--photo h3 { font-size: 22px; }
}

/* ── Lead form (reusable: contact page + modal) ── */
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.lead-form .form-group { margin-bottom: 0; }
.lead-form__submit { width: 100%; padding: 14px 20px; font-size: 15px; margin-top: 8px; }
.lead-form__submit.is-loading { opacity: 0.7; cursor: wait; }
.lead-form__legal { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
.lead-form__legal a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.lead-form__error { color: var(--orange); font-size: 14px; font-weight: 500; margin: 4px 0 0; }

/* ── Request modal ── */
html.modal-open { overflow: hidden; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
.modal[hidden] { display: none; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 40, 3, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: modalFade 0.25s ease;
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlide 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    max-height: 92vh;
    overflow-y: auto;
    margin-bottom: 0;
}

@media (min-width: 640px) {
    .modal { align-items: center; padding: 24px; }
    .modal__panel {
        border-radius: 20px;
        animation: modalPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        max-height: calc(100vh - 48px);
    }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}
.modal__close:hover {
    background: var(--bg-light);
    border-color: var(--green);
}

.modal__body {
    padding: 40px 32px 32px;
}
.modal__body h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 8px;
    color: var(--dark);
}
.modal__lede {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 24px;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlide {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes modalPop {
    from { transform: scale(0.96) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

/* ── Thanks page ── */
.thanks-section {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}
.thanks-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 32px;
}
.thanks-check {
    color: var(--green);
    width: 96px;
    height: 96px;
    margin: 0 auto 32px;
    animation: thanksCheck 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.thanks-check svg { width: 100%; height: 100%; }
.thanks-card h1 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    color: var(--dark);
}
.thanks-lede {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0 0 40px;
}
.thanks-contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
    text-align: left;
}
.thanks-contact {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.thanks-contact:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}
.thanks-contact__label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.thanks-contact__value {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}
.thanks-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}
.btn-whatsapp {
    background: var(--dark-light);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.btn-whatsapp:hover { background: var(--dark); color: #fff; }
.btn-whatsapp svg { fill: currentColor; flex-shrink: 0; }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
}
.btn-outline:hover {
    border-color: var(--green);
    background: var(--bg-light);
}

@keyframes thanksCheck {
    0% { transform: scale(0.7); opacity: 0; }
    60% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 560px) {
    .thanks-card h1 { font-size: 28px; }
    .thanks-lede { font-size: 16px; }
}

/* ── Respect reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Office Map (Leaflet) on /contact/ */
.contact-map {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}
.contact-map.leaflet-container {
    background: #e8eef0;
    font-family: inherit;
}
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(10, 40, 3, 0.15);
}
.leaflet-popup-content {
    margin: 0;
    line-height: 1.45;
}
.office-popup {
    padding: 18px 20px 16px;
    font-family: inherit;
    color: var(--dark);
    min-width: 260px;
}
.office-popup__head {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}
.office-popup__title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2px;
}
.office-popup__subtitle {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
}
.office-popup__row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 10px;
}
.office-popup__row > div { flex: 1; min-width: 0; }
.office-popup__icon {
    font-size: 15px;
    line-height: 1.45;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.office-popup__muted {
    font-size: 12px;
    color: #8a8a8a;
    margin-top: 1px;
}
.office-popup a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}
.office-popup a:hover { color: var(--green); }
.office-popup__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 8px 14px;
    background: var(--dark-light);
    color: #fff !important;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.office-popup__cta:hover {
    background: var(--dark) !important;
    color: #fff !important;
}
