/* ============================================================
   RAMI FARM — static site stylesheet
   ============================================================ */

:root {
  /* Rami Farm brand palette — navy & gold, from the official logo */
  --barn-cream: #F4F1E9;
  --milk-white: #FFFFFF;
  --deep-pasture: #0F1F4B;   /* navy — headers, nav, footer */
  --pasture-mid: #16297A;    /* lighter navy for accents */
  --pasture-light: #2A3F8F;
  --butter-gold: #C9A24B;    /* gold — accents, borders */
  --butter-gold-soft: #E8D28F;
  --oxblood: #B8862F;        /* deep gold — CTA buttons */
  --oxblood-dark: #96701F;
  --ink: #1B1B1B;
  --ink-soft: #55524A;
  --line: #DDD3B8;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --max-width: 1180px;
  --radius-tag: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--barn-cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--deep-pasture); margin: 0; line-height: 1.08; font-weight: 600; }
p { margin: 0; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--radius-tag); padding: 14px 26px;
  font-size: 15px; font-weight: 600; font-family: var(--font-body);
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--oxblood); color: var(--milk-white); }
.btn-primary:hover { background: var(--oxblood-dark); }
.btn-secondary { background: transparent; color: var(--deep-pasture); border: 1.5px solid var(--deep-pasture); }
.btn-secondary:hover { background: var(--deep-pasture); color: var(--milk-white); }
.btn-ghost-cream { background: transparent; color: var(--barn-cream); border: 1.5px solid var(--barn-cream); }
.btn-ghost-cream:hover { background: var(--barn-cream); color: var(--deep-pasture); }

.section { padding: 96px 0; }
@media (max-width: 780px) { .section { padding: 64px 0; } }

/* ---------- Navbar ---------- */
.navbar { position: sticky; top: 0; z-index: 40; background: var(--barn-cream); border-bottom: 1px solid var(--line); }
.navbar-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.navbar-mark { display: flex; flex-direction: column; line-height: 1.1; }
.navbar-mark-name { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--deep-pasture); }
.navbar-mark-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; }
.navbar-links { display: flex; gap: 32px; }
.navbar-link { font-size: 15px; font-weight: 500; color: var(--ink); padding-bottom: 3px; border-bottom: 1.5px solid transparent; }
.navbar-link:hover { color: var(--deep-pasture); }
.navbar-link.is-active { color: var(--deep-pasture); border-bottom-color: var(--oxblood); }
.navbar-cta { padding: 9px 18px; font-size: 14px; white-space: nowrap; }
@media (max-width: 780px) {
  .navbar-row { flex-wrap: wrap; }
  .navbar-mark-sub { display: none; }
  .navbar-links { gap: 18px; }
  .navbar-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero-row { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero-stamp { font-size: 13.5px; font-weight: 600; color: var(--oxblood); margin-bottom: 18px; }
.hero-title { font-size: clamp(38px, 5vw, 58px); max-width: 11ch; margin-bottom: 24px; }
.hero-lede { font-size: 17px; color: var(--ink-soft); max-width: 46ch; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-art-svg { width: 100%; height: auto; border-radius: 4px; overflow: hidden; }
@media (max-width: 900px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-art-svg { max-width: 340px; margin: 0 auto; }
}

.strip { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-row { display: flex; gap: 56px; flex-wrap: wrap; }
.strip-num { font-family: var(--font-display); font-size: 34px; color: var(--deep-pasture); font-weight: 600; }
.strip-label { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 30px; }
.section-head-link { font-size: 14px; font-weight: 600; color: var(--oxblood); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

.product-card { background: var(--milk-white); border: 1px solid var(--line); border-top: 4px solid var(--deep-pasture); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 16px; transition: border-color .2s ease; }
.product-card:hover { border-top-color: var(--oxblood); }
.product-card-mark { width: 56px; height: 56px; color: var(--pasture-mid); }
.product-card-tag { font-size: 12.5px; font-weight: 600; color: var(--oxblood); }
.product-card-name { font-size: 21px; }
.product-card-desc { font-size: 14.5px; color: var(--ink-soft); flex: 1; }

.cta-band { background: var(--deep-pasture); }
.cta-row { max-width: 640px; }
.cta-row h2 { color: var(--barn-cream); font-size: 32px; margin-bottom: 16px; }
.cta-row p { color: var(--barn-cream); opacity: .85; margin-bottom: 28px; font-size: 16px; }

/* ---------- Products page ---------- */
.shop-head { max-width: 560px; margin-bottom: 40px; }
.shop-head h1 { font-size: 40px; margin-bottom: 16px; }
.shop-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- About page ---------- */
.about-hero { padding-bottom: 40px; }
.about-hero-row h1 { font-size: clamp(32px, 4.5vw, 48px); max-width: 16ch; margin-bottom: 20px; }
.about-lede { font-size: 17px; color: var(--ink-soft); max-width: 60ch; }
.about-section-title { font-size: 26px; margin-bottom: 40px; }
.timeline { max-width: 720px; }
.timeline-row { display: grid; grid-template-columns: 84px 24px 1fr; gap: 20px; }
.timeline-year { font-family: var(--font-display); font-weight: 600; color: var(--deep-pasture); font-size: 17px; padding-top: 2px; }
.timeline-line { display: flex; flex-direction: column; align-items: center; }
.timeline-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--oxblood); flex-shrink: 0; margin-top: 6px; }
.timeline-connector { flex: 1; width: 1.5px; background: var(--line); margin: 4px 0; }
.timeline-text { padding-bottom: 36px; color: var(--ink-soft); font-size: 15.5px; max-width: 48ch; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
@media (max-width: 780px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .gallery-grid { grid-template-columns: 1fr; } }

.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border: 1px solid var(--line); max-width: 800px; margin: 0 auto; }
.video-wrap iframe { position: absolute; top:0; left:0; width:100%; height:100%; border: none; } background: var(--milk-white); border-top: 1px solid var(--line); }
.about-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.about-values-grid h3 { font-size: 20px; margin-bottom: 12px; }
.about-values-grid p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 780px) {
  .about-values-grid { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 64px 20px 1fr; }
}

/* ---------- Contact page ---------- */
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-page h1 { font-size: 38px; margin-bottom: 18px; }
.contact-lede { color: var(--ink-soft); font-size: 16px; max-width: 44ch; margin-bottom: 36px; }
.contact-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 12.5px; font-weight: 600; color: var(--oxblood); margin-bottom: 4px; }
.contact-list dd { margin: 0; font-size: 15.5px; color: var(--ink); }
.contact-form { display: flex; flex-direction: column; gap: 20px; background: var(--milk-white); border: 1px solid var(--line); padding: 32px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.contact-form input, .contact-form textarea { font-family: var(--font-body); font-size: 15px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-tag); background: var(--barn-cream); resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--deep-pasture); }
@media (max-width: 780px) { .contact-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-pasture); color: var(--barn-cream); padding-top: 64px; }
.footer-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(246,241,228,.18); }
.footer-brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.footer-brand-line { margin-top: 10px; font-size: 14px; opacity: .8; line-height: 1.6; }
.footer-col-title { font-weight: 600; margin-bottom: 12px; color: var(--butter-gold-soft); }
.footer-col p, .footer-col a { display: block; font-size: 14px; opacity: .85; margin-bottom: 8px; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom { padding: 20px 0; font-size: 12.5px; opacity: .65; }
@media (max-width: 700px) { .footer-row { grid-template-columns: 1fr; } }

/* ---------- Logo image + language switcher ---------- */
.navbar-mark-img {
  height: 54px;
  width: auto;
}
.navbar-mark-row { display: flex; align-items: center; gap: 12px; }

.lang-switcher { position: relative; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1.5px solid var(--deep-pasture);
  border-radius: var(--radius-tag); padding: 8px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--deep-pasture);
}
.lang-switcher-btn:hover { background: var(--deep-pasture); color: var(--milk-white); }
.lang-switcher-menu {
  display: none; position: absolute; top: 110%; right: 0;
  background: var(--milk-white); border: 1px solid var(--line);
  border-radius: var(--radius-tag); min-width: 160px; z-index: 50;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.lang-switcher:hover .lang-switcher-menu,
.lang-switcher:focus-within .lang-switcher-menu { display: block; }
.lang-switcher-menu a {
  display: block; padding: 10px 16px; font-size: 14px; color: var(--ink);
}
.lang-switcher-menu a:hover { background: var(--barn-cream); }
.lang-switcher-menu a.is-current { font-weight: 700; color: var(--deep-pasture); }
