*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --sage: #7A9E7E;
  --sage-light: #EEF4EE;
  --sage-mid: #B8D0BA;
  --sage-dark: #4A6E4E;
  --cream: #FAF8F3;
  --cream-dark: #F0EBE0;
  --warm-white: #FDFCF9;
  --earth: #2A2218;
  --earth-mid: #5A4832;
  --terracotta: #B06040;
  --text-muted: #8A806E;
  --border: rgba(90,72,50,0.12);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--warm-white); color: var(--earth); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(253,252,249,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo-wrap { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-icon { width: 32px; height: 32px; }
.nav-logo-text { font-family: 'Lora', serif; font-size: 1rem; font-weight: 500; color: var(--earth); letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.82rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--earth); }
.nav-cta { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sage-dark); text-decoration: none; border: 1px solid var(--sage-dark); padding: 0.5rem 1.25rem; border-radius: 8px; transition: background 0.2s, color 0.2s; }
.nav-cta:hover { background: var(--sage-dark); color: white; }

/* HERO */
.hero-wrap { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/img/hero.jpg');
  background-size: cover; background-position: center 40%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(238,244,238,0.90) 0%, rgba(238,244,238,0.74) 45%, rgba(238,244,238,0.28) 100%);
}
.hero { max-width: 960px; margin: 0 auto; padding: 9rem 2.5rem 6rem; position: relative; z-index: 2; width: 100%; }
.eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.eyebrow::before { content: ''; display: block; width: 2rem; height: 1px; background: var(--terracotta); }

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--earth);
  margin-bottom: 1.75rem;
  max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--sage-dark); }

.hero-sub { font-size: 1.05rem; color: var(--earth-mid); max-width: 48ch; line-height: 1.85; margin-bottom: 2.5rem; font-weight: 300; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary { background: var(--sage-dark); color: white; padding: 0.9rem 2rem; border-radius: 8px; text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.03em; transition: background 0.2s; display: inline-block; }
.btn-primary:hover { background: #3a5a3e; }
.btn-ghost { color: var(--earth-mid); padding: 0.9rem 0; text-decoration: none; font-size: 0.875rem; border-bottom: 1px solid rgba(90,72,50,0.25); transition: color 0.2s; }
.btn-ghost:hover { color: var(--earth); }

/* SHARED */
section { padding: 6rem 2.5rem; }
.inner { max-width: 960px; margin: 0 auto; }
.section-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.section-label::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--terracotta); }
.section-title { font-family: 'Lora', serif; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 400; line-height: 1.2; color: var(--earth); margin-bottom: 1.25rem; }
.section-body { font-size: 1rem; color: var(--earth-mid); max-width: 54ch; line-height: 1.85; font-weight: 300; }
.wave { display: block; width: 100%; overflow: hidden; line-height: 0; }

/* PAIN */
.pain { background: var(--cream-dark); }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pain-item { background: var(--warm-white); border: 1px solid var(--border); border-radius: 6px; padding: 1.75rem 1.5rem; border-top: 3px solid var(--sage-mid); }
.pain-quote { font-family: 'Lora', serif; font-style: italic; font-size: 1rem; color: var(--earth); line-height: 1.65; margin-bottom: 0.85rem; }
.pain-label { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

/* PAIN TABLE (before / after rows) */
.pain-table { margin-top: 2.75rem; }
.pain-table-header { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 0 1.5rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--border); }
.pain-col-label { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.pain-col-label.problem { color: var(--terracotta); }
.pain-col-label.solution { color: var(--sage-dark); }
.pain-row { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 0 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.pain-row:last-child { border-bottom: none; }
.pain-cell .pain-title { font-size: 0.875rem; font-weight: 500; color: var(--earth); margin-bottom: 0.3rem; }
.pain-cell .pain-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.pain-divider { display: flex; align-items: center; justify-content: center; color: var(--sage); opacity: 0.55; }
@media (max-width: 768px) {
  .pain-table-header { display: none; }
  .pain-row { grid-template-columns: 1fr; gap: 0; padding: 1.75rem 0; }
  .pain-row .pain-cell.problem::before { content: "The problem"; display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 0.5rem; }
  .pain-row .pain-cell.solution::before { content: "What changes"; display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-dark); margin: 1rem 0 0.5rem; }
  .pain-divider { display: none; }
}

/* ABOUT */
.about { background: var(--warm-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo {
  width: 100%; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden;
  background-image: url('../assets/img/about.jpg');
  background-size: cover; background-position: center;
}
/* Placeholder portrait — replace with real photo */
.portrait-placeholder {
  width: 100%; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--cream-dark) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; border: 1px solid var(--border);
}
.portrait-placeholder svg { opacity: 0.25; }
.portrait-placeholder p { font-size: 0.75rem; color: var(--text-muted); text-align: center; max-width: 14ch; line-height: 1.5; }
.about-origin {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: 6px; padding: 1rem 1.25rem;
  max-width: 200px; border-left: 3px solid var(--sage);
}
.about-origin-flag { font-size: 1.2rem; margin-bottom: 0.25rem; }
.about-origin-text { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.about-origin-text strong { color: var(--earth); font-weight: 500; display: block; }
.about-text .section-body { margin-bottom: 1.25rem; max-width: none; }
.about-quote { border-left: 2px solid var(--terracotta); padding-left: 1.25rem; font-family: 'Lora', serif; font-style: italic; font-size: 1rem; color: var(--terracotta); line-height: 1.65; margin-top: 1.75rem; }
.about-creds { display: flex; gap: 0.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.about-cred { font-size: 0.78rem; color: var(--sage-dark); background: var(--sage-light); padding: 0.35rem 0.85rem; border-radius: 2px; font-weight: 500; }

/* BUILT */
.built-wrap { position: relative; overflow: hidden; min-height: 560px; display: flex; align-items: center; }
.built-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/img/built.jpg');
  background-size: cover; background-position: center 60%;
}
.built-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,20,12,0.84) 0%, rgba(10,20,12,0.76) 50%, rgba(10,20,12,0.42) 100%);
}
.built { background: transparent; }
.built .inner { position: relative; z-index: 2; width: 100%; }
.built .section-label { color: var(--sage-mid); }
.built .section-label::before { background: var(--sage-mid); }
.built .section-title { color: #EEF4EE; }
.built .section-body { color: #A8C8AA; }
.built-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 3rem; }
.built-list { display: flex; flex-direction: column; gap: 0.85rem; }
.built-item { display: flex; gap: 0.85rem; align-items: flex-start; padding-bottom: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.built-item:last-child { border-bottom: none; padding-bottom: 0; }
.built-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage-mid); flex-shrink: 0; margin-top: 0.55rem; }
.built-item-title { font-size: 0.875rem; font-weight: 500; color: #D8ECD8; margin-bottom: 0.15rem; }
.built-item-body { font-size: 0.8rem; color: #88A888; line-height: 1.65; }
.built-case { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 2rem; backdrop-filter: blur(4px); }
.built-case-location { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: #C8A080; margin-bottom: 0.75rem; }
.built-case-title { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 500; color: #EEF4EE; margin-bottom: 1rem; line-height: 1.35; }
.built-case-body { font-size: 0.84rem; color: #A8C0A8; line-height: 1.8; margin-bottom: 1.5rem; }
.built-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.built-tag { font-size: 0.7rem; padding: 0.25rem 0.6rem; background: rgba(184,208,186,0.15); color: #B8D0BA; border-radius: 2px; font-weight: 500; }

/* SERVICES */
.services { background: var(--cream-dark); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3.5rem; }
.service-card { border: 1px solid var(--border); border-radius: 6px; padding: 2rem 1.75rem; background: var(--warm-white); position: relative; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.service-card.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.service-card:hover { border-color: var(--sage); transform: translateY(-2px); }
.service-num { font-family: 'Lora', serif; font-size: 2rem; color: #DCD2BC; font-weight: 400; margin-bottom: 1.25rem; display: block; }
.service-name { font-family: 'Lora', serif; font-size: 1.1rem; font-weight: 500; color: var(--earth); margin-bottom: 0.4rem; }
.service-hiring { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: var(--sage-dark); background: var(--sage-light); padding: 0.2rem 0.6rem; border-radius: 6px; font-weight: 500; margin-bottom: 0.75rem; }
.service-price { font-size: 0.78rem; color: var(--terracotta); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 1rem; }
.service-desc { font-size: 0.84rem; color: var(--earth-mid); line-height: 1.75; margin-bottom: 1.25rem; }
.service-items { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.service-items li { font-size: 0.79rem; color: var(--text-muted); padding-left: 1rem; position: relative; line-height: 1.55; }
.service-items li::before { content: '–'; position: absolute; left: 0; color: var(--sage-mid); }

/* HOW */
.how { background: var(--warm-white); }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 3.5rem; }
.how-step { padding: 2rem 1.5rem; background: var(--warm-white); border-right: 1px solid var(--border); transition: background 0.2s; }
.how-step:hover { background: var(--sage-light); }
.how-step:last-child { border-right: none; }
.how-num { font-family: 'Lora', serif; font-size: 2.5rem; color: var(--sage-mid); font-weight: 400; line-height: 1; margin-bottom: 1rem; }
.how-title { font-size: 0.875rem; font-weight: 500; color: var(--earth); margin-bottom: 0.5rem; }
.how-body { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }

/* CTA */
.cta-wrap { position: relative; overflow: hidden; min-height: 500px; display: flex; align-items: center; }
.cta-photo {
  position: absolute; inset: 0;
  background-image: url('../assets/img/cta.jpg');
  background-size: cover; background-position: center 30%;
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,36,22,0.90) 0%, rgba(20,36,22,0.80) 60%, rgba(20,36,22,0.65) 100%);
}
.cta-section { background: transparent; text-align: center; padding: 7rem 2.5rem; width: 100%; }
.cta-section .inner { position: relative; z-index: 2; }
.cta-section .section-label { color: #C8A080; justify-content: center; }
.cta-section .section-label::before { background: #C8A080; }
.cta-title { font-family: 'Lora', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; color: #EEF4EE; margin-bottom: 1.25rem; line-height: 1.2; }
.cta-title em { font-style: italic; color: var(--sage-mid); }
.cta-body { font-size: 1rem; color: #A8C0A8; max-width: 46ch; margin: 0 auto 2.5rem; line-height: 1.85; font-weight: 300; }
.btn-cta { display: inline-block; background: var(--terracotta); color: white; padding: 1rem 2.5rem; border-radius: 8px; text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.04em; transition: background 0.2s; }
.btn-cta:hover { background: #963a22; }
.cta-note { margin-top: 1.25rem; font-size: 0.82rem; color: #88A888; }

footer { background: #0E1A10; border-top: 1px solid rgba(255,255,255,0.07); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: 'Lora', serif; font-size: 0.9rem; color: #6A8A6A; }
.footer-copy { font-size: 0.75rem; color: #4A6A4A; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .pain-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-origin { position: static; margin-top: 1rem; max-width: 100%; }
  .built-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .how-step { border-bottom: 1px solid var(--border); border-right: none; }
  .how-step:nth-child(odd) { border-right: 1px solid var(--border); }
  .how-step:nth-child(3), .how-step:nth-child(4) { border-bottom: none; }
  footer { flex-direction: column; gap: 0.5rem; text-align: center; }
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }
summary:hover { opacity: 0.75; }

/* TESTIMONIAL CARDS */
.testimonial-row { display: flex; gap: 1.5rem; align-items: stretch; max-width: 900px; margin: 0 auto; }
.testimonial-card {
  flex: 1;
  min-width: 0;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: flex 0.4s cubic-bezier(.25,.8,.25,1), transform 0.4s cubic-bezier(.25,.8,.25,1), box-shadow 0.4s ease, opacity 0.4s ease;
}
.testimonial-card.is-active {
  flex: 1.6;
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(42,34,24,0.1);
}
.testimonial-row:has(.is-active) .testimonial-card:not(.is-active) { opacity: 0.85; }
.testimonial-teaser {
  font-family: 'Lora', serif; font-style: italic; font-size: 0.92rem; color: var(--earth);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; margin-top: 0.6rem;
}
.testimonial-hint {
  display: flex; align-items: center; gap: 0.35rem; margin-top: 1rem;
  font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--sage-dark); opacity: 0.7;
}
.testimonial-card.is-active .testimonial-teaser,
.testimonial-card.is-active .testimonial-hint { display: none; }
.testimonial-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease 0.05s; }
.testimonial-card.is-active .testimonial-more { max-height: 3000px; opacity: 1; margin-top: 1rem; }
@media (max-width: 720px) {
  .testimonial-row { flex-direction: column; }
  .testimonial-card { flex: none !important; }
}

/* Smaller photos for phones and small tablets */
@media (max-width: 900px) {
  .hero-photo { background-image: url('../assets/img/hero-1200.jpg'); }
  .built-photo { background-image: url('../assets/img/built-1200.jpg'); }
  .cta-photo { background-image: url('../assets/img/cta-1200.jpg'); }
}

/* Clickable email links */
.cta-alt { margin-top: 0.6rem; }
.cta-alt a { color: #C8A080; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-copy a { color: #88A888; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cta-alt a:hover, .footer-copy a:hover { color: #EEF4EE; }
.cta-alt a:focus-visible, .footer-copy a:focus-visible { outline: 2px solid #C8A080; outline-offset: 3px; border-radius: 2px; }

/* Testimonials: once a full review is open, the toggle moves to the bottom as "Collapse review" */
.testimonial-card details[open] > summary { display: none !important; }
.review-collapse { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.1rem; padding: 0; background: none; border: none; font: inherit; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.03em; color: var(--terracotta); cursor: pointer; }
.review-collapse:hover { opacity: 0.75; }
.review-collapse:focus-visible, summary:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }

/* Small phones: keep the nav on one line */
@media (max-width: 480px) {
  nav { padding: 0.9rem 1.1rem; gap: 0.6rem; }
  .nav-logo-wrap { gap: 0.5rem; }
  .nav-logo-text { font-size: 0.92rem; white-space: nowrap; }
  .nav-cta { white-space: nowrap; padding: 0.45rem 0.85rem; font-size: 0.7rem; }
}
@media (max-width: 360px) {
  .nav-logo-icon { width: 26px; height: 26px; }
  .nav-logo-text { font-size: 0.82rem; }
  .nav-cta { padding: 0.45rem 0.7rem; }
}
