/* =====================================================================
   شركة الرافقة، style.css
   Mobile-first. Photo-led. Navy + industrial-green palette with warm
   accent hues per section. RTL Arabic layout.
   ===================================================================== */

/* ---------- palette + tokens ---------- */
:root {
  /* structural */
  --ink:            #0A1628;   /* near-black navy, all body text */
  --ink-soft:       #4A5568;   /* secondary text */
  --ink-mute:       #6B7280;   /* tertiary text, captions */
  --paper:          #FFFFFF;
  --wash:           #F5F7FA;   /* light section backgrounds */
  --wash-warm:      #FDFAF3;   /* alt warm section background */
  --line:           #E5E9F0;   /* hairline borders */
  --line-strong:    #B8C5D6;   /* stronger borders on dark surfaces */

  /* accents, one per personality */
  --green:          #1F7A5A;   /* primary accent, CTAs, "available", story */
  --green-deep:     #16543D;
  --green-tint:     #E8F5EF;
  --gold:           #F4B942;   /* products, gallery, achievements */
  --gold-deep:      #B8860B;
  --gold-tint:      #FBF3DC;
  --brick:          #C2410C;   /* founder, location, energy moments */
  --brick-tint:     #FCEEE5;
  --skyblue:        #4A7A9E;   /* coverage, information */
  --skyblue-deep:   #2C5F7E;
  --earth:          #8B7355;   /* raw materials */
  --violet:         #6B5D8F;   /* spare parts, technical */

  /* dark surface (footer, hero-scrim, coverage bg) */
  --dark:           #0A1628;
  --dark-2:         #0F1D33;
  --dark-3:         #1E3A5F;

  /* layout */
  --wrap:           680px;      /* max content width on desktop */
  --pad-x:          20px;       /* mobile side padding */
  --pad-x-lg:       32px;       /* desktop side padding */
  --radius:         2px;        /* deliberate square-ish, feels industrial */
  --radius-md:      6px;
  --shadow-card:    0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-lift:    0 8px 24px rgba(10, 22, 40, 0.12);

  --font-body:      'Segoe UI', 'Tahoma', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-serif:     Georgia, 'Times New Roman', 'Amiri', serif;
  --font-mono:      ui-monospace, 'SF Mono', 'Courier New', monospace;

  --dur-fast:       0.15s;
  --dur:            0.3s;
  --dur-slow:       0.6s;
  --ease-out:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { list-style: none; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* Accessible focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ---------- coursing strip (signature detail) ----------
   Thin repeating band, one appears between every section.
   Colored to reference each section's accent hue in rotation. */
.coursing {
  height: 6px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--green) 0 22px,
    transparent 22px 26px,
    var(--brick) 26px 48px,
    transparent 48px 52px,
    var(--gold-deep) 52px 74px,
    transparent 74px 78px,
    var(--skyblue) 78px 100px,
    transparent 100px 104px
  );
}

/* ---------- utility bar ---------- */
.utility-bar {
  background: var(--dark);
  color: #B8C5D6;
  font-size: 12px;
}
.utility-bar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--pad-x);
  flex-wrap: wrap;
}
.ub-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ---------- header ---------- */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out);
}
#siteHeader.shrink { box-shadow: 0 2px 12px rgba(10, 22, 40, 0.08); }
#siteHeader .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.brand-name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.brand-sub { font-size: 10px; color: var(--ink-mute); letter-spacing: 1px; margin-top: 2px; }

/* ---------- nav ---------- */
nav ul {
  display: flex;
  gap: 18px;
  font-size: 13px;
}
nav a {
  padding: 6px 0;
  position: relative;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
nav a::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}
nav a:hover { color: var(--green-deep); }
nav a:hover::after { transform: scaleX(1); }

/* ---------- mobile menu toggle ---------- */
.menu-toggle {
  display: none;                /* becomes flex on mobile via breakpoint below */
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;             /* mobile-friendly tap target */
}
.btn-icon { width: 16px; height: 16px; }
.btn-primary {
  background: var(--green);
  color: #FFF;
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(31, 122, 90, 0.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #FFF;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- eyebrows (section labels) ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: none;
}
.eyebrow-dash {
  width: 20px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow-green   { color: var(--green); }
.eyebrow-gold    { color: var(--gold-deep); }
.eyebrow-brick   { color: var(--brick); }
.eyebrow-skyblue { color: var(--skyblue); }

/* ---------- section titles ---------- */
.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title-light { color: #FFF; }
.accent-gold  { color: var(--gold); }
.accent-green { color: var(--green); }

/* ---------- section spacing ---------- */
section { padding: 36px 0; position: relative; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  padding: 0;
  position: relative;
  height: 500px;
  min-height: 480px;
  overflow: hidden;
  background: var(--dark);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: heroSubtle 20s ease-in-out infinite alternate;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.4) 0%,
    rgba(10, 22, 40, 0.5) 55%,
    rgba(10, 22, 40, 0.95) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 20px;
  padding-bottom: 28px;
  color: #FFF;
}
.hero-badge {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(31, 122, 90, 0.95);
  padding: 5px 12px;
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: auto;
  margin-top: 4px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: #FFF;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.hero-lede {
  font-size: 14px;
  color: #D0D8E0;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 280px;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-caption {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

/* Subtle photo drift (parallax-lite that respects reduced motion) */
@keyframes heroSubtle {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.06) translate(-1%, 0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

/* =====================================================================
   FIGURES BAND
   ===================================================================== */
.figures {
  background: var(--dark);
  color: #FFF;
  padding: 24px 0;
}
.figures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  text-align: center;
}
.fig { padding: 4px 6px; }
.fig-mid { border-inline-start: 1px solid var(--dark-3); border-inline-end: 1px solid var(--dark-3); }
.fig-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin: 0 auto 4px;
}
.fig-icon-gold  { color: var(--gold); }
.fig-icon-brick { color: var(--brick); }
.fig-num {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  color: #FFF;
}
.fig-plus { color: var(--green); }
.fig-num-green { color: var(--green); }
.fig-label {
  font-size: 11px;
  color: #8B98AC;
  margin-top: 6px;
}

/* =====================================================================
   STORY / TIMELINE
   ===================================================================== */
.story {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFC 100%);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 12px 0 24px;
  margin-bottom: 16px;
}
.timeline-track {
  position: absolute;
  top: 20px;
  right: 6%;
  left: 6%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--green) 0%,
    var(--gold) 33%,
    var(--brick) 66%,
    var(--ink) 100%);
  border-radius: 2px;
}
.tl-item { text-align: center; }
.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 15px auto 8px;
  position: relative;
  z-index: 2;
  border: 2px solid #FFF;
  box-shadow: 0 0 0 1px currentColor;
}
.tl-dot-green { background: var(--green); color: var(--green); }
.tl-dot-gold  { background: var(--gold); color: var(--gold); }
.tl-dot-brick { background: var(--brick); color: var(--brick); }
.tl-dot-ink   { background: var(--ink); color: var(--ink); }
.tl-year { font-size: 12px; font-weight: 600; color: var(--ink); }
.tl-caption { font-size: 10px; color: var(--ink-mute); margin-top: 2px; }

.story-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 3 / 2;
  background: #DDE1E8;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-caption {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(10, 22, 40, 0.85);
  color: #FFF;
  padding: 3px 8px;
  font-size: 10px;
}
.photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold);
  color: var(--ink);
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
}
.story-body {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* =====================================================================
   FOUNDER
   Now built around a transparent PNG cutout of the CEO. The section
   background shows through the transparent parts of the photo, so
   there is no dark overlay; the name/title/contact button sit in a
   dedicated card next to (mobile: below) the photo.
   ===================================================================== */
.founder {
  background: linear-gradient(180deg, #F5F7FA 0%, #EEF2F7 100%);
}

.founder-card {
  display: grid;
  grid-template-columns: 1fr;         /* mobile: photo above, meta below */
  gap: 0;
  margin-bottom: 20px;
  position: relative;
}

.founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* Soft radial wash behind the cutout so the CEO reads as separated
     from the section background without needing a dark overlay. */
  background:
    radial-gradient(ellipse at 50% 80%, rgba(31, 122, 90, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #F5F7FA 0%, #E8EDF3 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  /* subtle drop shadow to lift the figure off the wash */
  filter: drop-shadow(0 10px 20px rgba(10, 22, 40, 0.15));
}
.founder-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--gold);
  color: var(--ink);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}

.founder-meta {
  background: var(--paper);
  border-inline-start: 3px solid var(--brick);
  padding: 18px 20px;
  margin-top: -1px;                    /* seam-less join with the photo box */
}
.fc-eyebrow {
  font-size: 10px;
  color: var(--brick);
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 6px;
}
.fc-name  { font-size: 20px; font-weight: 600; color: var(--ink); }
.fc-title { font-size: 12px; color: var(--ink-soft); margin-top: 2px; margin-bottom: 14px; }

.founder-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #FFF;
  padding: 12px 14px;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
  min-height: 52px;
}
.founder-contact:hover {
  background: var(--brick);
  transform: translateY(-1px);
}
.fcc-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}
.fcc-text { display: flex; flex-direction: column; gap: 2px; }
.fcc-label {
  font-size: 11px;
  color: #B8C5D6;
  font-weight: 500;
}
.fcc-number {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #FFF;
}

.founder-quote {
  position: relative;
  padding: 20px 4px 4px;
}
.fq-mark {
  position: absolute;
  top: -14px;
  right: -6px;
  font-size: 96px;
  color: var(--green);
  opacity: 0.18;
  line-height: 1;
  font-family: var(--font-serif);
  pointer-events: none;
}
.fq-body {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
  position: relative;
  z-index: 1;
}
.fq-emphasis { color: var(--green); }
.fq-attribution {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.fq-rule {
  width: 30px;
  height: 1px;
  background: var(--green);
  display: inline-block;
}
.fq-attribution cite {
  font-size: 15px;
  color: var(--line-strong);
  letter-spacing: 1px;
  font-style: normal;
}

/* =====================================================================
   PRODUCTS
   ===================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 0;                /* explicit: no rounding on single-sided borders */
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.product-green  { border-top-color: var(--green); }
.product-gold   { border-top-color: var(--gold-deep); }
.product-brick  { border-top-color: var(--brick); }
.product-blue   { border-top-color: var(--skyblue); }
.product-earth  { border-top-color: var(--earth); }
.product-violet { border-top-color: var(--violet); }

.product-media {
  aspect-ratio: 15 / 11;
  overflow: hidden;
  background: #7B8590;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.product:hover .product-media img { transform: scale(1.04); }
.product-illust { width: 100%; height: 100%; }
.product-illust svg { width: 100%; height: 100%; }
.product-body { padding: 10px 12px 12px; }
.product-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.product-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.product-green  .product-icon { color: var(--green); }
.product-gold   .product-icon { color: var(--gold-deep); }
.product-brick  .product-icon { color: var(--brick); }
.product-blue   .product-icon { color: var(--skyblue); }
.product-earth  .product-icon { color: var(--earth); }
.product-violet .product-icon { color: var(--violet); }

.product-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.product-desc { font-size: 11px; color: var(--ink-mute); margin-bottom: 8px; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-code {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.5px;
}

/* status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.badge-available { color: var(--green); }
.badge-available .badge-dot { animation: pulse 2.5s ease-in-out infinite; }
.badge-order     { color: var(--brick); }
.badge-limited   { color: var(--gold-deep); }

/* =====================================================================
   FIELD / GALLERY
   ===================================================================== */
.field { background: var(--wash-warm); }
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #B8C5D6;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }
.gc {
  position: absolute;
  bottom: 6px;
  right: 6px;
  left: 6px;
  background: rgba(10, 22, 40, 0.85);
  color: #FFF;
  padding: 4px 8px;
  font-size: 11px;
  text-align: right;
}

/* =====================================================================
   COVERAGE
   ===================================================================== */
.coverage {
  background: var(--dark);
  color: #FFF;
  padding-top: 36px;
  padding-bottom: 36px;
}
.map-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--dark-3);
  overflow: hidden;
  margin-bottom: 14px;
  background: #E8EBF0;
}
.map-wrap iframe {
  position: relative;                /* stacks above the poster */
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
.map-poster {
  position: absolute;
  inset: 0;
  z-index: 0;                        /* shows through if the iframe fails to render */
}
.map-poster svg { width: 100%; height: 100%; }
.map-open {
  /* legacy, no longer rendered — directions is now the .directions-btn below */
  display: none;
}

/* Google Maps directions button, sits below the map iframe.
   Full-width on mobile so it's easy to tap; auto-width on desktop. */
.directions-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  margin-top: 12px;
  border-inline-start: 3px solid var(--gold);
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  min-height: 60px;
}
.directions-btn:hover {
  background: #FDFAF3;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.directions-btn:active { transform: translateY(0); }
.db-icon {
  width: 26px;
  height: 26px;
  color: var(--brick);
  flex-shrink: 0;
}
.db-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.db-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.db-sub {
  font-size: 11px;
  color: var(--ink-mute);
}
.db-arrow {
  width: 20px;
  height: 20px;
  color: var(--ink-mute);
  flex-shrink: 0;
  /* Arrow points left in LTR, but we're in RTL so it visually points
     "forward" (the reading direction) which is what we want. */
}

.towns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.town {
  background: var(--dark-2);
  padding: 10px 12px;
  border-inline-start: 3px solid var(--green);
}
.town-day { border-inline-start-color: var(--gold); }
.town-name {
  font-size: 13px;
  font-weight: 600;
  color: #FFF;
  margin-bottom: 4px;
}
.town-eta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.town-eta svg { width: 12px; height: 12px; }
.town-fast .town-eta { color: #4EAB84; }
.town-day  .town-eta { color: #E8C468; }

/* =====================================================================
   TEAM
   ===================================================================== */
.team-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  background: #B8C5D6;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-pill {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: var(--green);
  color: #FFF;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
}

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { background: var(--wash); }
.contact-photo {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: #B8C5D6;
}
.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-photo-pin {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 22, 40, 0.9);
  color: #FFF;
  padding: 5px 10px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.contact-photo-pin svg { width: 12px; height: 12px; color: var(--gold); }

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card {
  background: var(--paper);
  border-inline-start: 3px solid var(--green);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--dur-fast) var(--ease-out);
}
a.contact-card:hover { background: #FAFBFC; }
.cc-green { border-inline-start-color: var(--green); }
.cc-brick { border-inline-start-color: var(--brick); }
.cc-gold  { border-inline-start-color: var(--gold-deep); }
.cc-label { font-size: 10px; color: var(--ink-mute); margin-bottom: 3px; }
.cc-value { font-size: 13px; font-weight: 600; color: var(--ink); }
.cc-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cc-icon-wrap svg { width: 18px; height: 18px; }
.cc-icon-green { background: var(--green-tint); color: var(--green); }
.cc-icon-brick { background: var(--brick-tint); color: var(--brick); }
.cc-icon-gold  { background: var(--gold-tint); color: var(--gold-deep); }

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
  background: var(--dark);
  color: #6B7A90;
  padding: 22px 0;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.foot-brand-name { font-size: 12px; font-weight: 600; color: #FFF; }
.foot-brand-sub { font-size: 10px; color: #8B98AC; letter-spacing: 1px; margin-top: 2px; }
.foot-copy { font-size: 10px; color: #6B7A90; text-align: end; }

/* =====================================================================
   WHATSAPP FLOAT (mobile only)
   ===================================================================== */
.wa-float {
  position: fixed;
  bottom: 18px;
  left: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(31, 122, 90, 0.4);
  z-index: 40;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 122, 90, 0.5);
  animation-play-state: paused;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(31, 122, 90, 0.4), 0 0 0 0 rgba(31, 122, 90, 0.6); }
  50%      { box-shadow: 0 6px 18px rgba(31, 122, 90, 0.4), 0 0 0 12px rgba(31, 122, 90, 0); }
}

/* =====================================================================
   SCROLL REVEAL
   Applied by JS by adding .is-in to elements that pass the observer.
   Elements start slightly offset and fade in when they enter view.
   ===================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-photo { animation: none; }
  .wa-float   { animation: none; }
  .reveal     { opacity: 1; transform: none; }
}

/* =====================================================================
   MOBILE BREAKPOINT (default is already mobile-first)
   Below 780px: collapse nav to hamburger, single-column contact, etc.
   ===================================================================== */
@media (max-width: 780px) {
  #siteHeader .wrap { flex-wrap: wrap; }

  nav {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur) var(--ease-out);
  }
  nav.open { max-height: 400px; }
  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }
  nav ul li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
  nav ul li:last-child { border-bottom: none; }

  .menu-toggle { display: flex; }

  /* single-column on very small screens */
  .contact-list { flex-direction: column; }
}

/* =====================================================================
   DESKTOP BREAKPOINT (>= 900px)
   Larger typography, wider content, side-by-side layouts where useful.
   ===================================================================== */
@media (min-width: 900px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }

  .wrap { padding: 0 var(--pad-x-lg); }

  .hero { height: 620px; }
  .hero-title { font-size: 48px; }
  .hero-lede  { font-size: 16px; max-width: 400px; }

  .figures-grid { gap: 20px; }
  .fig-num { font-size: 44px; }
  .fig-label { font-size: 13px; }

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

  /* founder side-by-side on desktop */
  .founder .wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    align-items: center;
  }
  .founder .eyebrow { grid-column: 1 / -1; }
  .founder-card {
    grid-template-columns: 1fr;        /* photo on top of meta */
    max-width: 100%;
    margin-bottom: 0;
  }
  .founder-photo { aspect-ratio: 3 / 4; }
  .fq-body { font-size: 24px; }
  .founder-quote { align-self: center; }

  /* products 3-up on desktop */
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .product-name { font-size: 15px; }

  /* gallery 4-up on desktop */
  .gallery { grid-template-columns: repeat(4, 1fr); }

  /* towns 3-up on desktop */
  .towns { grid-template-columns: repeat(3, 1fr); }

  /* wider map on desktop */
  .map-wrap { aspect-ratio: 21 / 9; }

  /* hide the sticky WhatsApp button on desktop, header CTA is enough */
  .wa-float { display: none; }
}

/* very large desktop */
@media (min-width: 1200px) {
  :root { --wrap: 1100px; }
}
