/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────────
   BRAND COLOUR VARIABLES
   Move The Machine Brand Guidelines 2025
   Primary:   #B5963C  Signature Gold
              #0C0C0C  Deep Black
              #F7F5F0  Warm Cream
   Secondary: #1E1E1E  Charcoal
              #5A5A5A  Mid Grey
              #9A9A9A  Light Grey
              #C8AA5A  Gold Mid (hover)
              #E8D48A  Gold Pale
              #FAFAF8  Warm White (cards)
───────────────────────────────────────────── */
:root {
  --bg:              #F7F5F0;
  --text:            #1E1E1E;
  --text-supporting: #5A5A5A;
  --text-label:      #9A9A9A;
  --card:            #FAFAF8;
  --header:          #0C0C0C;
  --hero-bg:         #0C0C0C;
  --accent:          #B5963C;
  --accent-hover:    #C8AA5A;
  --accent-pale:     #E8D48A;
  --shadow:          rgba(0,0,0,0.08);
  --border-subtle:   rgba(0,0,0,0.07);
  --footer-color:    #5A5A5A;
}

/* DARK MODE — "Dark: Black bg, Gold heads, White body" */
body.dark-mode {
  --bg:              #0C0C0C;
  --text:            #F7F5F0;
  --text-supporting: #9A9A9A;
  --text-label:      #5A5A5A;
  --card:            #1E1E1E;
  --shadow:          rgba(0,0,0,0.5);
  --border-subtle:   rgba(255,255,255,0.07);
  --footer-color:    #9A9A9A;
}

/* BASE */
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease;
}

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  font-weight: 700;
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ── HEADER ──────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--header);
  color: white;
  padding: 0.85rem 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

/* LOGO — "light elegant weight, wide tracking" */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: invert(1);
}
.logo-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.4;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
}
nav a:hover { color: var(--accent-hover); }
nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* DARK TOGGLE */
.dark-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.dark-toggle:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* HAMBURGER */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  min-height: 44px;
}

/* MOBILE NAV */
@media (max-width: 768px) {
  nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 1rem 0 0.5rem;
    gap: 0.25rem;
  }
  nav.open { display: flex; }
  nav a { min-height: 44px; }
  .hamburger { display: block; }
  header { flex-wrap: wrap; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 8%;
  background: var(--hero-bg);
  color: white;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}
/* H1 — Montserrat Black, Tracking +20 */
.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero-text > p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin-bottom: 2.25rem;
  letter-spacing: 0.01em;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* HERO CARD */
.hero-card {
  background: var(--card);
  color: var(--text);
  padding: 2.25rem;
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  min-width: 280px;
  flex: 0 1 320px;
}
/* H3 — Montserrat Bold */
.hero-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.hero-card > p {
  font-size: 0.825rem;
  color: var(--text-supporting);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.metric {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.metric strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.15rem;
}

/* ── BUTTONS ─────────────────────────────────── */
.btn {
  padding: 0.9rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #0C0C0C; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.btn-secondary:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

/* ── SECTION SHARED ──────────────────────────── */
section { padding: 5rem 8%; }

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
/* H2 — Montserrat Bold */
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.section-title p {
  color: var(--text-supporting);
  max-width: 640px;
  margin: auto;
  font-size: 0.95rem;
  font-weight: 400;
}

/* ── WHY ─────────────────────────────────────── */
section.why-section {
  background: #0C0C0C !important;
  padding: 5rem 8%;
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
}
/* Gold eyebrow label — matches brand accent treatment */
.why-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}
.why-heading h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  color: #fff;
  text-align: left;
}
.why-body p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.85;
  margin-bottom: 1.1rem;
}
.why-body p:last-child { margin-bottom: 0; }

/* ── SERVICES ────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2.25rem 2rem;
  border-radius: 2px;
  border-top: 3px solid var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}
.card-icon {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  color: var(--text);
}
.service-card p {
  font-size: 0.875rem;
  color: var(--text-supporting);
  line-height: 1.7;
}

/* ── TESTIMONIALS ────────────────────────────── */
#testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2.25rem;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-card > p {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-supporting);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
/* Gold opening quote mark */
.testimonial-card > p::before {
  content: '\201C';
  font-size: 2.5rem;
  font-style: normal;
  color: var(--accent);
  line-height: 0;
  vertical-align: -0.6rem;
  margin-right: 0.15rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}
.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-label);
  letter-spacing: 0.04em;
}

/* ── INSIGHTS ────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  padding: 2.25rem;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.blog-card:hover { transform: translateY(-4px); }
.blog-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.blog-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.blog-card p {
  font-size: 0.85rem;
  color: var(--text-supporting);
  line-height: 1.7;
}

/* ── ABOUT ───────────────────────────────────── */
.about-card {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 4px 20px var(--shadow);
  border-radius: 2px;
  border-left: 3px solid var(--accent);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.about-heading h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.about-body p {
  font-size: 0.9rem;
  color: var(--text-supporting);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-body p:last-child { margin-bottom: 0; }

/* ── CONTACT — full-width deep black panel ───── */
.contact-section {
  padding: 0;
  background: var(--bg);
}
.contact-panel {
  background: #0C0C0C;
  padding: 5rem 8%;
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
  max-width: 1200px;
}

/* Contact intro — white text on black */
.contact-intro h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.contact-intro > p {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-detail { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-detail a,
.contact-detail span:not(.contact-label) {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-detail a:hover { color: var(--accent-hover); }

/* FORM — on black background */
.contact-form-wrap { position: relative; }

.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}
.form-group label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.required { color: var(--accent); }

.form-group input,
.form-group textarea {
  background: #ffffff;
  color: #1E1E1E;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0.85rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,150,60,0.2);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #c0392b; }

.field-error {
  font-size: 0.7rem;
  color: #f87171;
  margin-top: 0.3rem;
  min-height: 1em;
}

/* Honeypot */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Turnstile */
.cf-turnstile { margin-bottom: 1.5rem; }

/* Submit */
.btn-submit { width: 100%; text-align: center; padding: 1rem; }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Status message */
.form-status {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent);
}
.form-status.success {
  background: rgba(181,150,60,0.12);
  color: #fff;
  border-left-color: var(--accent);
}
.form-status.error {
  background: rgba(192,57,43,0.12);
  color: #f87171;
  border-left-color: #c0392b;
}

/* Focus ring — brand-consistent */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 3px solid var(--accent-hover);
  outline-offset: 3px;
}

/* ── REVEAL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* ── FOOTER ──────────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--footer-color);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--border-subtle);
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .contact-container { grid-template-columns: 1fr; gap: 3rem; }
  .about-card { grid-template-columns: 1fr; gap: 1.5rem; padding: 2.5rem; }
  .why-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .hero-text h1 { font-size: 2.25rem; }
  .form-row--half { grid-template-columns: 1fr; }
  .contact-panel { padding: 4rem 6%; }
}

@media (max-width: 480px) {
  section { padding: 4rem 6%; }
  .hero { padding: 4rem 6%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}