/* Extends style.css for the dynamic, multi-page site. */
:root {
  --hero-overlay: 0.72;
}

/* accessibility */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid rgba(224, 159, 62, 0.55); outline-offset: 2px; }
.no-js .reveal { opacity: 1; transform: none; }

.brand-mark { border-radius: 12px; }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { width: 100%; }
.nav-quote {
  background: var(--accent);
  color: #20160a !important;
  border-radius: 999px;
  padding: 8px 16px !important;
  font-weight: 800;
  white-space: nowrap;
}
.nav-quote::after { display: none !important; }
.nav-quote:hover { background: var(--accent-d); }

/* home hero */
.home-hero { padding: 104px 0 82px; }
.home-hero h1 { max-width: 880px; }
.home-hero .hero-answer {
  max-width: 730px;
  margin: 0 0 28px;
  padding: 14px 18px;
  color: #e9f0f8;
  font-size: 14.5px;
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-actions .btn-ghost { margin-left: 0; }
.hero-corridor {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 26px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #aabdd2;
}
.hero-corridor span:nth-child(even) { color: var(--accent); }

/* sections and shared */
.section { padding: 84px 0; }
.section-head { max-width: 780px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 15.5px; }
.center-action { text-align: center; margin-top: 32px; }
.narrow { max-width: 900px; }
.text-link { color: var(--accent-d); font-weight: 700; font-size: 14px; display: inline-block; }
.text-link:hover { color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span { font-size: 11.5px; background: var(--bg2); color: #40566d; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.btn-outline { border-color: #c9d5e2; color: var(--navy); background: transparent; }
.btn-outline:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn-block { width: 100%; text-align: center; }
.last-updated { margin: 18px 0 0; font-size: 12px; color: #9fb3c8; }
.page-lead + .last-updated { margin-top: 14px; }

/* page hero */
.page-hero {
  position: relative;
  padding: 64px 0 58px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 159, 62, 0.18), transparent 32%),
    linear-gradient(120deg, rgba(8, 24, 46, 0.97), rgba(19, 49, 92, 0.95));
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.page-hero h1 { color: #fff; font-size: clamp(27px, 3.6vw, 42px); max-width: 900px; margin-bottom: 14px; }
.page-hero .page-lead { color: #d5e1ee; font-size: clamp(15px, 1.5vw, 17.5px); max-width: 760px; margin-bottom: 24px; }
.page-hero .kicker { color: var(--accent); }
.page-hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.page-hero .btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.page-hero .flag { margin-bottom: 14px; }
.page-hero-detail .last-updated { color: #9fb3c8; }

/* breadcrumbs */
.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; font-size: 12.5px; color: #9fb3c8; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: #68809b; }
.breadcrumbs a { color: #c3d2e1; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; }

/* service cards */
.services { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.why { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card { display: flex; flex-direction: column; color: inherit; }
.service-card h3 { font-size: 18px; }
.service-card p { flex: 1; }
.service-card .card-link { margin-top: 17px; font-size: 12.5px; font-weight: 800; color: var(--accent-d); letter-spacing: .3px; }
.service-card:hover .card-link { color: var(--navy); }

/* service index */
.service-index { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 120px;
  gap: 24px;
  align-items: start;
  padding: 28px 4px;
  border-bottom: 1px solid var(--line);
}
.service-row-num { font-size: 13px; font-weight: 800; color: var(--accent-d); letter-spacing: 1px; padding-top: 4px; }
.service-row h2 { font-size: 21px; margin: 0 0 7px; }
.service-row h2 a:hover { color: var(--accent-d); }
.service-row p { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; max-width: 780px; }
.service-row > .text-link { text-align: right; padding-top: 4px; }

/* process cards */
.process .step { padding: 24px 14px; }
.process .step h3 { font-size: 14.5px; margin: 0 0 6px; }
.process .step p { font-size: 12.5px; }
.step::before { counter-increment: step; }

/* gallery */
.gallery { align-items: stretch; }
.gitem img { width: 100%; height: 100%; }
.gitem[hidden] { display: none; }
.filters { justify-content: center; }
.empty-state { text-align: center; color: var(--muted); }

/* cases */
.cases-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case .thumb { display: block; }
.case h2 { font-size: 19px; margin: 0 0 8px; line-height: 1.3; }
.case h2 a:hover { color: var(--accent-d); }
.case .text-link { margin-top: 15px; }

/* detail pages */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.detail-main { min-width: 0; }
.answer-box {
  background: #fbf6ec;
  border: 1px solid #f0dfc1;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 22px 24px;
  margin-bottom: 30px;
}
.answer-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-d); margin-bottom: 7px; }
.answer-box p { margin: 0; color: #3b4c5e; font-size: 15.5px; }
.prose { font-size: 16px; color: #33475b; }
.prose p { margin: 0 0 1.15em; }
.prose h3 { font-size: 20px; margin: 1.7em 0 .7em; }
.prose ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.detail-block { margin: 36px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.detail-block h2 { font-size: 23px; margin-bottom: 18px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.check-list li { position: relative; padding-left: 28px; color: #40566d; font-size: 14.5px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #eef6f0;
  border: 1px solid #b9d7c0;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 5px;
  height: 8px;
  border: solid #2f7d48;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.best-for p { font-size: 15px; color: #40566d; margin: 0; }
.detail-tags { margin: 30px 0 0; }
.side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.detail-side { position: sticky; top: 94px; }
.side-card h2 { font-size: 18px; margin-bottom: 10px; }
.side-card p { font-size: 13.5px; color: var(--muted); }
.side-contact { list-style: none; padding: 0; margin: 12px 0 18px; font-size: 14px; }
.side-contact li { margin-bottom: 6px; color: #33475b; }
.side-contact a:hover { color: var(--accent-d); }
.side-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.side-services ul { list-style: none; padding: 0; margin: 0; }
.side-services li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 13.5px; }
.side-services li:last-child { border-bottom: 0; }
.side-services a:hover { color: var(--accent-d); }

.faq-compact details { box-shadow: none; }
.mini-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini-case { position: relative; border-radius: 12px; overflow: hidden; background: var(--navy); min-height: 170px; display: flex; align-items: flex-end; color: #fff; padding: 16px; }
.mini-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .35s, opacity .35s; }
.mini-case:hover img { transform: scale(1.04); opacity: .4; }
.mini-case .flag { position: relative; z-index: 1; align-self: flex-start; margin-right: 8px; }
.mini-case strong { position: relative; z-index: 1; font-size: 14px; line-height: 1.35; }
.mini-case .flag { position: absolute; top: 14px; left: 14px; }

.case-hero-image { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; background: #dde5ee; }
.case-hero-image img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 52px; align-items: start; }
.about-copy h2 { font-size: 28px; margin-bottom: 20px; }
.facts-card { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.facts-card h2 { font-size: 19px; margin-bottom: 18px; }
.facts-card dl { margin: 0 0 22px; }
.facts-card dl div { padding: 12px 0; border-bottom: 1px solid #e1e9f1; }
.facts-card dt { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--accent-d); margin-bottom: 3px; }
.facts-card dd { margin: 0; font-size: 13.5px; color: #40566d; line-height: 1.55; }
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.stat strong { display: block; font-size: 34px; color: var(--navy); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }

/* contact */
.contact-page { align-items: start; }
.contact-list { display: grid; }
.contact-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-item .ci { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; }
.contact-item strong { display: block; color: var(--navy); font-size: 13.5px; margin-bottom: 2px; }
.contact-item span, .contact-item a { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }
.contact-item a:hover { color: var(--accent-d); }
.contact-info { display: grid; gap: 0; }
.contact-card { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-card .ci { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 800; }
.contact-card strong { display: block; color: var(--navy); font-size: 13.5px; margin-bottom: 2px; }
.contact-card span, .contact-card a { display: block; font-size: 14px; color: var(--muted); line-height: 1.55; }
.contact-card a:hover { color: var(--accent-d); }
.response-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 20px; }
.response-row strong { display: block; font-size: 12px; color: var(--accent-d); text-transform: uppercase; letter-spacing: .8px; }
.response-row span { font-size: 13.5px; color: #40566d; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form .field { margin-bottom: 15px; }
.form .field label { display: block; font-size: 12.5px; font-weight: 700; color: #40566d; margin-bottom: 5px; }
.form .field input, .form .field textarea { margin-bottom: 0; }
.form .field-hint { font-size: 12px; color: #7a8999; margin: -4px 0 14px; }
.form-success { background: #eef7f0; border: 1px solid #b9d7c0; color: #235c35; border-radius: 9px; padding: 13px 15px; font-size: 13.5px; margin: 0 0 16px; }
.form-error { background: #fdf0ee; border: 1px solid #ecc5bf; color: #8a2d22; border-radius: 9px; padding: 13px 15px; font-size: 13.5px; margin: 0 0 16px; }
.form-status { border-radius: 9px; padding: 13px 15px; font-size: 13.5px; margin: 0 0 16px; }
.form-status.is-error { background: #fdf0ee; border: 1px solid #ecc5bf; color: #8a2d22; }
.form-status.is-success { background: #eef7f0; border: 1px solid #b9d7c0; color: #235c35; }
.form-privacy { font-size: 11.5px; color: #7a8999; margin: 12px 0 0; line-height: 1.55; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* CTA */
.contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}
.contact-cta h2 { font-size: 23px; margin-bottom: 6px; }
.contact-cta p { margin: 0; color: var(--muted); font-size: 14.5px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
.contact-cta-stacked { margin-top: 44px; flex-direction: column; align-items: flex-start; }
.contact-cta-stacked .cta-actions { margin-top: 4px; }

/* error */
.error-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.error-links a { font-weight: 700; color: var(--accent-d); }

/* footer additions */
.foot-brand { max-width: 390px; }
.foot-legal { font-size: 12px; color: #8ea3ba; margin-top: 12px; }
.foot-area { font-size: 12px; color: #8ea3ba; margin: 0; }
.foot-contact { font-style: normal; display: grid; gap: 7px; font-size: 13px; color: #b9c9db; }
.foot-contact a { color: #e6edf5; }
.foot-wa { display: inline-block; margin-top: 13px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.foot-meta { display: flex; gap: 16px; }
.foot-meta a:hover { color: #fff; }

/* responsive */
@media (max-width: 1080px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
  .about-grid { gap: 34px; }
  .nav-links { gap: 15px; font-size: 14px; }
}
@media (max-width: 980px) {
  .nav-quote { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .side-card { margin-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .facts-card { max-width: 640px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .contact-cta { flex-direction: column; align-items: flex-start; }
  .why, .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-hero { padding: 76px 0 58px; }
  .page-hero { padding: 44px 0 40px; }
  .section { padding: 58px 0; }
  .nav { gap: 10px; }
  .brand { gap: 9px; min-width: 0; }
  .brand-mark { width: 38px; height: 38px; }
  .brand .bn { font-size: 14px; white-space: nowrap; }
  .brand .bs { font-size: 9.5px; letter-spacing: .3px; white-space: nowrap; }
  .menu-toggle { flex: 0 0 auto; }
  .lang-btn { flex: 0 0 auto; white-space: nowrap; padding: 6px 10px; font-size: 12px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .cases-all, .cases, .why, .certs { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .service-row > .text-link { grid-column: 2; text-align: left; padding-top: 0; }
  .check-list { grid-template-columns: 1fr; }
  .mini-cases { grid-template-columns: 1fr; }
  .detail-side { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 13px 0; }
  .contact-cta { padding: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .foot-brand { max-width: none; }
  .nav-links { padding-bottom: 16px; }
  .nav-quote { display: block; margin-top: 10px; text-align: center; }
}
@media (max-width: 480px) {
  .stats-band { grid-template-columns: 1fr; }
  .response-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .home-hero .hero-answer { font-size: 13.5px; }
}
