/* ============================================================
   Perennial Management Group — styles
   ============================================================ */

:root {
  --cream: #FBF8F2;
  --panel: #F1EEE3;
  --panel-edge: #E7E1D2;
  --green: #1F4D3A;
  --green-deep: #22332B;
  --green-soft: #2E4337;
  --mint: #6FAE7E;
  --mint-bg: #E2EBDF;
  --coral: #C2552F;
  --coral-soft: #E0735A;
  --gold: #F7E9C8;
  --ink: #2B2A26;
  --muted: #6B6860;
  --muted-2: #5A5852;
  --hint: #8A887F;
  --line: rgba(0, 0, 0, 0.10);
  --line-soft: rgba(0, 0, 0, 0.06);

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 12px;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: var(--cream); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500; line-height: 1;
  padding: 14px 24px; border-radius: 26px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--green); color: var(--cream); }
.btn-solid:hover { background: #18402F; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #A8471F; }
.btn-ghost { color: var(--green); border-color: transparent; padding-left: 8px; padding-right: 8px; }
.btn-ghost:hover { color: #18402F; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--green); }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub { font-size: 9.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.brand-light .brand-name { color: var(--gold); }
.brand-light .brand-sub { color: #9DB0A2; }

.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav > a { font-size: 14px; color: #3D3B37; transition: color .15s ease; }
.primary-nav > a:hover { color: var(--green); }
.primary-nav .nav-cta { color: var(--cream); font-size: 14px; padding: 10px 18px; }
.primary-nav .nav-cta:hover { color: var(--cream); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  align-items: center; justify-content: center; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--green); transition: transform .2s ease, opacity .2s ease; }

/* ---------- Hero ---------- */
.hero { background: var(--panel); overflow: hidden; }
.hero-inner { position: relative; padding: 92px 28px 96px; }
.hero-orbit { position: absolute; right: -60px; bottom: -70px; width: 360px; height: 360px; opacity: 0.9; pointer-events: none; }
.hero-content { position: relative; max-width: 620px; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font-size: 15px; font-weight: 500; color: var(--green); }
.eyebrow-rule { width: 30px; height: 2px; background: var(--green); flex: none; }

h1 {
  margin: 0; font-size: clamp(38px, 6vw, 60px); line-height: 1.08;
  font-weight: 500; letter-spacing: -0.02em; color: var(--green-deep);
}
.lede { margin: 22px 0 32px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted-2); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.trust-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; padding: 22px 28px; }
.trust-label { font-size: 12px; letter-spacing: 0.04em; color: var(--hint); text-transform: uppercase; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.trust-list li { font-size: 15px; font-weight: 500; color: #4A4844; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--panel); }
.kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.kicker-light { color: var(--mint); }
.section-title { margin: 0 0 14px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; letter-spacing: -0.01em; color: var(--green-deep); max-width: 640px; line-height: 1.2; }
.section-lede { margin: 0 0 36px; font-size: 17px; color: var(--muted-2); max-width: 560px; }
.section-title + .grid, .section-title + .group-label { margin-top: 36px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Service cards ---------- */
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.section-tint .card { background: #fff; }
.card-ico { color: var(--green); display: inline-flex; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- The Perennial Way ---------- */
.way { background: var(--green-deep); border-radius: 22px; padding: 56px 52px; }
.way-title { margin: 0 0 8px; font-size: clamp(26px, 3.2vw, 32px); font-weight: 500; color: var(--gold); letter-spacing: -0.01em; }
.way-lede { margin: 0 auto; font-size: 16px; color: #9DB0A2; max-width: 600px; line-height: 1.6; }
.way-loop { width: 100%; max-width: 400px; height: auto; margin: 40px auto 44px; }
.stages { gap: 22px; }
.stage { border-top: 2px solid var(--coral); padding-top: 16px; }
.stage h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; color: var(--gold); }
.stage p { margin: 0; font-size: 14px; color: #A9BBAF; line-height: 1.55; }

/* ---------- Team ---------- */
.group-label { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--hint); }
.founders { margin-bottom: 40px; }
.person { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; flex: none; }
.avatar-green { background: var(--mint-bg); color: var(--green); }
.avatar-coral { background: #F3E2D6; color: var(--coral); }
.person-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.person-role { display: block; font-size: 13px; color: var(--muted); }
.team-groups { gap: 28px; border-top: 1px solid var(--line); padding-top: 32px; }
.roster li { margin-bottom: 14px; }

/* ---------- Portfolio ---------- */
.portfolio-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.portfolio-list a,
.portfolio-list .no-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 88px; line-height: 1.3;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 24px; font-size: 17px; font-weight: 600; color: var(--green);
  transition: border-color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.portfolio-list a:hover { border-color: var(--green); transform: translateY(-2px); }
.portfolio-list a .ext { color: var(--coral); flex: none; transition: transform .15s ease; }
.portfolio-list a:hover .ext { transform: translate(2px, -2px); }
.portfolio-list .no-link { color: var(--muted); font-weight: 500; cursor: default; }

/* ---------- CTA ---------- */
.cta { background: var(--mint-bg); border-radius: 22px; padding: 64px 40px; text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 500; color: var(--green-deep); letter-spacing: -0.01em; }
.cta p { margin: 0 auto 28px; font-size: 17px; color: var(--muted-2); max-width: 460px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #B9C7BD; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding: 56px 28px 36px; }
.footer-addr { margin: 16px 0 0; font-size: 13px; color: #9DB0A2; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 9px; color: #C7D4CA; transition: color .15s ease; }
.footer-contact a svg { flex: none; }
.footer-contact a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 28px 30px; font-size: 12px; color: #7E938A; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-groups { grid-template-columns: 1fr; gap: 28px; }
  .way { padding: 48px 28px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .25s ease, visibility .25s ease;
  }
  .primary-nav.open { max-height: 360px; visibility: visible; }
  .primary-nav > a { padding: 14px 4px; border-bottom: 1px solid var(--line-soft); font-size: 16px; }
  .primary-nav .nav-cta { margin-top: 14px; justify-content: center; border-bottom: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { padding: 64px 28px 72px; }
  .hero-orbit { width: 240px; height: 240px; right: -50px; bottom: -50px; opacity: 0.7; }
  .section { padding: 60px 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .cta { padding: 48px 24px; }
}

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