/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --bg:        #F5F0EB;
  --bg-alt:    #EDE8E1;
  --primary:   #2C2416;
  --accent:    #C4873A;
  --text:      #3D3228;
  --muted:     #8C7B6B;
  --white:     #FDFAF7;

  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 4px;
  --shadow: 0 4px 24px rgba(44,36,22,0.10);
  --transition: 0.3s ease;

  --max-width: 1200px;
  --section-pad: clamp(60px, 8vw, 120px) 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { color: var(--text); max-width: 65ch; }

a { color: inherit; text-decoration: none; }

/* ===== UTILITIES ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section   { padding: var(--section-pad); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }

.label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: #b3762e; }

.btn--outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn--outline:hover { background: var(--white); color: var(--primary); }

.btn--dark {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--dark:hover { background: var(--primary); color: var(--white); }

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: var(--primary);
  padding: 14px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--accent); }

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
}
.nav__cta:hover { background: #b3762e; color: var(--white) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }

  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav__links.open { display: flex; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 160px 24px 80px;
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1694521787162-5373b598945c?w=1600&h=600&fit=crop&q=80&grayscale') center/cover no-repeat;
  opacity: 0.12;
}

.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.7); margin: 0 auto; font-size: 1.1rem; }

/* ===== DIVIDER ===== */
.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px 0 32px;
}

.divider--center { margin: 16px auto 32px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 72px 24px 32px;
}

.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer__logo span { color: var(--accent); }
.footer__tagline { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer ul a:hover { color: var(--accent); }

.footer__contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  max-width: none;
}

.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer__socials { display: flex; gap: 16px; }
.footer__socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__socials a:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}
