/* ============================================================
   Agrispa Ltd. — Premium Stone Fruit Export
   "Fresh & organic" theme · deep emerald + burgundy
   Light + dark mode (toggle via [data-theme] on <html>)
   ============================================================ */

:root {
  /* Brand — deep & rich */
  --green-deep: #0f4d2e;
  --green: #1a7a47;
  --green-bright: #2f9e63;
  --green-soft: #e7f3ec;
  --red-deep: #6e1a2c;
  --red: #94243c;
  --red-bright: #c0405c;

  /* Semantic — light mode */
  --bg: #fbfdfb;
  --bg-soft: #eef6f0;
  --surface: #ffffff;
  --surface-2: #f4faf6;
  --ink: #17241c;
  --heading: #103b25;
  --muted: #57685d;
  --line: #e1ece4;
  --shadow-sm: 0 2px 10px rgba(15, 77, 46, 0.07);
  --shadow-md: 0 18px 50px rgba(15, 77, 46, 0.12);
  --on-brand: #ffffff;

  --radius: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  --green-deep: #0a3a22;
  --green: #2f9e63;
  --green-bright: #4cd28a;
  --green-soft: #14241b;
  --red-deep: #7a1f33;
  --red: #c0405c;
  --red-bright: #e07089;

  --bg: #0d1511;
  --bg-soft: #111e17;
  --surface: #16241c;
  --surface-2: #1a2c22;
  --ink: #e7f1ea;
  --heading: #f1faf3;
  --muted: #9bb1a3;
  --line: #25382c;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.45);
  --on-brand: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--heading);
  letter-spacing: -0.01em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red-bright);
  margin-bottom: 0.7rem;
  font-family: var(--font);
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons (soft, pill) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-3px); }
.btn-primary { background: var(--green); color: var(--on-brand); box-shadow: 0 8px 22px rgba(26, 122, 71, 0.28); }
.btn-primary:hover { background: var(--green-bright); color: #07150d; }
.btn-outline { background: transparent; color: var(--heading); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--on-brand); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(148, 36, 60, 0.28); }
.btn-red:hover { background: var(--red-bright); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: var(--heading); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 42px; height: 42px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(140deg, var(--green-bright), var(--green-deep) 70%, var(--red));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand span { font-family: var(--font-head); }
.brand small { display: block; font-family: var(--font); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-block; padding: 0.5rem 0.95rem; border-radius: var(--radius-pill); color: var(--ink); font-weight: 500; font-size: 0.97rem; }
.nav-links a:hover { background: var(--green-soft); text-decoration: none; }
.nav-links a.active { color: var(--green); font-weight: 700; background: var(--green-soft); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; background: var(--surface); }
.lang-switch button { border: 0; background: transparent; padding: 0.42rem 0.7rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); cursor: pointer; }
.lang-switch button:hover { background: var(--green-soft); color: var(--heading); }
.lang-switch button.active { background: var(--green); color: var(--on-brand); }

/* Theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.1rem;
  color: var(--heading);
  transition: background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { background: var(--green-soft); transform: rotate(-12deg); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); width: 44px; height: 44px; border-radius: 14px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--heading); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 88% -10%, color-mix(in srgb, var(--red) 22%, transparent), transparent 60%),
    radial-gradient(820px 520px at -8% 8%, color-mix(in srgb, var(--green-bright) 24%, transparent), transparent 58%),
    var(--bg-soft);
}
/* organic blob accents */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 0;
}
.hero::before { width: 220px; height: 220px; background: var(--green-bright); top: -60px; right: 12%; opacity: 0.18; }
.hero::after { width: 160px; height: 160px; background: var(--red-bright); bottom: -50px; left: 8%; opacity: 0.16; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 52px; align-items: center; }
.hero h1 span.accent { color: var(--red); font-style: italic; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats { display: flex; gap: 30px; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--green); font-weight: 600; }
.hero-stats .stat span { font-size: 0.85rem; color: var(--muted); }

.hero-visual {
  border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%;
  min-height: 400px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--green-bright) 35%, transparent), transparent 60%),
    linear-gradient(160deg, var(--green-soft), var(--surface));
  border: 2px dashed color-mix(in srgb, var(--green) 45%, transparent);
  display: grid; place-items: center; text-align: center;
  color: var(--green);
  box-shadow: var(--shadow-md);
}
.hero-visual .ph-label { font-weight: 700; letter-spacing: 0.1em; font-family: var(--font); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.bg-soft { background: var(--bg-soft); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 56px; height: 56px;
  border-radius: 50% 50% 50% 14px;
  background: var(--green-soft); color: var(--green);
  display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 16px;
}

/* ---------- Image placeholder ---------- */
.photo-ph {
  border: 2px dashed var(--green-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--green-bright) 16%, transparent), transparent 55%),
    var(--green-soft);
  min-height: 280px;
  display: grid; place-items: center; text-align: center;
  color: var(--green); padding: 22px;
}
.photo-ph .tag {
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.92rem;
  border: 2px solid var(--green); border-radius: var(--radius-pill);
  padding: 9px 18px; background: var(--surface); color: var(--green);
}
.photo-ph small { display: block; margin-top: 12px; color: var(--muted); letter-spacing: 0.02em; }

/* Real photos in media slots */
.media-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
  box-shadow: var(--shadow-md);
}
.hero-visual.has-photo {
  padding: 0;
  border: none;
  background: none;
  overflow: hidden;
}
.hero-visual.has-photo img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); aspect-ratio: 4 / 3; }
.gallery-grid figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-ph {
  display: grid; place-items: center; text-align: center; aspect-ratio: 4 / 3;
  border: 2px dashed var(--green-bright); border-radius: var(--radius);
  background: var(--green-soft); color: var(--green); padding: 16px;
}
.gallery-ph .tag { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; border: 2px solid var(--green); border-radius: var(--radius-pill); padding: 7px 14px; background: var(--surface); }
.gallery-ph small { display: block; margin-top: 8px; color: var(--muted); }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-grid video, .home-video video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); background: #000; display: block; }
.home-video { max-width: 760px; margin: 0 auto; }
.home-video video { border-radius: var(--radius-lg); }

/* Thumbnail strip (extra product photos) */
.thumb-row { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.thumb-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow-sm); }
.thumb-row .gallery-ph { width: 96px; height: 72px; aspect-ratio: auto; min-height: 0; padding: 6px; }
.thumb-row .gallery-ph .tag { font-size: 0.6rem; padding: 3px 8px; }

@media (max-width: 760px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .video-grid { grid-template-columns: 1fr; } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Page banner ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 88% -30%, color-mix(in srgb, var(--red) 40%, transparent), transparent 60%),
    linear-gradient(160deg, var(--green-deep), color-mix(in srgb, var(--green-deep) 70%, #000));
  color: #fff;
  padding: 84px 0 72px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.page-banner h1 { color: #fff; }
.page-banner p { color: rgba(255,255,255,0.86); max-width: 60ch; margin-bottom: 0; }
.page-banner .eyebrow { color: #ffc7d1; }
.page-banner::after {
  content: ""; position: absolute; width: 260px; height: 260px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: rgba(255,255,255,0.06); bottom: -90px; left: 6%;
}

/* ---------- Product section ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product.reverse .product-media { order: 2; }
.product .season {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; font-weight: 600; font-size: 0.82rem;
  padding: 6px 15px; border-radius: var(--radius-pill); margin-bottom: 14px;
}
.variety-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.variety-list li {
  background: var(--green-soft); color: var(--heading); font-weight: 600;
  padding: 8px 15px; border-radius: var(--radius-pill); font-size: 0.92rem;
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
}

/* ---------- Certifications ---------- */
.cert-badges { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.cert-badge {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; background: var(--surface); box-shadow: var(--shadow-sm); min-width: 220px;
}
.cert-badge .seal {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(140deg, var(--green), var(--green-bright));
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.66rem; text-align: center; line-height: 1.1; flex: none;
}
.cert-badge.red .seal { background: linear-gradient(140deg, var(--red), var(--red-bright)); }
.cert-badge strong { display: block; color: var(--heading); }
.cert-badge span { font-size: 0.86rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--green-deep), var(--red-deep));
  color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; width: 240px; height: 240px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: rgba(255,255,255,0.08); top: -80px; right: -40px;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 52ch; margin: 0 auto 24px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 46px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 22px 0 0; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-list .ico { width: 46px; height: 46px; border-radius: 50% 50% 50% 12px; flex: none; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 1.2rem; }
.info-list strong { display: block; color: var(--heading); }
.info-list a, .info-list span { color: var(--muted); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: 0.92rem; color: var(--heading); }
.field label .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; color: var(--ink); background: var(--surface-2);
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-bright);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-bright) 22%, transparent);
}
.field textarea { min-height: 132px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-success {
  display: none; background: var(--green-soft);
  border: 1px solid var(--green-bright); color: var(--heading);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600;
}
.form-success.show { display: block; }
.form-error {
  display: none; background: color-mix(in srgb, var(--red) 14%, transparent);
  border: 1px solid var(--red); color: var(--red);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 600;
}
:root[data-theme="dark"] .form-error { color: var(--red-bright); border-color: var(--red-bright); }
.form-error.show { display: block; }
.hp-field { position: absolute; left: -9999px; }
button[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.82); padding: 64px 0 26px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
:root[data-theme="dark"] .site-footer { background: #0a1a12; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand small { color: rgba(255,255,255,0.62); }
.footer-brand p { max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.16); margin-top: 38px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .product, .product.reverse .product-media { grid-template-columns: 1fr; }
  .product.reverse .product-media { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 300px; }
}
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; gap: 2px; display: none; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.6rem; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  section { padding: 56px 0; }
}
