/* ============================================================================
   THOMPSONAGRI — STAGE 1: RATIONALISED CSS  (whole file, same look)
   Source: thompsonagri-child.css (1323 ln) + thompsonagri-gallery.css (444 ln)
   Goal: identical rendered look & behaviour, made correct and legible.
   NOT tiered, NOT role-renamed — class names preserved. That is Stage 2.
   Every change is logged in thompsonagri-RATIONALISE-FINDINGS.md.

   Cross-cutting fixes applied globally (the ones a per-section pass would miss):
   - Two brand systems untangled: ThompsonAgri GREEN kept; leftover Thompson Ltd
     BLUE (--Thompson-primary:#00549f) + undefined bare --Thompson quarantined.
   - "Ghost green" rgb(44,95,45)/#2c5f2d/#4a7c59 (matches NO token, a 3rd green
     from a starter template) replaced with brand-derived values.
   - Mojibake fixed: 'âœ“'→✓, 'â–¼'→▼, 'â†’'→→.
   - Dead code removed: 3 unused .slide-link "Alternative Style" variants,
     commented-out .contact-grid, commented --font-headings:Roboto line.
   - gallery-trigger !important war resolved (see section J).
   - Serif/sans heading split documented as intentional (see section B).
   ============================================================================ */


/* ============================================================
   A. TOKENS  (:root) — values unchanged; only organised + commented
   ============================================================ */
:root {
  /* Brand */
  --brand-primary:   #4c872b;              /* ThompsonAgri green */
  --brand-secondary: #8d9b5f;              /* olive green */
  --brand-accent:    #c6a878;              /* gold */
  --brand-dark:      rgb(62 82 88);        /* slate frame */
  --brand-light:     #f5f5f5;

  /* Brand alphas (kept; Stage 2 may derive these via color-mix) */
  --brand-opaque:    rgba(255,255,255,0.10);
  --brand-opaque-15: rgba(255,255,255,0.15);
  --brand-primary-60: rgb(35 77 12 / 55%);
  --brand-dark-70:   rgba(62,82,88,0.7);
  --brand-dark-50:   rgba(62,82,88,0.6);
  --brand-dark-30:   rgba(62,82,88,0.5);

  /* QUARANTINED: leftover Thompson Ltd PARENT brand (blue). Not ThompsonAgri.
     Was referenced by .btn-thompson (removed) and .parent-company h4 (org-tree).
     Kept defined ONLY so the org-tree doesn't render var-undefined until Stage 2
     decides its real colour. The bare `--Thompson` (no value) was undefined and
     is NOT reintroduced. */
  --Thompson-primary: #00549f;             /* TODO Stage 2: org-tree colour decision */

  /* Supplementary palette (kept) */
  --color-steel: #6b7280;
  --color-concrete: #9ca3af;
  --color-earth: #92704c;
  --color-warning: #ea580c;

  /* Neutrals */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-grey-50: #f9fafb;
  --color-grey-100: #f3f4f6;
  --color-grey-200: #e5e7eb;
  --color-grey-300: #d1d5db;
  --color-grey-800: #1f2937;
  --color-grey-900: #111827;

  /* Type */
  --font-primary:  'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-headings: 'Merriweather', Georgia, serif;
  /* removed dead: --font-headings:'Roboto' (commented-out alternative) */

  /* Spacing */
  --section-padding: 4rem 2rem;
  --container-max-width: 1200px;

  /* NEW (replaces 6× stray ghost-green shadows with one token-derived value) */
  --shadow-btn: 0 4px 8px color-mix(in srgb, var(--brand-primary) 30%, transparent);
}


/* ============================================================
   B. GLOBAL + FONT WIRING (serif/sans split = INTENTIONAL)
   Default headings: Merriweather serif, slate. Specific LABEL-role headings
   are deliberately Open Sans (hero h1, reveal h4, org-tree h4). The !important
   only exists to beat the tag selector; Stage 2 role-classes them and drops it.
   ============================================================ */
body {
  font-family: var(--font-primary);
  color: var(--color-grey-800);
  line-height: 1.6;
}
.container { max-width: var(--container-max-width); margin: 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.1;
}
h2 { font-size: 2.5rem; margin-bottom: 2rem; text-align: center; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

/* FIXED typo: was `font-stylefont-style: italic !important` (no-op). */
blockquote { font-style: italic; }
blockquote h1, blockquote h2, blockquote h3, blockquote h4 { font-weight: 400; }


/* ============================================================
   C. HEADER / FOOTER
   ============================================================ */
.header, .footer {
  background: linear-gradient(45deg, var(--brand-dark) 50%, #205800 100%);
  /* #205800 = dark green gradient stop; Stage 2 → token (--brand-primary-dark) */
}
.container-header .grid-child { padding: 1rem .5em 1em .5em; }
a.brand-logo img { max-width: 280px; }   /* dropped !important (no competing rule) */
.container-component > :first-child,
.container-sidebar-left > :first-child,
.container-sidebar-right > :first-child,
.container-component > * + *,
.container-sidebar-left > * + *,
.container-sidebar-right > * + * { margin-top: 0; }


/* ============================================================
   D. HERO
   ============================================================ */
.hero-agri {
  background: url('/images/hero-bunker.jpg') center/cover no-repeat;
  min-height: 68vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--color-white);
  position: relative;
  width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  margin-bottom: 50px;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-family: var(--font-primary) !important;   /* intentional sans (see B) */
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.tagline {
  font-size: 1.5rem;
  color: var(--color-grey-100);
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}


/* ============================================================
   E. SERVICES CAROUSEL   (viewport-coupled with carousel.js — keep breakpoints
   in sync: JS getSlidesPerView() uses 640 / 1024)
   ============================================================ */
.carousel-wrapper {
  position: relative; max-width: 1400px; margin: 0 auto 50px;
  padding: 40px 60px;
  background-color: rgb(210 216 216);     /* Stage 2 → token (slate tint) */
}
.carousel-container { overflow: hidden; }
.carousel-track { display: flex; gap: 20px; transition: transform 0.4s ease; }
.carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--color-grey-50);
  padding: 30px; border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}
.carousel-slide:hover { transform: translateY(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: var(--brand-accent); border: none; border-radius: 50%;
  width: 50px; height: 50px; font-size: 48px; color: #fff;
  cursor: pointer; transition: all 0.3s ease; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  padding-bottom: 10px;
  /* merged the two conflicting .carousel-arrow / button.carousel-arrow rules:
     final state was 48px white — kept that; dropped the dead 2rem/#000 pair */
}
.carousel-arrow:hover { background: var(--color-concrete); transform: translateY(-50%) scale(1.1); }
.carousel-arrow.prev { left: 6px; }
.carousel-arrow.next { right: 6px; }

.carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.carousel-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--color-grey-300); border: none; padding: 0;
  cursor: pointer; transition: all 0.3s ease;
}
.carousel-dot:hover { background: var(--color-concrete); transform: scale(1.2); }
.carousel-dot.active { background: var(--brand-accent); width: 32px; border-radius: 6px; }

.carousel-slide .slide-link {
  display: inline-block; margin-top: 1rem; padding: 0.75rem 1.5rem;
  background: var(--brand-primary); color: #fff; text-decoration: none;
  border-radius: 4px; font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s ease; border: 2px solid transparent;
}
.carousel-slide .slide-link:hover {
  background: color-mix(in srgb, var(--brand-primary) 85%, black);  /* was ghost #4a7c59 */
  transform: translateY(-2px); box-shadow: var(--shadow-btn);
}
/* REMOVED dead code: .slide-link.outline / .subtle / .arrow — three unused
   "Alternative Style" experiments (no markup uses them). */

@media (max-width: 1024px) { .carousel-slide { flex: 0 0 calc((100% - 20px) / 2); } }
@media (max-width: 640px) {
  .carousel-wrapper { padding: 0 50px 40px; }
  .carousel-slide { flex: 0 0 100%; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .carousel-dot { width: 10px; height: 10px; }
  .carousel-dot.active { width: 24px; }
}


/* ============================================================
   F. GRID LAYOUTS
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }


/* ============================================================
   G. SERVICE CARDS
   ============================================================ */
.services-grid { padding: var(--section-padding); background: var(--color-white); }
.service-card {
  background: var(--color-white); border: 2px solid var(--brand-primary);
  border-radius: 8px; padding: 3rem 2rem; text-align: center;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px color-mix(in srgb, var(--brand-primary) 20%, transparent); /* was ghost green */
}
.service-card h3 { color: var(--brand-primary); }


/* ============================================================
   H. ABOUT
   ============================================================ */
.about-section { padding: var(--section-padding); background: var(--color-grey-50); }
.about-content { max-width: 800px; margin: 0 auto; }
.intro-text { font-size: 1.2rem; line-height: 1.8; color: var(--color-grey-800); margin-bottom: 1rem; }


/* ============================================================
   I. EXPANDABLE (DETAILS/SUMMARY)  → maps to cc-disclosure in Stage 2
   ============================================================ */
details { margin: 1rem 0; }
summary {
  cursor: pointer; color: var(--brand-primary); font-weight: 600;
  padding: 0.75rem 1rem; background: var(--color-grey-100); border-radius: 4px;
  transition: background 0.3s ease; list-style: none;
  display: flex; align-items: center; gap: 0.5rem;
}
summary::-webkit-details-marker { display: none; }
summary::before { content: "\25BC"; display: inline-block; transition: transform 0.3s ease; font-size: 0.8rem; } /* ▼ was mojibake */
details[open] summary::before { transform: rotate(-180deg); }
summary:hover { background: var(--color-grey-200); }
.expanded-content {
  padding: 1.5rem 1rem;
  background-color: rgb(236 243 243);     /* Stage 2 → token (pale slate tint) */
  border: 1px solid var(--color-grey-200); border-top: none;
  border-radius: 0 0 4px 4px;
}
.read-more-wrapper summary { background: var(--brand-primary); color: var(--color-white); }
.read-more-wrapper summary:hover { background: var(--brand-secondary); }


/* ============================================================
   J. WHY CHOOSE US
   ============================================================ */
.why-choose { padding: var(--section-padding); background: var(--color-white); }
.reason-card {
  background: var(--color-grey-50); border-radius: 8px; padding: 2rem;
  border-left: 4px solid var(--brand-primary); transition: all 0.3s ease;
}
.reason-card:hover { border-left-width: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.reason-card h3 { color: var(--brand-primary); margin-bottom: 1rem; }
.reason-card details { margin-top: 0.5rem; }


/* ============================================================
   K. DETAILED SERVICES (feature-section) + GALLERY TRIGGER
   (gallery-trigger !important war resolved across child+gallery files —
    hidden by default, reveal on hover/.active, NO !important. JS coupling:
    slideshow JS must animate the <img>, not .service-image, or inline opacity
    re-breaks this — see JS rationalisation.)
   ============================================================ */
.services-detailed { padding: var(--section-padding); background: var(--color-grey-50); }
.service-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  margin-bottom: 4rem; padding: 3rem;
  background: var(--color-white); border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); align-items: start;
}
.service-detail.reverse { direction: rtl; }       /* Stage 2 → order swap */
.service-detail.reverse > * { direction: ltr; }
.service-text h2 { text-align: left; font-size: 1.8rem; color: var(--brand-primary); margin-bottom: 1rem; }
.service-intro { font-size: 1.2rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 1rem; }
.service-expanded ul { list-style: none; padding-left: 0; }
.service-expanded li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; }
.service-expanded li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-primary); font-weight: bold; } /* ✓ */
.service-image { position: relative; cursor: pointer; overflow: hidden; border-radius: 8px; }
.service-image img { width: 100%; object-fit: contain; transition: transform 0.3s ease; }
.service-detail:hover .service-image img { transform: scale(1.05); }

.gallery-trigger {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; padding: 12px 24px;
  color: #fff; background: #d1d5db40; border: 2px solid #ffffff50; border-radius: 0;
  font-size: 16px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 5; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery-trigger::before {
  content: ""; width: 24px; height: 20px; background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.service-image:hover .gallery-trigger,
.service-image.active .gallery-trigger { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1.05); }
.service-image::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s ease; pointer-events: none; z-index: 4; }
.service-image:hover::after { background: rgba(0,0,0,0.2); }
@media (max-width: 768px) {
  .gallery-trigger { top: 16px; right: 16px; left: auto; transform: none; opacity: 1; pointer-events: auto; padding: 8px 12px; font-size: 14px; }
  .gallery-trigger::before { width: 18px; height: 16px; }
  .service-image:hover .gallery-trigger { transform: scale(1.05); }
}


/* ============================================================
   L. BUTTONS
   ============================================================ */
.btn {
  display: inline-block; padding: 0.875rem 2rem; font-size: 1rem; font-weight: 600;
  text-decoration: none; border-radius: 4px; transition: all 0.3s ease;
  cursor: pointer; border: none; text-align: center; margin: 0 7px;
}
.btn-primary { background: var(--brand-primary); color: var(--color-white); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn); } /* dropped no-op bg line */
.btn-opaque { background: var(--brand-opaque-15); color: var(--color-white); }
.btn-opaque:hover { background: var(--brand-dark-30); transform: translateY(-2px); box-shadow: var(--shadow-btn); }
/* REMOVED .btn-thompson — referenced undefined --Thompson-primary/--Thompson. */


/* ============================================================
   M. PROJECTS
   ============================================================ */
section.projects { background-color: var(--brand-dark-30); text-align: center; padding: 30px; margin: 30px 0; }


/* ============================================================
   N. CONTACT
   ============================================================ */
.contact-section { padding: var(--section-padding); background: var(--brand-dark); color: var(--color-white); }
.contact-section h2 { color: var(--color-white); }
.contact-intro { text-align: center; font-size: 1.2rem; margin-bottom: 2rem; color: var(--color-grey-100); }
/* REMOVED dead commented-out .contact-grid grid rules. */
.contact-card { background: var(--brand-opaque); padding: 2rem; border-radius: 8px; text-align: center; }
.contact-card h3 { color: var(--color-white); margin: 1rem 0 0.25rem; }
.role { color: var(--brand-accent); font-weight: 600; }
.contact-details { text-align: center; margin: 2rem 0; }
.contact-details p { margin: 0.5rem 0; font-size: 1.1rem; }
.contact-details a { color: var(--brand-accent); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--color-white); }


/* ============================================================
   O. RESPONSIVE (global) — breakpoints 768 / 480
   (NB three breakpoint systems exist: carousel 640/1024 (E), global 768/480.
    Stage 2 should consider consolidating to one scale.)
   ============================================================ */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .tagline { font-size: 1.2rem; }
  h2 { font-size: 2rem; }
  .carousel-wrapper { padding: 2rem; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .service-detail { grid-template-columns: 1fr; gap: 0; padding: 2rem; }
  .service-detail.reverse { direction: ltr; }   /* alternation off on mobile */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
}
@media (max-width: 480px) {
  :root { --section-padding: 3rem 1rem; }
  .hero-agri { min-height: 50vh; }
  .hero-content h1 { font-size: 2rem; }
  .carousel-track { height: 250px; }
  .service-detail { padding: 1.5rem; margin-bottom: 2rem; }
  .container { padding: 0; }
}


/* ============================================================================
   APPENDED — sections 810-1323 (the back half I missed on first read).
   Includes the LIVE versions of Why-Choose (.why-choose-improved) and the
   full Company-Relationship/org-tree. NOTE: this means the EARLIER .why-choose
   / .reason-card block (section J above) is the OLD/UNUSED version — Stage 2
   drops it in favour of .why-choose-improved here.
   ============================================================================ */

/* ---- HERO content overlay (the dark slate band over the hero image) ---- */
.hero-content {
  background-color: var(--brand-dark-50);
  padding: 30px 200px;
  position: relative;
  margin-top: 347px;                /* Stage 2: large magic number — revisit */
}
.hero-content h1::after {           /* green accent underline */
  content: ''; display: block; width: 80px; height: 4px;
  background: var(--brand-primary); margin-top: 15px;
}
@media (max-width: 768px) {
  .hero-content { padding: 20px 40px; max-width: none; }
}

/* ---- Smooth scroll (FIXED: was `* { scroll-behavior: smooth !important }` —
   a universal !important. Scoped to html, where it belongs.) ---- */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
.service-detail { scroll-margin-top: 100px; }

/* ---- PARALLAX REVEAL (motion section — Stage 2: → motion module; background-
   attachment:fixed is the known mobile-perf offender, flag for review) ---- */
.parallax-reveal {
  position: relative; min-height: 60vh;
  background: url('/images/reveal-photo.jpg') center / cover no-repeat fixed;
  overflow: hidden;
  width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
}
.reveal-content {
  position: relative; background-color: rgba(255,255,255,0.3);
  padding: 60px 40px; margin: 100px auto; max-width: 800px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.reveal-content h2, .reveal-content h4 { margin-top: 0; color: #fff; text-align: center; }
.reveal-content h2 { font-style: italic; }
.reveal-content h4 { font-family: var(--font-primary) !important; font-style: normal; } /* intentional sans */
.reveal-content p { color: #666; line-height: 1.6; }

/* FLAG: `section.services-detailed a.btn { visibility:hidden }` — a deliberately
   hidden button. Kept (same look) but flagged: intentional, or leftover? */
section.services-detailed a.btn { visibility: hidden; }

/* ---- WHY CHOOSE US (LIVE version) — overlapping image pair + features list
   with circular badge icons + gold section-label eyebrow ---- */
.why-choose-improved { padding: 5rem 2rem; background: var(--color-grey-50); }
.why-choose-wrapper {
  display: grid; grid-template-columns: 45% 50%; gap: 5%;
  align-items: center; max-width: 1200px; margin: 0 auto;
}
.why-choose-images { position: relative; height: 100%; min-height: 600px; }
.image-main {
  position: relative; width: 100%; height: 70%; border-radius: 8px;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  display: flex; justify-content: flex-start;
}
.image-main img { height: 100%; width: auto; object-fit: cover; object-position: left center; }
.image-secondary {
  position: absolute; bottom: 0; right: -20px; width: 60%; height: 45%;
  border-radius: 8px; overflow: hidden; background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2); border: 4px solid #fff;
}
.why-choose-content { padding: 2rem 0; }
.why-choose-content .read-more-wrapper { margin: 0 30%; }
@media (max-width: 968px) { .why-choose-content .read-more-wrapper { margin: 0; width: 100%; } }
.section-label {                    /* gold eyebrow "WHY CHOOSE US" */
  color: var(--brand-accent); font-size: 2rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; text-align: left;
}
.why-choose-content h2 { font-size: 2.5rem; color: var(--brand-dark); margin: 1rem 0 1.5rem; }
.features-list { display: flex; flex-direction: column; gap: 2rem; }
.feature-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.feature-item img { flex-shrink: 0; width: 85px; height: auto; }   /* circular green badge */
.feature-icon svg { width: 28px; height: 28px; }
.feature-text h3 { font-size: 1.25rem; color: var(--brand-dark); margin-bottom: 0.5rem; font-weight: 700; }
.feature-text p { font-size: 1rem; line-height: 1.7; color: var(--brand-dark); margin: 0; }

@media (max-width: 968px) {
  .why-choose-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .why-choose-images { min-height: 400px; order: 2; }
  .why-choose-content { order: 1; }
  .why-choose-content h2 { font-size: 2rem; text-align: center; }
  .section-label, .intro-text { text-align: center; }
}
@media (max-width: 640px) {
  .why-choose-improved { padding: 3rem 1rem; }
  .feature-item { flex-direction: column; align-items: center; text-align: center; }
  .feature-icon { width: 50px; height: 50px; }
  .why-choose-images { min-height: 300px; }
  .image-secondary { right: -10px; width: 50%; height: 40%; }
}

/* ---- COMPANY RELATIONSHIP / ORG TREE ----
   CORRECTED FINDING: the BLUE is INTENTIONAL — Thompson Ltd is the PARENT brand
   (blue #00549f); its divisions (incl. ThompsonAgri) are green. The structure
   deliberately shows blue parent → green divisions. Blue is KEPT, named, applied.
   This block is bespoke Tier-3 AND carries its own (parent) brand colour. ---- */
.company-relationship { padding: 5rem 0; background: #fff; }
.company-relationship h2 { color: var(--brand-dark); margin-bottom: 2rem; text-align: center; }

/* NB: .intro-text is defined 3× across About / why-choose / here with different
   values — they cascade-collide. Stage 2: scope them (.about .intro-text etc). */
.company-relationship .intro-text {
  font-size: 1.2rem; line-height: 1.8; color: var(--brand-dark);
  text-align: center; max-width: 800px; margin: 0 auto 3rem;
}

.relationship-details { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.relationship-text h3 { color: var(--brand-primary); margin: 2rem 0 1rem; }
.relationship-text h3:first-child { margin-top: 0; }
.relationship-text p { line-height: 1.8; color: var(--brand-dark); margin-bottom: 1rem; } /* FIXED: was var(var(--brand-dark)) — invalid nested var */

.cta-block {
  margin-top: 2.5rem; padding: 2rem; background: var(--color-white);
  border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); text-align: center;
}
.cta-block p { margin-bottom: 1.5rem; }

/* FIXED: base rule was `btn-secondary {` (missing leading dot) → never matched.
   Restored to .btn-secondary so the base style actually applies. */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 2rem; background: var(--brand-primary); color: var(--color-white);
  text-decoration: none; border-radius: 4px; font-weight: 600; transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--brand-secondary); transform: translateX(4px); }
.btn-secondary .arrow { transition: transform 0.3s ease; }
.btn-secondary:hover .arrow { transform: translateX(4px); }

.relationship-visual { display: flex; flex-direction: column; gap: 2rem; }
.company-structure { background: var(--color-white); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; }
.parent-company, .division-box { padding: 1.5rem; border-radius: 6px; margin: 1rem 0; }

/* PARENT = Thompson Ltd = BLUE (intentional parent brand) */
.parent-company { background: var(--Thompson-primary); color: var(--color-white); }
.parent-company h4 {
  background: var(--Thompson-primary); color: var(--color-white);
  font-family: var(--font-primary) !important;   /* intentional sans label */
  font-size: 1rem; margin-bottom: 0.5rem;
}
.division-arrow { font-size: 2rem; color: var(--brand-primary); margin: 0.5rem 0; }

/* DIVISIONS = green (ThompsonAgri etc.) */
.division-box { background: var(--brand-primary); color: var(--color-white); }
.division-box h4 {
  color: var(--color-white);
  font-family: var(--font-primary) !important;   /* intentional sans label */
  font-size: 1.3rem; margin-bottom: 0.5rem;
}
.company-desc { margin: 0; font-size: 0.95rem; opacity: 0.9; }

.benefits-list { background-color: rgb(236 243 243); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.benefits-list h4 { color: var(--brand-primary); margin-bottom: 1rem; text-align: center; }
.benefits-list ul { list-style: none; padding: 0; }
.benefits-list li { padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem; line-height: 1.6; color: var(--brand-dark); }
.benefits-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--brand-primary); font-weight: bold; font-size: 1.2rem; } /* ✓ — 4th mojibake fixed */

@media (max-width: 968px) {
  .relationship-details { grid-template-columns: 1fr; gap: 2rem; }  /* dropped !important (no competing rule once clean) */
  .company-relationship { padding: 3rem 1rem; }
}
@media (max-width: 640px) {
  .company-relationship h2 { font-size: 2rem; }
  .company-relationship .intro-text { font-size: 1.1rem; }
  .cta-block { padding: 1.5rem; }
  .btn-secondary { display: flex; width: 100%; justify-content: center; }
}

/* ---- CAROUSEL SLIDE tail (push link to bottom — merge into section E at Stage 2) ---- */
.carousel-slide { display: flex; flex-direction: column; }
.carousel-slide .slide-link { margin-top: auto; }
