/* ============================================================
   12 FRUITS — SHARED DESIGN SYSTEM
   Inspired by Today at Apple: minimal, story-driven, modern
   ============================================================ */

:root {
  --color-bg: #fdfbf7;
  --color-cream: #f5efe6;
  --color-ink: #1a1a1a;
  --color-charcoal: #2a2a2a;
  --color-mute: #6b6b6b;
  --color-line: #e8e2d6;
  --color-wine: #6b1e1e;
  --color-rust: #b6553a;
  --color-gold: #c8a25b;
  --color-leaf: #2f4f3a;
  --color-accent: #b6553a;

  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-w: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--color-rust);
  margin-bottom: 1rem;
}
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--color-charcoal); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.btn-primary { background: var(--color-ink); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-wine); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: var(--color-bg); }
.btn-light { background: var(--color-bg); color: var(--color-ink); }
.btn-light:hover { background: var(--color-cream); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}
.nav-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
@media (max-width: 600px) {
  .nav-brand img { width: 48px; height: 48px; }
  .nav-brand { font-size: 1.2rem; }
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--color-charcoal);
  position: relative;
}
.nav-links a:hover { color: var(--color-wine); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-wine);
  border-radius: 2px;
}
.nav-cta { display: flex; gap: .5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px auto;
  transition: .3s;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--color-line);
    gap: 1.25rem;
  }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-ink);
  color: var(--color-cream);
  padding: 4rem 0 2rem;
}
.footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer h4 {
  color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: .75rem;
  display: block;
}
.footer p { color: rgba(245, 239, 230, .65); font-size: .92rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer a {
  color: rgba(245, 239, 230, .75);
  font-size: .92rem;
  transition: color .2s;
}
.footer a:hover { color: var(--color-gold); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 239, 230, .15);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(245, 239, 230, .55);
  font-size: .85rem;
}
.social { display: flex; gap: .75rem; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 230, .2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 239, 230, .85);
  transition: all .25s var(--ease);
}
.social a svg { width: 16px; height: 16px; }
.social a:hover {
  background: var(--color-wine);
  border-color: var(--color-wine);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 800px) {
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer .container { grid-template-columns: 1fr; }
}

/* ---------- ANIMATIONS ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes scroll-x { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- UTILITIES ---------- */
.muted { color: var(--color-mute); }
.center { text-align: center; }
.divider {
  height: 1px;
  background: var(--color-line);
  margin: 2rem 0;
}
.tag {
  display: inline-block;
  padding: .3rem .75rem;
  background: var(--color-cream);
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-charcoal);
}
