/* ===== DESIGN TOKENS ===== */
:root {
  --charcoal: #1a1a1a;
  --charcoal-light: #2d2d2d;
  --text-secondary: #555555;
  --text-tertiary: #777777;
  --orange: #f27a1a;
  --orange-dark: #d96a10;
  --orange-subtle: rgba(242, 122, 26, 0.08);
  --surface: #ffffff;
  --surface-alt: #f8f8f6;
  --surface-warm: #f4f1ed;
  --line: #e5e5e5;
  --line-light: #efefef;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.10);
  --radius: 6px;
  --radius-lg: 12px;
  --container: 1280px;
  --section-pad: clamp(80px, 10vw, 140px);
  --header-h: 72px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--surface);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; color: var(--charcoal); }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== FOCUS ===== */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(242, 122, 26, 0.5);
  outline-offset: 3px;
}

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; color: #fff; background: var(--charcoal);
  border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 14px; }

/* ===== CONTAINER ===== */
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 0; }
.brand-logo { height: 36px; width: auto; }
.brand-mark, .brand-name, .brand-sub { display: none; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--charcoal); content: "";
  transition: transform 0.3s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5px); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; color: var(--charcoal-light); border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a[aria-current="page"] { color: var(--orange); }
.header-cta { display: none; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 600; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; color: var(--orange); font-size: 0.82rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow::before {
  width: 32px; height: 2px; background: var(--orange); border-radius: 999px; content: "";
}
.lead {
  max-width: 640px; margin-top: 20px; color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border: 1px solid transparent;
  border-radius: var(--radius); font-weight: 600; font-size: 0.95rem;
  line-height: 1.2; cursor: pointer;
  transition: all 0.25s ease;
}
.btn-primary {
  color: #fff; background: var(--orange); border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-secondary {
  color: var(--charcoal); background: transparent; border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--charcoal); }
.btn-dark {
  color: #fff; background: var(--charcoal); border-color: var(--charcoal);
}
.btn-dark:hover { background: var(--charcoal-light); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden; padding-top: var(--header-h);
  background: var(--surface);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: 80px 0;
}
.hero-content { max-width: 620px; }
.hero h1 { margin-bottom: 0; }
.hero .lead { margin-top: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}

/* ===== SECTIONS ===== */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--surface-alt); }
.section-warm { background: var(--surface-warm); }
.section-intro {
  max-width: 680px; margin-top: 16px; color: var(--text-secondary);
  font-size: 1.08rem; line-height: 1.75;
}

/* ===== NARRATIVE SPLIT ===== */
.narrative {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.narrative-text { max-width: 520px; }
.narrative-text p { margin-top: 16px; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.8; }
.narrative-text p + p { margin-top: 12px; }
.narrative-media img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.narrative-reverse { direction: rtl; }
.narrative-reverse > * { direction: ltr; }

/* ===== EXPERTISE ===== */
.expertise-layout {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: start;
}
.expertise-media img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.expertise-list { display: grid; gap: 28px; margin-top: 32px; }
.expertise-item h3 { margin-bottom: 8px; }
.expertise-item p { color: var(--text-secondary); font-size: 0.95rem; }
.expertise-item { padding-left: 20px; border-left: 2px solid var(--line); }
.expertise-item:hover { border-left-color: var(--orange); }

/* ===== PROJECTS ===== */
.project-block {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px;
  align-items: center; padding: 60px 0;
}
.project-block + .project-block { border-top: 1px solid var(--line-light); }
.project-block:nth-child(even) { direction: rtl; }
.project-block:nth-child(even) > * { direction: ltr; }
.project-media img {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  transition: transform 0.6s ease;
}
.project-media img.is-visible { transform: scale(1); }
.project-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.project-meta dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.project-meta dd { margin: 2px 0 0 0; font-size: 0.95rem; color: var(--charcoal); }
.project-info h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); margin-bottom: 12px; }
.project-info p { color: var(--text-secondary); line-height: 1.7; }

/* ===== SECTORS ===== */
.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.sector-item {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sector-item:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.sector-item h3 { margin-bottom: 10px; }
.sector-item p { color: var(--text-secondary); font-size: 0.93rem; }

/* ===== CREDIBILITY ===== */
.credibility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; }
.credibility-item { text-align: center; padding: 24px; }
.credibility-icon {
  width: 48px; height: 48px; margin: 0 auto 20px;
  background: var(--orange-subtle); border-radius: 50%;
  display: grid; place-items: center; color: var(--orange);
  font-size: 1.2rem; font-weight: 800;
}
.credibility-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.credibility-item p { color: var(--text-secondary); font-size: 0.93rem; }

/* ===== CONTACT ===== */
.contact-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--text-secondary); margin-bottom: 28px; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: grid; gap: 2px; padding-bottom: 16px; border-bottom: 1px solid var(--line-light); }
.contact-list strong { color: var(--charcoal); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-list span { color: var(--text-secondary); }

.contact-panel { padding: 0; background: transparent; border: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
label { color: var(--charcoal); font-weight: 600; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  color: var(--charcoal); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; transition: border-color 0.2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--orange); }
textarea { min-height: 140px; resize: vertical; }
.form-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ===== FOOTER ===== */
.site-footer { padding: 60px 0 28px; color: rgba(255,255,255,0.7); background: var(--charcoal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 40px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer h2 { font-size: 1.15rem; }
.footer-links { display: grid; gap: 8px; margin-top: 14px; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem;
}
.footer-brand { height: 28px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }

/* ===== PAGE HERO (Sub-pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 60px) 0 60px;
  background: var(--surface-alt);
}
.page-hero .eyebrow { color: var(--orange); }
.page-hero .lead { color: var(--text-secondary); }
.breadcrumb { margin-top: 18px; color: var(--text-tertiary); font-size: 0.9rem; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--orange); }

/* ===== GRIDS (sub-pages) ===== */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* ===== CARDS (sub-pages) ===== */
.card, .service-card, .faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color 0.3s ease;
}
.card:hover, .service-card:hover { border-color: var(--orange); }
.card p, .service-card p { margin-top: 8px; color: var(--text-secondary); }
.service-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.service-card .btn { width: fit-content; margin-top: 18px; }
.h3 { font-size: 1.15rem; font-weight: 600; }
.card-icon {
  display: grid; place-items: center; width: 42px; height: 42px;
  margin-bottom: 16px; color: #fff;
  background: var(--orange); border-radius: var(--radius); font-weight: 800;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; }
.faq-item p { margin-top: 8px; color: var(--text-secondary); }

/* ===== INFO BOX ===== */
.info-box {
  padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.feature-list, .check-list { display: grid; gap: 12px; margin-top: 20px; }
.feature-list li, .check-list li { position: relative; padding-left: 28px; }
.feature-list li::before, .check-list li::before {
  position: absolute; left: 0; top: 0.2em;
  width: 18px; height: 18px; display: grid; place-items: center;
  color: #fff; background: var(--orange); border-radius: 50%;
  font-size: 0.7rem; font-weight: 800; content: "✓";
}

/* ===== SEO BLOCK ===== */
.seo-block { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.seo-block p + p { margin-top: 14px; }

/* ===== CTA BAND ===== */
.cta-band {
  padding: 48px; background: var(--charcoal); border-radius: var(--radius-lg); color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 600px; margin-top: 12px; color: rgba(255,255,255,0.75); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===== SECTION HEAD ===== */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head .btn { flex-shrink: 0; }

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="fade"] { transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal].is-visible {
  opacity: 1; transform: translateY(0) translateX(0) scale(1);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ===== ORANGE DIVIDER ===== */
.section-divider {
  width: 48px; height: 3px; background: var(--orange);
  border-radius: 999px; margin: 24px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-top: var(--header-h); }
  .hero-grid { padding: 60px 0; }
  .narrative { grid-template-columns: 1fr; gap: 40px; }
  .narrative-reverse { direction: ltr; }
  .expertise-layout { grid-template-columns: 1fr; gap: 40px; }
  .project-block { grid-template-columns: 1fr; gap: 30px; }
  .project-block:nth-child(even) { direction: ltr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; left: 16px; right: 16px; top: var(--header-h);
    display: none; flex-direction: column; padding: 12px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .credibility-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}

@media (max-width: 620px) {
  :root { --section-pad: 60px; }
  .container { width: min(100% - 24px, var(--container)); }
  .hero-grid { padding: 40px 0; }
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .hero-actions, .cta-actions, .form-actions { flex-direction: column; }
  .btn { width: 100%; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 28px; }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-media img { transition: none; }
  .project-media img { transition: none; }
  .site-header { transition: none; }
}
