/* ─────────────────────────────────────────────────────────
   EC SOLUTION — Global Stylesheet
   Retheme by editing :root variables only
───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

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

:root {
  --ink:        #0e0d0b;
  --ink-soft:   #1a1916;
  --gold:       #b8922a;
  --gold-light: #d4a843;
  --gold-pale:  #f5e8c8;
  --cream:      #faf7f2;
  --warm-white: #f2ede4;
  --stone:      #e8e0d0;
  --border:     rgba(184,146,42,0.2);
  --text:       #2c2820;
  --text-soft:  #6b6055;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.15; }
p { max-width: 68ch; }
em { font-style: italic; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(14,13,11,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184,146,42,0.15);
}
.nav-logo {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: #fff; letter-spacing: 0.01em;
}
.nav-logo span { color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }
.nav-cta {
  background: var(--gold) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  letter-spacing: 0.08em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 64px 96px;
  background: var(--ink-soft);
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0e0d0b 0%, #1e1a14 40%, #0e0d0b 100%);
}
.hero-texture {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(184,146,42,0.5) 2px, rgba(184,146,42,0.5) 3px);
}
.hero-glow {
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,42,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-tag {
  display: inline-block;
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold-light); border: 1px solid rgba(212,168,67,0.3);
  padding: 6px 14px; border-radius: 2px; margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 300; color: #fff; line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero-sub {
  font-size: 18px; line-height: 1.7; color: rgba(255,255,255,0.6);
  margin-bottom: 40px; max-width: 56ch;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  position: absolute; bottom: 96px; right: 64px; z-index: 1;
  display: flex; gap: 48px;
}
.stat-item { text-align: right; }
.stat-num {
  display: block;
  font-family: var(--serif); font-size: 48px; font-weight: 300;
  color: var(--gold-light); line-height: 1;
}
.stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold); color: #fff;
  padding: 14px 28px; font-size: 13px;
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  background: transparent; color: rgba(255,255,255,0.7);
  padding: 14px 28px; font-size: 13px;
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }

.btn-ghost {
  display: inline-block;
  background: transparent; color: var(--gold);
  padding: 12px 24px; font-size: 13px;
  font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover { background: var(--gold); color: #fff; }

/* ── SECTIONS ── */
section { padding: 96px 64px; }

.section-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; line-height: 1.2; color: var(--ink);
  margin-bottom: 24px;
}
.section-title em { color: var(--gold); font-style: italic; }

.section-intro {
  font-size: 17px; line-height: 1.7; color: var(--text-soft);
  max-width: 60ch;
}

/* ── WHY FRACTIONAL ── */
.why-section { background: var(--ink); }
.why-section .section-title { color: #fff; }
.why-section .section-intro { color: rgba(255,255,255,0.5); }
.why-section .section-tag { color: var(--gold-light); }

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 64px;
  background: rgba(255,255,255,0.05);
}
.why-item {
  background: var(--ink-soft);
  padding: 48px 40px;
  position: relative;
  transition: background 0.2s;
}
.why-item:hover { background: rgba(184,146,42,0.06); }
.why-num {
  font-family: var(--serif); font-size: 64px; font-weight: 300;
  color: rgba(184,146,42,0.15); line-height: 1;
  position: absolute; top: 24px; right: 32px;
}
.why-item h3 { font-size: 22px; color: #fff; margin-bottom: 12px; }
.why-item p { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.7; }

.quote-bar {
  margin-top: 64px; padding: 40px;
  border-left: 3px solid var(--gold);
  background: rgba(184,146,42,0.06);
}
.quote-bar blockquote {
  font-family: var(--serif); font-size: 22px; font-style: italic;
  color: rgba(255,255,255,0.8); line-height: 1.5;
}

/* ── SERVICES ── */
.services-section { background: var(--cream); }

.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; margin-top: 64px;
  background: var(--stone);
}
.service-card {
  background: var(--cream); padding: 48px 40px;
  text-decoration: none; color: var(--text);
  transition: background 0.2s;
  display: block;
}
.service-card:hover { background: var(--warm-white); }
.service-card h3 { font-size: 26px; color: var(--ink); margin-bottom: 12px; }
.service-card p { font-size: 15px; color: var(--text-soft); line-height: 1.7; margin-bottom: 24px; }
.service-link {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

/* ── EXPERIENCE / SECTORS ── */
.sectors-section { background: var(--warm-white); }

.sectors-flex {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px;
}
.sector-tag {
  padding: 8px 18px;
  border: 1px solid var(--border);
  font-size: 13px; color: var(--text-soft);
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: default;
}
.sector-tag:hover {
  background: var(--gold); color: #fff; border-color: var(--gold);
}

/* ── HOW IT WORKS ── */
.process-section { background: var(--ink-soft); }
.process-section .section-title { color: #fff; }
.process-section .section-tag { color: var(--gold-light); }

.process-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 64px;
  background: rgba(255,255,255,0.04);
}
.process-step {
  background: var(--ink);
  padding: 48px 32px;
}
.step-num {
  font-family: var(--serif); font-size: 48px; font-weight: 300;
  color: var(--gold-light); line-height: 1; margin-bottom: 20px;
}
.process-step h3 { font-size: 18px; color: #fff; margin-bottom: 10px; }
.process-step p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ── TESTIMONIAL ── */
.testimonial-section { background: var(--gold); }
.testimonial-section .section-tag { color: rgba(255,255,255,0.7); }
.testimonial-quote {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 36px);
  font-style: italic; font-weight: 300;
  color: #fff; line-height: 1.4; max-width: 900px;
  margin: 24px 0;
}
.testimonial-attr {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

/* ── CTA ── */
.cta-section { background: var(--cream); text-align: center; padding: 120px 64px; }
.cta-section .section-title { color: var(--ink); }
.cta-section .section-intro { margin: 24px auto 40px; }
.cta-note {
  font-size: 13px; color: var(--text-soft); margin-top: 16px;
  letter-spacing: 0.03em;
}

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 64px; border-top: 1px solid rgba(184,146,42,0.15);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 12px; }
.footer-brand span { color: var(--gold-light); }
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.4); }
.footer-col h4 {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.25);
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 140px 64px 80px;
  background: var(--ink-soft);
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0e0d0b 0%, #1e1a14 60%, #0e0d0b 100%);
}
.page-hero-glow {
  position: absolute; top: -30%; right: -10%;
  width: 50vw; height: 50vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,42,0.07) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 64px); color: #fff; font-weight: 300; margin-bottom: 20px; }
.page-hero h1 em { color: var(--gold-light); font-style: italic; }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 56ch; }

/* ── INNER PAGE CONTENT ── */
.content-section { padding: 80px 64px; }
.content-section.alt { background: var(--warm-white); }
.content-section.dark { background: var(--ink-soft); }

.two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.two-col-text h2 { font-size: clamp(28px, 3vw, 44px); color: var(--ink); margin-bottom: 20px; }
.two-col-text p { font-size: 16px; color: var(--text-soft); line-height: 1.7; margin-bottom: 16px; }
.two-col-text.dark h2 { color: #fff; }
.two-col-text.dark p { color: rgba(255,255,255,0.5); }

/* ── EXPERTISE TAGS ── */
.expertise-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px;
}
.expertise-item {
  padding: 10px 20px; background: var(--cream);
  border: 1px solid var(--border); font-size: 13px;
  color: var(--text-soft);
}

/* ── DIFFERENTIATORS ── */
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; margin-top: 48px; background: var(--stone);
}
.diff-item {
  background: var(--cream); padding: 40px 32px;
}
.diff-num {
  font-family: var(--serif); font-size: 42px; font-weight: 300;
  color: var(--gold); line-height: 1; margin-bottom: 16px;
}
.diff-item h3 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.diff-item p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ── SERVICES DETAIL ── */
.service-detail { padding: 64px; border-bottom: 1px solid var(--stone); }
.service-detail:last-child { border-bottom: none; }
.service-detail h3 { font-size: 32px; color: var(--ink); margin-bottom: 16px; }
.service-detail p { font-size: 16px; color: var(--text-soft); line-height: 1.7; margin-bottom: 24px; max-width: 64ch; }
.service-bullets { list-style: none; }
.service-bullets li {
  font-size: 15px; color: var(--text-soft); padding: 8px 0;
  border-bottom: 1px solid var(--stone); padding-left: 20px;
  position: relative;
}
.service-bullets li::before {
  content: '—'; position: absolute; left: 0; color: var(--gold);
}

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; }
.contact-info h3 { font-size: 28px; color: var(--ink); margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--text-soft); line-height: 1.7; margin-bottom: 32px; }
.contact-detail { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.contact-detail-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.contact-detail-val { font-size: 15px; color: var(--text); }

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-soft);
  margin-bottom: 8px; font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  background: var(--warm-white); border: 1px solid var(--stone);
  font-family: var(--sans); font-size: 15px; color: var(--text);
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── CALCULATOR ── */
.calc-wrapper { max-width: 860px; margin: 0 auto; }
.calc-tabs { display: flex; gap: 2px; margin-bottom: 2px; }
.calc-tab {
  flex: 1; padding: 18px; text-align: center;
  background: var(--warm-white); border: none; cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-soft); transition: background 0.2s, color 0.2s;
}
.calc-tab.active { background: var(--ink); color: var(--gold-light); }
.calc-tab:hover:not(.active) { background: var(--stone); }

.calc-panel {
  background: var(--warm-white); padding: 48px;
  display: none;
}
.calc-panel.active { display: block; }

.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.calc-row.single { grid-template-columns: 1fr; }

.calc-field label {
  display: block; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-soft);
  margin-bottom: 8px; font-weight: 500;
}
.calc-field select,
.calc-field input[type="number"],
.calc-field input[type="range"] {
  width: 100%; padding: 12px 14px;
  background: var(--cream); border: 1px solid var(--stone);
  font-family: var(--sans); font-size: 15px; color: var(--text);
  outline: none; transition: border-color 0.2s;
  -webkit-appearance: none;
}
.calc-field select:focus,
.calc-field input[type="number"]:focus { border-color: var(--gold); }

.calc-field input[type="range"] {
  padding: 0; border: none; background: transparent;
  accent-color: var(--gold); cursor: pointer; height: 4px;
}
.range-value {
  display: inline-block; margin-top: 8px;
  font-family: var(--serif); font-size: 28px; color: var(--gold);
}

.calc-divider {
  height: 1px; background: var(--stone); margin: 32px 0;
}

.calc-results {
  background: var(--ink); padding: 40px;
  margin-top: 32px; display: none;
}
.calc-results.show { display: block; }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.result-item {}
.result-label {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 8px;
}
.result-value {
  font-family: var(--serif); font-size: 32px; font-weight: 300;
  color: var(--gold-light); line-height: 1;
}
.result-sub {
  font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 4px;
}
.results-note {
  margin-top: 24px; font-size: 12px; color: rgba(255,255,255,0.3);
  line-height: 1.6; border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}
.results-cta { margin-top: 24px; }

.calc-btn {
  width: 100%; padding: 16px;
  background: var(--gold); border: none;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; cursor: pointer; transition: background 0.2s;
  margin-top: 24px;
}
.calc-btn:hover { background: var(--gold-light); }

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 16px 64px;
  background: var(--ink);
  border-bottom: 1px solid rgba(184,146,42,0.1);
}
.breadcrumb a { font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.06em; }
.breadcrumb span { font-size: 12px; color: rgba(255,255,255,0.2); margin: 0 8px; }
.breadcrumb span.current { color: var(--gold-light); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--ink); padding: 24px;
    gap: 16px; border-bottom: 1px solid rgba(184,146,42,0.15);
  }

  .hero { padding: 0 24px 80px; }
  .hero-stats { position: relative; bottom: auto; right: auto; margin-top: 48px; gap: 32px; }
  section { padding: 64px 24px; }
  .why-grid, .services-grid, .process-steps, .diff-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .calc-row { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-hero { padding: 120px 24px 60px; }
  .content-section { padding: 60px 24px; }
  footer { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .calc-panel { padding: 28px 20px; }
  .service-detail { padding: 40px 24px; }
}
