/* ============================================================
   Al Waha Fresh Trading FZE
   Colour and logo-size variables are set by js/main.js from
   js/config.js. The values below are fallbacks only.
   ============================================================ */

:root {
  --color-primary: #14532d;
  --color-primary-dark: #0d3a1f;
  --color-accent: #e8622a;
  --color-fresh: #4fa828;
  --color-text: #1c2520;
  --color-muted: #5a6b60;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f7f3;
  --color-border: #e2e9e2;
  --color-on-primary: #ffffff;
  --color-on-accent: #ffffff;
  --color-whatsapp: #25d366;

  --logo-nav-h: 48px;
  --logo-nav-h-desktop: 56px;
  --logo-footer-h: 56px;
  --logo-footer-h-desktop: 64px;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 83, 45, .06), 0 8px 24px rgba(20, 83, 45, .07);
  --maxw: 1120px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-primary); }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: 20px;
}

.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;
}

.lead {
  font-size: 1.1rem;
  color: var(--color-muted);
  max-width: 60ch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-fresh);
  margin-bottom: .75rem;
}

section { padding-block: clamp(48px, 7vw, 84px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .15s ease, transform .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-weight: 700;
}
.btn-accent:hover { background: #cf5423; }

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #06331a;
  font-weight: 700;
}
.btn-whatsapp:hover { background: #1fbb59; }
.btn-whatsapp svg { width: 24px; height: 24px; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 2px;
}

/* ---------- header / navbar ---------- */

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 10px;
}

.nav-brand { display: inline-flex; }

.logo-nav {
  height: var(--logo-nav-h);
  width: auto;
  object-fit: contain;
}

.nav-toggle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

.nav-menu {
  display: none;
  width: 100%;
  padding-bottom: 14px;
}
.nav-menu.is-open { display: block; }

.nav-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: .75rem;
}

.nav-link {
  display: block;
  padding: .55rem .25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.nav-link.is-active { color: var(--color-primary); }

.nav-cta { width: 100%; }

/* ---------- hero ---------- */

#hero {
  background: linear-gradient(140deg, var(--color-surface-alt) 0%, #ffffff 65%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 { margin-bottom: .6rem; }
.hero-copy .lead { margin-bottom: 1.6rem; }

.hero-media img {
  width: 100%;
  height: clamp(240px, 42vw, 420px);
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* ---------- section heads ---------- */

.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-foot { margin-top: 2rem; }

/* ---------- unique points ---------- */

#unique { background: var(--color-surface); }

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-grid li {
  padding: 1.4rem 1.5rem;
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-fresh);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.feature-grid h3 { margin-bottom: .35rem; }
.feature-grid p { color: var(--color-muted); }

/* ---------- cards ---------- */

#services-preview { background: var(--color-surface-alt); }

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body { padding: 1.25rem 1.35rem 1.5rem; }
.card-body p { color: var(--color-muted); margin: 0; }

.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(20, 83, 45, .12);
}

/* ---------- mission / vision ---------- */

#mission-vision {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
#mission-vision h2 { color: var(--color-on-primary); }
#mission-vision p { color: rgba(255, 255, 255, .88); max-width: 46ch; }

.mv-grid { display: grid; gap: 2rem; }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.values li {
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .3rem 1rem;
  font-size: .9rem;
  font-weight: 600;
}

/* ---------- CTA band ---------- */

#cta-band {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}
.cta-inner { text-align: center; }
.cta-inner p {
  color: var(--color-muted);
  max-width: 55ch;
  margin: 0 auto 1.75rem;
}

/* ---------- page header (services / contact) ---------- */

#page-head {
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  padding-block: clamp(40px, 6vw, 70px);
}

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 1.5rem; }

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.detail { padding-block: .9rem; border-bottom: 1px solid var(--color-border); }
.detail:first-child { padding-top: 0; }
.detail:last-child { border-bottom: 0; padding-bottom: 0; }
.detail h3 {
  font-family: inherit;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--color-muted);
  margin-bottom: .15rem;
}
.detail p { font-size: 1.1rem; }
.detail a { text-decoration: none; font-weight: 600; }
.detail a:hover { text-decoration: underline; }

.contact-whatsapp { background: var(--color-surface-alt); }
.contact-whatsapp .btn { width: 100%; margin-top: .5rem; }

.contact-social { margin-top: 1.75rem; }
.contact-social h3 { font-family: inherit; font-size: 1rem; }

/* ---------- social icons ---------- */

.social-list { display: flex; gap: .6rem; margin-top: 1rem; }

.social-list a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.social-list a:hover { background: var(--color-accent); }
.social-list svg { width: 20px; height: 20px; }

.social-list-lg a { width: 46px; height: 46px; }
.social-list-lg svg { width: 23px; height: 23px; }

/* ---------- footer ---------- */

#site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, .85);
  padding-top: clamp(40px, 6vw, 64px);
}

#site-footer h3 {
  font-family: inherit;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #ffffff;
  margin-bottom: .9rem;
}

.footer-grid { display: grid; gap: 2.25rem; }

.footer-brand {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1rem;
  width: fit-content;
}
.footer-brand p { display: none; }

.logo-footer {
  height: var(--logo-footer-h);
  width: auto;
  object-fit: contain;
}

.footer-brand .social-list { justify-content: center; }

.footer-links li { margin-bottom: .5rem; }
.footer-links a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.footer-links a:hover { color: #ffffff; text-decoration: underline; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: .9rem;
}
.footer-bottom p { color: rgba(255, 255, 255, .7); }

/* ============================================================
   Tablet and up
   ============================================================ */

@media (min-width: 768px) {
  .logo-nav { height: var(--logo-nav-h-desktop); }
  .logo-footer { height: var(--logo-footer-h-desktop); }

  .nav { flex-wrap: nowrap; padding-block: 12px; }
  .nav-toggle { display: none; }

  .nav-menu {
    display: flex !important;
    align-items: center;
    gap: 1.75rem;
    width: auto;
    padding-bottom: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.75rem;
    margin-bottom: 0;
  }

  .nav-link {
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
  }
  .nav-link:hover { border-bottom-color: var(--color-border); }
  .nav-link.is-active { border-bottom-color: var(--color-accent); }

  .nav-cta { width: auto; padding: .6rem 1.3rem; }

  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

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

  .mv-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 2rem; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover, .card-link:hover { transform: none; }
}
