/* ============================================
   PETRETTI DEVELOPMENT — Design System
   Palette pulled from logo: deep olive, charcoal-olive,
   warm stone, muted brass, sage
   ============================================ */

:root {
  --olive-deep: #3A4A2E;
  --olive-dark: #1C2317;
  --stone: #E8E4D9;
  --stone-light: #F5F3EC;
  --brass: #B5A47C;
  --sage: #6B7560;
  --white: #FFFFFF;
  --ink: #211F1A;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--olive-dark);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--sage); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}

.lede {
  font-size: 1.18rem;
  color: var(--sage);
  max-width: 640px;
}

/* ---------- Ribbon divider (signature element, echoes logo banner) ---------- */

.ribbon-divider {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.ribbon-divider svg { width: 100%; height: auto; display: block; }

/* ---------- Header / Nav ---------- */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--stone);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img { height: 100px; width: auto; }

nav.main-nav ul {
  display: flex;
  gap: 38px;
  list-style: none;
}

nav.main-nav a {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-dark);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  border-bottom-color: var(--brass);
}

.nav-cta {
  background: var(--olive-deep);
  color: var(--white) !important;
  padding: 11px 24px;
  border-radius: 2px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-cta:hover { background: var(--olive-dark); }

.mobile-toggle { display: none; }

@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--olive-dark);
    cursor: pointer;
  }
  .nav-inner { padding: 16px 24px; }
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--stone);
  padding: 8px 24px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--stone);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--olive-dark);
  font-weight: 500;
}
.mobile-menu .nav-cta { text-align: center; margin-top: 14px; border-bottom: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--olive-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--olive-dark); }
.btn-outline {
  background: transparent;
  color: var(--olive-deep);
  border: 1.5px solid var(--olive-deep);
}
.btn-outline:hover { background: var(--olive-deep); color: var(--white); }

/* ---------- Section spacing ---------- */

section { padding: 100px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--olive-dark);
  color: var(--stone-light);
  padding: 70px 0 30px;
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}
footer.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 600;
}
footer.site-footer p, footer.site-footer a {
  color: #B9C0AE;
  font-size: 0.92rem;
  margin-bottom: 10px;
  display: block;
}
footer.site-footer a:hover { color: var(--brass); }
footer.site-footer .foot-logo img { height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: 0.92; }
.foot-bottom {
  max-width: var(--max-width);
  margin: 50px auto 0;
  padding: 24px 40px 0;
  border-top: 1px solid #344334;
  font-size: 0.8rem;
  color: #7C8770;
  display: flex;
  justify-content: space-between;
}
@media (max-width: 700px) {
  footer.site-footer .wrap { grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom { flex-direction: column; gap: 8px; padding: 24px 24px 0; }
}

/* ---------- Utility grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Placeholder image block ---------- */

.placeholder-img {
  background: var(--stone);
  border: 1px dashed var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
  min-height: 220px;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Focus visibility ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}
