/* ==========================================================================
   ABC Corporation — Construction & Properties (demo site)
   ========================================================================== */

:root {
  --navy: #13294b;
  --navy-deep: #0b1b35;
  --navy-soft: #1f3a66;
  --amber: #f5a524;
  --amber-dark: #d68a0c;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e2e7ee;
  --bg: #f5f7fa;
  --white: #ffffff;
  --success: #2e7d6b;
  --danger: #c0392b;

  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 6px 24px rgba(19, 41, 75, 0.08);
  --shadow-lg: 0 18px 50px rgba(19, 41, 75, 0.16);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-soft); text-decoration: none; }
a:hover { color: var(--amber-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: .2px;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg); }
.section--dark { background: var(--navy); color: #cfd8e6; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  letter-spacing: 3px; text-transform: uppercase; color: var(--amber-dark);
  margin-bottom: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; background: var(--amber); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.section--dark .lead { color: #b9c6da; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--amber); color: var(--navy); padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-dark); color: var(--navy); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-soft); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: #aebbd0; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #dfe6f1; }
.topbar a:hover { color: var(--amber); }
.topbar__items { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(19,41,75,.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand img { width: 44px; height: 44px; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; line-height: 1; display: block; }
.brand__tag { font-size: .68rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.brand:hover { color: var(--navy); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 12px; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; letter-spacing: .5px;
  position: relative;
}
.main-nav a::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--amber); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }
.main-nav .btn { margin-left: 10px; }
.main-nav .btn::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: center bottom / cover no-repeat; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,27,53,.92) 0%, rgba(11,27,53,.7) 45%, rgba(11,27,53,.15) 100%); }
.hero .container { position: relative; padding-top: 80px; padding-bottom: 80px; }
.hero__content { max-width: 640px; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero p { font-size: 1.2rem; color: #d3dcea; max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }
.hero__badge { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #c4cfe0; }
.hero__badge strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--white); }

.page-hero { position: relative; color: var(--white); padding: 110px 0 90px; overflow: hidden; }
.page-hero .hero__bg::after { background: linear-gradient(90deg, rgba(11,27,53,.9), rgba(11,27,53,.55)); }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: .25em; }
.page-hero p { color: #d3dcea; font-size: 1.15rem; max-width: 640px; margin: 0; }
.breadcrumb { list-style: none; padding: 0; margin: 0 0 16px; display: flex; gap: 8px; font-size: .9rem; color: #b9c6da; }
.breadcrumb a { color: var(--amber); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; opacity: .6; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); }
.card__meta { font-size: .85rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.card__footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase; background: #eef2f8; color: var(--navy-soft);
}
.tag--amber { background: var(--amber); color: var(--navy); }
.tag--green { background: #e3f3ee; color: var(--success); }
.card__media .tag { position: absolute; top: 14px; left: 14px; }
.card__media .tag + .tag { left: auto; right: 14px; }

.service-card { padding: 34px 30px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); transition: all .25s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--amber); transition: width .3s; }
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { width: 100%; }
.service-card p { color: var(--muted); }
.icon-box { width: 60px; height: 60px; border-radius: 12px; background: #fff4e0; display: grid; place-items: center; margin-bottom: 20px; }
.icon-box svg { width: 30px; height: 30px; stroke: var(--amber-dark); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.section--dark .icon-box { background: rgba(245,165,36,.14); }
.section--dark .icon-box svg { stroke: var(--amber); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }

.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.media-badge { position: absolute; left: 24px; bottom: 24px; background: var(--amber); color: var(--navy); padding: 18px 22px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.media-badge strong { display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: 1; }
.media-badge span { font-size: .85rem; font-weight: 600; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 24px 12px; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--amber); line-height: 1; }
.stat__label { color: #c4cfe0; margin-top: 8px; font-size: .95rem; }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process__step { position: relative; padding-top: 70px; }
.process__step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--amber-dark);
}
.process__step p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.testimonial { display: none; }
.testimonial.is-active { display: block; animation: fade .5s ease; }
.testimonial blockquote { margin: 0 0 24px; font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.6; color: var(--ink); }
.testimonial blockquote::before { content: '“'; display: block; font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--amber); margin-bottom: 10px; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--navy); }
.testimonial cite span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #cfd6e1; cursor: pointer; padding: 0; }
.dots button.is-active { background: var(--amber); width: 30px; border-radius: 6px; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Logos strip ---------- */
.logo-strip { display: flex; justify-content: center; column-gap: 48px; align-items: center; row-gap: 16px; flex-wrap: wrap; opacity: .7; }
.logo-strip span { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #8592a6; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 8px; }
.logo-strip span::before { content: ''; width: 22px; height: 22px; border-radius: 5px; background: #b7c1d0; }
.logo-strip span:nth-child(2n)::before { border-radius: 50%; }
.logo-strip span:nth-child(3n)::before { transform: rotate(45deg) scale(.8); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--amber); padding: 56px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; color: var(--navy); }
.cta-band p { margin: 6px 0 0; color: var(--navy); font-weight: 500; }

/* ---------- Filters / toolbar ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .9rem; color: var(--ink); cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.search-panel { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 14px; align-items: end; margin-top: -60px; position: relative; z-index: 5; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 24px; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.results-bar strong { color: var(--navy); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius-lg); }

.property-price { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); line-height: 1; }
.property-price small { font-family: var(--font-body); font-size: .8rem; font-weight: 500; color: var(--muted); }
.property-feats { display: flex; gap: 16px; font-size: .88rem; color: var(--muted); flex-wrap: wrap; }
.property-feats span { display: inline-flex; align-items: center; gap: 5px; }
.property-feats svg { width: 16px; height: 16px; stroke: var(--amber-dark); fill: none; stroke-width: 2; }
.property-address { font-size: .92rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #cfd7e3; border-radius: 8px;
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,165,36,.25); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field .error { display: none; color: var(--danger); font-size: .8rem; margin-top: 4px; }
.field.has-error .error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.checkbox input { margin-top: 5px; accent-color: var(--amber-dark); }
.form-success { display: none; background: #e3f3ee; border: 1px solid #b7dfd3; color: var(--success); padding: 18px 20px; border-radius: var(--radius); font-weight: 500; }
.form-success.is-visible { display: block; animation: fade .4s; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.contact-item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-item .icon-box { width: 50px; height: 50px; flex-shrink: 0; margin: 0; }
.contact-item .icon-box svg { width: 24px; height: 24px; }
.contact-item h4 { margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--muted); }

.office-card { padding: 28px; }
.office-card h3 { display: flex; align-items: center; gap: 10px; }
.office-card h3 .tag { font-family: var(--font-body); }
.office-card p { margin: 0 0 6px; color: var(--muted); }

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }

/* ---------- Accordion (FAQ / jobs) ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 4px; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--navy);
}
.accordion__btn::after { content: '+'; font-size: 1.8rem; color: var(--amber-dark); transition: transform .25s; flex-shrink: 0; }
.accordion__item.is-open .accordion__btn::after { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 4px 24px; color: var(--muted); }
.accordion__item.is-open .accordion__panel { display: block; animation: fade .3s; }

.job { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); margin-bottom: 14px; transition: box-shadow .2s, border-color .2s; }
.job:hover { box-shadow: var(--shadow); border-color: var(--amber); }
.job h3 { margin: 0 0 6px; font-size: 1.35rem; }
.job .card__meta { margin: 0; }

/* ---------- Team ---------- */
.team-card { text-align: center; padding: 30px 20px; }
.avatar { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--white); background: linear-gradient(135deg, var(--navy-soft), var(--navy)); border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--amber); }
.team-card h3 { margin-bottom: 2px; font-size: 1.4rem; }
.team-card p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 110px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline__item { display: grid; grid-template-columns: 110px 1fr; gap: 36px; padding-bottom: 36px; position: relative; }
.timeline__item::before { content: ''; position: absolute; left: 104px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px #fff4e0; }
.timeline__year { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--navy); line-height: 1.1; }
.timeline__item h4 { margin-bottom: 4px; }
.timeline__item p { color: var(--muted); margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 780px; margin: 0 auto; font-size: 1.08rem; }
.article h2 { font-size: 2rem; margin-top: 1.4em; }
.article img { border-radius: var(--radius-lg); margin: 0 0 32px; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article blockquote { margin: 32px 0; padding: 20px 28px; border-left: 4px solid var(--amber); background: var(--bg); font-size: 1.2rem; color: var(--navy); border-radius: 0 var(--radius) var(--radius) 0; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: #b9c6da; font-size: .95rem; margin-top: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11,27,53,.7); animation: fade .25s; }
.modal__dialog { position: relative; background: var(--white); border-radius: var(--radius-lg); max-width: 920px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; box-shadow: var(--shadow-lg); animation: fade .3s; }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--shadow); font-size: 1.5rem; cursor: pointer; color: var(--navy); line-height: 1; }
.modal__media img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.modal__body { padding: 32px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
.modal__facts { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal__facts li { background: var(--bg); border-radius: 8px; padding: 10px 14px; font-size: .9rem; }
.modal__facts strong { display: block; color: var(--navy); font-size: 1rem; }
body.modal-open { overflow: hidden; }

/* ---------- Newsletter / footer ---------- */
.site-footer { background: var(--navy-deep); color: #9fb0c8; padding-top: 80px; font-size: .95rem; }
.site-footer h4 { color: var(--white); font-size: 1.25rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 48px; padding-bottom: 56px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #c4cfe0; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand { color: var(--white); margin-bottom: 18px; }
.site-footer .brand__tag { color: #8a9ab3; }
.newsletter { display: flex; gap: 8px; margin-top: 14px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 6px; border: 1px solid #2b4168; background: #13294b; color: var(--white); font: inherit; }
.newsletter input::placeholder { color: #7f91ad; }
.newsletter .btn { padding: 12px 16px; }
.newsletter-msg { font-size: .85rem; margin-top: 8px; color: var(--amber); min-height: 1.2em; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: #16284a; display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--amber); }
.socials svg { width: 17px; height: 17px; fill: #c4cfe0; }
.socials a:hover svg { fill: var(--navy); }
.footer-bottom { border-top: 1px solid #1d3155; padding: 22px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.demo-note { color: #71829d; }

.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--amber); color: var(--navy); font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .25s; z-index: 90; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 8px; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav-open .main-nav { max-height: 80vh; overflow: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav li:last-child { border: 0; padding-top: 14px; }
  .main-nav a { padding: 14px 4px; }
  .main-nav a::after { display: none; }
  .main-nav .btn { margin: 0; width: 100%; }
  .grid-3, .grid-4, .process { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .modal__body { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .topbar__items span:nth-child(3), .topbar .socials-mini { display: none; }
  .grid-2, .grid-3, .grid-4, .process, .form-grid, .footer-grid, .search-panel { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; }
  .hero { min-height: 560px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(11,27,53,.75), rgba(11,27,53,.92)); }
  .brand__tag { display: none; }
  .timeline::before { left: 6px; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .timeline__item::before { left: 0; }
  .job { grid-template-columns: 1fr; }
  .modal__body { padding: 22px; }
  .modal__facts { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
}
