﻿/* CV Developments website styles */
:root {
  --navy-900: #071528;
  --navy-800: #0b1f3a;
  --navy-700: #0f2a4a;
  --navy-600: #173a63;
  --gold: #d4a64a;
  --gold-light: #e7c27a;
  --gold-dark: #b38630;
  --ink: #1b2533;
  --muted: #5a6473;
  --light: #f4f5f7;
  --white: #ffffff;
  --line: #dfe3e8;
  --radius: 2px;
  --header-h: 84px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }

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

/* ---------- type ---------- */
h1, h2, h3 { text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; font-weight: 700; }
.display { font-size: clamp(2.1rem, 5vw, 3.5rem); color: var(--white); }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); color: var(--navy-800); margin-bottom: 14px; }
h3 { font-size: 0.95rem; letter-spacing: 0.08em; color: var(--navy-800); }
.gold { color: var(--gold); }
.gold-block { display: block; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold); flex-shrink: 0; }
.lead { max-width: 640px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; border-radius: var(--radius);
  border: 2px solid var(--gold); transition: background .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); }
.btn-outline:hover { background: var(--gold); color: var(--navy-900); }
.btn .icon { width: 18px; height: 18px; stroke-width: 3; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(7, 21, 40, 0.96); box-shadow: 0 4px 24px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); transition: height .3s; }
.site-header.scrolled .header-inner { height: 70px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex-shrink: 0; }
.brand img { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.85rem; font-weight: 800; letter-spacing: 0.04em; }
.brand-text small { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.42em; margin-top: 4px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  text-decoration: none; color: var(--white); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 0; position: relative;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform .25s;
}
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }
.header-cta { padding: 11px 20px; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-left: auto; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(760px, 100svh); display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center right; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,21,40,.95) 0%, rgba(7,21,40,.82) 34%, rgba(7,21,40,.25) 70%, rgba(7,21,40,.1) 100%),
    linear-gradient(180deg, rgba(7,21,40,.6) 0%, rgba(7,21,40,0) 30%);
}
.hero-content { position: relative; padding-top: calc(var(--header-h) + 48px); padding-bottom: 80px; }
.hero-content > * { max-width: 600px; }
.hero .eyebrow { color: rgba(255,255,255,.85); }
.hero .display .gold { display: block; }
.hero-text { margin-top: 22px; font-size: 1.05rem; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

/* ---------- generic sections ---------- */
.section { padding: 96px 0; }
.section-light { background: var(--light); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy-800); color: var(--white); }
.section-navy h2 { color: var(--white); }
.section-navy .eyebrow { color: rgba(255,255,255,.75); }
.section-navy .lead { color: rgba(255,255,255,.75); }
.icon { width: 52px; height: 52px; color: var(--gold); stroke-width: 1.6; }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.service { text-align: center; padding: 30px 26px; position: relative; }
.service::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.service:nth-child(4n+1)::before { display: none; }
.service:nth-child(n+5) { border-top: 1px solid var(--line); }
.service .icon { margin: 0 auto 18px; transition: transform .3s; }
.service:hover .icon { transform: translateY(-4px); }
.service h3 { margin-bottom: 12px; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.service p { font-size: 0.88rem; color: var(--muted); }

/* ---------- process ---------- */
.process { position: relative; overflow: hidden; }
.process::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.process .container { position: relative; }
.process h2 .gold { margin-left: .3em; }
.process-steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 60px; counter-reset: step; }
.step { position: relative; padding: 0 18px 0 0; }
.step-num {
  display: flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: 1.15rem;
  background: var(--navy-800); position: relative; z-index: 1; transform: rotate(45deg); margin: 6px 0 30px 6px;
}
.step-num span { transform: rotate(-45deg); }
.step::after {
  content: ""; position: absolute; top: 33px; left: 64px; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0, var(--gold) 50%, transparent 50%) 0 0 / 12px 2px repeat-x;
  opacity: .55;
}
.step:last-child::after { display: none; }
.step h3 { color: var(--white); margin-bottom: 10px; font-size: 0.85rem; }
.step p { font-size: 0.84rem; color: rgba(255,255,255,.72); }

/* ---------- clients + sectors ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.client {
  border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 36px 32px;
  background: var(--white); transition: box-shadow .3s, transform .3s;
}
.client:hover { box-shadow: 0 18px 40px rgba(11,31,58,.1); transform: translateY(-3px); }
.client .icon { margin-bottom: 20px; }
.client h3 { margin-bottom: 12px; }
.client p { color: var(--muted); font-size: 0.92rem; }

.sector-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.sector-strip-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.sector-strip ul { display: flex; flex-wrap: wrap; gap: 12px; }
.sector-strip li {
  display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 12px; border: 1px solid var(--line);
  background: var(--light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-800);
}
.sector-strip .icon { width: 24px; height: 24px; stroke-width: 2.2; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.about-image { background-size: cover; background-position: center 62%; min-height: 340px; }
.about-panel { background: var(--navy-800); color: var(--white); padding: 80px max(48px, calc((100vw - var(--container)) / 2 + 24px)) 80px 64px; display: flex; flex-direction: column; justify-content: center; }
.about-panel h2 { color: var(--white); }
.about-panel h2 .gold { display: block; }
.about-panel .eyebrow { color: rgba(255,255,255,.75); }
.about-panel .lead { color: rgba(255,255,255,.82); max-width: 560px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; max-width: 600px; }
.value { text-align: center; }
.value .icon { width: 44px; height: 44px; margin: 0 auto 12px; }
.value span { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.4; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.project-card {
  display: flex; flex-direction: column; justify-content: flex-start; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  background: var(--white); font: inherit; color: inherit; box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s, transform .3s;
}
.project-card:hover { box-shadow: 0 18px 40px rgba(11,31,58,.14); transform: translateY(-3px); }
.pc-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-800); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project-card:hover .pc-media img { transform: scale(1.05); }
.pc-media::after { content: ""; position: absolute; inset: 0; background: rgba(7,21,40,.45); opacity: 0; transition: opacity .3s; }
.project-card:hover .pc-media::after, .project-card:focus-visible .pc-media::after { opacity: 1; }
.pc-zoom {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: flex; align-items: center; justify-content: center; border: 2px solid var(--gold); background: rgba(7,21,40,.6);
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s;
}
.pc-zoom .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.project-card:hover .pc-zoom, .project-card:focus-visible .pc-zoom { opacity: 1; transform: none; }
.pc-count {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 4px 9px; background: rgba(7,21,40,.85);
  display: flex; align-items: center; gap: 6px; color: var(--white); font-size: 0.72rem; font-weight: 700;
}
.pc-count .icon { width: 15px; height: 15px; stroke-width: 3; }
.pc-media { flex-shrink: 0; }
.pc-text { display: block; flex: 1; width: 100%; padding: 20px 22px 22px; border-top: 3px solid var(--gold); }
.pc-type { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 6px; }
.pc-title { display: block; font-size: 0.95rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy-800); line-height: 1.35; }
.pc-location { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }

/* project popup */
.project-dialog {
  width: min(1100px, calc(100vw - 48px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  background: var(--white); color: var(--ink); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.project-dialog[open] { display: grid; grid-template-columns: 1.45fr 1fr; animation: pd-in .3s ease; }
.project-dialog::backdrop { background: rgba(7,21,40,.82); }
@keyframes pd-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.pd-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: var(--navy-800); color: var(--white);
}
.pd-close .icon { width: 20px; height: 20px; color: var(--white); stroke-width: 3; }
.pd-close:hover { background: var(--gold); }
.pd-media { background: var(--navy-900); display: flex; flex-direction: column; min-height: 0; }
.pd-stage { position: relative; flex: 1; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.pd-image { width: 100%; height: 100%; max-height: calc(100vh - 160px); object-fit: cover; }
.pd-nav {
  position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: rgba(7,21,40,.7); transition: background .2s;
}
.pd-nav:hover { background: var(--gold); }
.pd-nav .icon { width: 22px; height: 22px; color: var(--white); stroke-width: 3; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-counter { position: absolute; left: 12px; bottom: 12px; padding: 3px 10px; background: rgba(7,21,40,.8); color: var(--white); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumbs button { flex: 0 0 84px; height: 60px; padding: 0; border: 2px solid transparent; cursor: pointer; background: none; opacity: .6; transition: opacity .2s, border-color .2s; }
.pd-thumbs button:hover { opacity: 1; }
.pd-thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 48px 40px 36px; overflow-y: auto; max-height: calc(100vh - 48px); }
.pd-title { font-size: 1.35rem; margin-bottom: 8px; padding-right: 36px; }
.pd-location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.pd-location .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.pd-desc { margin-top: 20px; color: var(--muted); font-size: 0.95rem; white-space: pre-line; }
.pd-services { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--navy-800); margin-bottom: 12px; }
.pd-services li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 0.92rem; }
.pd-services .icon { width: 20px; height: 20px; stroke-width: 3; margin-top: 2px; flex-shrink: 0; }
.pd-cta { margin-top: 28px; white-space: normal; text-align: center; }
body.dialog-open { overflow: hidden; }
.project-dialog [hidden] { display: none !important; }

/* ---------- regions ---------- */
.regions-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.regions h2 .gold { display: block; }
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.region { display: flex; gap: 14px; align-items: flex-start; padding: 20px; background: var(--light); border-left: 3px solid var(--gold); }
.region .icon { width: 30px; height: 30px; flex-shrink: 0; }
.region strong { display: block; color: var(--navy-800); font-size: 0.92rem; letter-spacing: 0.04em; }
.region span { display: block; font-size: 0.82rem; line-height: 1.5; color: var(--muted); margin-top: 2px; }

/* ---------- CTA ---------- */
.cta { position: relative; background: var(--navy-800); color: var(--white); padding: 72px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy-800) 30%, rgba(11,31,58,.6)); }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cta h2 { color: var(--white); }
.cta h2 .gold { margin-left: .3em; }
.cta .eyebrow { color: rgba(255,255,255,.75); }
.cta .lead { color: rgba(255,255,255,.82); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: var(--white); padding: 56px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-heading { margin-top: 26px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--gold); }
.footer-brand .lead { color: rgba(255,255,255,.7); font-size: 0.9rem; margin-top: 6px; }
.contact-list { display: grid; gap: 14px; padding-left: 48px; border-left: 1px solid rgba(255,255,255,.15); }
.contact-list li { display: flex; gap: 14px; align-items: center; font-size: 0.9rem; }
.contact-list .icon { width: 20px; height: 20px; stroke-width: 2.4; flex-shrink: 0; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }
.footer-slogan { text-align: right; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.footer-slogan .copyright { margin-top: 10px; letter-spacing: 0.08em; text-transform: none; color: rgba(255,255,255,.45); font-weight: 400; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 20px; }
  .process-steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .step:nth-child(3n)::after { display: none; }
  .project-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
    background: var(--navy-900); padding: 96px 32px 32px; transform: translateX(100%);
    transition: transform .35s ease; box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .nav-open .main-nav { transform: none; }
  .main-nav ul { flex-direction: column; gap: 6px; }
  .main-nav ul a { display: block; padding: 12px 0; font-size: 0.85rem; }
  .nav-cta-mobile { display: inline-flex; margin-top: 24px; }
  .nav-toggle { position: relative; z-index: 2; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service::before { display: none; }
  .service { border-top: 1px solid var(--line); }
  .service:nth-child(-n+2) { border-top: 0; }
  .client-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .project-dialog[open] { display: block; overflow-y: auto; }
  .pd-body { max-height: none; overflow: visible; }
  .pd-image { max-height: 60vh; }
  .about-panel { padding: 64px 24px; }
  .regions-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-list { padding-left: 0; border-left: 0; }
  .footer-slogan { text-align: left; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .container { padding: 0 16px; }
  .services-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .service:nth-child(2) { border-top: 1px solid var(--line); }
  .process-steps { grid-template-columns: 1fr; row-gap: 0; }
  .step { display: grid; grid-template-columns: 70px 1fr; padding: 0 0 28px; }
  .step-num { margin: 6px 0 0 6px; grid-row: span 2; }
  .step::after { top: 70px; bottom: 0; left: 32px; right: auto; width: 2px; height: auto;
    background: linear-gradient(180deg, var(--gold) 0, var(--gold) 50%, transparent 50%) 0 0 / 2px 12px repeat-y; }
  .step:nth-child(3n)::after { display: block; }
  .step:last-child::after { display: none; }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .region-list { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .project-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .project-dialog[open] { display: block; overflow-y: auto; }
  .pd-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .pd-image { max-height: none; }
  .pd-body { padding: 28px 16px 40px; max-height: none; overflow: visible; }
  .pd-close { position: fixed; }
  .hero-actions .btn { flex: 1 1 auto; }
  .brand-text strong { font-size: 1.55rem; }
}
