/* =============================================================
   NM ESTATE GROUNDS — ai angles 7-9
   Premium dark redesign — website-2 reference
   Inter bold uppercase headings, rounded design language
   ============================================================= */

/* ---- DESIGN TOKENS ---- */
:root {
  /* Dark green palette */
  --bg-base: #0a1a0d;
  --bg-surface: #0d2010;
  --bg-raised: #112614;
  --bg-card: #142e18;
  --bg-card-hover: #1a3a1e;
  --bg-overlay: #081508;

  /* Accent colors */
  --green-vivid: #3db54a;
  --green-vivid-hover: #35a341;
  --gold: #d4af37;

  /* Text */
  --text-white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-faint: rgba(255, 255, 255, 0.4);

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.08);

  /* Border radius system */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* ---- GLASSMORPHISM TOKENS ---- */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(255, 255, 255, 0.10);
  --glass-bg-subtle: rgba(255, 255, 255, 0.03);
  --glass-bg-green: rgba(61, 181, 74, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.20);
  --glass-border-subtle: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --glass-shadow-strong: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  --glass-blur: blur(16px);
  --glass-blur-strong: blur(24px);
  --glass-blur-subtle: blur(10px);

  /* Layout */
  --container: 1180px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-white);
  background: var(--bg-base);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img, svg {
  display: block;
}

img {
  max-width: 100%;
}

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

button, input, select {
  font: inherit;
}

button {
  border: 0;
}

/* ---- ACCESSIBILITY ---- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--text-white);
  background: var(--green-vivid);
  border-radius: var(--radius-sm);
  transform: translateY(-140%);
  transition: transform 0.3s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  margin: 0;
  color: var(--text-white);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(28px, 3.8vw, 52px);
  font-weight: 800;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-vivid);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* ---- BUTTONS — GLASSMORPHISM ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  color: var(--text-white);
  background: rgba(61, 181, 74, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(61, 181, 74, 0.5);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(61, 181, 74, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: 0 0 16px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: rgba(61, 181, 74, 0.9);
  box-shadow: 0 8px 28px rgba(61, 181, 74, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Glass outline button */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glass nav CTA */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--text-white);
  background: rgba(61, 181, 74, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 181, 74, 0.45);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(61, 181, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-cta:hover,
.btn-cta:focus {
  background: rgba(61, 181, 74, 0.88);
  box-shadow: 0 4px 18px rgba(61, 181, 74, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* ---- HEADER / NAV — GLASSMORPHISM ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 21, 10, 0.72);
  backdrop-filter: var(--glass-blur-strong);
  -webkit-backdrop-filter: var(--glass-blur-strong);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 21, 10, 0.88);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.nav-shell {
  width: min(100% - 40px, var(--container));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 190px;
}

/* GLASSMORPHISM: Brand mark */
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  color: var(--text-white);
  background: rgba(61, 181, 74, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(61, 181, 74, 0.5);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(61, 181, 74, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-copy {
  display: grid;
  gap: 0;
  color: var(--text-white);
  font-weight: 700;
  font-size: 14px;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--green-vivid);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text-white);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

/* GLASSMORPHISM: Nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 17px;
  height: 1.5px;
  background: var(--text-white);
  transition: all 0.3s ease;
}

/* ---- HERO — full-bleed background ---- */
.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-overlay);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  aspect-ratio: 4 / 5;
  opacity: 0.9;
}

/* Balanced dark green overlay — image visible on right */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(6, 18, 8, 0.88) 0%,
      rgba(6, 18, 8, 0.78) 38%,
      rgba(6, 18, 8, 0.28) 62%,
      rgba(6, 18, 8, 0.04) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container));
  margin: var(--header-height) auto 0;
  padding: 80px 0 48px;
}

.hero-content h1 {
  margin-bottom: 0;
}

#hero-title {
  max-width: 600px;
}

.hero-lede {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero stats bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  padding-bottom: 56px;
}

/* GLASSMORPHISM: Hero stats bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}

.hero-stats div {
  padding: 24px 28px;
  border-right: 1px solid var(--glass-border-subtle);
}

.hero-stats div:last-child {
  border-right: 0;
}

.hero-stats dt {
  display: block;
  color: var(--gold);
  font-family: "Inter", Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.hero-stats dd {
  display: block;
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- INTRO / PROGRAMS + SERVICES ICONS ---- */
.intro-section {
  background: var(--bg-raised);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.intro-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.intro-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro-copy h2 {
  margin-top: 8px;
}

.intro-text {
  display: grid;
  gap: 16px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  padding-top: 4px;
}

.intro-text p {
  margin: 0;
}

/* Icon cards row */
.intro-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* GLASSMORPHISM: Service/icon cards */
.icon-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-subtle);
  -webkit-backdrop-filter: var(--glass-blur-subtle);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--glass-shadow);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.icon-card:hover {
  background: var(--glass-bg-strong);
  border-color: rgba(61, 181, 74, 0.25);
  box-shadow: var(--glass-shadow-strong);
}

/* GLASSMORPHISM: Icon wrap */
.icon-wrap {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(61, 181, 74, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(61, 181, 74, 0.28);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.icon-wrap svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-vivid);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.icon-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

/* ---- FOUNDER ---- */
.founder-section {
  background: var(--bg-surface);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.founder-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: end;
}

/* GLASSMORPHISM: Founder copy panel */
.founder-copy {
  padding: 40px 44px;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur-subtle);
  -webkit-backdrop-filter: var(--glass-blur-subtle);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.founder-copy h2 {
  margin: 10px 0 20px;
}

.founder-copy p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 480px;
}

.founder-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-vivid);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
  transition: gap 0.25s ease;
}

.founder-link:hover {
  gap: 13px;
}

.signature {
  display: grid;
  gap: 3px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.signature strong {
  color: var(--gold);
  font-family: "Inter", Arial, sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.signature span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Founder portrait */
.founder-photo-wrap {
  align-self: end;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  overflow: hidden;
  background: var(--bg-card);
}

.founder-photo-wrap img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* ---- PORTFOLIO ---- */
.portfolio-section {
  background: var(--bg-raised);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.portfolio-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.portfolio-heading {
  margin-bottom: 40px;
}

.portfolio-heading h2 {
  max-width: 600px;
  margin-top: 8px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* GLASSMORPHISM: Portfolio cards */
.portfolio-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-subtle);
  -webkit-backdrop-filter: var(--glass-blur-subtle);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--glass-shadow);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow-strong);
}

.port-num {
  display: block;
  color: var(--gold);
  font-family: "Inter", Arial, sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.portfolio-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.portfolio-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section {
  background: var(--bg-base);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.testimonials-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.testimonials-heading {
  margin-bottom: 40px;
}

.testimonials-heading h2 {
  max-width: 640px;
  margin-top: 8px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* GLASSMORPHISM: Testimonial cards */
.testimonial {
  margin: 0;
  padding: 32px 28px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-subtle);
  -webkit-backdrop-filter: var(--glass-blur-subtle);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
}

.testimonial blockquote {
  margin: 0 0 18px;
  color: var(--text-white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  font-style: italic;
}

.testimonial figcaption {
  color: var(--green-vivid);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---- CONSULTATION ---- */
.consultation-section {
  background: var(--bg-surface);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.consultation-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.consultation-copy h2 {
  color: var(--text-white);
  margin: 8px 0 16px;
}

.consultation-copy p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* GLASSMORPHISM: Consultation form */
.consultation-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow-strong);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-row input,
.form-row select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: 0;
  font-size: 14px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input:focus,
.form-row select:focus {
  border-color: var(--green-vivid);
  box-shadow: 0 0 0 3px rgba(61, 181, 74, 0.14);
}

.form-row select {
  color-scheme: dark;
}

.form-row select option {
  color: var(--text-white);
  background: var(--bg-card);
}

.form-submit,
.form-note {
  grid-column: 1 / -1;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

.form-note.is-success {
  color: var(--green-vivid);
  font-weight: 700;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-overlay);
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.footer-inner {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr 0.7fr;
  gap: 48px;
  padding: 60px 0 44px;
}

.footer-brand {
  color: var(--text-white);
}

.footer-brand .brand-copy {
  color: var(--text-white);
}

.footer-brand .brand-copy small {
  color: var(--text-faint);
}

.footer-brand-col p {
  margin: 16px 0 0;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-inner h2 {
  margin: 0 0 12px;
  color: var(--text-white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-inner a:not(.brand) {
  display: block;
  margin: 7px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s ease;
}

.footer-inner a:not(.brand):hover,
.footer-inner a:not(.brand):focus {
  color: var(--green-vivid);
}

.footer-inner p {
  margin: 0 0 7px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-muted {
  color: var(--text-faint);
  font-size: 12px;
}

.footer-bottom {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

/* ---- RESPONSIVE — TABLET (≤1100px) ---- */
@media (max-width: 1100px) {
  .nav-cta {
    display: none;
  }

  /* Hero: stack */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0 36px;
  }

  .hero-image-wrap {
    max-height: 380px;
    aspect-ratio: 16 / 9;
  }

  /* Stats: 3-col stays */

  /* Intro: stack */
  .intro-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Icons: 2-col */
  .intro-icons {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Founder: stack */
  .founder-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .founder-photo-wrap img {
    max-height: 360px;
  }

  /* Portfolio: 2-col */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials: 1-col */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Consultation: stack */
  .consultation-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .consultation-form {
    grid-template-columns: 1fr;
  }

  /* Footer: 2-col */
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- RESPONSIVE — MOBILE (≤820px) ---- */
@media (max-width: 820px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 14px;
  }

  .nav-shell {
    width: min(100% - 28px, var(--container));
  }

  .brand {
    min-width: 0;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    align-content: start;
    gap: 0;
    min-height: calc(100vh - var(--header-height));
    padding: 20px 18px;
    background: var(--bg-surface);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 15px 0;
    color: var(--text-white);
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .nav-links a::after {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(6, 18, 8, 0.92) 0%,
        rgba(6, 18, 8, 0.82) 50%,
        rgba(6, 18, 8, 0.35) 100%
      );
  }

  .hero-media img {
    object-position: 65% 5%;
    opacity: 0.75;
  }

  .hero-content {
    width: min(100% - 28px, var(--container));
    padding: 64px 0 36px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 15px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
  }

  .hero-stats-bar {
    width: min(100% - 28px, var(--container));
    padding-bottom: 40px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .hero-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--border-card);
  }

  .hero-stats div:last-child {
    border-bottom: 0;
  }

  /* Sections */
  .intro-section,
  .founder-section,
  .portfolio-section,
  .testimonials-section,
  .consultation-section {
    padding: 60px 0;
  }

  .intro-inner,
  .portfolio-inner,
  .testimonials-inner,
  .consultation-inner,
  .footer-inner,
  .footer-bottom,
  .founder-inner {
    width: min(100% - 28px, var(--container));
  }

  /* Icons: 1-col */
  .intro-icons {
    grid-template-columns: 1fr;
  }

  /* Founder */
  .founder-section {
    padding: 60px 0 0;
  }

  .founder-photo-wrap img {
    max-height: 260px;
  }

  /* Portfolio: 1-col */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Consultation */
  .consultation-form {
    padding: 22px;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0 28px;
  }

  .footer-bottom {
    display: grid;
    gap: 5px;
  }
}

/* ---- RESPONSIVE — SMALL MOBILE (≤480px) ---- */
@media (max-width: 480px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .btn-primary,
  .btn-outline-white {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .brand-copy span {
    max-width: 120px;
    display: block;
    overflow-wrap: break-word;
    line-height: 1.15;
  }

  .hero-stats dt {
    font-size: 28px;
  }
}

/* ---- LEAF DECORATIVE ELEMENTS ---- */
/* Leaves sit BEHIND glass cards (z-index: 0) but above section bg */
.leaf-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Ensure glass cards sit above leaves */
.icon-card,
.portfolio-card,
.testimonial,
.founder-copy,
.consultation-form,
.hero-stats {
  position: relative;
  z-index: 1;
}

/* Hero — bottom-right leaf, large, rotated */
.leaf-deco--hero-br {
  width: 300px;
  bottom: -20px;
  right: 4%;
  opacity: 0.42;
  transform: rotate(25deg);
}

/* Hero — top-left leaf, smaller, mirrored */
.leaf-deco--hero-tl {
  width: 180px;
  top: 8%;
  left: -10px;
  opacity: 0.28;
  transform: rotate(-140deg) scaleX(-1);
}

/* Founder section — right side leaf, behind portrait */
.leaf-deco--founder {
  width: 260px;
  bottom: 0;
  right: 3%;
  opacity: 0.38;
  transform: rotate(15deg);
  z-index: 0;
}

/* Portfolio section — top-left leaf, behind cards */
.leaf-deco--portfolio {
  width: 220px;
  top: 10px;
  left: -20px;
  opacity: 0.35;
  transform: rotate(-30deg) scaleX(-1);
  z-index: 0;
}

@media (max-width: 820px) {
  .leaf-deco--hero-br {
    width: 180px;
    bottom: -15px;
    right: 2%;
    opacity: 0.32;
  }

  .leaf-deco--hero-tl {
    width: 110px;
    top: 6%;
    left: -8px;
    opacity: 0.22;
  }

  .leaf-deco--founder {
    width: 160px;
    right: 2%;
    opacity: 0.28;
  }

  .leaf-deco--portfolio {
    width: 130px;
    left: -12px;
    opacity: 0.26;
  }
}

/* ---- ACCESSIBILITY ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
