/* ============================================================
   ITALIAN WITH FRANCESCA — Global Design System
   italianowithfrancesca.com
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display:ital@0;1&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand colours */
  --c-green:        #2D6A4F;
  --c-green-mid:    #40916C;
  --c-green-light:  #74C69D;
  --c-green-pale:   #D8F3DC;
  --c-cream:        #FDFAF5;
  --c-cream-dark:   #F5EFE0;
  --c-ochre:        #C9A84C;
  --c-ochre-light:  #F0DFA8;
  --c-red:          #C0392B;   /* Italian flag accent */
  --c-red-light:    #FADBD8;

  /* Neutral */
  --c-ink:          #1C1C1C;
  --c-ink-mid:      #4A4A4A;
  --c-ink-light:    #7A7A7A;
  --c-border:       #E2DDD4;
  --c-border-light: #EDE8DF;
  --c-white:        #FFFFFF;

  /* Typography */
  --f-display:  'DM Serif Display', 'Cormorant Garamond', Georgia, serif;
  --f-body:     'DM Sans', system-ui, sans-serif;
  --f-italic:   'Cormorant Garamond', Georgia, serif;

  /* Type scale */
  --fs-xs:   0.75rem;    /*  12px */
  --fs-sm:   0.875rem;   /*  14px */
  --fs-base: 1rem;       /*  16px */
  --fs-md:   1.125rem;   /*  18px */
  --fs-lg:   1.25rem;    /*  20px */
  --fs-xl:   1.5rem;     /*  24px */
  --fs-2xl:  2rem;       /*  32px */
  --fs-3xl:  2.5rem;     /*  40px */
  --fs-4xl:  3.25rem;    /*  52px */
  --fs-5xl:  4rem;       /*  64px */
  --fs-6xl:  5rem;       /*  80px */

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Layout */
  --max-w:       1200px;
  --max-w-text:  720px;
  --gutter:      clamp(1.25rem, 5vw, 2.5rem);

  /* Radii */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:  0 4px 16px rgba(0,0,0,.08);
  --sh-lg:  0 8px 32px rgba(0,0,0,.10);
  --sh-xl:  0 16px 48px rgba(0,0,0,.12);

  /* Transitions */
  --ease:       cubic-bezier(.4,0,.2,1);
  --t-fast:     180ms;
  --t-mid:      300ms;
  --t-slow:     500ms;

  /* Nav height */
  --nav-h: 72px;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  line-height: 1.15;
  color: var(--c-ink);
}
h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); font-weight: 400; }
h2 { font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-4xl)); font-weight: 400; }
h3 { font-size: clamp(var(--fs-xl), 2.5vw, var(--fs-2xl)); font-weight: 500; }
h4 { font-size: var(--fs-lg); font-weight: 500; }
p  { color: var(--c-ink-mid); line-height: 1.75; }

.serif-italic {
  font-family: var(--f-italic);
  font-style: italic;
  font-weight: 500;
}

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow {
  max-width: var(--max-w-text);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(var(--sp-10), 5vw, var(--sp-20));
}
.section--cream { background: var(--c-cream); }
.section--white { background: var(--c-white); }
.section--green { background: var(--c-green); color: var(--c-white); }
.section--cream-dark { background: var(--c-cream-dark); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Flex helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.85em 1.75em;
  border-radius: var(--r-full);
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--t-mid) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-green);
  color: var(--c-white);
  box-shadow: 0 2px 12px rgba(45,106,79,.25);
}
.btn-primary:hover {
  background: var(--c-green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45,106,79,.35);
}
.btn-secondary {
  background: transparent;
  color: var(--c-green);
  border: 1.5px solid var(--c-green);
}
.btn-secondary:hover {
  background: var(--c-green);
  color: var(--c-white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}
.btn-lg { padding: 1em 2.25em; font-size: var(--fs-base); }
.btn-sm { padding: 0.6em 1.25em; font-size: var(--fs-xs); }

/* ── Section labels ───────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--sp-4);
}
.eyebrow--light { color: var(--c-green-light); }

/* Section title block */
.section-head { margin-bottom: clamp(var(--sp-8), 4vw, var(--sp-12)); }
.section-head--center { text-align: center; }
.section-head p { margin-top: var(--sp-4); font-size: var(--fs-md); max-width: 56ch; }
.section-head--center p { margin-inline: auto; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--c-ochre);
  margin-block: var(--sp-5);
  border-radius: var(--r-full);
}
.divider--center { margin-inline: auto; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-xl);
}
.card__body { padding: var(--sp-6); }
.card__img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge--green  { background: var(--c-green-pale); color: var(--c-green); }
.badge--ochre  { background: var(--c-ochre-light); color: #7a5c00; }
.badge--red    { background: var(--c-red-light); color: var(--c-red); }

/* ── Form elements ────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.form-input {
  padding: 0.75em 1em;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color var(--t-fast) var(--ease);
  outline: none;
}
.form-input:focus { border-color: var(--c-green); box-shadow: 0 0 0 3px rgba(45,106,79,.12); }
.form-input::placeholder { color: var(--c-ink-light); }

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-green  { color: var(--c-green); }
.text-ochre  { color: var(--c-ochre); }
.text-white  { color: var(--c-white); }
.text-light  { color: var(--c-ink-light); }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-12 { margin-top: var(--sp-12); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.hidden { display: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fadeUp    { animation: fadeUp  var(--t-slow) var(--ease) both; }
.animate-fadeIn    { animation: fadeIn  var(--t-slow) var(--ease) both; }
.animate-delay-1   { animation-delay: 100ms; }
.animate-delay-2   { animation-delay: 200ms; }
.animate-delay-3   { animation-delay: 320ms; }
.animate-delay-4   { animation-delay: 440ms; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  h1 { font-size: clamp(2rem, 8vw, 2.75rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.25rem); }
}

/* ══════════════════════════════════════════════════════
   FOOTER (shared across all pages)
══════════════════════════════════════════════════════ */
.footer {
  background: var(--c-ink);
  color: var(--c-white);
}
.footer__inner {
  padding-block: var(--sp-16) var(--sp-12);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-16);
}
.footer__logo { font-family: var(--f-display); font-size: var(--fs-xl); display: block; margin-bottom: var(--sp-3); }
.footer__brand p { color: rgba(255,255,255,.5); font-size: var(--fs-sm); line-height: 1.65; margin-bottom: var(--sp-5); }
.footer__social { display: flex; gap: var(--sp-4); }
.footer__social a { color: rgba(255,255,255,.4); transition: color var(--t-fast) var(--ease); }
.footer__social a:hover { color: var(--c-white); }

.footer__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.footer__col { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__col h5 { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: var(--sp-2); }
.footer__col a { font-size: var(--fs-sm); color: rgba(255,255,255,.6); transition: color var(--t-fast) var(--ease); }
.footer__col a:hover { color: var(--c-white); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: var(--sp-6);
}
.footer__bottom .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4); }
.footer__bottom p { font-size: var(--fs-xs); color: rgba(255,255,255,.35); }
.footer__legal { display: flex; gap: var(--sp-6); }
.footer__legal a { font-size: var(--fs-xs); color: rgba(255,255,255,.35); transition: color var(--t-fast) var(--ease); }
.footer__legal a:hover { color: rgba(255,255,255,.7); }

@media (max-width: 1024px) {
  .footer__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
}
@media (max-width: 768px) {
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .footer__links { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; align-items: flex-start; }
}
