/* ============================================
   ROYSTON COOKE - CONSULTING ENGINEERS
   Dark Corporate Theme | Blue + Lime Green
   ============================================ */

:root {
  --bg-primary:    #080d17;
  --bg-secondary:  rgba(13, 21, 38, 0.55);
  --bg-card:       rgba(17, 30, 53, 0.65);
  --bg-card-hover: rgba(22, 36, 64, 0.8);
  --blue:          #1168b1;
  --blue-light:    #1a80d4;
  --blue-dark:     #0d4f8a;
  --lime:          #84cc16;
  --lime-dark:     #65a30d;
  --text-primary:  #f0f4f8;
  --text-secondary:#94a3b8;
  --border:        #1a3254;
  --border-light:  #1e4070;
  --shadow:        0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:     0 8px 48px rgba(0,0,0,0.7);
  --radius:        6px;
  --radius-lg:     12px;
  --transition:    0.3s ease;
  --font-sans:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-heading:  'Inter', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── STATIC BACKGROUND WATERMARK ────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('images/watermark.png');
  background-repeat: no-repeat;
  /* top edge held; extra height extends the bottom edge downward */
  background-position: left calc(50% - 15px) bottom calc((100vh - min(75vw, 92vh) * 0.85) / 2 - min(82vw, 100vh) * 0.05);
  background-size: min(82vw, 100vh) calc(min(82vw, 100vh) * 0.8);
  filter: brightness(1.25);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
  /* driven by main.js: steps section-by-section as you scroll */
  transform: translateY(var(--wm-shift, 0px));
  transition: transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

/* ── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--lime); }

ul { list-style: none; }

.highlight { color: var(--lime); }
.blue-text  { color: var(--blue-light); }

/* ── CONTAINER ──────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION SPACING ────────────────────────── */
section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 56px;
}

.section-divider {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  border-radius: 2px;
  margin: 20px 0 40px;
}

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17,104,177,0.4);
}

.btn-lime {
  background: var(--lime);
  color: #0a0e1a;
}
.btn-lime:hover {
  background: #9ddb1f;
  color: #0a0e1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132,204,22,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 20px; font-size: 0.82rem; }

/* ── NAVIGATION ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #080d17;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: #080d17;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 42px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-logo-sub {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.nav-logo-img {
  height: 76px;
  width: auto;
  display: block;
  border-radius: 8px;
  border: 10px solid #fff;
  background: #fff;
}

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

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(17,104,177,0.15);
}

.nav-links a.active { color: var(--blue-light); }

.nav-cta { margin-left: 16px; }
.nav-cta.btn-lime { color: #000 !important; }
.nav-cta.btn-lime:hover { background: rgba(8,13,23,0.95); color: var(--lime) !important; box-shadow: 0 4px 16px rgba(132,204,22,0.2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 120px; left: 0; right: 0;
    background: rgba(8,13,23,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-logo-img { height: 70px; }
  .nav-inner { height: 80px; }
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-grid {
  display: none;
}


.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(132,204,22,0.12);
  border: 1px solid rgba(132,204,22,0.3);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 24px;
}

.hero-badge span { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }

.hero h1 { color: var(--text-primary); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--blue-light); }

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 580px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-num span { color: var(--lime); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 4px; }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

.hero-scroll svg { width: 20px; opacity: 0.5; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 1.05rem; max-width: 600px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb svg { width: 14px; opacity: 0.5; }

/* ── CARDS ──────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px; height: 52px;
  background: rgba(17,104,177,0.15);
  border: 1px solid rgba(17,104,177,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; color: var(--blue-light); }

.card h3 { color: var(--text-primary); margin-bottom: 10px; }
.card p  { font-size: 0.9rem; margin-bottom: 0; }

/* ── GRID LAYOUTS ────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

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

/* ── SERVICES PAGE ──────────────────────────── */
.service-block {
  padding: 56px 0;
}

.service-block-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .service-block-inner { grid-template-columns: 1fr; gap: 32px; }
}

.service-num {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(240,244,248,0.72);
  line-height: 1;
  margin-bottom: 8px;
}

.service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(132,204,22,0.1);
  border: 1px solid rgba(132,204,22,0.25);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 16px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.service-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--lime);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ── ABOUT PAGE ─────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; gap: 48px; }
}

.about-visual {
  position: relative;
}

.about-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-stat-card .num {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.about-stat-card .num span { color: var(--lime); }
.about-stat-card .lbl { color: var(--text-secondary); font-size: 0.85rem; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.accent-bar {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  border-radius: 2px;
  margin-bottom: 32px;
}

.sectors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.sector-chip {
  padding: 6px 14px;
  background: rgba(17,104,177,0.12);
  border: 1px solid rgba(17,104,177,0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--blue-light);
  transition: all var(--transition);
}

.sector-chip:hover {
  background: rgba(17,104,177,0.25);
  border-color: var(--blue-light);
}

/* ── TIMELINE ────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--lime));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px; top: 6px;
  width: 14px; height: 14px;
  background: var(--blue);
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  outline: 2px solid var(--blue);
}

.timeline-item:last-child { padding-bottom: 0; }
.timeline-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.timeline-desc { font-size: 0.87rem; color: var(--text-secondary); margin: 0; }

/* ── EXPERIENCE / LOCATIONS ─────────────────── */
.location-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.location-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  opacity: 0;
  transition: opacity var(--transition);
}

.location-card:hover::before { opacity: 1; }
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.location-flag {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
}
.location-flag svg { width: 100%; height: 100%; }

.location-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.location-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── CONTACT PAGE ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

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

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child  { border-bottom: none; }

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(17,104,177,0.15);
  border: 1px solid rgba(17,104,177,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; color: var(--blue-light); }

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* ── FORM ────────────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
}

.form-control::placeholder { color: rgba(148,163,184,0.45); }

/* Windows renders the native dropdown list with a light background by
   default, making the light option text invisible — force a dark scheme */
select.form-control { color-scheme: dark; }
select.form-control option {
  background-color: #0d1526;
  color: var(--text-primary);
}

.form-control:focus {
  border-color: var(--blue);
  background: rgba(17,104,177,0.06);
  box-shadow: 0 0 0 3px rgba(17,104,177,0.15);
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-success {
  display: none;
  padding: 16px 20px;
  background: rgba(132,204,22,0.1);
  border: 1px solid rgba(132,204,22,0.3);
  border-radius: var(--radius);
  color: var(--lime);
  font-size: 0.9rem;
  margin-top: 16px;
}

/* ── MAP PLACEHOLDER ────────────────────────── */
.map-embed {
  width: 100%;
  height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}

.map-embed iframe {
  width: 100%; height: 100%;
  border: none;
}

/* ── WHY CHOOSE US ──────────────────────────── */
.why-section { background: transparent; }

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

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

.why-item {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.why-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.why-item:hover::after { transform: scaleX(1); }
.why-item:hover { border-color: var(--border-light); }

.why-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1;
  margin-bottom: 16px;
}

.why-item h4 { color: var(--text-primary); margin-bottom: 8px; }
.why-item p  { font-size: 0.875rem; margin: 0; }

/* ── CTA BAND ────────────────────────────────── */
.cta-band {
  background: transparent;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band p  { max-width: 560px; margin: 0 auto 32px; }
.cta-band-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: rgba(8, 13, 23, 0.6);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

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

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

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.footer-logo-sub  { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); }

.footer-logo-img {
  height: 76px;
  width: auto;
  display: block;
  border-radius: 8px;
  border: 10px solid #fff;
  background: #fff;
}

/* ── PROJECT HIGHLIGHT ──────────────────────── */
.project-highlight {
  margin-top: 32px;
  padding: 24px;
  background: rgba(17,104,177,0.06);
  border: 1px solid rgba(17,104,177,0.2);
  border-radius: var(--radius-lg);
}

.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .project-cards { grid-template-columns: 1fr; }
}

.project-card {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.project-card-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.project-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: 0.05em;
}

/* ── PHOTO GALLERY ──────────────────────────── */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 768px) {
  .photo-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .photo-gallery { grid-template-columns: 1fr; }
}

.photo-gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  cursor: zoom-in;
}

/* ── LIGHTBOX CAROUSEL ──────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 7, 13, 0.92);
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: min(1100px, 88vw); margin: 0; text-align: center; }
.lightbox figure img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.lightbox figcaption {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox button:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox { padding: 12px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-gallery-item:hover img {
  transform: scale(1.04);
}

.photo-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(8,13,23,0.88));
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--blue-light); }

.footer-contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.footer-contact-item svg { width: 16px; flex-shrink: 0; margin-top: 2px; color: var(--blue-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--text-secondary); }
.footer-bottom a:hover { color: var(--lime); }

/* ── ACCREDITATION STRIP ────────────────────── */
.accred-strip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.accred-strip span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  padding: 6px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ── ANIMATED ENTRANCE ──────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── WATERMARK ──────────────────────────────── */
.footer .container { position: relative; z-index: 1; }

/* ── UTILITY ─────────────────────────────────── */
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }
.text-center .section-divider { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ── PAGE WINDOWS ────────────────────────────── */
.windows-section {
  padding: 80px 0;
  background: transparent;
}
.windows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.window-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 28px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.window-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--lime));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.window-tile:hover {
  border-color: rgba(17,104,177,0.5);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.window-tile:hover::before {
  transform: scaleX(1);
}
.window-tile-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 14px;
}
.window-tile-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}
.window-tile-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}
.window-tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
  transition: gap 0.2s ease;
}
.window-tile:hover .window-tile-arrow {
  gap: 10px;
}
.window-tile-arrow svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}
@media (max-width: 900px) {
  .windows-grid { grid-template-columns: repeat(2, 1fr); }
  .window-tile.span-2 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .windows-grid { grid-template-columns: 1fr; }
  .window-tile.span-2 { grid-column: span 1; }
}

/* ── SERVICES INTRO CARD ─────────────────────── */
.disciplines-card {
  margin-bottom: 64px;
  padding: 40px 48px;
  background: rgba(17,104,177,0.08);
  border-color: rgba(17,104,177,0.25);
}
.disciplines-outer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 768px) {
  .disciplines-card { padding: 28px 24px; margin-bottom: 40px; }
  .disciplines-outer { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .disciplines-card { padding: 22px 18px; }
}

/* ── DESCRIPTOR GRID (experience page) ──────── */
.descriptor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .descriptor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .descriptor-grid { grid-template-columns: 1fr; }
}

/* ── PDF EMBED ───────────────────────────────── */
.pdf-embed-wrap {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.pdf-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 650px;
  border: none;
  background: #fff;
}
.pdf-embed-fallback {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.pdf-embed-fallback a {
  color: var(--blue-light);
  text-decoration: underline;
}

/* ══════════════════════════════════════════════
   MOBILE RESPONSIVE — consolidated breakpoints
   ══════════════════════════════════════════════ */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {

  /* Global section padding */
  section { padding: 60px 0; }
  .windows-section { padding: 56px 0; }
  .cta-band { padding: 56px 0; }
  .service-block { padding: 40px 0; }

  /* Inner page hero */
  .page-hero { padding: 120px 0 52px; }

  /* Container side padding */
  .container { padding: 0 18px; }

  /* Hero section */
  .hero-content { padding-top: 56px; }
  .hero-desc { font-size: 1rem; }
  .hero-stats { gap: 28px; padding-top: 28px; }
  .hero-stat-num { font-size: 1.6rem; }

  /* Section sub text */
  .section-sub { font-size: 0.95rem; margin-bottom: 40px; }

  /* Cards */
  .card { padding: 24px; }

  /* About stat grid */
  .stat-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer { padding: 48px 0 0; }
  .footer-grid { gap: 32px; }

  /* Accreditation strip */
  .accred-strip { padding: 20px 24px; }

  /* PDF iframes — scale down content so full page is visible */
  .pdf-embed-wrap { height: 460px; }
  .pdf-embed-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 154%;
    height: 708px; /* 460 / 0.65 */
    transform: scale(0.65);
    transform-origin: top left;
  }

}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {

  /* Tighter section spacing */
  section { padding: 48px 0; }
  .windows-section { padding: 44px 0; }
  .cta-band { padding: 44px 0; }

  /* Container */
  .container { padding: 0 14px; }

  /* Page hero */
  .page-hero { padding: 100px 0 44px; }

  /* Hero */
  .hero-content { padding-top: 48px; }
  .hero-badge { font-size: 0.7rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.4rem; }

  /* Headings */
  .section-title br { display: none; }

  /* Nav logo */
  .nav-logo-img { height: 52px; }

  /* Cards */
  .card { padding: 20px; }

  /* PDF iframes — tighter scale on small phones */
  .pdf-embed-wrap { height: 380px; }
  .pdf-embed-wrap iframe {
    width: 167%;
    height: 633px; /* 380 / 0.60 */
    transform: scale(0.60);
  }

  /* Service block */
  .service-block { padding: 32px 0; }
  .service-num { font-size: 3rem; }

  /* Project cards */
  .project-highlight { padding: 18px; }
  .project-card { padding: 14px 16px; }

  /* Windows tiles */
  .window-tile { padding: 24px 20px 20px; }
  .window-tile-title { font-size: 1.1rem; }

  /* About stat card */
  .about-stat-card .num { font-size: 2.2rem; }

  /* Buttons full-width in CTA */
  .cta-band-actions { flex-direction: column; align-items: center; }
  .cta-band-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Footer bottom stacked */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Timeline indent tighter */
  .timeline { padding-left: 24px; }
  .timeline-item::before { left: -31px; }

  /* Accreditation chips wrap cleanly */
  .accred-strip { flex-direction: column; align-items: flex-start; }

  /* Pricing compare table min-width */
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: 0.82rem; }

}

/* ── PDF VIEWER ──────────────────────────────── */
.pdf-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: clip;
  transition: border-color var(--transition);
}

.pdf-block:hover { border-color: var(--border-light); }

.pdf-block-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.pdf-icon {
  width: 40px; height: 40px;
  background: rgba(17,104,177,0.15);
  border: 1px solid rgba(17,104,177,0.3);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pdf-icon svg { width: 20px; color: var(--blue-light); }

.pdf-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pdf-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.pdf-dl { margin-left: auto; flex-shrink: 0; }

/* PDF.js canvas viewer */
.pdf-canvas-wrap {
  width: 100%;
  max-height: 600px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #12192b;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
}

.pdf-canvas-wrap canvas {
  display: block;
  border-radius: 2px;
}

.pdf-loading {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.87rem;
}

@media (max-width: 768px) {
  .pdf-canvas-wrap { max-height: 480px; padding: 6px; }
  .pdf-block-header { gap: 12px; padding: 16px; }
  .pdf-dl { margin-left: 0; }
}

@media (max-width: 480px) {
  .pdf-canvas-wrap { max-height: 400px; }
}

/* Landscape drawings — contained width, no height cap */
.pdf-landscape-full {
  width: 100%;
}

.pdf-landscape-full .pdf-canvas-wrap {
  max-height: none;
}

