/* ECF-RDC Design System — landing/service/contact pages
   Palette: navy (brand-exact #000033) + gold accent, light content sections. */

:root {
  --navy: #000033;
  --navy-2: #04061f;
  --navy-3: #0d1442;
  --navy-4: #161f5c;
  --gold: #c9a13b;
  --gold-dark: #8a6a1f;
  --paper: #f7f8fb;
  --white: #ffffff;
  --ink: #0b0e2a;
  --muted: #5c6178;
  --muted-2: #9297ad;
  --border-light: #e4e6ef;
  --border-dark: rgba(255, 255, 255, 0.14);
  --shadow: 0 20px 60px -20px rgba(0, 0, 51, 0.35);
  --radius: 2px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --container: 1200px;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ecf-page * { box-sizing: border-box; }

.ecf-page {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ecf-page img { max-width: 100%; display: block; }
.ecf-page a { color: inherit; text-decoration: none; }
.ecf-page ul { margin: 0; padding: 0; list-style: none; }
.ecf-page button { font-family: inherit; }

.ecf-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 768px) {
  .ecf-container { padding: 0 var(--space-5); }
}

/* ---------- Skip link ---------- */
.ecf-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 10000;
  font-weight: 600;
}
.ecf-skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* ---------- Opening animation (landing pages only, once per session) ---------- */
.ecf-intro {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  opacity: 1;
  transition: opacity 380ms ease;
}
.ecf-intro-mark {
  width: 380px;
  max-width: 70vw;
  height: auto;
  opacity: 0;
  transform: scale(0.86);
  animation: ecfIntroMark 420ms ease 60ms forwards;
}
.ecf-intro.is-leaving { opacity: 0; }
.ecf-intro.is-done { display: none; }
@keyframes ecfIntroMark {
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ecf-intro { display: none; }
}

/* ---------- Header ---------- */
.ecf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: var(--space-3) 0;
  transition: background 240ms ease, padding 240ms ease, box-shadow 240ms ease;
}
.ecf-header .ecf-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.ecf-header--solid {
  background: rgba(0, 0, 51, 0.92);
  backdrop-filter: blur(10px);
  padding: var(--space-2) 0;
  box-shadow: 0 1px 0 var(--border-dark);
}
.ecf-page--light-header .ecf-header {
  background: var(--white);
  box-shadow: 0 1px 0 var(--border-light);
  padding: var(--space-2) 0;
}

.ecf-logo img { height: 84px; width: auto; }

.ecf-nav {
  display: none;
  align-items: center;
  gap: var(--space-4);
}
@media (min-width: 1024px) {
  .ecf-nav { display: flex; }
}
.ecf-nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 150ms ease;
  position: relative;
}
.ecf-page--light-header .ecf-nav a { color: var(--ink); }
.ecf-nav a:hover,
.ecf-nav a:focus-visible { opacity: 1; }
.ecf-nav a[aria-current="page"] { opacity: 1; }
.ecf-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--gold);
}

.ecf-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.ecf-lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}
.ecf-page--light-header .ecf-lang-switch { color: var(--ink); }
.ecf-lang-switch a { opacity: 0.55; padding: 4px 2px; }
.ecf-lang-switch a[aria-current="true"] { opacity: 1; color: var(--gold); }
.ecf-lang-switch span { opacity: 0.4; }

.ecf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
  touch-action: manipulation;
}
.ecf-btn:hover { transform: translateY(-1px); }
.ecf-btn-gold { background: var(--gold); color: var(--navy); }
.ecf-btn-gold:hover { background: #d8b04e; }
.ecf-btn-outline-light { border-color: var(--border-dark); color: var(--white); }
.ecf-btn-outline-light:hover { border-color: var(--white); }
.ecf-btn-outline-dark { border-color: var(--border-light); color: var(--ink); }
.ecf-btn-outline-dark:hover { border-color: var(--navy); }
.ecf-btn-text { padding: 0; gap: 6px; color: inherit; font-weight: 600; }
.ecf-btn-text .ecf-arrow { transition: transform 150ms ease; }
.ecf-btn-text:hover .ecf-arrow { transform: translateX(4px); }

.ecf-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--white);
  border-radius: var(--radius);
}
.ecf-page--light-header .ecf-menu-toggle { color: var(--ink); border-color: var(--border-light); }
@media (min-width: 1024px) {
  .ecf-menu-toggle { display: none; }
}

.ecf-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--navy);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform 260ms ease;
}
.ecf-mobile-nav[data-open="true"] { transform: translateX(0); }
.ecf-mobile-nav .ecf-mobile-nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ecf-mobile-nav a {
  color: var(--white);
  font-size: 22px;
  font-weight: 500;
}
.ecf-mobile-nav .ecf-menu-toggle { color: var(--white); border-color: var(--border-dark); }

/* ---------- Hero ---------- */
.ecf-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--navy);
  overflow: hidden;
  padding-top: 120px;
}
.ecf-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.ecf-hero-media video,
.ecf-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ecf-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,51,0.55) 0%, rgba(0,0,51,0.35) 35%, rgba(0,0,51,0.85) 100%),
    linear-gradient(90deg, rgba(0,0,51,0.75) 0%, rgba(0,0,51,0.15) 55%);
}
.ecf-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-7);
  width: 100%;
}
.ecf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-3);
}
.ecf-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.ecf-hero h1 {
  font-size: clamp(2.25rem, 5.2vw, 4.2rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--white);
  max-width: 16ch;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.01em;
}
.ecf-hero p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin: 0 0 var(--space-4);
  line-height: 1.6;
}
.ecf-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.ecf-scroll-cue {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  z-index: 1;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 8px;
  writing-mode: vertical-rl;
}
@media (min-width: 768px) {
  .ecf-scroll-cue { display: inline-flex; }
}

/* ---------- Sections ---------- */
.ecf-section { padding: var(--space-7) 0; }
.ecf-section--dark { background: var(--navy); color: var(--white); }
.ecf-section--tight { padding: var(--space-6) 0; }
.ecf-section-head { max-width: 640px; margin-bottom: var(--space-5); }
.ecf-section-head.ecf-center { margin-left: auto; margin-right: auto; text-align: center; }
.ecf-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-2);
}
.ecf-section--dark .ecf-kicker { color: var(--gold); }
.ecf-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
.ecf-section-head p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; margin: 0; }
.ecf-section--dark .ecf-section-head p { color: rgba(255,255,255,0.72); }

/* ---------- Audit-types 3-card grid (photographic) ---------- */
.ecf-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 768px) {
  .ecf-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.ecf-photo-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--navy-3);
}
.ecf-photo-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms ease;
}
.ecf-photo-card:hover img { transform: scale(1.05); }
.ecf-photo-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,51,0) 40%, rgba(0,0,51,0.92) 100%);
}
.ecf-photo-card-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: var(--space-3);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}
.ecf-photo-card-label span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- Feature / diamond panel ---------- */
.ecf-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px) {
  .ecf-feature { grid-template-columns: 0.9fr 1.1fr; gap: var(--space-6); }
}
.ecf-diamond-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  position: relative;
}
.ecf-diamond {
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid var(--border-dark);
  transform: rotate(45deg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecf-diamond::before,
.ecf-diamond::after {
  content: '';
  position: absolute;
  border: 1px solid rgba(255,255,255,0.06);
}
.ecf-diamond::before { inset: 14%; }
.ecf-diamond::after { inset: 28%; }
.ecf-diamond-mark { transform: rotate(-45deg); }
.ecf-diamond-mark img { height: 100px; width: auto; }
.ecf-feature-copy h3 { font-size: 1.6rem; font-weight: 600; margin: 0 0 var(--space-2); }
.ecf-feature-copy p { color: rgba(255,255,255,0.72); line-height: 1.65; margin: 0 0 var(--space-3); }

/* ---------- Trust strip ---------- */
.ecf-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border-dark);
}
.ecf-trust-item {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- Services grid (light section) ---------- */
.ecf-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .ecf-services-grid { grid-template-columns: 1fr 1fr; }
}
.ecf-service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.ecf-service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.ecf-service-card-media { aspect-ratio: 16/10; overflow: hidden; }
.ecf-service-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ecf-service-card-body { padding: var(--space-3); flex: 1; display: flex; flex-direction: column; }
.ecf-service-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 var(--space-1); }
.ecf-service-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0 0 var(--space-2); flex: 1; }
.ecf-service-card .ecf-btn-text { font-size: 14px; }

/* ---------- Why-choose / process cards ---------- */
.ecf-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 768px) {
  .ecf-why-grid { grid-template-columns: repeat(4, 1fr); }
}
.ecf-why-card { padding-top: var(--space-3); border-top: 2px solid var(--gold); }
.ecf-why-card .ecf-num { font-size: 13px; font-weight: 700; color: var(--gold-dark); letter-spacing: 0.08em; }
.ecf-why-card h3 { font-size: 1.05rem; font-weight: 600; margin: var(--space-1) 0 var(--space-1); }
.ecf-why-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin: 0; }

.ecf-process-list { display: flex; flex-direction: column; gap: 0; }
.ecf-process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}
.ecf-process-item:first-child { border-top: 1px solid var(--border-light); }
.ecf-process-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-variant-numeric: tabular-nums;
}
.ecf-process-item h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.ecf-process-item p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ---------- Opinion / list cards (audit page) ---------- */
.ecf-opinion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 768px) {
  .ecf-opinion-grid { grid-template-columns: repeat(2, 1fr); }
}
.ecf-opinion-card {
  padding: var(--space-3);
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
}
.ecf-opinion-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: var(--navy); }
.ecf-opinion-card p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

.ecf-req-list { display: grid; gap: 10px; }
.ecf-req-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}
.ecf-req-list li::before {
  content: '';
  width: 6px; height: 6px;
  margin-top: 9px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */
.ecf-cta-band {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-6) 0;
}
.ecf-cta-band .ecf-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.ecf-cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; margin: 0; max-width: 22ch; }

/* ---------- Contact page ---------- */
.ecf-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 900px) {
  .ecf-contact-grid { grid-template-columns: 1fr 1fr; }
}
.ecf-contact-info dl { display: grid; gap: var(--space-3); }
.ecf-contact-info dt { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px; }
.ecf-contact-info dd { margin: 0; font-size: 1.05rem; }
.ecf-notice {
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: #fbf3e3;
  border: 1px solid #eddcb0;
  color: #6b5210;
  font-size: 0.88rem;
  border-radius: var(--radius);
}

.ecf-form { display: grid; gap: var(--space-3); }
.ecf-field { display: grid; gap: 6px; }
.ecf-field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ecf-field .req { color: var(--gold-dark); }
.ecf-field input,
.ecf-field textarea,
.ecf-field select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 44px;
}
.ecf-field textarea { min-height: 140px; resize: vertical; }
.ecf-field input:focus,
.ecf-field textarea:focus,
.ecf-field select:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.ecf-field-help { font-size: 12px; color: var(--muted); }
.ecf-form-status { font-size: 14px; padding: 10px 14px; border-radius: var(--radius); display: none; }
.ecf-form-status[data-state="success"] { display: block; background: #e9f7ee; color: #1c6b3a; border: 1px solid #b9e4c8; }
.ecf-form-status[data-state="error"] { display: block; background: #fdecec; color: #99231d; border: 1px solid #f3c2be; }

/* ---------- Footer ---------- */
.ecf-footer { background: var(--navy-2); color: rgba(255,255,255,0.75); padding: var(--space-6) 0 var(--space-4); }
.ecf-footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-dark);
}
@media (min-width: 768px) {
  .ecf-footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.ecf-footer-brand img { height: 72px; width: auto; margin-bottom: var(--space-2); }
.ecf-footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 34ch; color: rgba(255,255,255,0.6); }
.ecf-footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--space-2); }
.ecf-footer-col ul { display: grid; gap: 10px; }
.ecf-footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.ecf-footer-col a:hover { color: var(--white); }
.ecf-footer-bottom {
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.ecf-footer-legal { max-width: 70ch; line-height: 1.6; margin-top: var(--space-3); font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ---------- Reveal-on-scroll ---------- */
.ecf-reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.ecf-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ecf-reveal { opacity: 1; transform: none; transition: none; }
  .ecf-photo-card img { transition: none; }
}

/* ---------- Focus visibility ---------- */
.ecf-page a:focus-visible,
.ecf-page button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Page header (non-hero pages) ---------- */
.ecf-page-header {
  background: var(--navy);
  color: var(--white);
  padding: 168px 0 var(--space-6);
}
.ecf-page-header .ecf-kicker { color: var(--gold); }
.ecf-page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin: 0 0 var(--space-2); max-width: 20ch; }
.ecf-page-header p { color: rgba(255,255,255,0.75); max-width: 60ch; font-size: 1.05rem; line-height: 1.6; margin: 0; }
