/* ==========================================================================
   Giuliani Collective — Design Tokens
   Palette: cream background, near-black ink, warm amber/gold accent
   Type: Playfair Display (display) + EB Garamond (body/utility)
   ========================================================================== */

:root {
  --cream: #f4efe6;
  --cream-soft: #ece5d8;
  --ink: #1c1512;
  --ink-soft: #2a221c;
  --gold-1: #d99a55;
  --gold-2: #f4b36e;
  --gold-deep: #b98a4c;
  --gold-text: #8a6530; /* WCAG AA-compliant variant of gold-deep, for text on light backgrounds */
  --text-dark: #241a10;
  --text-muted: #7d6c58;
  --border-soft: #ddd2c0;
  --white: #fffdf9;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;

  --max-width: 1180px;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 0.8em;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 14px 30px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink-soft); }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 2px;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #d8cbb4;
  position: relative;
  padding-bottom: 3px;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--gold-2);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: var(--gold-2);
}

.lang-switch {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}
.lang-switch button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #55483a;
  border-radius: 20px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #cbb896;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--gold-2);
  color: var(--ink);
  border-color: var(--gold-2);
}
.lang-switch button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 840px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: flex-start; padding: 20px 28px 28px; gap: 18px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 560px;
}
.hero-copy { padding: 60px 0; }
.hero h1 { color: var(--white); }
.hero-copy p { color: #d8cbb4; font-size: 1.15rem; max-width: 46ch; }
.hero-image { height: 100%; position: relative; background: var(--ink); }
.hero-image img {
  width: 100%; height: 100%; object-fit: contain;
  min-height: 420px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image img { min-height: 320px; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: 80px 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.watermark-monogram {
  position: absolute;
  width: 460px;
  max-width: 60vw;
  right: -70px;
  bottom: -80px;
  opacity: 0.055;
  pointer-events: none;
  z-index: 0;
}
.section-dark .container { position: relative; z-index: 1; }

.lede {
  font-size: 1.3rem;
  max-width: 62ch;
  color: var(--text-muted);
  font-style: italic;
}

/* Way-finder cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 800px) { .card-grid { grid-template-columns: 1fr; } }
.wayfind-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  padding: 34px 30px;
  border-radius: 3px;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wayfind-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(28,21,18,0.1);
}
.wayfind-card h3 { margin-bottom: 0.4em; }
.wayfind-card .arrow { color: var(--gold-text); font-weight: 600; margin-top: 14px; display: inline-block; }

/* ==========================================================================
   Product cards + flavor bars (signature element)
   ========================================================================== */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-soft);
}
.product-block:last-child { border-bottom: none; }
@media (max-width: 860px) { .product-block { grid-template-columns: 1fr; } }

.product-media img { border-radius: 3px; }
.product-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.flavor-bars { margin: 26px 0; }
.bar-row { margin-bottom: 12px; }
.bar-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.bar-label-row .pct { color: var(--gold-text); font-weight: 600; }
.bar-track {
  background: var(--cream-soft);
  border-radius: 20px;
  height: 7px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
}

.order-box {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 30px 32px;
  margin-top: 50px;
}
.order-box ul { margin: 14px 0 0; padding-left: 20px; }
.order-box li { margin-bottom: 8px; }

/* ==========================================================================
   About page
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.story-grid.reverse .story-media { order: 2; }
.story-grid.reverse .story-copy { order: 1; }
@media (max-width: 860px) {
  .story-grid.reverse .story-media, .story-grid.reverse .story-copy { order: initial; }
}
.story-media img { border-radius: 3px; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}
@media (max-width: 800px) { .values-grid { grid-template-columns: 1fr; } }
.value-item { border-top: 2px solid var(--gold-2); padding-top: 16px; }

/* ==========================================================================
   Contact / order form
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.08rem;
  padding: 10px 4px;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  background: transparent;
  color: var(--text-dark);
  transition: border-color 0.2s ease;
}
.field select { background-image: none; }
.field textarea { border: 1px solid var(--border-soft); padding: 12px 14px; border-radius: 2px; }
.field input:hover, .field select:hover { border-bottom-color: var(--gold-deep); }
.field input:focus, .field select:focus {
  outline: none;
  border-bottom: 1px solid var(--gold-deep);
  box-shadow: 0 1px 0 0 var(--gold-deep);
}
.field textarea:focus {
  outline: 2px solid var(--gold-2);
  outline-offset: 1px;
}
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-field input { width: auto; margin-top: 4px; }

.contact-info-card {
  background: var(--ink);
  color: var(--white);
  padding: 34px 32px;
  border-radius: 3px;
}
.contact-info-card h3 { color: var(--white); }
.contact-info-card a { text-decoration: none; color: var(--gold-2); }
.contact-info-card .info-row { margin-bottom: 18px; }
.contact-info-card .info-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a9987f;
  display: block;
  margin-bottom: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: #a9987f;
  padding: 50px 0 30px;
  font-size: 0.88rem;
  line-height: 1.7;
}
.site-footer a { color: #cbb896; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { margin: 14px 0; }
.footer-links a { margin-right: 18px; }
.footer-legal { border-top: 1px solid #3a3128; margin-top: 24px; padding-top: 20px; }

/* ==========================================================================
   Utility
   ========================================================================== */
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold-2);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ==========================================================================
   Bilingual toggle (EL / EN)
   Default markup order shows English; JS sets html[lang] to switch.
   ========================================================================== */
[data-lang-en] { display: inline; }
[data-lang-el] { display: none; }
html[lang="el"] [data-lang-en] { display: none; }
html[lang="el"] [data-lang-el] { display: inline; }

/* Block-level bilingual wrappers (used on legal pages, which contain
   headings/paragraphs/tables rather than inline text) */
.legal-body [data-lang-en] { display: block; }
.legal-body [data-lang-el] { display: none; }
html[lang="el"] .legal-body [data-lang-en] { display: none; }
html[lang="el"] .legal-body [data-lang-el] { display: block; }

.bar-label-row span[data-lang-en] { display: inline; }
.bar-label-row span[data-lang-el] { display: none; }
html[lang="el"] .bar-label-row span[data-lang-en] { display: none; }
html[lang="el"] .bar-label-row span[data-lang-el] { display: inline; }
