/* ==========================================================================
   EUAF Protection — style.css
   ========================================================================== */

:root {
  color-scheme: light;
  --charcoal: #22252B;
  --shield-1: #3C3F44;
  --shield-2: #464B4F;
  --flame: #F3A000;
  --flame-light: #F1CC82;
  --title: #383B48;
  --gray-1: #7C898B;
  --gray-2: #8A8A94;
  --gray-3: #D4D4D8;
  --cream: #F6F4F1;
  --taupe: #B29E84;
  --white: #FFFFFF;
  --line: #E4E1D8;
  --text-body: #464B4F;
  --flame-text-on-light: #42280A;

  --font-title: 'Montserrat', 'Poppins', Arial, sans-serif;
  --font-body: 'Lato', Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--title);
  margin: 0 0 0.6em;
  line-height: 1.25;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--flame);
  background: rgba(243, 160, 0, 0.12);
  padding: 6px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--flame); color: var(--charcoal); }
.btn-primary:hover { background: #DF9200; }
.btn.is-loading { opacity: 0.85; cursor: progress; pointer-events: none; transform: none; }
.btn-spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(34,37,43,0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn-light { background: var(--cream); color: var(--charcoal); }
.btn-light:hover { background: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); }
.btn-outline-dark { background: transparent; color: var(--charcoal); border-color: var(--gray-3); }
.btn-outline-dark:hover { border-color: var(--charcoal); }

/* ---------- Skip link (keyboard / screen reader) ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img.brand-logo { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--charcoal); }
.brand-baseline { font-size: 0.68rem; color: var(--gray-1); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  font-size: 0.88rem;
  color: var(--text-body);
  font-weight: 400;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--charcoal);
  font-weight: 700;
  border-bottom-color: var(--flame);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}
.lang-switch a {
  color: var(--gray-2);
  font-weight: 400;
  padding: 2px 1px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.lang-switch a:hover { color: var(--charcoal); }
.lang-switch a.active { color: var(--charcoal); font-weight: 700; border-bottom-color: var(--flame); }
.lang-switch .lang-sep { color: var(--gray-3); font-size: 0.7rem; }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero (dark, textured) ---------- */
.hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  padding: 76px 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 46px);
}
.hero .container { position: relative; }
.hero-content { max-width: 620px; }
.hero h1 { color: var(--white); font-size: 2.5rem; }
.hero p.lead { color: #B7BAC0; font-size: 1.05rem; max-width: 500px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Page hero (interior pages, shorter) */
.page-hero {
  position: relative;
  background: var(--charcoal);
  overflow: hidden;
  padding: 54px 0 46px;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0px, rgba(255,255,255,0.035) 1px, transparent 1px, transparent 46px);
}
.page-hero .container { position: relative; }
.breadcrumb { font-size: 0.72rem; color: var(--gray-2); margin-bottom: 10px; }
.breadcrumb a { color: var(--gray-2); }
.breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: 2rem; margin-bottom: 8px; }
.page-hero p.lead { color: #B7BAC0; max-width: 480px; margin: 0; }

/* About page: full-width photo hero */
.photo-hero {
  position: relative;
  min-height: 300px;
  background: #2E323A url('../img/team-photo.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(34,37,43,0.88) 0%, rgba(34,37,43,0.4) 45%, rgba(34,37,43,0.8) 100%);
}
.photo-hero .container { position: relative; width: 100%; padding-top: 40px; text-align: center; }
.photo-hero h1 { color: var(--white); font-size: 2.1rem; margin-bottom: 8px; }
.photo-hero p.lead { color: #D4D4D8; margin: 0 auto; }
.photo-hero .breadcrumb { color: #C7CAD0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--cream); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { text-align: center; padding: 34px 16px; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-title); font-weight: 700; font-size: 1.8rem; color: var(--charcoal); }
.stat-rule { width: 30px; height: 2px; background: var(--flame); margin: 10px auto; }
.stat-label { font-size: 0.82rem; color: var(--gray-1); }
.stats-source { text-align: center; font-size: 0.7rem; color: var(--gray-2); padding: 0 0 20px; font-style: italic; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--charcoal); color: var(--white); }
.section-header { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-body); }

/* ---------- Service cards (home) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--charcoal);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: box-shadow .35s cubic-bezier(0.22, 1, 0.36, 1), transform .35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.service-card:hover {
  box-shadow: 0 26px 46px rgba(34,37,43,0.22);
  transform: translateY(-10px) scale(1.15);
  z-index: 2;
}
.service-card svg.icon { width: 30px; height: 30px; color: var(--shield-2); margin-bottom: 14px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--text-body); font-size: 0.9rem; margin-bottom: 14px; }
.service-card a.card-link { font-size: 0.82rem; font-weight: 700; color: var(--charcoal); border-bottom: 2px solid var(--flame); padding-bottom: 2px; }

/* ---------- Positioning bullets (home) ---------- */
.positioning-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.positioning-list li { display: flex; gap: 16px; align-items: flex-start; }
.positioning-list .bullet-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(243,160,0,0.15); color: var(--flame);
  font-family: var(--font-title); font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.positioning-list strong { color: var(--title); font-family: var(--font-title); }

/* ---------- Numbered service blocks (services page) ---------- */
.service-block { display: flex; gap: 22px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: none; }
.service-block .num { font-family: var(--font-title); font-weight: 700; font-size: 2.4rem; color: var(--line); min-width: 62px; line-height: 1; }
.service-block .block-desc { color: var(--text-body); margin-bottom: 12px; }
.service-block ul.feature-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; align-content: start; }
.feature-item { grid-column: span 1; }
.feature-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: none; border: none; padding: 6px 0; margin: 0; cursor: pointer;
  font-family: inherit; font-size: 0.88rem; color: var(--text-body);
}
.feature-arrow {
  color: var(--flame); flex: none; display: inline-block;
  transition: transform 0.22s ease;
}
.feature-toggle[aria-expanded="true"] .feature-arrow { transform: rotate(90deg); }
.feature-title { transition: color 0.18s ease; }
.feature-toggle:hover .feature-title { color: var(--title); }
.feature-detail {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease;
}
.feature-detail-inner { overflow: hidden; min-height: 0; }
.feature-toggle[aria-expanded="true"] + .feature-detail { grid-template-rows: 1fr; }
.feature-detail-inner p {
  margin: 0 0 10px; padding: 0 0 0 22px; font-size: 0.84rem; color: var(--gray-1); line-height: 1.5;
}
@media (max-width: 720px) {
  .service-block ul.feature-list { grid-template-columns: 1fr; }
}
.plus-tag {
  display: inline-block; font-size: 0.8rem; color: var(--flame-text-on-light);
  background: var(--flame-light); padding: 5px 12px; border-radius: 3px; margin-bottom: 12px;
  white-space: nowrap;
}
.sector-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.sector-tags span { font-size: 0.75rem; color: var(--gray-1); border: 1px solid var(--gray-3); border-radius: 12px; padding: 3px 12px; white-space: nowrap; }

/* Method steps */
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.method-step .step-num { font-family: var(--font-title); font-weight: 700; color: var(--flame); font-size: 0.95rem; }
.method-step h4 { font-family: var(--font-title); font-weight: 700; font-size: 0.95rem; margin: 6px 0; color: var(--title); }
.method-step p { font-size: 0.85rem; color: var(--text-body); margin: 0; }

.cert-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 20px 0; border-top: 1px solid var(--line); }
.cert-strip .cert-label { font-size: 0.82rem; color: var(--gray-1); white-space: nowrap; }
.cert-badge { font-size: 0.8rem; font-weight: 700; color: var(--title); border: 1px solid var(--gray-3); border-radius: 3px; padding: 5px 12px; background: var(--white); white-space: nowrap; }

/* ---------- Stat cards (about) ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
  position: relative;
  text-align: center; background: var(--cream); border-radius: var(--radius-md); padding: 22px 12px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.stat-card:hover {
  transform: translateY(-10px) scale(1.15);
  box-shadow: 0 26px 46px rgba(34,37,43,0.22);
  z-index: 2;
}
.stat-card .value { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; color: var(--flame); }
.stat-card .label { font-size: 0.78rem; color: var(--gray-1); margin-top: 6px; }

/* ---------- Values grid ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.value-item { border-top: 2px solid var(--flame); padding-top: 14px; }
.value-item h4 { font-family: var(--font-title); font-weight: 700; font-size: 1rem; color: var(--title); margin: 0 0 6px; }
.value-item p { font-size: 0.88rem; color: var(--text-body); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: space-between;
  padding: 30px 0; flex-wrap: wrap; gap: 16px;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.cta-band p { color: var(--white); font-family: var(--font-title); font-weight: 700; font-size: 1.05rem; margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 50px; }
.contact-info-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 18px; }
.contact-info-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; }
.contact-info-list svg { width: 18px; height: 18px; color: var(--flame); flex: none; margin-top: 2px; }
.phone-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phone-sep { color: var(--gray-3); }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
.map-load-btn {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--charcoal);
  transition: background 0.15s ease;
}
.map-load-btn:hover { background: #EFEBE3; }
.map-load-btn svg { width: 18px; height: 18px; color: var(--flame); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--title); margin-bottom: 6px; font-family: var(--font-title); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--gray-3); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem; background: var(--white); color: var(--text-body);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--flame);
  box-shadow: 0 0 0 3px rgba(243, 160, 0, 0.28);
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 2px;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.76rem; color: var(--gray-2); margin-top: 10px; }
.form-success { display: none; background: #EAF3DE; color: #27500A; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 16px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--charcoal);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.back-to-top svg {
  width: 26px;
  height: 26px;
  opacity: 0.5;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.back-to-top:hover svg { opacity: 0.9; color: var(--taupe); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
/* Over the dark footer, the default charcoal arrow would blend into the
   background — switch to a light colour so it stays visible there too. */
.back-to-top.on-dark { color: var(--white); }
.back-to-top.on-dark:hover svg { color: var(--flame-light); }
@media (max-width: 720px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* ---------- Legal pages ---------- */
.legal-content h2 { margin-top: 2em; font-size: 1.2rem; }
.legal-content p, .legal-content li { color: var(--text-body); font-size: 0.94rem; }
.legal-content { max-width: 780px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #C7CAD0; padding: 56px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand-name { font-family: var(--font-title); font-weight: 700; color: var(--white); font-size: 0.95rem; }
.footer-col h5 { font-family: var(--font-title); font-weight: 700; color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.86rem; color: #B7BAC0; }
.footer-col a:hover { color: var(--flame); }
.footer-desc { font-size: 0.86rem; color: #9AA0A6; max-width: 280px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.78rem; color: #8A8F96; }
.footer-bottom a { color: #8A8F96; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-3, .stat-cards, .method-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  h1 { font-size: 2rem; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 24px; gap: 20px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-item:last-child { border-bottom: none; }
  .cards-3, .stat-cards, .method-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-block { flex-direction: column; gap: 10px; }
  .service-block ul.feature-list { grid-template-columns: 1fr; }
  .hero { padding: 52px 0; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 52px 0; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

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