/* ============================================================
   Burgeon Technology — design system
   60/30/10 colour rule
     60% cream    #FAF7F2  (background)
     30% espresso #2B1F1A  (text, structure, dark surfaces)
     10% orange   #FF6B35  (accent — CTAs, links, highlights)
   Typeface: Plus Jakarta Sans (self-hosted)
   ============================================================ */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #faf7f2;
  --cream-2: #f3ece3;
  --cream-3: #ece2d6;
  --espresso: #2b1f1a;
  --espresso-2: #4a382e;
  --orange: #ff6b35;
  --orange-2: #e8511c;
  --ink: #2b1f1a;
  --muted: rgba(43, 31, 26, 0.66);
  --muted-on-dark: rgba(250, 247, 242, 0.72);
  --line: rgba(43, 31, 26, 0.12);
  --line-on-dark: rgba(250, 247, 242, 0.16);
  --surface-dark: #2b1f1a;
  --bg-card: #ffffff;
  --text-on-dark: #faf7f2;
  --header-bg: rgba(250, 247, 242, 0.86);
  --radius: 16px;
  --container: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(43, 31, 26, 0.04), 0 8px 24px rgba(43, 31, 26, 0.06);
  --shadow-lg: 0 2px 4px rgba(43, 31, 26, 0.05), 0 24px 48px rgba(43, 31, 26, 0.12);
}

[data-theme="dark"] {
  --cream: #16100d;
  --cream-2: #1f1714;
  --cream-3: #2a1f1a;
  --espresso: #f2eadc;
  --espresso-2: #c9bfad;
  --orange: #ff7a4d;
  --orange-2: #ff6b35;
  --ink: #f2eadc;
  --muted: rgba(242, 234, 220, 0.72);
  --muted-on-dark: rgba(242, 234, 220, 0.72);
  --line: rgba(242, 234, 220, 0.10);
  --line-on-dark: rgba(242, 234, 220, 0.16);
  --surface-dark: #0b0706;
  --bg-card: #1f1714;
  --text-on-dark: #f2eadc;
  --header-bg: rgba(22, 16, 13, 0.86);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 48px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: var(--espresso);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.2em;
}

a {
  color: inherit;
}

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

::selection {
  background: var(--orange);
  color: #fff;
}

/* ---------------------------------------------------------- */
/* Layout                                                      */
/* ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section--alt {
  background: var(--cream-2);
}

.section--dark {
  background: var(--surface-dark);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--orange);
}

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  max-width: 22ch;
  margin-bottom: 0.35em;
}

.section-sub {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.06rem;
}

.section--dark .section-sub {
  color: var(--muted-on-dark);
}

/* ---------------------------------------------------------- */
/* Buttons                                                     */
/* ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  font-family: inherit;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.18s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--orange);
  color: #2b1f1a;
}

.btn-primary:hover {
  background: var(--orange-2);
}

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--espresso);
}

.btn-on-dark {
  background: var(--cream);
  color: var(--espresso);
}

.btn-on-dark:hover {
  background: var(--cream-3);
}

[data-theme="dark"] .btn-on-dark {
  background: var(--text-on-dark);
  color: var(--surface-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-on-dark);
}

.btn-outline-light:hover {
  border-color: var(--text-on-dark);
}

/* ---------------------------------------------------------- */
/* Header                                                      */
/* ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 38px;
  width: auto;
}

.brand .logo-dark {
  display: none;
}

[data-theme="dark"] .brand .logo-light {
  display: none;
}

[data-theme="dark"] .brand .logo-dark {
  display: inline;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a:not(.btn) {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--espresso-2);
  position: relative;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a:not(.btn):hover {
  color: var(--orange);
}

.nav a:not(.btn)[aria-current="page"] {
  color: var(--espresso);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--espresso);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 76px;
    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;
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:not(.btn):last-of-type {
    border-bottom: none;
  }

  .nav .nav-cta {
    margin: 12px 0 0;
  }
}

/* ---------------------------------------------------------- */
/* Hero                                                        */
/* ---------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(72px, 11vw, 150px) 0 clamp(72px, 10vw, 130px);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -0.032em;
  max-width: 15ch;
  margin-bottom: 0.4em;
}

.hero .lead {
  font-size: clamp(1.1rem, 2vw, 1.34rem);
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 2.2em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-art {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero-art--ring {
  top: -140px;
  right: -160px;
  width: 560px;
  height: 560px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-art--ring::after {
  content: "";
  position: absolute;
  inset: 64px;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 50%;
}

.hero-art--dot {
  top: 120px;
  right: 180px;
  width: 16px;
  height: 16px;
  background: var(--orange);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .hero-art {
    display: none;
  }
}

/* ---------------------------------------------------------- */
/* Sections / cards                                            */
/* ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 0.45em;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.1em;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--espresso);
  text-decoration: none;
}

.card .card-link svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.chip {
  display: inline-flex;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--espresso-2);
}

.section--dark .chip {
  border-color: var(--line-on-dark);
  color: var(--text-on-dark);
}

/* Service detail rows */
.service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.service:first-of-type {
  border-top: none;
  padding-top: 0;
}

.service .num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.02em;
  line-height: 1;
}

.service h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 6px 0 0.4em;
}

.service p {
  color: var(--muted);
  max-width: 52ch;
}

@media (max-width: 760px) {
  .service {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------------------------------------------------------- */
/* Value pillars                                               */
/* ---------------------------------------------------------- */

.pillar {
  padding: 26px 0;
}

.pillar h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.25rem;
}

.pillar h3 .dot {
  width: 8px;
  height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex: none;
}

/* ---------------------------------------------------------- */
/* CTA band                                                    */
/* ---------------------------------------------------------- */

.cta-band {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: clamp(64px, 10vw, 110px) 0;
  position: relative;
  overflow: hidden;
}

.cta-band h2 {
  color: var(--text-on-dark);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  max-width: 20ch;
  margin-bottom: 0.4em;
}

.cta-band p {
  color: var(--muted-on-dark);
  max-width: 56ch;
  margin-bottom: 2em;
}

/* ---------------------------------------------------------- */
/* Footer                                                      */
/* ---------------------------------------------------------- */

.site-footer {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: 72px 0 40px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand .wordmark {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: var(--muted-on-dark);
  max-width: 34ch;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--text-on-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted-on-dark);
  text-decoration: none;
  font-size: 0.94rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  width: 100%;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--muted-on-dark);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------- */
/* Contact form                                                */
/* ---------------------------------------------------------- */

.form {
  max-width: 620px;
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.field .req {
  color: var(--orange);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  font: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.14);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--orange);
}

.checkbox a {
  color: var(--espresso);
  text-decoration: underline;
}

.form-status {
  display: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.94rem;
  margin: 0 0 22px;
}

.form-status.is-visible {
  display: block;
}

.form-status--error {
  background: rgba(232, 81, 28, 0.1);
  color: #a83812;
  border: 1px solid rgba(232, 81, 28, 0.3);
}

.form-status--success {
  background: rgba(46, 150, 90, 0.1);
  color: #1c6b3e;
  border: 1px solid rgba(46, 150, 90, 0.3);
}

.turnstile {
  margin-bottom: 24px;
  min-height: 66px;
}

/* ---------------------------------------------------------- */
/* Split layout (About)                                        */
/* ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split > div {
  max-width: 52ch;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------- */
/* Utility                                                     */
/* ---------------------------------------------------------- */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 64px; }

.lead-lg {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  color: var(--muted);
  max-width: 66ch;
}

.text-orange { color: var(--orange); }

.accent-underline {
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
}

/* Thank-you state shown after a successful Contact Request. */
.form-thanks {
  display: none;
  text-align: center;
  padding: 44px 32px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-thanks.is-visible {
  display: block;
}

.form-thanks .check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.form-thanks .check svg {
  width: 28px;
  height: 28px;
}

.form-thanks h2 {
  font-size: 1.7rem;
  margin-bottom: 0.4em;
}

.form-thanks p {
  color: var(--muted);
  max-width: 38ch;
  margin: 0 auto 1.6em;
}

/* ---------------------------------------------------------- */
/* Theme toggle                                                */
/* ---------------------------------------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
  margin-left: 14px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--espresso);
  color: var(--orange);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: inline;
}

[data-theme="dark"] .theme-toggle {
  color: var(--text-on-dark);
  border-color: var(--line-on-dark);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--text-on-dark);
}

@media (max-width: 860px) {
  .theme-toggle {
    margin-left: 0;
  }
}
