/* =========================================================
   Dafcon Trading — Design tokens
   Ported verbatim from the original css/styles.css. No rules were
   changed during the WordPress/Divi conversion — Divi-specific
   conflicts are handled separately in divi-overrides.css so this
   file stays a clean, diffable copy of the original design system.
   ========================================================= */
:root {
  --ink: #12263a;
  --ink-soft: #2a3f55;
  --accent: #e8a33d;
  --accent-deep: #c9822a;
  --paper: #f6f3ec;
  --paper-alt: #ede8dc;
  --white: #ffffff;
  --muted: #5c6169;
  --border: rgba(18, 38, 58, 0.12);
  --border-dark: rgba(255, 255, 255, 0.14);
  --shadow-1: 0 1px 2px rgba(18, 38, 58, 0.04), 0 12px 28px -14px rgba(18, 38, 58, 0.18);
  --shadow-2: 0 2px 4px rgba(18, 38, 58, 0.06), 0 24px 48px -20px rgba(18, 38, 58, 0.28);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-40: 2.5rem;
  --fs-56: 3.5rem;
  --fs-72: 4.5rem;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;
  --dur: 280ms;
  --dur-slow: 400ms;

  --header-h: 84px;
  --container: 1240px;
}

/* Shrink the whole type scale on small screens */
@media (max-width: 640px) {
  :root {
    --fs-14: 0.8125rem;
    --fs-16: 0.9375rem;
    --fs-18: 1rem;
    --fs-22: 1.125rem;
    --fs-28: 1.375rem;
    --fs-40: 1.75rem;
    --fs-56: 2.25rem;
    --fs-72: 2.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   Layout primitives
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 72px);
}

.section--white { background: var(--white); }
.section--paper { background: var(--paper); }
.section--alt { background: var(--paper-alt); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.92); }
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--white); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section--ink .eyebrow {
  color: var(--accent);
}

.section-head h2 {
  font-size: var(--fs-40);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-18);
}

.section--ink .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

/* =========================================================
   Buttons & links
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: var(--fs-16);
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(201, 130, 42, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.section--ink .btn-outline {
  color: var(--white);
  border-color: var(--border-dark);
}

.section--ink .btn-outline:hover {
  border-color: var(--white);
}

.btn-ghost-dark {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-dark:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-14);
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 2px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.text-link:hover::after {
  transform: scaleX(1);
}

.text-link .arrow {
  transition: transform var(--dur) var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(4px);
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), height var(--dur) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(246, 243, 236, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-1);
  height: 72px;
}

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

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

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

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

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

.nav-links a {
  position: relative;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 8px 0;
  transition: color var(--dur-fast) var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle span::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle span::after {
  position: absolute;
  transform: translateY(6px);
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: translateY(0) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--fs-28);
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

@media (max-width: 480px) {
  .mobile-menu a { font-size: 1.25rem; }
}

.mobile-menu.is-open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu .btn {
  margin-top: 28px;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 96px;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 38, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 38, 58, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(232, 163, 61, 0.22) 0%, rgba(232, 163, 61, 0) 70%);
  pointer-events: none;
}

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

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.hero-content {
  max-width: 760px;
  min-width: 0;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-content p,
.hero-content .hero-ctas {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn var(--dur-slow) var(--ease) forwards;
}

.hero-content .eyebrow { animation-delay: 60ms; }
.hero-content h1 { animation-delay: 160ms; }
.hero-content p { animation-delay: 280ms; }
.hero-content .hero-ctas { animation-delay: 400ms; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, var(--fs-72));
  margin-bottom: 22px;
}

.hero p.lede {
  font-size: var(--fs-22);
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-meta {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-meta div strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-28);
  color: var(--ink);
}

.hero-meta div span {
  font-size: var(--fs-14);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-illustration {
  flex: 0 0 auto;
  width: 420px;
  height: 420px;
  margin-top: 4px;
  opacity: 0;
  animation: heroIn var(--dur-slow) var(--ease) forwards;
  animation-delay: 480ms;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .hero-illustration { width: 340px; height: 340px; }
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-illustration { opacity: 1; animation: none; }
}

/* Pillars (Construction / Consulting / Training) */
.pillars-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.pillar-card {
  position: relative;
  overflow: hidden;
}

.pillar-card__index {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-display);
  font-size: var(--fs-40);
  color: var(--paper-alt);
  z-index: 0;
}

.pillar-card > * {
  position: relative;
  z-index: 1;
}

/* Page hero (interior pages) */
.page-hero {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 56px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(18, 38, 58, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 38, 58, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 20% 0%, black 30%, transparent 100%);
}

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

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, var(--fs-56));
  max-width: 760px;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: var(--fs-18);
  color: var(--ink-soft);
  max-width: 620px;
}

.page-hero-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.page-hero-text {
  flex: 1 1 auto;
  min-width: 0;
}

.page-hero-photo {
  position: relative;
  flex: 0 0 auto;
  width: 380px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.page-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 38, 58, 0) 55%, rgba(18, 38, 58, 0.5) 100%);
}

@media (max-width: 900px) {
  .page-hero-layout { flex-direction: column; }
  .page-hero-photo { width: 100%; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .page-hero-photo { aspect-ratio: 4 / 3; }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-14);
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.breadcrumb a:hover { color: var(--ink); }

/* =========================================================
   Reveal-on-scroll
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-content .eyebrow, .hero-content h1, .hero-content p, .hero-content .hero-ctas {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
  border-color: rgba(18, 38, 58, 0.18);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: var(--fs-22);
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: var(--fs-16);
}

/* Why Dafcon */
.why-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

/* Services preview / grid */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .text-link {
  margin-top: auto;
  padding-top: 18px;
}

/* =========================================================
   Project cards
   ========================================================= */
.project-scroller {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.project-scroller::-webkit-scrollbar { height: 8px; }
.project-scroller::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.project-card {
  scroll-snap-align: start;
  flex: 0 0 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.project-card__media {
  position: relative;
  height: 180px;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}

.project-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.project-card:hover .project-card__photo {
  transform: scale(1.08);
}

.project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 38, 58, 0.32) 0%, rgba(18, 38, 58, 0.82) 100%);
}

.project-card__tag {
  position: relative;
  z-index: 2;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card__icon {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  color: rgba(232, 163, 61, 0.8);
}

.project-card__body {
  padding: 24px;
}

.project-card__body h3 {
  font-size: var(--fs-18);
  margin-bottom: 6px;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-14);
  color: var(--muted);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Projects page grid + filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-soft);
  transition: all var(--dur-fast) var(--ease);
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.projects-grid .project-card {
  flex: initial;
  width: 100%;
}

.projects-grid .project-card.is-hidden {
  display: none;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 38, 58, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: 40px;
  position: relative;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.modal-close:hover {
  background: var(--paper-alt);
  transform: rotate(90deg);
}

.modal .tag {
  display: inline-block;
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.modal h3 {
  font-size: var(--fs-28);
  margin-bottom: 18px;
}

.modal-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal-facts div span {
  display: block;
  font-size: var(--fs-14);
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-facts div strong {
  font-family: var(--font-display);
  font-size: var(--fs-22);
}

/* =========================================================
   Stats band
   ========================================================= */
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

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

.stat h3 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, var(--fs-56));
  color: var(--accent);
  margin-bottom: 8px;
}

.stat span {
  display: block;
  font-size: var(--fs-14);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   Partner strip
   ========================================================= */
.partner-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.partner-strip__brand {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.partner-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-22);
  flex-shrink: 0;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 4.5vw, var(--fs-56));
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 28px;
}

.cta-band .hero-ctas {
  justify-content: center;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding-block: 72px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

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

.footer-brand img {
  height: 32px;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 320px;
  font-size: var(--fs-14);
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: var(--fs-14);
  transition: color var(--dur-fast) var(--ease);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: var(--fs-14);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.social-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* =========================================================
   About page specifics
   ========================================================= */
.story-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  gap: 56px;
}

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

.fact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.fact-list div {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-16);
}

.fact-list span:first-child {
  color: var(--muted);
}

.fact-list span:last-child {
  font-weight: 600;
  text-align: right;
}

.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: var(--fs-18);
  color: var(--ink-soft);
}

.checklist li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-deep);
}

.checklist--light li {
  color: rgba(255, 255, 255, 0.82);
}

.checklist--light li svg {
  color: var(--accent);
}

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

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

.value-card {
  text-align: left;
}

.manpower-layout {
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .manpower-layout { grid-template-columns: 1fr; }
}

.org-chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
}

.manpower-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.manpower-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 14px;
}

@media (max-width: 640px) {
  .manpower-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.manpower-row span:first-child {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-soft);
}

.manpower-track {
  height: 10px;
  background: var(--paper-alt);
  border-radius: 999px;
  overflow: hidden;
}

.manpower-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  width: 0;
  transition: width 900ms var(--ease);
}

.manpower-row output {
  font-size: var(--fs-14);
  color: var(--muted);
  text-align: right;
}

/* =========================================================
   Services page — accordion
   ========================================================= */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.accordion-item.is-open {
  border-color: rgba(18, 38, 58, 0.22);
  box-shadow: var(--shadow-1);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  text-align: left;
}

.accordion-trigger .num {
  font-family: var(--font-display);
  font-size: var(--fs-22);
  color: var(--border);
  flex-shrink: 0;
  width: 40px;
}

.accordion-item.is-open .accordion-trigger .num {
  color: var(--accent-deep);
}

.accordion-trigger h3 {
  font-size: var(--fs-22);
  flex: 1;
}

.accordion-trigger .plus {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-alt);
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--ink);
  transition: transform var(--dur) var(--ease);
}

.accordion-trigger .plus::before {
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.accordion-trigger .plus::after {
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
}

.accordion-item.is-open .accordion-trigger .plus {
  background: var(--accent);
  transform: rotate(180deg);
}

.accordion-item.is-open .accordion-trigger .plus::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleY(0);
}

.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height var(--dur-slow) var(--ease);
}

.accordion-panel-inner {
  padding: 0 26px 28px 86px;
  color: var(--muted);
  font-size: var(--fs-16);
  max-width: 640px;
}

@media (max-width: 640px) {
  .accordion-panel-inner { padding-left: 26px; }
}

/* Equipment table */
.equip-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.equip-table th,
.equip-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: var(--fs-16);
  border-bottom: 1px solid var(--border);
}

.equip-table th {
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-alt);
  font-weight: 600;
}

.equip-table tr:last-child td {
  border-bottom: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: var(--fs-14);
  font-weight: 600;
  background: rgba(232, 163, 61, 0.15);
  color: var(--accent-deep);
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* =========================================================
   Partners page
   ========================================================= */
.combined-band {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .combined-band { grid-template-columns: 1fr; padding: 32px; }
}

.combined-band h3 {
  font-size: var(--fs-28);
  margin-bottom: 14px;
}

.combined-band p {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-layout {
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.18);
}

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

.form-field .error-msg {
  display: none;
  color: #c0392b;
  font-size: var(--fs-14);
  margin-top: 6px;
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: #c0392b;
}

.form-field.has-error .error-msg {
  display: block;
}

.form-status {
  display: none;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: rgba(232, 163, 61, 0.14);
  border: 1px solid rgba(232, 163, 61, 0.4);
  margin-top: 24px;
}

.form-status.is-visible {
  display: flex;
  animation: heroIn var(--dur-slow) var(--ease) forwards;
}

.form-status .check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item strong {
  display: block;
  font-size: var(--fs-14);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.map-block {
  position: relative;
  height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid var(--border);
}

.map-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
}

.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  text-align: center;
}

.map-pin .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(232, 163, 61, 0.25);
  margin-bottom: 10px;
  animation: pulseDot 2.4s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 8px rgba(232, 163, 61, 0.25); }
  50% { box-shadow: 0 0 0 14px rgba(232, 163, 61, 0.12); }
}

.map-pin span {
  font-size: var(--fs-14);
  letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  .map-pin .dot { animation: none; }
}

/* Utility */
.mt-0 { margin-top: 0 !important; }
.text-muted { color: var(--muted); }
.center { text-align: center; }

/* =========================================================
   Mobile headline scale — clamp() minimums are fixed rem
   values, so they don't shrink via the --fs-* overrides above.
   Bring them down separately for small screens.
   ========================================================= */
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(1.9rem, 8vw, var(--fs-72)); }
  .page-hero h1 { font-size: clamp(1.7rem, 7vw, var(--fs-56)); }
  .stat h3 { font-size: clamp(1.8rem, 9vw, var(--fs-56)); }
  .cta-band h2 { font-size: clamp(1.6rem, 7vw, var(--fs-56)); }
}
