:root {
  --bg: #2f4237;
  --bg-alt: #384d41;
  --panel: #f4f1ea;
  --panel-strong: #fbf8f3;
  --text: #171717;
  --text-light: #ffffff;
  --muted: #5d5a55;
  --muted-light: rgba(255, 255, 255, 0.86);
  --line: #d8d3cb;
  --line-soft: rgba(23, 23, 23, 0.08);

  --accent: #141414;
  --accent-2: #433f39;

  --highlight: #9b7754;
  --highlight-strong: #7e5f42;
  --highlight-soft: rgba(155, 119, 84, 0.16);

  --card: #f4f1ea;
  --card-2: #ece6dc;
  --card-border: rgba(126, 95, 66, 0.42);
  --frame: #8b6a49;
  --frame-soft: rgba(139, 106, 73, 0.2);

  --shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 10px 22px rgba(0, 0, 0, 0.14);

  --radius: 8px;
  --max: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0)),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

body::before,
body::after,
.site-header::before,
.site-header::after,
.header-inner::before,
.header-inner::after,
.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
main::before,
main::after {
  display: none !important;
  content: none !important;
}

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

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

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.brand-title,
.hero h1,
.page-hero h1,
.section-header h2,
.service-card h3,
.portfolio-card h3,
.contact-card h3,
.stat strong {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.01em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 23, 23, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.brand-text {
  display: none;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(23, 23, 23, 0.08);
  background: #ffffff;
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.site-nav a {
  padding: 0.8rem 0.95rem;
  border-radius: 4px;
  font-size: 0.94rem;
  color: var(--muted);
  transition: 0.2s ease;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--accent);
  color: #fff;
}

.site-nav a:last-child {
  background: var(--highlight);
  color: #fff;
}

.site-nav a:last-child:hover {
  background: var(--highlight-strong);
  color: #fff;
}

/* Hero */
.hero,
.page-hero {
  position: relative;
  color: var(--text-light);
}

.hero {
  padding: 4.2rem 0 3.2rem;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 1.8rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(139, 106, 73, 0.45);
  background: rgba(255, 250, 242, 0.96);
  border-radius: 4px;
  color: #304237;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 10ch;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.16);
}

.hero p,
.page-hero p {
  font-size: 1.08rem;
  color: var(--muted-light);
  margin: 1.1rem 0 0;
  max-width: 60ch;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.2rem;
  border-radius: 4px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button {
  background: #111111;
  color: #fff;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.06);
}

.button:hover {
  transform: translateY(-1px);
  background: #000000;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.button-outline {
  border: 1px solid rgba(139, 106, 73, 0.5);
  color: #223128;
  background: rgba(255, 249, 241, 0.96);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

.button-outline:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: var(--highlight-strong);
}

/* Cards / Panels */
.hero-card,
.panel,
.service-card,
.stat,
.contact-card,
.portfolio-card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow:
    inset 0 0 0 2px var(--frame-soft),
    var(--shadow);
  border-radius: 8px;
}

.hero-card,
.panel,
.service-card,
.stat,
.contact-card,
.portfolio-card,
.hero-card-copy div,
.info-list li,
.contact-item,
.quote-box,
.hero-badge {
  position: relative;
}

.hero-card::after,
.panel::after,
.service-card::after,
.stat::after,
.contact-card::after,
.portfolio-card::after,
.hero-card-copy div::after,
.info-list li::after,
.contact-item::after,
.quote-box::after,
.hero-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(139, 106, 73, 0.26);
  pointer-events: none;
}

/* Premium hero card */
.hero-card {
  padding: 1rem;
  background: linear-gradient(180deg, #f7f3ec, #eee7dc);
  border: 1px solid rgba(126, 95, 66, 0.4);
  border-radius: 10px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}

.hero-card-inner {
  background: linear-gradient(180deg, #efe7db, #e7dece);
  border-radius: 8px;
  min-height: 490px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(126, 95, 66, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.8rem 1.4rem 1.6rem;
}

.hero-logo-wrap img {
  width: min(100%, 320px);
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.08));
}

.hero-card-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  position: relative;
  padding-top: 1.1rem;
}

.hero-card-copy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0.15rem;
  right: 0.15rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(126, 95, 66, 0),
    rgba(126, 95, 66, 0.45),
    rgba(126, 95, 66, 0)
  );
}

.hero-card-copy div {
  padding: 1.05rem;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid rgba(126, 95, 66, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.32),
    0 6px 14px rgba(0,0,0,0.05);
}

.hero-card-copy strong,
.info-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #1c1a17;
}

.hero-card-copy span,
.panel p,
.service-card p,
.stat p,
.portfolio-card p,
.contact-card p,
.list li,
.info-list li,
.contact-item,
.quote-box p {
  color: var(--muted);
}

/* Hero badges */
.hero-badges {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.hero-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid rgba(126, 95, 66, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.3),
    0 4px 10px rgba(0,0,0,0.05);
  font-size: 0.8rem;
  font-weight: 700;
  color: #4d463f;
  text-align: center;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #9a7651;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 2rem 0 3.4rem;
}

.section:nth-child(even) {
  background: rgba(255, 255, 255, 0.045);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

/* Default: light-panel headings should be dark */
.section-header h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: none;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 48ch;
}

/* White only for headers sitting directly on the green background */
.section > .container:not(.panel):not(.hero-card):not(.service-card):not(.stat):not(.contact-card):not(.portfolio-card) > .section-header h2 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.section > .container:not(.panel):not(.hero-card):not(.service-card):not(.stat):not(.contact-card):not(.portfolio-card) > .section-header p {
  color: rgba(255, 255, 255, 0.82);
}

/* Force dark text inside light boxed containers */
.section > .container.panel > .section-header h2,
.panel .section-header h2,
.hero-card .section-header h2,
.service-card .section-header h2,
.stat .section-header h2,
.contact-card .section-header h2,
.portfolio-card .section-header h2 {
  color: var(--text);
  text-shadow: none;
}

.section > .container.panel > .section-header p,
.panel .section-header p,
.hero-card .section-header p,
.service-card .section-header p,
.stat .section-header p,
.contact-card .section-header p,
.portfolio-card .section-header p {
  color: var(--muted);
}

/* Catch direct h2s inside light holders */
.panel h2,
.service-card h2,
.stat h2,
.contact-card h2,
.portfolio-card h2 {
  color: var(--text);
  text-shadow: none;
}

.grid-3,
.services-grid,
.stats-grid,
.portfolio-grid,
.contact-grid {
  display: grid;
  gap: 1.2rem;
}

.grid-3,
.services-grid,
.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.stat,
.portfolio-card,
.contact-card {
  padding: 1.35rem;
}

.service-card,
.portfolio-card,
.contact-card,
.panel {
  border: 1px solid rgba(126, 95, 66, 0.34);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #aa825e, #7e5f42);
  opacity: 1;
}

.service-card h3,
.portfolio-card h3,
.contact-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--text);
}

.stat {
  background: var(--panel-strong);
}

.stat strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.panel {
  padding: 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.stats-grid {
  grid-template-columns: 1fr;
}

.list,
.info-list {
  margin: 0;
  padding-left: 1.1rem;
}

.info-list {
  padding-left: 0;
  list-style: none;
}

.info-list li {
  padding: 1rem 1.05rem;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.76);
  border: 1px solid rgba(126, 95, 66, 0.24);
}

.info-list li + li {
  margin-top: 0.9rem;
}

.quote-box {
  margin-top: 1.4rem;
  padding: 1.15rem;
  border-left: 4px solid var(--highlight);
  background: rgba(255, 250, 241, 0.78);
  border-radius: 6px;
  border-top: 1px solid rgba(126, 95, 66, 0.18);
  border-right: 1px solid rgba(126, 95, 66, 0.18);
  border-bottom: 1px solid rgba(126, 95, 66, 0.18);
}

.quote-box p {
  margin: 0;
  font-size: 1rem;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.contact-item {
  padding: 0.95rem 1rem;
  border-radius: 6px;
  background: rgba(255, 252, 246, 0.76);
  border: 1px solid rgba(126, 95, 66, 0.24);
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.22rem;
  font-weight: 700;
  color: #4a4036;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0 2.2rem;
  border-top: 1px solid rgba(23, 23, 23, 0.07);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav a:hover {
  color: var(--text);
}

.site-credit {
  margin-top: 0.45rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-credit a {
  color: var(--text);
  text-decoration: none;
}

.site-credit a:hover {
  text-decoration: underline;
}

/* Utility */
.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;
}

/* Tablet */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .grid-3,
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-card-inner {
    min-height: auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--max));
  }

  .header-inner {
    min-height: 76px;
    justify-content: center;
  }

  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    gap: 0;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.65rem);
    background: #ffffff;
    border: 1px solid rgba(126, 95, 66, 0.18);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 0.55rem;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    text-align: center;
  }

  .hero {
    padding: 2.6rem 0 2.2rem;
  }

  .page-hero {
    padding: 2.4rem 0 1.1rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .hero p,
  .page-hero p {
    font-size: 1rem;
  }

  .hero-card-copy {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    justify-content: center;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .hero-card,
  .panel,
  .service-card,
  .stat,
  .portfolio-card,
  .contact-card {
    padding: 1.1rem;
  }

  .hero-card-inner {
    min-height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .hero-logo-wrap {
    padding: 1.6rem 0.8rem 1rem;
  }

  .hero-logo-wrap img {
    width: min(100%, 260px);
  }

  .section {
    padding: 1.2rem 0 2.6rem;
  }

  .section-header {
    margin-bottom: 1rem;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .button,
  .button-outline {
    width: 100%;
  }

  .cta-row,
  .hero-actions {
    gap: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .info-list li,
  .contact-item {
    padding: 0.95rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}