/* =============================================
   CoffeeFairs.com — Shared Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --nav:        #1A0E08;
  --cream:      #FAF7F2;
  --parchment:  #EDE0CE;
  --warm:       #F2E8D8;
  --gold:       #A06920;
  --gold-light: #C48830;
  --text:       #1C0F06;
  --muted:      #7A5438;
  --border:     #D8C8AE;
  --cta-bg:     #3D1F06;
  --white:      #FFFFFF;
  --nav-h:      64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(19px, 2.5vw, 26px); }
p  { color: var(--muted); line-height: 1.8; margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* ---- Navigation ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav);
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400;
  color: #fff; letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 8px 14px; display: block;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute;
  top: calc(100% + 4px); left: 0;
  background: var(--nav);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px; min-width: 180px; overflow: hidden;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  border-radius: 2px;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 28px; border-radius: 2px;
  border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); color: #fff; }
.btn-outline { background: transparent; color: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: rgba(255,255,255,0.65); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--gold); border: 1px solid var(--border); }
.btn-outline-dark:hover { border-color: var(--gold); }
.btn-cream { background: var(--parchment); color: var(--cta-bg); }
.btn-cream:hover { background: var(--warm); }

/* ---- Hero — Homepage ---- */
.hero {
  position: relative; height: 520px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
  background-color: var(--nav);
  background-image: url('images/hero.jpg');
  background-size: cover; background-position: center;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,10,4,0.42) 0%, rgba(20,10,4,0.68) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 740px; padding: 0 24px;
  animation: fadeUp 0.9s ease both;
}
.hero-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 22px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold);
}
.hero h1 { color: #fff; font-weight: 300; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Hero — Inner Pages ---- */
.page-hero {
  position: relative; height: 260px;
  display: flex; align-items: flex-end;
  padding: 40px 64px; overflow: hidden;
  background-color: var(--nav);
  background-size: cover; background-position: center;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,10,4,0.88) 0%, rgba(20,10,4,0.28) 100%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 8px;
}
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(30px, 4vw, 50px); }

/* ---- Section base ---- */
.section { padding: 80px 64px; }
.section-sm { padding: 56px 64px; }
.section-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-sub {
  font-size: 15px; color: var(--muted);
  line-height: 1.8; max-width: 560px; margin-bottom: 48px;
}
.bg-parchment { background: var(--parchment); }
.bg-warm      { background: var(--warm); }
.bg-white     { background: var(--white); }
.bg-dark      { background: var(--cta-bg); }
.bg-nav       { background: var(--nav); }
.bg-cream     { background: var(--cream); }

/* ---- Homepage intro grid ---- */
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.intro-text h2 { margin-bottom: 20px; }
.intro-pillars { display: flex; flex-direction: column; gap: 28px; padding-top: 6px; }
.pillar { display: flex; gap: 20px; align-items: flex-start; }
.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px; font-weight: 300;
  color: var(--border); line-height: 1;
  flex-shrink: 0; width: 44px;
}
.pillar-text h4 {
  font-size: 15px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  color: var(--text); margin-bottom: 5px;
}
.pillar-text p { font-size: 13.5px; margin: 0; }

/* ---- Cards ---- */
.cards-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 8px;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none; display: block;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28,15,6,0.1);
}
.card-image {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--warm) 0%, var(--border) 100%);
}
.card-body { padding: 24px; }
.card-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400;
  color: var(--text); margin-bottom: 10px;
}
.card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }
.card-link {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 6px;
}
.card-link::after { content: '→'; transition: transform 0.2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ---- About strip ---- */
.about-strip { display: grid; grid-template-columns: 1fr 1fr; }
.about-strip-left {
  background: var(--parchment);
  padding: 72px 64px;
  border-right: 1px solid var(--border);
}
.about-strip-left p { font-size: 15px; max-width: 440px; margin-bottom: 32px; }
.about-strip-right {
  background: var(--warm);
  padding: 72px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-strip-right blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300; font-style: italic;
  color: var(--muted); line-height: 1.65;
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}

/* ---- CTA band ---- */
.cta-band { background: var(--cta-bg); padding: 80px 64px; text-align: center; }
.cta-band h2 { color: var(--parchment); font-weight: 300; margin-bottom: 16px; }
.cta-band p {
  color: rgba(237,224,206,0.6); font-size: 15px;
  margin-bottom: 36px; max-width: 460px;
  margin-left: auto; margin-right: auto;
}

/* ---- Country page content ---- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.content-body h2 { margin-top: 48px; margin-bottom: 16px; }
.content-body h2:first-child { margin-top: 0; }
.content-sidebar { position: sticky; top: calc(var(--nav-h) + 24px); }

.event-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.event-box-header {
  background: var(--nav);
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.event-box-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400;
  color: #fff; line-height: 1.3;
}
.event-badge {
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
  white-space: nowrap; flex-shrink: 0;
}
.event-box-body { padding: 24px 28px; }
.event-meta { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.event-meta-item {
  font-size: 13px; color: var(--muted);
  display: flex; gap: 10px;
}
.event-meta-item strong { color: var(--text); font-weight: 500; min-width: 58px; }
.why-list { padding: 0; margin: 16px 0 24px; }
.why-list li {
  font-size: 13.5px; color: var(--muted);
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 0;
}
.why-list li:last-child { border-bottom: none; }
.why-list li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ---- Forms ---- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.form-intro .section-title { margin-bottom: 16px; }
.form-intro p { font-size: 15px; max-width: 380px; }
form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text);
}
input, select, textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 11px 15px;
  width: 100%; outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }

/* ---- Footer ---- */
.footer {
  background: var(--nav);
  padding: 36px 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: #fff; text-decoration: none;
}
.footer-logo span { color: var(--gold-light); }
.footer-links { display: flex; gap: 24px; justify-content: center; }
.footer-links a {
  font-size: 11px; color: rgba(255,255,255,0.38);
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.22); text-align: right; }

/* ---- Text pages (About, Privacy) ---- */
.text-page { max-width: 720px; }
.text-page h2 { font-size: 24px; margin-top: 48px; margin-bottom: 14px; }
.text-page h2:first-child { margin-top: 0; }
.text-page ul {
  list-style: disc; padding-left: 20px;
  margin-bottom: 1.2rem;
}
.text-page ul li { color: var(--muted); font-size: 15px; margin-bottom: 6px; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
