/* ==========================================================================
   Cannaflex Theme — Main Stylesheet
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #1F6656;
  --color-primary-dark: #174d40;
  --color-accent: #C7D9D5;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-error: #FF0000;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-nav: 1rem;

  --container-max: 1320px;
  --section-pad-y: clamp(3rem, 6vw, 7.5rem);
  --section-pad-x: clamp(1rem, 3vw, 2rem);
  --gap: clamp(1.5rem, 3vw, 3rem);

  --radius: 3px;
  --radius-lg: 6px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: 1.6;
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- Utility classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-x);
}

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

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

.text-primary { color: var(--color-primary); }
.text-white   { color: var(--color-white); }
.text-black   { color: var(--color-black); }
.bg-primary   { background-color: var(--color-primary); }
.bg-accent    { background-color: var(--color-accent); }
.bg-white     { background-color: var(--color-white); }
.text-center  { text-align: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}

.split--reverse {
  direction: rtl;
}
.split--reverse > * {
  direction: ltr;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); color: var(--color-primary); }
h3 { font-size: var(--fs-h3); }

p + p { margin-top: 1em; }

.quote {
  font-style: italic;
  font-weight: var(--fw-medium);
  font-size: 1.125rem;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: #555;
  margin-top: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-black);
  border-color: var(--color-black);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}
.btn--white:hover,
.btn--white:focus-visible {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ---------- Forms ---------- */
.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group label {
  display: block;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.375rem;
  font-size: var(--fs-small);
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-black);
  border-radius: var(--radius);
  background: var(--color-white);
  font-size: var(--fs-body);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-control:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.form-error {
  color: var(--color-error);
  font-size: var(--fs-caption);
  margin-top: 0.25rem;
}

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

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid #eee;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-logo__text {
  font-weight: var(--fw-bold);
  font-size: 1.5rem;
  color: var(--color-primary);
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-nav);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions button,
.header-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background var(--transition);
}

.header-actions button:hover,
.header-actions a:hover {
  background: var(--color-accent);
}

.header-actions svg {
  width: 20px;
  height: 20px;
}

.lang-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  height: 28px !important;
  padding: 0;
}

.lang-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-black);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: var(--section-pad-y);
}

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

.footer-col h4 {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.footer-col a {
  display: block;
  font-weight: var(--fw-regular);
  font-size: var(--fs-small);
  padding: 0.25rem 0;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  opacity: 1;
  transition: background var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  text-decoration: none;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-white);
}

.footer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-badge img,
.footer-badge svg {
  width: 150px;
  height: 150px;
}

.footer-bottom {
  margin-top: 3rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: var(--fs-small);
  opacity: 0.8;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ===== HOME PAGE SECTIONS ===== */

/* --- Split Hero (PDF: left content, right image) --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}

.hero-split__content {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 5rem);
  background: var(--color-white);
}

.hero-split__inner {
  max-width: 540px;
}

.hero-split__inner h1 {
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.hero-split__inner p {
  font-size: var(--fs-small);
  color: #444;
  margin-bottom: 1rem;
}

.hero-split__inner .btn {
  margin-top: 0.5rem;
}

.hero-split__image {
  overflow: hidden;
}

.hero-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Home About split (PDF: left media with centered badge + right content) --- */
.home-about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-about-split__media {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  background: var(--color-accent);
}

.home-about-split__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-about-split__badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-about-split__badge-img {
  max-width: 240px;
  width: 50%;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
}

.home-about-split__badge-svg {
  width: 200px;
  height: 200px;
  color: var(--color-primary);
}

.home-about-split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.home-about-split__content h2 {
  margin-bottom: 0.75rem;
}

.home-about-split__intro {
  font-weight: var(--fw-semibold);
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.home-about-split__content p {
  font-size: var(--fs-small);
  color: #444;
  margin-bottom: 1rem;
}

.home-about-split__content .btn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

/* --- Seed Flow grid (PDF: intro+image left cols, 3 icon cards right col) --- */
.seed-flow__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.seed-flow__card--intro {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  background: var(--color-white);
}

.seed-flow__card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.08;
}

.seed-flow__card--intro::after {
  content: none;
}

.seed-flow__card-inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  color: var(--color-black);
}

.seed-flow__card-inner h2 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.seed-flow__card-inner p {
  font-size: var(--fs-small);
  color: #444;
  margin-bottom: 1.25rem;
}

.seed-flow__card--icon {
  text-align: center;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seed-flow__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.seed-flow__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
}

.seed-flow__card--icon h3 {
  color: var(--color-primary);
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
}

.seed-flow__card--icon p {
  font-size: var(--fs-small);
  color: #555;
}

.seed-flow__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 300px;
}

.seed-flow__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Products slider --- */
.products-section {
  background: var(--color-white);
}

.products-section > .container > h2,
.products-section > .container > p {
  text-align: center;
}

.products-section > .container > p {
  margin-bottom: 2.5rem;
}

.products-slider {
  position: relative;
  overflow: hidden;
}

.products-slider__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s ease;
}

.product-card {
  flex: 0 0 calc(25% - 1.125rem);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-accent);
}

.product-card__image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__label {
  padding: 1rem 1.25rem 1.25rem;
  background: var(--color-accent);
}

.product-card__label h3 {
  color: var(--color-primary);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.product-card__label p {
  font-size: var(--fs-small);
  color: #555;
  margin-bottom: 0.5rem;
}

.product-card__label a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  text-decoration: underline;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--transition), color var(--transition);
}

.slider-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: none;
  transition: background var(--transition);
}

.slider-dot.active {
  background: var(--color-primary);
}

/* --- Brands strip --- */
.brands-strip {
  background: var(--color-primary);
  color: var(--color-white);
}

.brands-strip h2 {
  color: var(--color-white);
  text-align: center;
  margin-bottom: 0.5rem;
}

.brands-strip > .container > p {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

.brands-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.brands-grid img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
}

.brands-grid img:hover {
  opacity: 1;
}

/* --- News timeline (horizontal axis with top/bottom cards per PDF) --- */
.news-timeline {
  background: var(--color-white);
}

.news-timeline h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.news-timeline__sub {
  text-align: center;
  margin-bottom: 3rem;
}

.timeline-h {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 420px;
  padding: 0 1rem;
}

/* Horizontal central line */
.timeline-h__axis {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--color-primary);
  transform: translateY(-50%);
}

.timeline-h__item {
  position: relative;
  flex: 1;
  min-width: 0;
}

/* Dot on axis */
.timeline-h__dot {
  position: absolute;
  left: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
  z-index: 2;
}

/* Top items: card above line, dot at bottom */
.timeline-h__item--top {
  align-self: flex-start;
  padding-bottom: 2rem;
}

.timeline-h__item--top .timeline-h__dot {
  bottom: -6px;
  top: auto;
}

/* Bottom items: card below line, dot at top */
.timeline-h__item--bottom {
  align-self: flex-end;
  padding-top: 2rem;
}

.timeline-h__item--bottom .timeline-h__dot {
  top: -6px;
  bottom: auto;
}

.timeline-h__card {
  padding: 0 1rem;
}

.timeline-h__year {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  opacity: 0.3;
  display: block;
}

.timeline-h__date {
  font-size: var(--fs-small);
  color: #777;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-h__card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.timeline-h__card p {
  font-size: var(--fs-small);
  color: #555;
  margin-bottom: 0.5rem;
}

.timeline-h__card a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
}

/* --- Recent posts --- */
.recent-posts {
  background: #f9fafa;
}

.recent-posts h2 {
  margin-bottom: 2rem;
}

.recent-posts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.recent-posts__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.post-card__thumb {
  flex-shrink: 0;
  width: 100px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.post-card p {
  font-size: var(--fs-small);
  color: #555;
  margin-bottom: 0.25rem;
}

.post-card a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
}

.recent-posts__featured {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.recent-posts__featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Contact split --- */
.home-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.home-contact__info {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  padding: 3rem;
  min-height: 500px;
}

.home-contact__info-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-contact__info-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.home-contact__info-text {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  line-height: 1.7;
}

.home-contact__info-text strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.home-contact__form {
  padding: var(--section-pad-y) 3rem;
}

.home-contact__form h2 {
  margin-bottom: 1.5rem;
}

/* ===== ABOUT PAGE ===== */

/* --- About intro --- */
.about-intro {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  min-height: 60vh;
}

.about-intro__image {
  overflow: hidden;
}

.about-intro__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem var(--section-pad-x) 3rem 3rem;
}

.about-intro__content h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.about-intro__content p {
  color: #444;
}

/* --- Our mission --- */
.our-mission .split {
  grid-template-columns: 0.4fr 0.6fr;
  gap: 3rem;
  border-top: 2px solid #eee;
  padding-top: 2rem;
}

/* --- Our values --- */
.our-values {
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 0;
}

.our-values__image {
  overflow: hidden;
}

.our-values__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.our-values__content {
  padding: var(--section-pad-y) 3rem;
}

.our-values__content h2 {
  margin-bottom: 2rem;
}

.values-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.value-item h3 {
  margin-bottom: 0.375rem;
}

.value-item p {
  color: #555;
  font-size: var(--fs-small);
}

/* --- Our team --- */
.our-team {
  background: var(--color-accent);
}

.our-team h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.our-team .section-subtitle {
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.5rem;
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1rem;
  margin-top: 1rem;
  padding-inline: 1rem;
}

.team-card p {
  font-size: var(--fs-small);
  color: #666;
  padding-inline: 1rem;
}

/* --- CTA strip (PDF: left light bg + green heading, right image-overlay + white text + button) --- */
.cta-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
}

.cta-strip__heading {
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.cta-strip__heading h2 {
  color: var(--color-primary);
  max-width: 400px;
}

.cta-strip__action {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background-color: var(--color-primary);
  background-size: cover;
  background-position: center;
}

.cta-strip__action-inner {
  position: relative;
  z-index: 1;
  max-width: 400px;
}

.cta-strip__action p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.cta-strip__action .btn--secondary {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.cta-strip__action .btn--secondary:hover,
.cta-strip__action .btn--secondary:focus-visible {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ===== ACTIVITY PAGE ===== */

/* --- Activity intro (PDF: light bg, green heading) --- */
.activity-intro {
  background: var(--color-accent);
  color: var(--color-black);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.activity-intro h1 {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.activity-intro p {
  max-width: 650px;
  margin-inline: auto;
  color: #444;
  font-size: var(--fs-small);
}

/* --- Alternating blocks --- */
.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.activity-block--reverse {
  direction: rtl;
}
.activity-block--reverse > * {
  direction: ltr;
}

.activity-block__image {
  overflow: hidden;
}

.activity-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-block__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.activity-block__content h2 {
  margin-bottom: 1rem;
}

.activity-block__content p {
  color: #555;
}

/* --- Certifications --- */
.certifications {
  background: var(--color-accent);
}

.certifications h2 {
  text-align: center;
  color: var(--color-black);
  margin-bottom: 0.75rem;
}

.certifications > .container > p {
  text-align: center;
  margin-bottom: 2.5rem;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 700px;
  margin-inline: auto;
}

.cert-grid img {
  width: 100%;
  max-width: 180px;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  min-height: 100vh;
}

.contact-page__image {
  overflow: hidden;
}

.contact-page__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-page__content {
  padding: 3rem 4rem;
}

.contact-page__content h1 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.contact-page__content > p {
  color: #555;
  margin-bottom: 2rem;
}

/* Contact details (PDF: plain text, no icons, divider line above) */
.contact-details {
  border-top: 2px solid var(--color-primary);
  padding-top: 2rem;
  margin-top: 2rem;
}

.contact-details p {
  font-size: var(--fs-small);
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.contact-details a {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-details a:hover {
  color: var(--color-black);
}

.contact-map {
  width: 100%;
  height: 300px;
  border: 2px solid #eee;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

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

@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
  }

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

  .main-nav.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-split__image {
    max-height: 50vh;
  }

  .home-about-split {
    grid-template-columns: 1fr;
  }

  .home-about-split__media {
    min-height: 280px;
    max-height: 400px;
  }

  .seed-flow__grid {
    grid-template-columns: 1fr;
  }

  .seed-flow__card--intro {
    min-height: 300px;
  }

  /* Timeline stacks vertically on tablet */
  .timeline-h {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    gap: 2rem;
    padding: 0;
  }

  .timeline-h__axis {
    display: none;
  }

  .timeline-h__item--top,
  .timeline-h__item--bottom {
    align-self: auto;
    padding: 0;
  }

  .timeline-h__dot {
    display: none;
  }

  .split,
  .our-mission .split {
    grid-template-columns: 1fr;
  }

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

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-intro__image {
    max-height: 350px;
  }

  .our-values {
    grid-template-columns: 1fr;
  }

  .our-values__image {
    max-height: 350px;
  }

  .cta-strip {
    grid-template-columns: 1fr;
  }

  .activity-block {
    grid-template-columns: 1fr;
  }

  .activity-block--reverse {
    direction: ltr;
  }

  .activity-block__image {
    max-height: 350px;
  }

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

  .contact-page__image {
    max-height: 300px;
  }

  .contact-page__content {
    padding: 2rem var(--section-pad-x);
  }

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

  .product-card {
    flex: 0 0 calc(50% - 0.75rem);
  }

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

  .recent-posts__grid {
    grid-template-columns: 1fr;
  }

  .recent-posts__featured {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    flex: 0 0 calc(100% - 0rem);
  }

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

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

  .brands-grid {
    gap: 1.5rem;
  }

  .brands-grid img {
    height: 32px;
  }

  .home-contact__form {
    padding: 2rem var(--section-pad-x);
  }

  .home-contact__info {
    padding: 2rem var(--section-pad-x);
    min-height: 300px;
  }

}

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.search-overlay__inner {
  background: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
}

.search-overlay__inner form {
  display: flex;
  gap: 0.75rem;
}

.search-overlay__inner input {
  flex: 1;
}

/* ---------- Form notices ---------- */
.form-notice {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

.form-notice--success {
  background: #e8f5e9;
  color: var(--color-primary);
}

.form-notice--error {
  background: #ffebee;
  color: var(--color-error);
}

/* ---------- Placeholder image fallback ---------- */
.placeholder-img {
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  min-height: 200px;
}

.placeholder-img--full {
  width: 100%;
  height: 100%;
}

.placeholder-img--badge {
  width: 320px;
  height: 320px;
  border-radius: 50%;
}

.placeholder-img--thumb {
  width: 100px;
  height: 80px;
}

.placeholder-img--featured {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.placeholder-img--map {
  width: 100%;
  height: 100%;
}

.placeholder-img--tall {
  min-height: 400px;
}

.placeholder-img--xtall {
  min-height: 600px;
}

.placeholder-img--square {
  aspect-ratio: 1;
}

.placeholder-img--rounded {
  border-radius: var(--radius-lg);
}

/* ---------- Brands grid placeholder ---------- */
.brands-grid__placeholder {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* ---------- Contact page intro ---------- */
.contact-page__intro {
  color: #555;
  margin-bottom: 2rem;
}

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ===== PAGE HERO (shared across Products, Brands, News, Archive, Search) ===== */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-hero h1 {
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 650px;
  margin-inline: auto;
  opacity: 0.9;
}

/* ===== PRODUCTS PAGE ===== */

/* --- Filter tabs --- */
.product-filter {
  padding-block: 0;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.filter-tab:hover,
.filter-tab:focus-visible,
.filter-tab.active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Product grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-grid-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid #eee;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-grid-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-grid-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-grid-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.product-grid-card:hover .product-grid-card__image img {
  transform: scale(1.05);
}

.product-grid-card__content {
  padding: 1.5rem;
}

.product-grid-card__content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.product-grid-card__content p {
  font-size: var(--fs-small);
  color: #555;
  margin-bottom: 1rem;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--fs-small);
}

/* ===== BRANDS PAGE ===== */
.brand-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
  margin-bottom: 0;
}

.brand-block + .brand-block {
  border-top: 1px solid #eee;
}

.brand-block--reverse {
  direction: rtl;
}
.brand-block--reverse > * {
  direction: ltr;
}

.brand-block__image {
  overflow: hidden;
}

.brand-block__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-block__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.brand-block__content h2 {
  margin-bottom: 0.75rem;
}

.brand-block__content .quote {
  margin-bottom: 1rem;
}

.brand-block__text p {
  color: #555;
  font-size: var(--fs-small);
}

.brands-cta {
  padding-block: var(--section-pad-y);
}

/* ===== NEWS PAGE ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid #eee;
  transition: box-shadow var(--transition);
}

.news-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.news-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__content {
  padding: 1.25rem;
}

.news-card__date {
  font-size: var(--fs-caption);
  color: #777;
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-card__content h3 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

.news-card__content h3 a {
  transition: color var(--transition);
}

.news-card__content h3 a:hover {
  color: var(--color-primary);
}

.news-card__content p {
  font-size: var(--fs-small);
  color: #555;
  margin-bottom: 0.75rem;
}

.news-card__link {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

/* ===== SINGLE POST ===== */
.single-post__header {
  margin-bottom: 2rem;
}

.single-post__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  color: #777;
  font-size: var(--fs-small);
}

.single-post__meta a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

.single-post__featured {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-post__featured img {
  width: 100%;
  height: auto;
}

.entry-content {
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin-bottom: 1em;
}

.entry-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.entry-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #555;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1em;
  list-style: revert;
}

.single-post__nav {
  margin-top: 3rem;
  border-top: 2px solid #eee;
  padding-top: 2rem;
}

.single-post__nav .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.single-post__nav .nav-subtitle {
  display: block;
  font-size: var(--fs-caption);
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.single-post__nav .nav-title {
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

/* ===== PAGINATION ===== */
.pagination-wrap {
  margin-top: 3rem;
  text-align: center;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  transition: background var(--transition), color var(--transition);
}

.pagination-wrap .page-numbers:hover {
  background: var(--color-accent);
}

.pagination-wrap .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ===== CERT CARDS (Activity page) ===== */
.cert-card {
  text-align: center;
}

.cert-card img {
  width: 100%;
  max-width: 180px;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.cert-card h3 {
  font-size: var(--fs-small);
  margin-bottom: 0.25rem;
}

.cert-card p {
  font-size: var(--fs-caption);
  color: #555;
}

/* ===== HOME ABOUT INTRO LINE ===== */
.home-about__intro {
  font-weight: var(--fw-semibold);
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE — NEW TEMPLATES ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .brand-block {
    grid-template-columns: 1fr;
  }

  .brand-block--reverse {
    direction: ltr;
  }

  .brand-block__image {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-tabs {
    gap: 0.375rem;
  }

  .filter-tab {
    padding: 0.375rem 0.875rem;
    font-size: var(--fs-caption);
  }

  .single-post__nav .nav-links {
    flex-direction: column;
  }
}

/* Print */
@media print {
  .site-header,
  .site-footer,
  .back-to-top,
  .nav-toggle {
    display: none !important;
  }
}

/* ==========================================================================
   PDF Parity Fixes — Hide placeholder labels in production,
   tighten spacing, ensure proper fallback visuals.
   ========================================================================== */

/*
 * Placeholders: suppress the visible text label so they appear as
 * clean colored blocks rather than showing "Hero Image" / "Contact Image".
 * Still functional for admins via the data-attribute approach.
 */
.placeholder-img {
  font-size: 0;        /* hide text */
  color: transparent;
  position: relative;
}

/* Restore label visibility only inside WP admin bar context (logged-in preview) */
.admin-bar .placeholder-img {
  font-size: var(--fs-small);
  color: var(--color-primary);
}

/*
 * Hero section: when the image side is a placeholder, constrain height
 * so it doesn't create excessive whitespace.
 */
.hero-split__image .placeholder-img {
  min-height: 400px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/*
 * Home About: when no photo is loaded, give the media panel a gradient
 * that matches the green brand feel instead of flat mint.
 */
.home-about-split__media .placeholder-img {
  background: linear-gradient(180deg, var(--color-primary) 0%, #2a7d6a 100%);
}

/*
 * Contact page: give the left image placeholder a natural gradient.
 */
.contact-page__image .placeholder-img {
  background: linear-gradient(180deg, var(--color-primary) 0%, #2a7d6a 50%, var(--color-accent) 100%);
}

/*
 * Activity page: give alternating block image placeholders a gradient.
 */
.activity-block__image .placeholder-img {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/*
 * Map placeholder: style it like a disabled map.
 */
.placeholder-img--map {
  background: #e8e8e8;
  min-height: 250px;
}

.admin-bar .placeholder-img--map {
  color: #999;
  font-size: var(--fs-caption);
}

/*
 * About page values image placeholder: taller gradient.
 */
.our-values__image .placeholder-img {
  background: linear-gradient(180deg, var(--color-primary) 0%, #2a7d6a 60%, var(--color-accent) 100%);
}

/*
 * Team cards: style placeholder photos as silhouettes.
 */
.team-card .placeholder-img {
  background: linear-gradient(180deg, var(--color-accent) 0%, #b5cbc6 100%);
}

/*
 * Seed-flow section: match PDF spacing.
 * PDF shows this section with moderate vertical padding.
 */
.seed-flow {
  padding-block: var(--section-pad-y);
  background: var(--color-white);
}

/*
 * Products section: ensure proper vertical rhythm.
 */
.products-section > .container > h2 {
  margin-bottom: 0.5rem;
}

/*
 * Brands strip: match PDF vertical padding.
 */
.brands-strip {
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

/*
 * Recent News timeline: match PDF spacing.
 */
.news-timeline {
  padding-block: var(--section-pad-y);
}

/*
 * CTA strip on About page: ensure right side has a green fallback
 * when no CTA background image is set.
 */
.cta-strip__action {
  background-color: var(--color-primary);
}

/*
 * Certifications section: improve card alignment.
 */
.cert-card {
  padding: 1rem;
}

.cert-card .placeholder-img {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  max-width: 180px;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}
