/* ═══════════════════════════════════════════════════════════
   barboni.ch — shared styles
   ═══════════════════════════════════════════════════════════ */

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

/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  --cream:      #f5efe4;
  --cream-dark: #ede4d4;
  --cream-mid:  #f0e8d8;
  --terracotta: #b85c38;
  --terra-dark: #8f3e20;
  --espresso:   #2a1a0e;
  --bark:       #5c3a20;
  --moss:       #6b7c5c;
  --gold:       #c9a96e;
  --gold-light: #e2c98a;
  --white:      #fdf8f2;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --gap-section: clamp(4rem, 9vw, 8rem);
  --radius: 0px;
  --transition: .28s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }

/* ── LAYOUT ─────────────────────────────────────────────────── */
.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}
.section { padding: var(--gap-section) 0; }

/* ── TYPE SCALE ─────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-body);
  font-size: .68rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::before {
  content: ''; display: block;
  width: 1.8rem; height: 1px; background: var(--terracotta);
  flex-shrink: 0;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 300; line-height: 1.06;
  letter-spacing: -.01em;
}
.display em { font-style: italic; color: var(--gold); }

.heading {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 300; line-height: 1.12;
}

.subheading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 400; line-height: 1.2;
}

.body-lg  { font-size: 1.05rem; line-height: 1.85; color: var(--bark); }
.body-sm  { font-size: .875rem; line-height: 1.75; color: var(--bark); }

.rule {
  width: 2.5rem; height: 1.5px;
  background: var(--gold);
  margin: 1rem 0 1.8rem;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: .9rem 1.9rem;
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn-primary   { background: var(--terracotta); color: var(--white); border-color: var(--terracotta); }
.btn-primary:hover { background: var(--terra-dark); border-color: var(--terra-dark); }
.btn-outline   { border-color: var(--espresso); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-outline-light { border-color: rgba(253,248,242,.6); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--espresso); }
.btn-gold      { border-color: var(--gold); color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--espresso); }

/* ── NAV ────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.nav.solid {
  background: rgba(245,239,228,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(42,26,14,.08);
  padding: .85rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 600;
  color: var(--white); letter-spacing: -.01em;
  transition: color var(--transition);
}
.nav.solid .nav-logo { color: var(--espresso); }
.nav.solid.on-light .nav-logo { color: var(--espresso); }
.nav.on-light .nav-logo { color: var(--espresso); }

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  transition: color var(--transition);
}
.nav.solid .nav-links a   { color: var(--bark); }
.nav.on-light .nav-links a { color: var(--bark); }
.nav-links a:hover         { color: var(--terracotta) !important; }
.nav-links a.active        { color: var(--terracotta) !important; }

.nav-cta {
  font-size: .68rem !important; font-weight: 600 !important;
  border: 1.5px solid rgba(255,255,255,.5);
  padding: .45rem 1.1rem;
  color: var(--white) !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--white); color: var(--espresso) !important; }
.nav.solid .nav-cta { border-color: var(--terracotta); color: var(--terracotta) !important; }
.nav.solid .nav-cta:hover { background: var(--terracotta); color: var(--white) !important; }
.nav.on-light .nav-cta { border-color: var(--terracotta); color: var(--terracotta) !important; }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-burger span { width: 22px; height: 1.5px; background: var(--white); transition: background var(--transition); }
.nav.solid .nav-burger span,
.nav.on-light .nav-burger span { background: var(--espresso); }

/* Mobile menu */
.nav-mobile {
  display: none; flex-direction: column;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--espresso);
  align-items: center; justify-content: center; gap: 2.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 300;
  color: var(--cream); transition: color .2s;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  cursor: pointer; color: var(--cream);
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; line-height: 1;
  transition: color .2s;
}
.nav-mobile-close:hover { color: var(--gold); }

/* ── PAGE HERO (internal pages) ─────────────────────────────── */
.page-hero {
  padding: clamp(7rem, 15vw, 12rem) 0 clamp(3rem, 6vw, 5rem);
  position: relative;
}
.page-hero.dark {
  background: var(--espresso);
  color: var(--cream);
}
.page-hero.warm {
  background: linear-gradient(135deg, #3a2010 0%, #7a4020 50%, #c47840 100%);
  color: var(--white);
}
.page-hero.light {
  background: var(--white);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero.light .eyebrow { color: var(--terracotta); }
.page-hero.light .eyebrow::before { background: var(--terracotta); }
.page-hero .display em { color: var(--gold); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--espresso);
  padding: 3rem 0 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { font-family: var(--font-display); font-size: 2rem; font-weight: 300; color: var(--cream); }
.footer-tagline { font-size: .8rem; color: rgba(245,239,228,.4); margin-top: .4rem; line-height: 1.6; }
.footer-col h4 {
  font-size: .65rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: .82rem; color: rgba(245,239,228,.45); transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(245,239,228,.25);
}
.footer-bottom a { color: rgba(201,169,110,.5); transition: color .2s; }
.footer-bottom a:hover { color: var(--gold); }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(42,26,14,.1);
  transform: translateY(-2px);
}

/* ── PHOTO PLACEHOLDER ──────────────────────────────────────── */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  background: var(--bark);
}
.photo-placeholder img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.photo-placeholder:hover img { transform: scale(1.03); }
.photo-placeholder-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem;
  background: rgba(42,26,14,.35);
  color: rgba(255,255,255,.35);
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  pointer-events: none;
}
/* Hide label when img is present */
.photo-placeholder img ~ .photo-placeholder-label { display: none; }

/* ── ANIMATIONS ─────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── CONTACT TABLE ──────────────────────────────────────────── */
.contact-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.contact-item:first-child { padding-top: 0; }
.contact-item h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 400;
  margin-bottom: .8rem;
}
.contact-row {
  display: flex; gap: 1rem; align-items: baseline;
  font-size: .875rem; color: var(--bark); margin-bottom: .3rem;
}
.contact-row strong {
  font-size: .65rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--terracotta); min-width: 5rem; flex-shrink: 0; margin-top: .15rem;
}
.contact-row a { color: var(--terracotta); transition: opacity .2s; }
.contact-row a:hover { opacity: .7; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta-wrap { display: none; }
  .nav-burger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
}
