/* WildWood Partners Stylesheet */

/* Color Tokens */
:root {
  --emerald: #06301F;
  --paper: #F2EEE7;
  --stone: #DCD8D0;
  --ember: #C4481A;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--emerald);
  font-family: 'Archivo', sans-serif;
  font-weight: 300;
  font-stretch: 105%;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 800;
}

h1 {
  font-size: clamp(40px, 6.6vw, 76px);
  font-stretch: 118%;
  line-height: 0.96;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-stretch: 118%;
  line-height: 0.98;
}

h2.cta {
  font-size: clamp(34px, 5vw, 60px);
}

h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-stretch: 120%;
  line-height: 1.1;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

p.large {
  font-size: 19px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 20px;
}

.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
}

.small-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ember);
}

a.nav-link {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

a.nav-link.active {
  color: var(--ember);
  font-weight: 800;
}

/* Layout */
main, section {
  display: block;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
}

.reading-width {
  max-width: 820px;
  margin: 0 auto;
}

/* Spacing */
.section-spacing {
  padding: clamp(96px, 12vw, 160px) 0;
}

.section-top {
  padding-top: clamp(72px, 10vw, 120px);
}

.section-bottom {
  padding-bottom: clamp(96px, 12vw, 160px);
}

/* Buttons */
button, .button {
  display: inline-block;
  padding: 12px 20px;
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  background: var(--emerald);
  color: var(--paper);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover, .button:hover {
  background: var(--emerald);
  opacity: 0.8;
}

button.secondary {
  background: var(--ember);
}

button.outline {
  background: transparent;
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

button.outline:hover {
  background: var(--emerald);
  color: var(--paper);
}

.cta-button {
  padding: 22px 32px;
  font-size: 13px;
  background: var(--ember);
}

/* Navigation */
nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-square {
  width: 40px;
  height: 40px;
  background: var(--emerald);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-stretch: 118%;
  font-size: 14px;
}

.logo-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.logo-text .brand {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 18px;
}

.logo-text .tagline {
  font-size: 11px;
  letter-spacing: 0.32em;
}

.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: var(--emerald);
  color: var(--paper);
  margin-top: clamp(96px, 12vw, 160px);
}

footer a {
  color: var(--paper);
  transition: color 0.2s;
}

footer a:hover {
  color: var(--ember);
}

footer .footer-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px clamp(20px, 4vw, 56px) 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px;
}

footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-square-footer {
  width: 48px;
  height: 48px;
  background: var(--paper);
  color: var(--emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-stretch: 118%;
  font-size: 16px;
}

footer .footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.2em;
}

footer .footer-links a {
  color: var(--paper);
}

footer .footer-divider {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 56px) 40px;
  border-top: 1px solid var(--paper);
  font-size: 11px;
  letter-spacing: 0.2em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Panels & Sections */
.emerald-panel {
  background: var(--emerald);
  color: var(--paper);
  padding: clamp(32px, 5vw, 48px);
  text-align: center;
}

.stone-panel {
  background: var(--stone);
  padding: clamp(32px, 5vw, 64px);
}

/* Dividers */
.divider {
  border-top: 1px solid var(--emerald);
}

.divider-bottom {
  border-bottom: 1px solid var(--emerald);
}

/* Accordion */
.accordion {
  border-top: 1px solid var(--emerald);
}

.accordion-item {
  border-bottom: 1px solid var(--emerald);
}

.accordion-header {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  user-select: none;
}

.accordion-header:hover {
  opacity: 0.8;
}

.accordion-label {
  font-weight: 800;
  font-size: 14px;
}

.accordion-toggle {
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
}

.accordion-content {
  padding: 0 0 32px 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Forms */
input, textarea, select {
  font-family: inherit;
  color: inherit;
}

input[type="text"],
input[type="email"],
textarea,
select {
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--emerald);
  padding: 14px;
  font-size: 16px;
  outline: none;
  width: 100%;
}

textarea {
  resize: vertical;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 800;
  text-transform: uppercase;
}

.toggle-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-button {
  border: 1px solid var(--emerald);
  padding: 12px 16px;
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-stretch: 108%;
  background: var(--paper);
  color: var(--emerald);
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-button.active {
  background: var(--emerald);
  color: var(--paper);
}

/* Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-image {
  aspect-ratio: 4/3;
  background: var(--stone);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.card-image::before {
  content: 'PLACEHOLDER';
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 2px;
}

.stat-box {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-value {
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 0.9;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
  }

  .reading-width {
    padding: 0 clamp(20px, 4vw, 56px);
  }

  footer .footer-content {
    grid-template-columns: 1fr;
  }

  .toggle-buttons {
    justify-content: center;
  }
}

/* Image Placeholders */
.image-placeholder {
  aspect-ratio: 4/3;
  background: var(--stone);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.image-placeholder.founder {
  aspect-ratio: 4/5;
}

.image-placeholder.project {
  aspect-ratio: 3/2;
}

/* Universal placeholder styling */
.hero-photo,
.intro-photo,
.photo-full,
.photo-square,
.photo-wide,
.photo-tall,
.outside-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-photo::before,
.intro-photo::before,
.photo-full::before,
.photo-square::before,
.photo-wide::before,
.photo-tall::before,
.outside-photo::before {
  content: 'PLACEHOLDER';
}

/* On small screens, two-column-wide blocks drop back to one column (prevents sideways scrolling) */
@media (max-width: 760px) {
  [style*="grid-column: span 2"] {
    grid-column: auto !important;
  }
}

/* =========================================================
   MOBILE (phones and small tablets)
   ========================================================= */

/* Menu button (only appears on small screens) */
.nav-toggle { display: none; }

@media (max-width: 768px) {
  /* --- Navigation: logo + MENU button, links open underneath --- */
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 0;
  }
  .js .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--emerald);
    border: 1px solid var(--emerald);
    padding: 10px 14px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    letter-spacing: 0.2em;
    font-weight: 800;
    cursor: pointer;
    opacity: 1;
  }
  .js .nav-toggle:hover { background: transparent; opacity: 1; }
  .nav-toggle-icon,
  .nav-toggle-icon::before,
  .nav-toggle-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s, opacity 0.2s;
  }
  .nav-toggle-icon { position: relative; }
  .nav-toggle-icon::before,
  .nav-toggle-icon::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-icon::before { top: -5px; }
  .nav-toggle-icon::after { top: 5px; }
  nav.open .nav-toggle-icon { background: transparent; }
  nav.open .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
  nav.open .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .js .nav-links { display: none; }
  .js nav.open .nav-links { display: flex; margin-top: 16px; border-top: 1px solid var(--emerald); }
  .nav-links a.nav-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--emerald);
    font-size: 13px;
  }
  .nav-links a.button {
    display: block;
    text-align: center;
    margin-top: 16px;
    padding: 16px 20px !important;
    font-size: 13px !important;
  }
  .logo { gap: 10px; }
  .logo-text { gap: 8px; }
  .logo-text .brand { font-size: 16px; }
  .logo-text .tagline { font-size: 10px; letter-spacing: 0.22em; }
  .js .nav-toggle { width: 96px; justify-content: space-between; padding: 10px 12px; letter-spacing: 0.16em; }

  /* --- Footer: smaller WW mark, tidier link columns --- */
  footer span[style*="font-size: 160px"],
  footer span[style*="font-size: clamp(96px"],
  footer .ww-logo {
    font-size: 96px !important;
  }
  footer > div > div:first-child { padding-bottom: 40px !important; gap: 32px !important; }
  footer > div > div:first-child > div { gap: 32px !important; }

  /* --- General spacing --- */
  .cta-button { padding: 18px 24px; }
  h2.cta { font-size: 32px; }
}

/* Services page: service list stays in view on larger screens only */
.service-index { position: sticky; top: 24px; }
@media (max-width: 768px) {
  .service-index { position: static; }
}

/* Phones: bigger tap areas for footer links */
@media (max-width: 768px) {
  footer a { display: inline-block; padding: 6px 0; }
  footer > div > div:first-child > div > div { gap: 4px !important; }
  footer > div > div:last-child > div { gap: 20px !important; font-size: 13px !important; }
}
