/* ============================================================
   main.css — Shared design system for RicettAlis
   Includes: tokens, reset, base, typography, utilities,
             components, section modifiers, header, footer
   ============================================================ */


/* ── Design Tokens ── */
:root {
  --terracotta:      #a23c26;
  --terracotta-dark: #8b3220;
  --sage:            #a4b08b;
  --sage-light:      #bcc7a6;
  --sage-dark:       #8a9872;
  --cream:           #f1eed5;
  --cream-light:     #f7f5ec;
  --cream-white:     #fdfcf7;
  --dark-brown:      #291909;
  --mid-brown:       #5a3920;
  --border:          #d6ceab;
  --border-dark:     rgba(255 255 255 / 0.12);
  --text-on-dark:    rgba(241 238 213 / 0.85);

  --ff-heading: 'Playfair Display', Georgia, serif;
  --ff-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  --radius:     4px;
  --ease:       all 0.22s ease;
  --max-w:      860px;
  --max-w-wide: 1080px;
}


/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin:     0;
  padding:    0;
}

html { scroll-behavior: smooth; }

body {
  font-family:      var(--ff-body);
  background-color: var(--cream);
  color:            var(--dark-brown);
  line-height:      1.8;
  font-size:        18px;
}

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


/* ── Layout Wrappers ── */
.wrap       { width: 100%; max-width: var(--max-w);      margin: 0 auto; padding: 0 28px; }
.wrap--wide { width: 100%; max-width: var(--max-w-wide); margin: 0 auto; padding: 0 28px; }


/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--ff-heading); line-height: 1.22; }
h1 { font-size: clamp(2rem,    5vw,   3.2rem);  font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw,   2.3rem);  font-weight: 600; }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.35rem); font-weight: 600; }
h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }


/* ── Utility Classes ── */
.text-center { text-align: center; }
.serif       { font-family: var(--ff-heading); }
.italic      { font-style: italic; }


/* ── Buttons ── */
.btn {
  display:        inline-block;
  font-family:    var(--ff-body);
  font-size:      0.88rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding:        16px 40px;
  border-radius:  var(--radius);
  border:         2px solid transparent;
  cursor:         pointer;
  transition:     var(--ease);
  text-align:     center;
}

.btn--primary {
  background-color: var(--terracotta);
  border-color:     var(--terracotta);
  color:            #fff;
}
.btn--primary:hover {
  background-color: var(--terracotta-dark);
  border-color:     var(--terracotta-dark);
}

.btn--outline {
  background-color: transparent;
  border-color:     var(--terracotta);
  color:            var(--terracotta);
}
.btn--outline:hover {
  background-color: var(--terracotta);
  color:            #fff;
}

.btn--outline-sage {
  background-color: transparent;
  border-color:     var(--sage);
  color:            var(--sage-dark);
}
.btn--outline-sage:hover {
  background-color: var(--sage);
  color:            var(--dark-brown);
}

.btn--outline-light {
  background-color: transparent;
  border-color:     var(--sage-light);
  color:            var(--sage-light);
}
.btn--outline-light:hover {
  background-color: var(--sage-light);
  color:            var(--dark-brown);
}


/* ── Reusable Atoms ── */
.eyebrow {
  font-family:    var(--ff-body);
  font-size:      0.74rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color:          var(--sage-dark);
  display:        block;
  margin-bottom:  12px;
}
.eyebrow--light { color: var(--sage-light); }

.rule {
  width:      52px;
  height:     2px;
  background: var(--sage);
  margin:     22px auto;
}
.rule--light { background: var(--sage-light); }
.rule--dark  { background: var(--dark-brown); }

.img-ph {
  width:            100%;
  background:       var(--border);
  display:          flex;
  align-items:      center;
  justify-content:  center;
  color:            rgba(0 0 0 / 0.18);
  font-size:        0.7rem;
  letter-spacing:   0.1em;
  text-transform:   uppercase;
  user-select:      none;
}
.img-ph--dark {
  background: rgba(255 255 255 / 0.06);
  color:      rgba(255 255 255 / 0.18);
}

.blockquote {
  font-family:  var(--ff-heading);
  font-style:   italic;
  font-size:    1.22rem;
  color:        var(--mid-brown);
  border-left:  3px solid var(--sage);
  padding:      16px 28px;
  margin:       30px 0;
  line-height:  1.6;
}

/* Story — shared layout used in homepage and about */
.story-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   52px;
  align-items:           center;
  margin-top:            48px;
}

.story-text p {
  font-size:   1.02rem;
  color:       var(--mid-brown);
  line-height: 1.85;
}
.story-text p + p { margin-top: 16px; }

.story-photo .img-ph {
  aspect-ratio:  3 / 4;
  border-radius: var(--radius);
}


/* Lead paragraph — centered intro text below section headings */
.section__lead {
  max-width:  560px;
  margin:     0 auto;
  color:      var(--mid-brown);
  font-size:  1rem;
  text-align: center;
}


/* ── Section Base & Modifiers ── */
.section { padding: 96px 0; }

.section--dark {
  background-color: var(--dark-brown);
  color:            var(--cream);
}
.section--dark h2,
.section--dark h3 { color: var(--cream); }
.section--dark p   { color: var(--text-on-dark); }

.section--tinted {
  background-color: var(--cream-light);
  border-top:       1px solid var(--border);
  border-bottom:    1px solid var(--border);
}

.section--sage {
  background-color: var(--sage);
  color:            var(--dark-brown);
}
.section--sage h2 { color: var(--dark-brown); }
.section--sage p  { color: var(--mid-brown); }


/* ── Header ── */
.site-header {
  position:      sticky;
  top:           0;
  z-index:       200;
  background:    var(--cream);
  border-bottom: 1px solid var(--border);
  padding:       18px 0;
}

.site-header .wrap--wide {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

.logo {
  display:     block;
  line-height: 0;
}
.logo img {
  display:     block;
  height:      60px;
  width:       auto;
  object-fit:  contain;
}

.main-nav {
  display:     flex;
  align-items: center;
  gap:         32px;
}
.main-nav a:not(.btn) {
  font-size:      0.88rem;
  font-weight:    600;
  letter-spacing: 0.04em;
  color:          var(--mid-brown);
  transition:     var(--ease);
}
.main-nav a:hover   { color: var(--terracotta); }
.main-nav .btn      { padding: 10px 24px; font-size: 0.8rem; }

.nav-yt,
.nav-ig {
  display:     inline-flex;
  align-items: center;
  gap:         6px;
}
.nav-yt svg,
.nav-ig svg          { width: 20px; height: 20px; fill: var(--terracotta); transition: var(--ease); }
.nav-yt:hover svg,
.nav-ig:hover svg    { fill: var(--terracotta-dark); }

.nav-toggle {
  display:    none;
  background: none;
  border:     none;
  cursor:     pointer;
  padding:    8px;
}
.nav-toggle span {
  display:    block;
  width:      26px;
  height:     2px;
  background: var(--dark-brown);
  margin:     5px 0;
  transition: var(--ease);
}


/* ── Footer ── */
.site-footer {
  background:  var(--dark-brown);
  border-top:  1px solid rgba(255 255 255 / 0.07);
  padding:     56px 0 28px;
  color:       rgba(241 238 213 / 0.5);
  font-size:   0.88rem;
}

.footer-grid {
  display:               grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:                   40px;
  margin-bottom:         40px;
}

.footer-grid h4 {
  font-family:    var(--ff-body);
  font-size:      0.72rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color:          var(--sage-light);
  margin-bottom:  16px;
}
.footer-grid p {
  font-size:   0.88rem;
  line-height: 1.7;
  color:       rgba(241 238 213 / 0.5);
}
.footer-grid a {
  color:      rgba(241 238 213 / 0.6);
  transition: var(--ease);
}
.footer-grid a:hover { color: var(--sage-light); }

.footer-links           { display: flex; flex-direction: column; gap: 10px; }
.footer-links a         { font-size: 0.88rem; }

.footer-contact-note {
  margin-top:  8px;
  font-size:   0.82rem;
  line-height: 1.6;
}

.footer-social     { display: flex; gap: 16px; margin-top: 14px; }
.footer-social a   { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.footer-social svg { width: 18px; height: 18px; fill: rgba(241 238 213 / 0.5); transition: var(--ease); }
.footer-social a:hover svg { fill: var(--sage-light); }

.footer-bottom {
  border-top:  1px solid rgba(255 255 255 / 0.07);
  padding-top: 22px;
  text-align:  center;
  font-size:   0.78rem;
  color:       rgba(241 238 213 / 0.3);
}


/* ── Responsive — Global ── */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .logo img { height: 56px; }

  .main-nav      { display: none; }
  .nav-toggle    { display: block; }
  .main-nav.open {
    display:        flex;
    flex-direction: column;
    position:       absolute;
    top:            100%;
    left:           0;
    right:          0;
    background:     var(--cream);
    border-bottom:  1px solid var(--border);
    padding:        20px 28px;
    gap:            18px;
  }

  .story-grid  { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .btn { width: 100%; }
}

@media (max-width: 480px) {
  .section    { padding: 56px 0; }
  .wrap,
  .wrap--wide { padding: 0 20px; }
}
