/*
Theme Name: Emparou Olive Oil Co-op
Theme URI: https://embaroscoop.gr
Description: Theme for the Agricultural Cooperative of Emparos (Εμπάρου), extra virgin olive oil from Crete.
Author: Agricultural Cooperative of Emparos
Version: 1.0.0
Text Domain: emparos
License: GPL-2.0-or-later
*/

:root {
  --black: #111111;
  --ink: #1b1b1b;
  --gold: #c2a263;
  --gold-soft: #d9c291;
  --cream: #f7f4ec;
  --white: #ffffff;
  --grey: #8a8a8a;
  --crete-red: #c8234b;
  --radius: 4px;
  --max: 1180px;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

/* Header */
.site-header {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid rgba(194, 162, 99, 0.3);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.site-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo img { width: 56px; height: 56px; object-fit: contain; }
.site-logo span { font-family: var(--font-display); font-size: 1.1rem; color: var(--gold); letter-spacing: 0.08em; }

.main-nav ul { list-style: none; display: flex; gap: 1.6rem; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a { text-decoration: none; font-size: 0.95rem; letter-spacing: 0.05em; text-transform: uppercase; }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--gold); }

/* Language switcher (Polylang) */
.lang-switcher { list-style: none; display: flex; gap: 0.75rem; margin: 0; padding: 0; }
.lang-switcher a { text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; }
.lang-switcher .current-lang a { color: var(--gold); font-weight: 700; }
.lang-switcher img { width: 16px; height: auto; vertical-align: middle; margin-right: 0.35rem; }

/* Hero */
.hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero img.hero-bg {
  width: 100%;
  height: min(78vh, 760px);
  object-fit: cover;
  opacity: 0.85;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  max-width: var(--max);
  margin-inline: auto;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); color: var(--gold-soft); }
.hero p { max-width: 36rem; font-size: 1.1rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  background: var(--gold);
  color: var(--black);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  width: fit-content;
}
.btn:hover { background: var(--gold-soft); }

/* Sections */
section { padding: clamp(3rem, 7vw, 6rem) 0; }
section.dark { background: var(--black); color: var(--white); }
section.dark h2 { color: var(--gold); }
.section-intro { max-width: 46rem; margin: 0 auto 2.5rem; text-align: center; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.product-card img { margin-inline: auto; max-height: 360px; object-fit: contain; }
.product-card h3 { font-size: 1.1rem; margin-top: 1rem; }
.product-card .size { color: var(--grey); font-size: 0.9rem; }

/* Story */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.story img { border-radius: var(--radius); }
@media (max-width: 800px) { .story { grid-template-columns: 1fr; } }

/* Quote band */
.quote-band img { width: 100%; height: auto; }

/* Certifications */
.badges { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; align-items: center; margin-top: 2rem; }
.badges img { height: 90px; width: auto; }

/* Footer */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}
.site-footer .grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.site-footer img { width: 120px; height: auto; margin-bottom: 1rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.copyright { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1rem; color: var(--grey); font-size: 0.85rem; }
@media (max-width: 700px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* Generic content */
.entry { padding: 3rem 0; }
.entry-content p { max-width: 46rem; }

/* Mobile nav */
@media (max-width: 760px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .main-nav ul { gap: 1rem; }
}
