/* Fikile Solutions - site styles (all public pages).
   Rules that only apply to one page are prefixed with its body class,
   e.g. body.page-contact. The admin dashboard uses admin.css. */

:root {
  --brand: #1497b3;
  --brand-dark: #0f7a92;
  --text: #1a1a1a;
  --muted: #000;
  --border: #d7e1e5;
  --bg: #ffffff;
  --card: #ffffff;
}

/* contact page uses its own value */
body.page-contact {
  --muted: #5b6770;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--brand);
  color: #fff;
  font-size: 0.85rem;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-links {
  display: flex;
  align-items: center;
}

.top-links a {
  color: #fff;
  text-decoration: none;
  padding: 2px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}

.top-links svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.top-links a:first-child {
  padding-left: 0;
}

.top-links a:last-child {
  border-right: none;
}

.top-links a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-links a {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.social-links a:hover {
  background: var(--brand-dark);
  color: #fff;
}

.social-links svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  /* 1fr | menu | 1fr keeps the main menu centred on the page */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  grid-column: 1;
  justify-self: start;
}

.main-nav {
  grid-column: 2;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-divider {
  width: 1px;
  height: 20px;
  background: #c5ced3;
}

.cart-link {
  color: var(--text);
  display: flex;
  transition: color 0.2s;
}

.cart-link:hover {
  color: var(--brand);
}

.cart-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.search-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 6px 0;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s;
}

.search-toggle:hover {
  color: var(--brand);
}

.search-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  display: block;
}

.search-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.search-panel.open {
  display: block;
}

.search-panel form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  gap: 8px;
}

.search-panel input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}

.search-panel input:focus {
  border-color: var(--brand);
}

.search-panel button {
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 4px;
  padding: 0 20px;
  cursor: pointer;
}

.search-panel button:hover {
  background: var(--brand-dark);
}

.logo-name {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-label {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 2.2;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 6px;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  fill: var(--brand);
  display: block;
}

/* switch to the ☰ menu below 900px */
@media (max-width: 900px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .header-actions {
    order: 1;
    margin-left: auto;
    gap: 12px;
  }

  .menu-toggle {
    display: block;
    order: 2;
    margin-left: 8px;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    padding-top: 12px;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 600px) {
  .top-bar-inner {
    height: auto;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .top-bar {
    font-size: 13px;
  }

  .top-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .top-links a {
    padding: 0;
    border-right: none;
  }

  .brand-label {
    font-size: 0.95rem;
    margin-left: 12px;
    padding-left: 12px;
  }
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  min-height: 200px;
}

/* ---------- Hero slider ----------
   split slides: solid brand panel with centred text on the left,
   photo on the right; thin arrows on the outer edges */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-photo {
  background-image: var(--photo);
  background-size: cover;
  background-position: center 30%;
}

.slide-1 {
  --photo: url("img/slider1.jpg");
}

.slide-2 {
  --photo: url("img/slider2.jpg");
}

.slide-3 {
  --photo: url("img/slider3.jpeg");
}

.slide-4 {
  --photo: url("img/market.jpeg");
}

.slide-3 .slide-photo {
  background-position: center 65%;
}

.slide-content {
  background: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 40px 72px 56px;
}

.slide-content>* {
  max-width: 460px;
}

/* slanted tag */
.slide-label {
  --slant: 8px;
  position: relative;
  z-index: 0;
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-dark);
  padding: 6px 22px 6px 18px;
  margin-bottom: 16px;
}

.slide-label::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

.slide h1,
.slide h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}

.slide p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.slide-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
}

.hero-btn {
  --cut: 12px;
  /* size of the cut-off top-right corner */
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 28px 12px 24px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--brand-dark);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.hero-btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: #fff;
}

.hero-btn.outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero-btn.outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--brand-dark);
}

/* the clip removes the border at the corner, so draw it along the cut */
.hero-btn.outline::after {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(100% - var(--cut) + 1px);
  /* + the 1px border */
  width: calc(var(--cut) * 1.4142 + 1px);
  height: 1px;
  background: rgba(255, 255, 255, 0.85);
  transform-origin: 0 0;
  transform: rotate(45deg);
}

.hero-btn.outline:hover::after {
  background: #fff;
}

/* small square arrows (also used by the infrastructure slider) */
.hero-arrow {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* hero: thin chevrons on the far left and far right */
.hero .hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 56px;
  border: none;
  background: none;
  font-size: 44px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.hero .hero-arrow:hover {
  background: none;
  color: #fff;
}

.hero .hero-arrow.prev {
  left: 12px;
}

.hero .hero-arrow.next {
  right: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }
}

@media (max-width: 900px) {
  .slide-content {
    padding: 32px 48px 52px;
  }

  .slide h1,
  .slide h2 {
    font-size: 32px;
  }
}

/* phones: photo on top, text panel underneath */
@media (max-width: 700px) {
  .hero {
    height: 580px;
  }

  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: 210px 1fr;
  }

  .slide-photo {
    order: -1;
  }

  .slide-content {
    padding: 24px 20px 48px;
  }

  .slide h1,
  .slide h2 {
    font-size: 27px;
  }

  .slide p {
    font-size: 13px;
    margin-bottom: 22px;
  }

  .hero .hero-arrow {
    top: 105px;
  }
}

/* ---------- Home: about ---------- */
.home-about {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* vertical blue line down the left, with a gap before the photo */
.home-about-image {
  position: relative;
  padding-left: 34px;
}

.home-about-image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}

.home-about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

:where(body.page-index) .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.home-about h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.home-about p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

:where(body.page-index) .about-points {
  list-style: none;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

@media (max-width: 420px) {
  :where(body.page-index) .about-points {
    grid-template-columns: 1fr;
  }
}

:where(body.page-index) .about-points li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  margin-bottom: 4px;
}

/* small teal square, centred on the first line of text */
:where(body.page-index) .about-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

.cut-btn {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  padding: 12px 28px 12px 24px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s;
}

.cut-btn:hover {
  background: var(--brand-dark);
}

.btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.cut-btn:hover .btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 820px) {
  .home-about {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-about-image {
    padding-left: 20px;
  }
}

/* ---------- Home: services ---------- */
.home-services {
  margin-bottom: 80px;
}

/* dark band; the cards below overlap its lower edge */
.services-band {
  /* blue on the left, darkening towards black on the right */
  background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 40%, #0c5a6b 72%, #0a1a1f 100%);
  color: #fff;
  padding: 64px 20px 150px;
}

.services-intro {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.services-intro h2 {
  max-width: 560px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
}

.services-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

.explore-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.explore-link span {
  transition: transform 0.2s;
}

.explore-link:hover {
  text-decoration: underline;
}

.explore-link:hover span {
  transform: translateX(4px);
}

.service-cards {
  position: relative;
  max-width: 1100px;
  margin: -110px auto 0;
  padding: 0 20px;
  /* 4 per row; a shorter last row stays centred */
  --per-row: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  box-sizing: content-box;
}

.service-cards>.service-card {
  width: calc((100% - (var(--per-row) - 1) * 26px) / var(--per-row));
}

.service-card {
  display: block;
  background: #0f7a92;
  border: 1px solid #e3e8ea;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

/* last box: text only, same size as the photo cards */
.service-card.view-all-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: box-shadow 0.2s, background 0.2s;
}

.service-card.view-all-card:hover {
  background: var(--brand);
}

.view-all-card .btn-arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s;
}

.view-all-card:hover .btn-arrow {
  transform: translateX(4px);
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* placeholder shows until the photo exists; the img removes itself if missing */
.service-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2f3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

.service-card-image svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.service-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  transition: color 0.2s;
}

.service-card:hover h3 {
  color: var(--brand);
}

@media (max-width: 900px) {
  .services-intro {
    flex-direction: column;
    gap: 16px;
  }

  .services-intro h2 {
    font-size: 24px;
  }

  .service-cards {
    --per-row: 2;
  }
}

@media (max-width: 560px) {
  .services-band {
    padding: 44px 16px 130px;
  }

  .services-intro h2 {
    font-size: 21px;
  }

  .service-cards {
    --per-row: 1;
    padding: 0 16px;
    gap: 20px;
  }

  .service-cards>.service-card {
    width: 100%;
  }
}

/* ---------- Home: our solutions (photo gallery) ---------- */
.home-solutions {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 80px;
  box-sizing: content-box;
}

.solutions-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.solutions-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.solutions-head p {
  font-size: 13px;
  color: var(--muted);
}

/* mix of big (2x2), tall (1x2) and wide (2x1) tiles; "dense" fills any gaps */
.solutions-gallery {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: none;
  background: #eef2f3;
  cursor: zoom-in;
  font: inherit;
}

.gallery-tile.big {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile.wide {
  grid-column: span 2;
}

.gallery-tile.tall {
  grid-row: span 2;
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  transform: scale(1.06);
}

.gallery-tile:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

/* small vertical blue bar before each title */
.gallery-caption::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-right: 8px;
  vertical-align: -0.12em;
  background: var(--brand);
}

/* small zoom icon, shown on hover */
.gallery-tile::after {
  content: "+";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--brand);
  color: #fff;
  font-size: 22px;
  line-height: 32px;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
  opacity: 1;
  transform: none;
}

/* full-screen viewer */
.lightbox {
  border: none;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: transparent;
}

:where(body.page-index) .lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure {
  text-align: center;
}

.lightbox-figure img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox-caption {
  color: #fff;
  font-size: 14px;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--brand);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav:hover {
  background: var(--brand-dark);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.lightbox.single .lightbox-nav,
.lightbox.single .lightbox-counter {
  display: none;
}

@media (max-width: 820px) {
  .solutions-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 125px;
  }

  .solutions-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .home-solutions {
    padding: 0 16px 60px;
  }

  .solutions-gallery {
    grid-auto-rows: 100px;
    gap: 10px;
  }

  .gallery-caption {
    font-size: 13px;
    padding: 30px 12px 10px;
  }

  .lightbox-figure img {
    max-width: 100vw;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }
}

/* ---------- Home: partners ---------- */
.home-partners {
  background: #fafafaff;
  padding: 52px 20px;
}

.partners-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.partners-head {
  max-width: 640px;
  margin: 0 auto 32px;
  text-align: center;
}

.partners-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

/* all logos on one line on big screens */
.partner-logos {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .partner-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partner-logo {
  height: 120px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 820px) {
  .partners-head h2 {
    font-size: 26px;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .home-partners {
    padding: 56px 16px;
  }

  .partner-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .partner-logo {
    height: 96px;
  }
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  min-width: 0;
  /* lets cards shrink inside narrow grid columns */
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #c5d3d8;
}

.product-card:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
}

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}

.product-body h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 6px;
}

.product-body h3 a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

/* the name link covers the whole card, making all of it clickable */
.product-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  /* price and button stack when the card is very narrow */
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
}

.add-to-cart-btn {
  position: relative;
  z-index: 1;
  /* sits above the card-wide product link */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.add-to-cart-btn:hover {
  background: var(--brand-dark);
}

.add-to-cart-btn.added {
  background: #1e8e5a;
}

.add-to-cart-btn:disabled {
  background: #e3e9eb;
  color: #6f7c82;
  cursor: default;
}

.add-to-cart-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-chip {
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.tag-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tag-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.shop-message {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 48px 0;
}

.shop-message a {
  color: var(--brand);
}

/* ---------- Home: our products ---------- */
.home-products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px 80px;
  box-sizing: content-box;
}

.home-products[hidden] {
  display: none;
}

.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.products-head h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.view-all-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.view-all-link span {
  transition: transform 0.2s;
}

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

.view-all-link:hover span {
  transform: translateX(4px);
}

.home-products .product-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .home-products .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .home-products {
    padding: 56px 16px 64px;
  }

  .products-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .products-head h2 {
    font-size: 26px;
  }

  .home-products .product-grid {
    gap: 12px;
  }

  .home-products .product-body {
    padding: 12px;
  }
}

/* ---------- Home: newsletter ---------- */
.home-newsletter {
  background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 55%, #0c5a6b 100%);
  color: #fff;
  padding: 56px 20px;
}

.newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.newsletter-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-newsletter h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.home-newsletter p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.newsletter-form .newsletter-row {
  display: flex;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: none;
  background: #fff;
  color: var(--text);
  outline: none;
}

.newsletter-form input[type="email"]:focus {
  box-shadow: inset 0 0 0 2px #000;
}

.newsletter-form button {
  flex-shrink: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: none;
  padding: 0 28px 0 24px;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: #1f2a2e;
}

.newsletter-form button:disabled {
  opacity: 0.7;
  cursor: default;
}

/* spam trap: hidden from people, visible to bots */
.newsletter-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-note {
  font-size: 12px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.newsletter-message {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
}

.newsletter-message.success {
  background: rgba(255, 255, 255, 0.95);
  color: #1e6b47;
}

.newsletter-message.error {
  background: rgba(255, 255, 255, 0.95);
  color: #c0392b;
}

@media (max-width: 820px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .home-newsletter {
    padding: 44px 16px;
  }

  .newsletter-intro {
    flex-direction: column;
    gap: 14px;
  }

  .newsletter-form .newsletter-row {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form button {
    padding: 14px 24px;
  }
}

/* ---------- Cart count and pop-up ---------- */
.cart-link {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

.cart-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 40px);
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  padding: 12px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.cart-toast.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.cart-toast a {
  color: #7fd3e6;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Footer ----------
   left: logo + about at the top, "Connect with us" at the bottom;
   right: three link columns, copyright underneath */
.site-footer {
  background: #000;
  color: #c9d6db;
  font-size: 13px;
}

.footer-inner {
  max-width: 990px;
  margin: 0 auto;
  padding: 36px 20px 34px;
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 60px;
}

.footer-brand,
.footer-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}

.footer-side {
  padding-top: 14px;
}

.footer-logo {
  display: block;
  width: fit-content;
}

/* Logo is black + teal; invert + hue-rotate turns the black white and keeps the teal */
.footer-logo img {
  width: 120px;
  height: auto;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}

.footer-about {
  margin-top: 22px;
  max-width: 370px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #fff;
}

.site-footer h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 13px;
  font-size: 13.5px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* contact rows with round white icon badges */
.footer-connect h4 {
  margin-bottom: 26px;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
  color: #fff;
  line-height: 1.4;
}

.footer-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 14px;
  height: 14px;
  fill: var(--brand);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 0;
}

.footer-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--brand);
  color: #fff;
}

.footer-social svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* two link columns; "What We Offer" items are spaced a little more */
.footer-columns {
  display: grid;
  grid-template-columns: 234px 1fr;
}

.footer-columns>div:last-child li {
  margin-bottom: 16px;
}

.footer-legal {
  font-size: 12.5px;
  line-height: 1.4;
  color: #fff;
}

.footer-legal a:hover {
  color: var(--brand);
}

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

.product-thumb {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #5b6770;
  stroke-width: 1.6;
}

.product-name {
  display: block;
  color: #fff;
  font-weight: 500;
  line-height: 1.3;
}

.product-link {
  font-size: 12px;
}

.site-footer .product-link {
  color: var(--brand);
}

.site-footer .product-link:hover {
  color: #fff;
}

.footer-product-price {
  display: block;
  font-size: 12px;
  color: #fff;
  opacity: 0.8;
}

.footer-products-empty {
  color: #8fa3ab;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    gap: 28px;
  }

  .footer-side {
    padding-top: 0;
  }

  .footer-contact li {
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .page-content {
    padding: 32px 16px;
  }

  .footer-inner {
    padding: 36px 16px 28px;
  }

  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ---------- Breadcrumb ---------- */
/* photo background with a black overlay (darker on the left, behind the text) */
.page-banner {
  box-shadow: inset 0 0 0 2000px rgba(0, 0, 0, 0.863);
  background-image: url("img/breadcrumb.jpeg");
  background-size: cover;
  background-position: center 60%;
  color: #fff;
}

.page-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 20px 74px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.breadcrumb li+li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 12px 1px 10px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  border-right: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.page-banner h1 {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-banner h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--brand);
  margin-top: 8px;
}

/* ---------- About intro ---------- */
.about-intro {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  aspect-ratio: 4 / 3;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9aa7ad;
  font-size: 12px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.about-image svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

:where(body.page-about) .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.about-text h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.about-text p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

:where(body.page-about) .about-points {
  list-style: none;
  margin-top: 4px;
}

:where(body.page-about) .about-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

/* small teal square, centred on the first line of text */
:where(body.page-about) .about-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

/* ---------- Milestones ---------- */
.milestones {
  max-width: 960px;
  margin: 72px auto 0;
}

.milestones h2 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
}

.milestone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.milestone-card {
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 28px;
}

.milestone-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

:where(body.page-about) .btn {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  padding: 12px 22px;
  transition: background 0.2s;
}

:where(body.page-about) .btn:hover {
  background: var(--brand-dark);
}

@media (max-width: 820px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .milestone-grid {
    grid-template-columns: 1fr;
  }

  .milestones {
    margin-top: 48px;
  }
}

@media (max-width: 520px) {
  .page-banner-inner {
    padding: 48px 16px 52px;
  }

  .page-banner h1 {
    font-size: 2.2rem;
  }
}

/* ---------- Services ---------- */
.services-list {
  max-width: 960px;
  margin: 0 auto;
}

.service {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.service:first-child {
  padding-top: 0;
}

.service:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Placeholder shows until the photo file exists; the img removes itself if missing */
.service-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #9aa7ad;
  font-size: 12px;
  overflow: hidden;
}

.service-image svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.service-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.service-points {
  list-style: none;
}

.service-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* small teal square, centred on the first line of text */
.service-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

@media (max-width: 820px) {
  .service {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ---------- Shop layout and sidebar ---------- */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
  align-items: start;
}

.shop-layout.is-empty {
  grid-template-columns: 1fr;
}

.shop-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.sidebar-search,
.price-inputs input {
  width: 100%;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #fff;
  outline: none;
}

.sidebar-search:focus,
.price-inputs input:focus {
  border-color: var(--brand);
}

.category-list {
  list-style: none;
}

.category-list button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
}

.category-list button:hover,
.category-list button.active {
  color: var(--brand);
}

.category-list button.active {
  font-weight: 600;
}

.category-count {
  font-size: 11px;
  font-weight: 500;
  color: #6f7c82;
  background: #f1f5f6;
  padding: 1px 8px;
}

.category-list button.active .category-count {
  background: var(--brand);
  color: #fff;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.clear-filters {
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.shop-count {
  font-size: 13px;
  color: var(--muted);
  margin-right: auto;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.sort select {
  font: inherit;
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.filters-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.filters-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .shop-sidebar {
    display: none;
    position: static;
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid var(--border);
  }

  .shop-sidebar.open {
    display: block;
  }

  .filters-toggle {
    display: inline-flex;
  }
}

/* ---------- Product page ---------- */
.product-detail {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-image {
  aspect-ratio: 1 / 1;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

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

.detail-image svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.detail-info .product-category {
  display: inline-block;
  text-decoration: none;
  margin-bottom: 8px;
}

.detail-info .product-category:hover {
  text-decoration: underline;
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
}

.stock-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  margin-bottom: 20px;
}

.stock-status.in {
  background: #e6f5ee;
  color: #1e8e5a;
}

.stock-status.out {
  background: #fdf1f0;
  color: #c0392b;
}

.detail-desc {
  font-size: 14px;
  color: var(--muted);
  white-space: pre-line;
  margin-bottom: 20px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.detail-label {
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

:where(body.page-product) .btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: 1px solid var(--brand);
  text-decoration: none;
  padding: 11px 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

:where(body.page-product) .btn:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Quantity picker ---------- */
.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: #fff;
}

.qty-btn {
  width: 34px;
  border: none;
  background: none;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

.qty-btn:hover {
  color: var(--brand);
  background: #f5f9fa;
}

.qty input {
  width: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty input:focus {
  outline: none;
  background: #f5f9fa;
}

.detail-buy {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.detail-buy .qty-btn {
  width: 40px;
}

.detail-buy .add-to-cart-btn {
  font-size: 14px;
  padding: 12px 24px;
}

/* ---------- Gallery ---------- */
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f5f9fa;
  border: 1px solid var(--border);
  overflow: hidden;
}

.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
}

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

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s, color 0.2s;
}

.gallery-nav:hover {
  background: var(--brand);
  color: #fff;
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  background: #f5f9fa;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

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

.gallery-thumb:hover {
  opacity: 1;
}

.gallery-thumb.active {
  border-color: var(--brand);
  opacity: 1;
}

:where(body.page-product) .lightbox::backdrop {
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-inner img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
}

.lightbox .gallery-nav {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}

.lightbox .gallery-nav:hover {
  background: var(--brand);
}

.lightbox .gallery-nav.prev {
  left: 20px;
}

.lightbox .gallery-nav.next {
  right: 20px;
}

.lightbox .gallery-counter {
  right: auto;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .lightbox-inner img {
    max-width: 100vw;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related {
  max-width: 1000px;
  margin: 64px auto 0;
}

.related h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
}

@media (max-width: 820px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- Cart page ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto 110px 28px;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:first-child {
  border-top: 1px solid var(--border);
}

.cart-item.is-unavailable .cart-thumb,
.cart-item.is-unavailable .cart-line-total {
  opacity: 0.45;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  background: #f5f9fa;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #9aa7ad;
}

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

.cart-thumb svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart-name {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.cart-name:hover {
  color: var(--brand);
}

.cart-unit {
  font-size: 13px;
  color: var(--muted);
}

.cart-warning {
  font-size: 12px;
  color: #c0392b;
}

.cart-line-total {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.cart-remove {
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: #8a969b;
  cursor: pointer;
}

.cart-remove:hover {
  color: #c0392b;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
}

.cart-actions a {
  color: var(--brand);
  text-decoration: none;
}

.cart-actions a:hover {
  text-decoration: underline;
}

.link-btn {
  font: inherit;
  font-size: 13px;
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.cart-summary {
  position: sticky;
  top: 20px;
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 24px;
}

.cart-summary h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 12px;
}

.summary-note {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 18px;
}

.order-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.order-form label {
  font-size: 12px;
  font-weight: 500;
}

.order-form input,
.order-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--brand);
}

.order-form textarea {
  min-height: 70px;
  resize: vertical;
}

.btn-block {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-block:hover {
  background: var(--brand-dark);
}

.btn-block:disabled {
  background: #c5ced3;
  cursor: default;
}

.order-sent {
  margin-top: 14px;
  font-size: 13px;
  background: #e6f5ee;
  color: #1e6b47;
  padding: 12px;
}

.order-sent .link-btn {
  display: block;
  margin-top: 8px;
  color: #1e6b47;
}

.cart-empty {
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0;
}

.cart-empty p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 18px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .cart-item {
    grid-template-columns: 60px 1fr auto;
    grid-template-areas:
      "thumb info remove"
      "thumb qty  total";
    gap: 8px 12px;
  }

  .cart-thumb {
    grid-area: thumb;
    width: 60px;
    height: 60px;
  }

  .cart-info {
    grid-area: info;
  }

  .cart-item .qty {
    grid-area: qty;
    justify-self: start;
  }

  .cart-line-total {
    grid-area: total;
    align-self: center;
  }

  .cart-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
  }
}

.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  background: #f4fafa;
  padding: 48px;
}

/* ---------- Contact details ---------- */
.contact-info h2,
.contact-form h2 {
  color: var(--brand);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.info-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 12px;
  margin-bottom: 24px;
}

.info-item h3 {
  grid-column: 2;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.info-row {
  display: contents;
}

.info-row svg {
  grid-column: 1;
  width: 20px;
  height: 20px;
  align-self: center;
  fill: var(--text);
}

.info-row span,
.info-row a {
  grid-column: 2;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.info-row a:hover {
  color: var(--brand);
}

.info-lines {
  grid-column: 2;
  display: flex;
  flex-direction: column;
}

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

:where(body.page-contact) .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

:where(body.page-contact) .field.full {
  grid-column: 1 / -1;
}

:where(body.page-contact) .field label {
  font-size: 12px;
  font-weight: 500;
  color: #000;
}

:where(body.page-contact) .field input,
:where(body.page-contact) .field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

:where(body.page-contact) .field textarea {
  min-height: 110px;
  resize: vertical;
}

:where(body.page-contact) .field input:focus,
:where(body.page-contact) .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20, 151, 179, 0.15);
}

.submit-btn {
  grid-column: 1 / -1;
  justify-self: start;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--brand);
  border: none;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
}

.submit-btn:hover {
  background: var(--brand-dark);
}

@media (max-width: 820px) {

  /* ---------- Responsive ---------- */
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .contact-section {
    padding: 32px 16px;
  }

  .contact-form form {
    grid-template-columns: 1fr;
  }
}

/* ---------- WhatsApp button (added by js/whatsapp.js) ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px 7px 9px;
  background: #25d366;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.whatsapp-float:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #0f7a92;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* soft pulse to draw the eye */
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  animation: whatsapp-pulse 2.4s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
  }

  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float::before {
    animation: none;
  }
}

/* keep the cart's "Added to cart" pop-up above the button */
.cart-toast {
  bottom: 72px;
}

@media (max-width: 520px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    font-size: 12px;
    padding: 6px 12px 6px 8px;
  }

  .whatsapp-float svg {
    width: 18px;
    height: 18px;
  }

  .cart-toast {
    bottom: 62px;
  }
}

/* ---------- Touch screens: bigger tap areas for small controls ----------
   Only on phones/tablets (coarse pointer). Invisible, so nothing looks different;
   each small icon or dot just becomes at least ~24px to tap. */
@media (pointer: coarse) {

  .social-links a,
  .footer-social a {
    position: relative;
  }

  .social-links a::after,
  .footer-social a::after {
    content: "";
    position: absolute;
    inset: -5px;
  }
}

/* =========================================================================
   Solutions dropdown in the main menu
   ========================================================================= */
.main-nav .has-submenu {
  position: relative;
}

.main-nav .caret {
  width: 10px;
  height: 10px;
  margin-left: 4px;
  vertical-align: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 0.2s;
}

.submenu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 40;
  min-width: 240px;
  margin-top: 14px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

/* invisible bridge so the menu stays open while the mouse moves down to it */
.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.main-nav .submenu {
  display: block;
}

.has-submenu:hover>.submenu,
.has-submenu:focus-within>.submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.has-submenu:hover .caret,
.has-submenu:focus-within .caret {
  transform: rotate(180deg);
}

.main-nav .submenu a {
  display: block;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav .submenu a:hover {
  background: #f5f9fa;
  color: var(--brand);
}

@media (max-width: 900px) {
  .submenu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 16px;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu::before {
    display: none;
  }

  .main-nav .caret {
    display: none;
  }

  .main-nav .submenu a {
    padding: 10px 0;
    font-size: 13.5px;
  }
}

/* =========================================================================
   Company sections (agri-business positioning)
   New classes all start with "fx-" so they never clash with older styles.
   ========================================================================= */
.fx-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  box-sizing: content-box;
}

.fx-band {
  background: #f5f9fa;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fx-dark {
  background: linear-gradient(120deg, #071a1f 0%, #0b3f4a 55%, #0f7a92 100%);
  color: #fff;
}

.fx-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}

.fx-dark .fx-eyebrow,
.fx-hero .fx-eyebrow {
  color: #7fd3e6;
}

.fx-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.fx-head.left {
  margin-left: 0;
  text-align: left;
}

.fx-head h2,
.fx-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.fx-head p,
.fx-lead {
  font-size: 16px;
  color: #4a5560;
}

.fx-dark .fx-head p,
.fx-dark .fx-lead,
.fx-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.fx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--brand);
  padding: 13px 28px 13px 24px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background 0.2s;
}

.fx-btn:hover {
  background: var(--brand-dark);
}

.fx-btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.fx-btn:hover .arrow {
  transform: translateX(4px);
}

.fx-btn.ghost {
  background: rgba(255, 255, 255, 0.14);
}

.fx-btn.ghost:hover {
  background: rgba(255, 255, 255, 0.26);
}

.fx-btn.dark {
  background: #000;
}

.fx-btn.dark:hover {
  background: #1f2a2e;
}

.fx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- home hero ---- */
.fx-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(120deg, #071a1f 0%, #0b3f4a 55%, #0f7a92 100%);
}

.fx-hero::before {
  content: "";
  position: absolute;
  right: -180px;
  top: -180px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 151, 179, 0.38), rgba(20, 151, 179, 0) 70%);
}

.fx-hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 20px 96px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.fx-hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
}

.fx-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
}

.fx-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fx-hero-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 20px;
}

.fx-hero-tile svg {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  fill: none;
  stroke: #7fd3e6;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-hero-tile h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fx-hero-tile p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
}

.fx-hero-goal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--brand);
}

.fx-hero-goal strong {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.fx-hero-goal span {
  font-size: 13px;
  line-height: 1.4;
}

/* ---- AGRICULTURE + INFRASTRUCTURE + CLEAN ENERGY + MARKETS ---- */
.fx-equation {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.fx-equation-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.fx-equation .plus {
  color: var(--brand);
  font-size: 22px;
  font-weight: 400;
}

.fx-equation.on-dark {
  background: transparent;
  border: none;
}

.fx-equation.on-dark .fx-equation-inner {
  color: #fff;
  padding-left: 0;
  padding-right: 0;
  justify-content: flex-start;
}

.fx-equation.on-dark .plus {
  color: #7fd3e6;
}

/* ---- image + text ---- */
.fx-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fx-split.reverse .fx-split-media {
  order: 2;
}

.fx-split-media {
  position: relative;
  padding-left: 34px;
}

.fx-split-media::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--brand);
}

.fx-split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.fx-split h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.fx-split p {
  font-size: 15px;
  color: #4a5560;
  margin-bottom: 14px;
}

.fx-list {
  list-style: none;
  margin-top: 6px;
}

.fx-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  margin-bottom: 10px;
}

.fx-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

.fx-dark .fx-list li {
  color: rgba(255, 255, 255, 0.9);
}

.fx-dark .fx-list li::before {
  background: #7fd3e6;
}

.fx-understand {
  display: grid;
  gap: 10px;
  margin: 20px 0 6px;
}

.fx-understand div {
  background: #f5f9fa;
  border-left: 3px solid var(--brand);
  padding: 12px 16px;
  font-size: 14.5px;
}

.fx-understand strong {
  color: var(--brand-dark);
}

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

.fx-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.fx-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.fx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.fx-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.fx-icon {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 151, 179, 0.1);
  color: var(--brand);
  margin-bottom: 18px;
}

.fx-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.fx-card p {
  font-size: 14px;
  color: #4a5560;
  margin-bottom: 16px;
}

.fx-more {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.fx-more .arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.fx-card:hover .fx-more .arrow {
  transform: translateX(4px);
}

/* the "Learn more" link covers the whole card */
.fx-card .fx-more::after {
  content: "";
  position: absolute;
  inset: 0;
}

.fx-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: #1e6b47;
  background: #e6f5ee;
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* cards that overlap the bottom of a band above them */
.fx-overlap {
  position: relative;
  max-width: 1100px;
  margin: -110px auto 0;
  padding: 0 20px;
  box-sizing: content-box;
}

/* ---- clean energy ---- */
.fx-energy-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.fx-quote {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  border-left: 4px solid #7fd3e6;
  padding-left: 20px;
  margin: 22px 0;
}

.fx-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fx-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.fx-chip svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: #7fd3e6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- numbered steps ---- */
.fx-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: fxstep;
}

.fx-step {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px 18px 20px;
}

.fx-step::before {
  counter-increment: fxstep;
  content: counter(fxstep, decimal-leading-zero);
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 12px;
}

.fx-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.fx-step p {
  font-size: 13px;
  color: #4a5560;
}

/* ---- impact ---- */
.fx-impact {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: center;
}

.fx-bignum {
  font-size: 88px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--brand);
}

.fx-bignum small {
  display: block;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
}

.fx-gaps {
  display: grid;
  gap: 12px;
}

.fx-gap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px 18px;
}

.fx-gap .problem {
  font-size: 14px;
  color: #4a5560;
}

.fx-gap .arrow {
  color: var(--brand);
  font-size: 20px;
}

.fx-gap .answer {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ---- commercial model ---- */
.fx-letter {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.fx-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 28px 32px;
  background: var(--brand);
  color: #fff;
}

.fx-callout h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.fx-callout p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

/* ---- challenge -> response ---- */
.fx-challenge-labels,
.fx-challenge {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
}

.fx-challenge-labels {
  padding: 0 20px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #4a5560;
}

.fx-challenges {
  display: grid;
  gap: 10px;
}

.fx-challenge {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--border);
}

.fx-challenge>div {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  font-size: 14.5px;
}

.fx-challenge .c-problem {
  gap: 12px;
  font-weight: 500;
}

.fx-challenge .c-problem::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0392b;
}

.fx-challenge .c-arrow {
  justify-content: center;
  padding: 0;
  color: var(--brand);
  font-size: 20px;
}

.fx-challenge .c-answer {
  background: rgba(20, 151, 179, 0.07);
  font-weight: 700;
  color: var(--brand-dark);
}

/* ---- founder ---- */
.fx-founder {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
}

.fx-founder img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.fx-founder h3 {
  font-size: 22px;
  font-weight: 800;
}

.fx-role {
  display: block;
  margin: 2px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}

.fx-founder p {
  font-size: 14.5px;
  color: #4a5560;
  margin-bottom: 10px;
}

/* ---- technical partner ---- */
.fx-partner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 28px;
}

.fx-partner-logo {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fbfc;
  border: 1px dashed var(--border);
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-dark);
}

.fx-partner-logo img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.fx-partner-logo:has(img) span {
  display: none;
}

.fx-partner h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.fx-partner p {
  font-size: 14.5px;
  color: #4a5560;
  margin-bottom: 10px;
}

/* ---- call to action band ---- */
.fx-cta {
  background: linear-gradient(115deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.fx-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.fx-cta h2 {
  font-size: 26px;
  font-weight: 800;
}

.fx-cta p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.88);
}

/* ---- solutions page ---- */
.fx-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.fx-jump a {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.fx-jump a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.fx-solution {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 20px;
}

.fx-solution:first-child {
  padding-top: 0;
}

.fx-solution:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fx-solution .fx-icon {
  width: 72px;
  height: 72px;
}

.fx-solution .fx-icon svg {
  width: 36px;
  height: 36px;
}

.fx-solution h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.fx-solution p {
  font-size: 15px;
  color: #4a5560;
  margin-bottom: 10px;
}

.fx-solution h4 {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand);
}

/* ---- responsive ---- */
@media (max-width: 960px) {

  .fx-hero-inner,
  .fx-split,
  .fx-energy-grid,
  .fx-impact {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .fx-split.reverse .fx-split-media {
    order: 0;
  }

  .fx-grid,
  .fx-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .fx-solution {
    grid-template-columns: 72px 1fr;
  }

  .fx-solution> :last-child {
    grid-column: 2;
  }

  .fx-hero h1 {
    font-size: 38px;
  }
}

@media (max-width: 600px) {
  .fx-section {
    padding: 56px 16px;
  }

  .fx-hero-inner {
    padding: 60px 16px 68px;
  }

  .fx-hero h1 {
    font-size: 30px;
  }

  .fx-hero p {
    font-size: 15.5px;
  }

  .fx-head h2,
  .fx-title,
  .fx-split h2 {
    font-size: 25px;
  }

  .fx-grid,
  .fx-grid.cols-2,
  .fx-grid.cols-4,
  .fx-steps,
  .fx-chips {
    grid-template-columns: 1fr;
  }

  .fx-bignum {
    font-size: 64px;
  }

  .fx-gap {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .fx-gap .arrow {
    transform: rotate(90deg);
    justify-self: start;
  }

  .fx-challenge-labels {
    display: none;
  }

  .fx-challenge {
    grid-template-columns: 1fr;
  }

  .fx-challenge .c-arrow {
    display: none;
  }

  .fx-founder,
  .fx-partner {
    grid-template-columns: 1fr;
  }

  .fx-founder img {
    max-width: 260px;
  }

  .fx-solution {
    grid-template-columns: 1fr;
  }

  .fx-solution> :last-child {
    grid-column: auto;
  }

  .fx-equation-inner {
    font-size: 12px;
    gap: 6px 10px;
  }

  .fx-split-media {
    padding-left: 20px;
  }

  .fx-cta-inner {
    padding: 44px 16px;
  }

  .fx-overlap {
    padding: 0 16px;
    margin-top: -90px;
  }

  .fx-hero-goal strong {
    font-size: 28px;
  }

  .fx-callout {
    padding: 24px 20px;
  }
}


/* ---------- About: model cards + founder ---------- */
.milestone-card p {
  font-size: 14px;
  color: #4a5560;
  line-height: 1.6;
}

.milestone-card h3+p {
  margin-top: -8px;
}

.about-intro.founder {
  margin-top: 72px;
  grid-template-columns: 220px 1fr;
  gap: 32px;
}

/* portrait frame so the whole founder photo shows, nothing cropped */
.about-intro.founder .about-image {
  aspect-ratio: 2 / 3;
}

@media (max-width: 820px) {
  .about-intro.founder {
    margin-top: 48px;
    grid-template-columns: 1fr;
  }

  .about-intro.founder .about-image {
    max-width: 260px;
  }
}

/* ---------- Solutions: challenges ---------- */
:where(body.page-services) .section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}

.innovation .milestone-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.innovation .milestone-card {
  padding: 20px;
}

@media (max-width: 820px) {
  .innovation .milestone-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .innovation .milestone-grid {
    grid-template-columns: 1fr;
  }
}

/* Solutions: icon in place of a photo (clean energy) */
.service-image>svg:only-child {
  width: 84px;
  height: 84px;
  stroke: var(--brand);
  stroke-width: 1.2;
}

/* ---------- Agricultural infrastructure ---------- */
.home-infra {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px 72px;
  box-sizing: content-box;
}

/* ---------- Clean energy band ---------- */
.energy-band {
  background: linear-gradient(115deg, var(--brand-dark) 0%, var(--brand) 40%, #0c5a6b 72%, #0a1a1f 100%);
  color: #fff;
  padding: 64px 20px;
}

.energy-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 540px) 400px;
  justify-content: center;
  gap: 48px;
  align-items: center;
}

.energy-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.85;
}

.energy-head h2 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
}

/* ---------- Innovation ---------- */
.home-innovation {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px 0;
  box-sizing: content-box;
}

.page-innovation {
  max-width: 960px;
  margin: 72px auto 0;
}

.innov-cols {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
}

.innov-col {
  background: #f9fbfc;
  border: 1px solid var(--border);
  padding: 24px 28px;
}

.innov-col.response {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.innov-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}

.innov-col ul {
  list-style: none;
}

.innov-col li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  margin-bottom: 8px;
}

.innov-col li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: var(--brand);
}

.innov-col.response li::before {
  background: #fff;
}

.innov-arrow {
  align-self: center;
  font-size: 28px;
  color: var(--brand);
}

/* ---------- Technical partner ---------- */
.tech-partner {
  max-width: 900px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: auto 200px 1fr;
  gap: 20px;
  align-items: center;
}

.tech-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand);
}

.tech-logo {
  height: 90px;
}

.partner-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-dark);
}

/* the name is only a stand-in until img/manamuz.png exists */
.tech-logo img+.partner-name {
  display: none;
}

.tech-partner p {
  font-size: 14px;
  color: #4a5560;
}


/* ---------- Solutions page extras ---------- */
.service-points.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.service-quote {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-dark);
  border-left: 3px solid var(--brand);
  padding-left: 12px;
  margin-bottom: 14px;
}


@media (max-width: 900px) {
  .energy-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tech-partner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  .tech-logo {
    width: 200px;
  }
}

@media (max-width: 700px) {
  .innov-cols {
    grid-template-columns: 1fr;
  }

  .innov-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .home-infra {
    padding: 56px 16px;
  }

  .home-innovation {
    padding: 56px 16px 0;
  }

  .energy-band {
    padding: 48px 16px;
  }

  .energy-head h2 {
    font-size: 21px;
  }

  .service-points.two-col {
    grid-template-columns: 1fr;
  }

  .page-innovation {
    margin-top: 48px;
  }
}

/* ---------- Home: infrastructure text + photo slider ---------- */
.infra-wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.infra-text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.infra-text p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.infra-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f3;
}

.infra-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.infra-slide.active {
  opacity: 1;
  visibility: visible;
}

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

/* slanted blue caption, same shape as the hero slide label */
.infra-slide figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 0;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  padding: 8px 24px 8px 18px;
}

.infra-slide figcaption::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.infra-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

@media (max-width: 820px) {
  .infra-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .infra-text h2 {
    font-size: 26px;
  }
}

/* clean energy: bullets under the statement, photo alongside */
.energy-head h2 {
  margin-bottom: 22px;
}

.energy-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 24px;
}

.energy-points li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.energy-points li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: calc(0.75em - 3px);
  width: 6px;
  height: 6px;
  background: #fff;
}

.energy-image {
  width: 100%;
  max-width: 400px;
  justify-self: start;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 480px) {
  .energy-points {
    grid-template-columns: 1fr;
  }
}

/* ---------- Home: impact (big band, stats left, photo right) ---------- */
.impact-band {
  margin: 72px 0;
  background: linear-gradient(100deg, #0a1a1f 0%, #0c5a6b 45%, var(--brand) 100%);
  color: #fff;
  overflow: hidden;
}

.impact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  min-height: 540px;
}

.impact-content {
  padding: 64px 0;
}

.impact-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 36px;
}

.impact-title em {
  display: block;
  font-size: 56px;
  font-weight: 800;
  font-style: italic;
  color: #9fe7f5;
  transform: rotate(-3deg);
  transform-origin: left;
}

.impact-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.impact-main svg {
  width: 26px;
  height: 26px;
}

.impact-main strong {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
}

.impact-main span {
  font-size: 15px;
  font-weight: 500;
  align-self: flex-end;
  padding-bottom: 8px;
}

.impact-sub {
  margin: 16px 0 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.impact-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.impact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
}

.impact-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.impact-main svg,
.impact-list svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* photo fades into the band on its left edge */
.impact-photo {
  position: relative;
  margin-right: -20px;
}

/* transparent cut-out: stands on the bottom edge with a thin white outline */
.impact-photo img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - 24px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff);
}

/* fallback while there is no cut-out: ordinary photo faded into the band */
.impact-photo.no-cutout img {
  top: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%);
  mask-image: linear-gradient(to right, transparent 0%, #000 30%);
}

@media (max-width: 900px) {
  .impact-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .impact-content {
    padding: 52px 0 36px;
  }

  .impact-photo {
    height: 300px;
    margin: 0 -20px;
  }

  .impact-photo.no-cutout img {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 35%);
  }
}

@media (max-width: 520px) {
  .impact-band {
    margin: 56px 0;
  }

  .impact-inner {
    padding: 0 16px;
  }

  .impact-photo {
    margin: 0 -16px;
  }

  .impact-title {
    font-size: 30px;
  }

  .impact-title em {
    font-size: 42px;
  }

  .impact-main strong {
    font-size: 48px;
  }

  .impact-main svg {
    width: 44px;
    height: 44px;
  }

  .impact-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .impact-list li {
    font-size: 15px;
  }

  .impact-list svg {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Innovation intro: stacked title left, text right ---------- */
.innov-intro {
  max-width: 960px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
}

.innov-title {
  color: var(--brand);
  line-height: 0.95;
}

.innov-title span {
  display: block;
  font-size: 40px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.5px;
}

.innov-title em {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 400;
  font-style: italic;
  color: var(--brand-dark);
}

.innov-text p {
  font-size: 14px;
  line-height: 1.7;
  text-align: justify;
  color: var(--text);
}

.innov-text p+p {
  margin-top: 14px;
}

@media (max-width: 700px) {
  .innov-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .innov-title span {
    font-size: 32px;
  }

  .innov-title em {
    font-size: 38px;
  }

  .innov-text p {
    text-align: left;
  }
}

/* home: the intro is the whole innovation section */
.home-innovation .innov-intro {
  margin-bottom: 0;
}

/* wide photo above the innovation intro */
.innov-banner {
  max-width: 960px;
  margin: 0 auto 40px;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  background: #eef2f3;
}

.innov-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}

@media (max-width: 600px) {
  .innov-banner {
    aspect-ratio: 16 / 7;
    margin-bottom: 28px;
  }
}

/* ---------- Home: solutions in action (staggered photos, captions on the corner) ---------- */
.sa-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "head b"
    "a    b"
    "a    c";
  grid-template-rows: auto auto 1fr;
  column-gap: 56px;
}

.sa-head {
  grid-area: head;
  padding: 8px 0 32px;
}

.sa-a {
  grid-area: a;
  align-self: start;
  width: 88%;
}

.sa-b {
  grid-area: b;
  align-self: start;
}

.sa-c {
  grid-area: c;
  align-self: start;
  margin-top: 64px;
  width: 92%;
  justify-self: end;
}

.sa-title {
  color: var(--brand);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 14px;
}

.sa-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--brand-dark);
}

.sa-head p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.sa-item {
  position: relative;
  padding-bottom: 26px;
  /* room for the caption hanging below the photo */
}

.sa-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
}

.sa-a .sa-photo {
  aspect-ratio: 1 / 1;
}

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

/* blue caption box overlapping the photo's bottom-right corner */
.sa-caption {
  position: absolute;
  right: -16px;
  bottom: 0;
  z-index: 1;
  min-width: 170px;
  padding: 12px 18px;
  background: var(--brand-dark);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  pointer-events: none;
}

.sa-caption span,
.sa-caption strong {
  display: block;
}

.sa-caption strong {
  font-weight: 700;
}

@media (max-width: 760px) {
  .sa-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "a" "b" "c";
    grid-template-rows: auto;
    row-gap: 28px;
  }

  .sa-head {
    padding: 0;
  }

  .sa-a,
  .sa-c {
    width: 100%;
    margin-top: 0;
  }

  .sa-a .sa-photo {
    aspect-ratio: 16 / 10;
  }

  .sa-caption {
    right: 0;
  }

  .sa-title {
    font-size: 32px;
  }
}

/* ---------- Home: "Our Products" photo slider ---------- */
.products-head .op-title {
  color: var(--brand);
  font-size: 38px;
  font-weight: 600;
}

.op-title em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--brand-dark);
}

.op-slider {
  position: relative;
  aspect-ratio: 11 / 4;
  overflow: hidden;
  background: linear-gradient(115deg, var(--brand-dark), #0a1a1f);
}

.op-slider .shop-message {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.op-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s;
}

.op-slide.active {
  opacity: 1;
  visibility: visible;
}

.op-slide .op-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* soft shade on the left so the white text stays readable */
.op-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0) 70%);
}

.op-text {
  position: relative;
  z-index: 2;
  padding: 0 9%;
  max-width: 70%;
}

.op-line1,
.op-line2 {
  display: block;
  font-weight: 800;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.op-line1 {
  font-size: 18px;
  color: #9fe7f5;
}

.op-line2 {
  font-size: 44px;
  color: #fff;
  margin-bottom: 24px;
}

.op-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 26px;
  border-radius: 999px;
  background: #9fe7f5;
  color: #06323c;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.op-btn:hover {
  background: #fff;
}

.op-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.op-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 56px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.op-arrow:hover {
  color: #fff;
}

.op-arrow.prev {
  left: 16px;
}

.op-arrow.next {
  right: 16px;
}

.op-dots {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.op-dot.active {
  width: 11px;
  height: 11px;
  background: transparent;
  border: 2px solid #fff;
}

@media (max-width: 820px) {
  .op-slider {
    aspect-ratio: 2 / 1;
  }

  .op-line1 {
    font-size: 15px;
  }

  .op-line2 {
    font-size: 32px;
    margin-bottom: 18px;
  }
}

@media (max-width: 520px) {
  .op-slider {
    aspect-ratio: 3 / 2;
  }

  .products-head .op-title {
    font-size: 30px;
  }

  .op-text {
    padding: 0 48px;
    max-width: 100%;
  }

  .op-slide::before {
    background: rgba(0, 0, 0, 0.4);
  }

  .op-line1 {
    font-size: 13px;
  }

  .op-line2 {
    font-size: 26px;
  }

  .op-arrow {
    width: 32px;
    font-size: 36px;
  }

  .op-arrow.prev {
    left: 6px;
  }

  .op-arrow.next {
    right: 6px;
  }
}

/* jump links land below the header, not under it */
.service[id] {
  scroll-margin-top: 24px;
}

/* ---------- Single solution pages ---------- */
.solution-detail {
  max-width: 960px;
  margin: 0 auto;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 0;
  border-bottom: none;
}

.solution-detail h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.solution-lead {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 18px;
}

.solution-detail .service-points {
  margin-bottom: 4px;
}

@media (max-width: 820px) {
  .solution-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 520px) {
  .solution-detail h2 {
    font-size: 26px;
  }
}
/* ---------- Innovation & Impact page ---------- */
.inno-page {
  max-width: 960px;
  margin: 0 auto;
}

/* 20,000 farmers statistic under the innovation text */
.inno-stat {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
}

.inno-stat svg {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inno-stat-text p {
  font-size: 15px;
  line-height: 1.45;
}

.inno-stat-figure {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0;
}

.inno-stat-figure strong {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: var(--brand);
}

.inno-stat-figure span {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-dark);
}

@media (max-width: 600px) {
  .inno-stat {
    flex-wrap: wrap;
    padding: 20px;
    gap: 12px;
  }

  .inno-stat-figure strong { font-size: 42px; }
  .inno-stat-figure span { font-size: 18px; }
  .inno-stat svg { width: 40px; height: 40px; }
}

/* ---------- Our Model page ---------- */
.model-intro {
  max-width: 960px;
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.model-intro-text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.model-intro-text p {
  font-size: 14px;
  line-height: 1.6;
}

.model-intro-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f3;
}

.model-intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.model-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.model-card {
  background: #f9fbfc;
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  padding: 24px 20px;
}

/* large, faint step number */
.model-letter {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  color: #000;
  opacity: 0.12;
  margin-bottom: 14px;
}

.model-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.model-card p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #4a5560;
}

.model-cta {
  max-width: 960px;
  margin: 48px auto 0;
  padding: 28px 32px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.model-cta p {
  font-size: 16px;
  font-weight: 600;
}

.model-cta .cut-btn {
  background: #fff;
  color: var(--brand-dark);
}

.model-cta .cut-btn:hover {
  background: var(--brand-dark);
  color: #fff;
}

@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .model-intro { grid-template-columns: 1fr; gap: 28px; }
  .model-intro-text h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .model-grid { grid-template-columns: 1fr; }
  .model-cta { padding: 22px 20px; }
}

/* ---------- Solutions page: photo cards linking to each solution ---------- */
.solution-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

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

@media (max-width: 560px) {
  .solution-cards { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Solutions dropdown on small screens: closed until "Solutions" is tapped ---------- */
.main-nav .submenu-all {
  display: none;
}

@media (max-width: 900px) {
  .main-nav .has-submenu:not(.open) > .submenu {
    display: none;
  }

  .main-nav .submenu-all {
    display: block;
  }

  .main-nav .has-submenu > a .caret {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-left: 6px;
    transform: none;
  }

  .main-nav .has-submenu.open > a .caret {
    transform: rotate(180deg);
  }

  /* a tap also counts as hover/focus: keep the desktop dropdown positioning out */
  .main-nav .has-submenu > .submenu,
  .main-nav .has-submenu:hover > .submenu,
  .main-nav .has-submenu:focus-within > .submenu {
    position: static;
    left: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
  }
}

/* ---------- Floating "Quotation" tab (added by js/quote.js) ----------
   vertical tab on the right edge, half-way down the screen */
.quote-float {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 60;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 9px;
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-right: none;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: -4px 4px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s, padding 0.2s;
}

.quote-float:hover {
  background: #0a1a1f;
  padding-right: 13px;
}

.quote-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.quote-float svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 520px) {
  .quote-float {
    padding: 12px 7px;
    font-size: 12px;
    gap: 6px;
  }

  .quote-float svg {
    width: 14px;
    height: 14px;
  }
}

@media print {
  .quote-float { display: none; }
}
