/* ============================================================
   Maydok Ventures Limited — Site Foundation
   Design tokens
   ============================================================ */

:root {
  /* Color */
  --ink-900: #1A1150;      /* primary deep indigo, from brand cover */
  --ink-800: #241A63;
  --ink-700: #33257F;
  --gold-600: #C89200;     /* gold hover / deep gold */
  --gold-500: #F0B400;     /* brand gold */
  --gold-100: #FCEFCB;
  --paper: #F6F6F4;        /* page background */
  --surface: #FFFFFF;
  --line: #E3E3E0;
  --text-900: #17171C;
  --text-600: #52525E;
  --text-400: #82828E;

  /* Type */
  --font-display: "Roboto Slab", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 3px;
  --radius-md: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ============================================================
   Floating decorative elements (purely visual flourish)
   ============================================================ */
@keyframes floatDriftA {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(6px, -18px) rotate(4deg); }
}
@keyframes floatDriftB {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-8px, 16px) rotate(-5deg); }
}
.float-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.float-decor.a { animation: floatDriftA 7s ease-in-out infinite; }
.float-decor.b { animation: floatDriftB 8.5s ease-in-out infinite; }
.float-decor.c { animation: floatDriftA 6.2s ease-in-out infinite; animation-delay: -2.4s; }
.float-decor svg { display: block; }
.float-chip {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255,255,255,0.94);
  color: var(--ink-900);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px rgba(26,17,80,0.14);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  animation: floatDriftA 7.5s ease-in-out infinite;
}
.float-chip .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .float-decor, .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ============================================================
   Image loading / error states
   ============================================================ */

img.img-fade {
  opacity: 0;
  transition: opacity 420ms ease;
}
img.img-fade.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  img.img-fade { transition: none; opacity: 1; }
}

/* Shown in place of any photo that fails to load, so a broken
   connection or missing file never leaves a broken-image icon
   or blank gap in the layout. */
.img-fallback {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--ink-800), var(--ink-900));
  color: rgba(255,255,255,0.55);
}
.img-fallback svg { width: 34px; height: 34px; opacity: 0.75; }
.img-fallback span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; }

.modal-img-error {
  object-fit: contain !important;
  padding: 18%;
  background: var(--paper);
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--text-600); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--ink-900);
}
.btn-primary:hover { background: var(--gold-600); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--ink-900);
}
.btn-outline-dark:hover { background: var(--ink-900); color: #fff; }

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(26, 17, 80, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

/* Logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

/* Footer sits on a dark background — the real mark is indigo-on-transparent,
   so it needs a light chip behind it to stay legible. */
.logo-mark-badge {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-mark-badge .logo-mark {
  height: 40px;
}
.logo-word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-word .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.logo-word .subword {
  margin-top: 3px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-600);
  border: 1px solid var(--gold-500);
  border-radius: 999px;
  padding: 1px 7px;
  align-self: flex-start;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-900);
  padding: 6px 0;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--ink-900); font-weight: 700; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-900);
  margin: 5px 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: 78px 0 0 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gutter) 2rem;
    transform: translateX(100%);
    transition: transform 220ms ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .header-actions .btn-primary { display: none; }
  .main-nav .mobile-cta { display: inline-flex; margin-top: 1.2rem; }
  .nav-toggle { display: block; }
}
@media (min-width: 901px) {
  .main-nav .mobile-cta { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink-900) 30%, var(--ink-700) 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-media img.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms ease;
}
.hero-media img.hero-slide.is-active { opacity: 1; }

/* Hero carousel controls now live in motion.css */

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,10,52,0.93) 8%, rgba(20,13,66,0.82) 30%, rgba(26,17,80,0.5) 58%, rgba(26,17,80,0.22) 85%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 128px var(--gutter) 100px;
}
.hero-content .eyebrow-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-500);
  background: rgba(240,180,0,0.12);
  border: 1px solid rgba(240,180,0,0.4);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 1.6rem;
}
.hero-name {
  margin-bottom: 0.7em;
}
.hero-name-main {
  display: block;
  color: #fff;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.hero-name-sub {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-900);
  background: var(--gold-500);
  border-radius: 999px;
  padding: 5px 16px;
}
.hero .lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 56ch;
  margin-bottom: 2.4rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.6rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 2.6rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 2rem;
  max-width: 780px;
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-500);
  line-height: 1;
}
.hero-stats .stat-label {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  max-width: 16ch;
}

/* diagonal seam at base of hero, echoing the brand mark */
/* one-time entrance: hero heading lines float up into place on load */
@keyframes heroLineIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content .eyebrow-tag,
.hero-content .hero-name-main,
.hero-content .hero-name-sub,
.hero .lede,
.hero-content .hero-ctas,
.hero-content .hero-stats {
  opacity: 0;
  animation: heroLineIn 0.85s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-content .eyebrow-tag   { animation-delay: 0.05s; }
.hero-content .hero-name-main{ animation-delay: 0.22s; }
.hero-content .hero-name-sub { animation-delay: 0.40s; }
.hero .lede                  { animation-delay: 0.58s; }
.hero-content .hero-ctas     { animation-delay: 0.76s; }
.hero-content .hero-stats    { animation-delay: 0.94s; }

.hero-seam {
  position: relative;
  z-index: 1;
  height: 46px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 40%, 0 100%);
  margin-top: -1px;
}

@media (max-width: 720px) {
  .hero-content { padding: 100px var(--gutter) 70px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 1.8rem; }
}

/* ============================================================
   Section scaffolding
   ============================================================ */

section { padding: 96px 0; }

@media (max-width: 720px) {
  section { padding: 68px 0; }
}
@media (max-width: 480px) {
  section { padding: 52px 0; }
}

.section-head {
  max-width: 62ch;
  margin-bottom: 3rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-head p { font-size: 1.05rem; }

.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink-900); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.78); }

/* ============================================================
   Intro (company introduction)
   ============================================================ */

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.intro-copy h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.intro-copy p { font-size: 1.05rem; }
.intro-divider {
  width: 56px;
  height: 4px;
  background: var(--gold-500);
  margin-bottom: 1.4rem;
}
.intro-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 2rem;
}
.intro-fact {
  border-left: 2px solid var(--gold-500);
  padding-left: 0.9rem;
  transition: border-color 180ms ease;
}
.intro-fact:hover { border-color: var(--gold-600); }
.intro-fact .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink-900);
  display: block;
}
.intro-fact .l { font-size: 0.85rem; color: var(--text-600); }

.intro-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.intro-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.intro-media .tag {
  position: absolute;
  left: 20px; bottom: 20px;
  background: var(--ink-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border-left: 3px solid var(--gold-500);
}

@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { order: -1; }
}

/* ============================================================
   Services preview
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--surface);
  padding: 2.4rem 2rem;
  transition: background-color 160ms ease;
}
.service-card:hover { background: #FCFAF2; }
.service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1.3rem;
  color: var(--gold-600);
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}
.service-card p { font-size: 0.94rem; margin-bottom: 0; }

.services-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Services flip (homepage only — scroll-driven page flip)
   services.html keeps the plain .services-grid/.service-card above
   ============================================================ */

.services-flip { position: relative; }
.services-flip-track {
  position: relative;
  height: 600vh; /* 6 pages: 5 flip transitions across the scroll range, then a hold */
}
.services-flip-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  perspective: 1800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-900);
}
.service-flip-page {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: top center;
  backface-visibility: hidden;
  will-change: transform, opacity;
  background:
    radial-gradient(circle at 18% 20%, rgba(240,180,0,0.10), transparent 45%),
    linear-gradient(135deg, var(--ink-900) 0%, var(--ink-700) 100%);
}
.service-flip-inner {
  max-width: 520px;
  padding: 0 2rem;
  text-align: center;
  color: #fff;
}
.service-flip-icon {
  width: 64px;
  height: 64px;
  color: var(--gold-500);
  margin-bottom: 1.4rem;
}
.service-flip-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
}
.service-flip-inner h3 {
  color: #fff;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin-bottom: 0.7rem;
}
.service-flip-inner p {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 0;
}
.services-flip-cta { margin-top: 1.8rem; }

.services-flip-pageinfo {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: var(--gutter);
  color: rgba(255,255,255,0.65);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}
.services-flip-pageinfo #services-flip-current { color: var(--gold-500); }

.services-flip-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}
.services-flip-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background-color 200ms ease, transform 200ms ease;
}
.services-flip-dots .dot.is-active {
  background: var(--gold-500);
  transform: scale(1.3);
}

.services-flip-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 300ms ease;
}
.services-flip-hint::after {
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: hintBounce 1.6s ease-in-out infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: rotate(45deg) translate(0,0); }
  50% { transform: rotate(45deg) translate(3px, 3px); }
}
.services-flip-hint.is-hidden { opacity: 0; }

@media (max-width: 720px) {
  .services-flip-pageinfo { top: 18px; right: 20px; font-size: 0.85rem; }
  .service-flip-icon { width: 52px; height: 52px; }
  .service-flip-inner { padding: 0 1.4rem; }
}

/* ============================================================
   Featured projects preview
   ============================================================ */

.projects-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}
.projects-head-row .section-head { margin-bottom: 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--ink-900);
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,10,50,0.92) 0%, rgba(15,10,50,0.15) 55%, rgba(15,10,50,0) 75%);
}
.project-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 1.2rem 1.1rem;
  color: #fff;
}
.project-info .loc {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--gold-500);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.project-info h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.6rem;
  line-height: 1.3;
}
.project-info .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-500);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.project-info .learn-more svg { width: 13px; height: 13px; transition: transform 180ms ease; }
.project-card:hover .learn-more,
.project-card:focus-visible .learn-more {
  opacity: 1;
  transform: translateY(0);
}
.project-card:hover .learn-more svg { transform: translateX(3px); }
@media (hover: none) {
  .project-info .learn-more { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .projects-head-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Why choose Maydok
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.2rem;
}
.why-card {
  border-top: 3px solid var(--gold-500);
  padding-top: 1.4rem;
  transition: transform 200ms ease;
}
.why-card:hover { transform: translateY(-4px); }
.why-card .why-icon {
  width: 38px; height: 38px;
  color: var(--ink-900);
  margin-bottom: 1.1rem;
}
.why-card h3 { font-size: 1.05rem; }
.why-card p { font-size: 0.94rem; }

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

/* ============================================================
   Quality / credentials band
   ============================================================ */

.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.quality-copy .intro-divider { background: var(--gold-500); }
.quality-copy p { font-size: 1.02rem; }
.quality-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.quality-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
}
.quality-list svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: var(--gold-500);
}

.stat-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}
.stat-tile {
  background: var(--ink-900);
  padding: 2.2rem 1.6rem;
  transition: background-color 200ms ease;
}
.stat-tile:hover { background: #150E4C; }
.stat-tile .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--gold-500);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-tile .stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
}

@media (max-width: 860px) {
  .quality-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  background: var(--gold-500);
  padding: 4.5rem 0;
}
.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.final-cta h2 {
  color: var(--ink-900);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.4rem;
  max-width: 20ch;
}
.final-cta p { color: rgba(26,17,80,0.78); margin-bottom: 0; font-size: 1.02rem; }
.final-cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.final-cta .btn-primary {
  background: var(--ink-900);
  color: #fff;
}
.final-cta .btn-primary:hover { background: #0F0A38; }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: #130C40;
  color: rgba(255,255,255,0.7);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .logo-word .wordmark { color: #fff; }
.footer-brand p {
  color: rgba(255,255,255,0.62);
  font-size: 0.94rem;
  margin-top: 1.1rem;
  max-width: 32ch;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.footer-col a, .footer-col address {
  font-size: 0.94rem;
  color: rgba(255,255,255,0.68);
  font-style: normal;
}
.footer-col a:hover { color: var(--gold-500); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 3px; color: var(--gold-500); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1.6rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.6rem; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Inner page hero (About / Services / etc.)
   ============================================================ */

.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(120deg, var(--ink-900) 30%, var(--ink-700) 100%);
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
}
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,10,52,0.94) 12%, rgba(20,13,66,0.88) 38%, rgba(26,17,80,0.6) 68%, rgba(26,17,80,0.35) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 68px var(--gutter) 60px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.3rem;
}
.breadcrumb a { color: rgba(255,255,255,0.88); }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb .sep { margin: 0 0.5em; color: rgba(255,255,255,0.4); }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.3rem);
  margin-bottom: 0.6em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.page-hero .lede {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.88);
  max-width: 62ch;
  margin-bottom: 0;
}

/* ============================================================
   Pillars (Vision / Mission / Core Values)
   ============================================================ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 2.4rem 2.1rem;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.pillar-card:hover {
  box-shadow: 0 20px 44px rgba(26, 17, 80, 0.12);
  transform: translateY(-4px);
}
.pillar-card .pillar-icon {
  width: 40px; height: 40px;
  color: var(--ink-900);
  margin-bottom: 1.2rem;
}
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0.7em; }
.pillar-card p { font-size: 0.98rem; margin-bottom: 0; }
.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.pillar-list li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-600);
}
.pillar-list svg {
  flex-shrink: 0;
  width: 17px; height: 17px;
  margin-top: 3px;
  color: var(--gold-600);
}

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

/* ============================================================
   History / at-a-glance (About page)
   ============================================================ */

.glance-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
  margin-top: 3rem;
}
.glance-tile {
  background: var(--ink-900);
  padding: 2rem 1.5rem;
  transition: background-color 200ms ease;
}
.glance-tile:hover { background: #150E4C; }
.glance-tile .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold-500);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.glance-tile .stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

@media (max-width: 860px) {
  .glance-strip { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Team section (About page)
   ============================================================ */

.team-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 3.2rem;
}
.team-photo img { width: 100%; height: auto; object-fit: cover; }

.team-role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.team-role-card {
  padding: 2.2rem 1.9rem;
  border-radius: var(--radius-md);
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.team-role-card:hover {
  box-shadow: 0 20px 44px rgba(26, 17, 80, 0.16);
  transform: translateY(-4px);
}
.team-role-card .role-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.team-role-card h3 { font-size: 1.15rem; margin-bottom: 0.6em; }
.team-role-card p { font-size: 0.95rem; margin-bottom: 0; }

.team-role-card.variant-ink { background: var(--ink-900); }
.team-role-card.variant-ink h3 { color: #fff; }
.team-role-card.variant-ink p { color: rgba(255,255,255,0.82); }
.team-role-card.variant-ink .role-tag { background: var(--gold-500); color: var(--ink-900); }

.team-role-card.variant-gold { background: var(--gold-500); }
.team-role-card.variant-gold h3 { color: var(--ink-900); }
.team-role-card.variant-gold p { color: rgba(26,17,80,0.82); }
.team-role-card.variant-gold .role-tag { background: var(--ink-900); color: var(--gold-500); }

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

/* ============================================================
   Services page — detailed category cards
   ============================================================ */

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.detail-card:hover {
  box-shadow: 0 20px 44px rgba(26, 17, 80, 0.12);
  transform: translateY(-4px);
}
.detail-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.3rem 1.6rem;
  background: var(--ink-900);
}
.detail-card-head svg { width: 26px; height: 26px; color: var(--gold-500); flex-shrink: 0; }
.detail-card-head h3 { color: #fff; margin: 0; font-size: 1.08rem; }
.detail-card ul {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.6rem 1.7rem;
  display: grid;
  gap: 0.7rem;
}
.detail-card li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-600);
}
.detail-card li svg {
  flex-shrink: 0;
  width: 15px; height: 15px;
  margin-top: 4px;
  color: var(--gold-600);
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Sectors served
   ============================================================ */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sector-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  color: var(--text-900);
  font-weight: 500;
}
.sector-pill svg { width: 20px; height: 20px; color: var(--ink-900); flex-shrink: 0; }
.sector-pill:hover {
  background: #FCFAF2;
  transform: translateX(3px);
  box-shadow: 0 10px 24px rgba(26, 17, 80, 0.08);
}

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

/* ============================================================
   MEP intro band (Services page)
   ============================================================ */

.mep-intro {
  max-width: 78ch;
  margin: 0 auto 3.5rem;
  text-align: center;
}
/* Reusable small uppercase kicker label used above section headings */
.eyebrow-tag-dark {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.8rem;
}
.mep-intro .eyebrow-tag-dark {
  display: inline-block;
  margin-bottom: 0.9rem;
}

/* ============================================================
   Projects page — filter bar
   ============================================================ */

.portfolio-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3.2rem;
}
.filter-btn {
  padding: 0.65em 1.4em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text-600);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.filter-btn:hover { border-color: var(--ink-900); color: var(--ink-900); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: #fff;
}
.filter-btn .count { opacity: 0.65; margin-left: 0.3em; font-weight: 500; }

/* ============================================================
   Projects page — large portfolio cards
   ============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.portfolio-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: box-shadow 240ms ease, transform 240ms ease;
}
.portfolio-card:hover {
  box-shadow: 0 26px 54px rgba(26, 17, 80, 0.18);
  transform: translateY(-5px);
}
.portfolio-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-900);
}
.portfolio-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 550ms ease;
}
.portfolio-card:hover .portfolio-card-media img {
  transform: scale(1.09);
}
.portfolio-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,10,50,0.92) 0%, rgba(15,10,50,0.32) 48%, rgba(15,10,50,0.02) 72%);
  pointer-events: none;
}
.portfolio-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
/* Project name + location, always legible directly on the photo */
.portfolio-card-overlay {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.4rem 1.2rem;
}
.portfolio-loc {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.4rem;
}
.portfolio-loc svg { width: 14px; height: 14px; flex-shrink: 0; }
.portfolio-card-overlay h3 {
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.28;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.portfolio-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  text-align: left;
}
.portfolio-client {
  font-size: 0.9rem;
  color: var(--text-600);
  margin: 0;
}
.portfolio-learn-more {
  flex-shrink: 0;
  padding: 0.6em 1.1em;
  font-size: 0.86rem;
  white-space: nowrap;
}
.portfolio-learn-more svg { width: 15px; height: 15px; transition: transform 180ms ease; }
.portfolio-learn-more:hover svg,
.portfolio-learn-more:focus-visible svg { transform: translateX(3px); }
.portfolio-card.is-hidden { display: none; }

@media (max-width: 400px) {
  .portfolio-card-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .portfolio-learn-more { width: 100%; }
}

@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Projects page — project detail modal
   ============================================================ */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.project-modal.is-open { visibility: visible; opacity: 1; }
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 50, 0.74);
}
.project-modal-panel {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius-md);
  max-width: 960px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms ease;
}
.project-modal.is-open .project-modal-panel { transform: translateY(0) scale(1); }
.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease;
}
.project-modal-close:hover { background: #fff; }
.project-modal-gallery {
  background: var(--ink-900);
  min-width: 0;
  min-height: 320px;
}
.project-modal-gallery { position: relative; }
/* photo fills the column; the popup height follows the text, so tall photos don't stretch it */
.project-modal-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.project-modal-gallery img.modal-img-error { object-fit: contain; padding: 2.5rem; background: #f3f3f0; }
.project-modal-content { padding: 2.5rem 2.2rem; }
.project-modal-content .portfolio-badge {
  position: static;
  display: inline-block;
  margin-bottom: 1.1rem;
}
.project-modal-content h2 {
  font-size: 1.55rem;
  margin-bottom: 0.5em;
}
.project-modal-meta {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.project-modal-meta .row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-600);
}
.project-modal-meta svg { width: 16px; height: 16px; color: var(--gold-600); flex-shrink: 0; }
.project-modal-content .desc {
  font-size: 0.98rem;
  color: var(--text-600);
  margin-bottom: 1.5rem;
}
.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.9rem;
}
.project-modal-tags span {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gold-100);
  color: var(--gold-600);
  padding: 5px 12px;
  border-radius: 999px;
}

@media (max-width: 760px) {
  .project-modal { padding: 1rem; }
  .project-modal-panel { grid-template-columns: 1fr; }
  .project-modal-gallery { height: 240px; min-height: 0; }
  .project-modal-content { padding: 2rem 1.5rem 2.2rem; }
}

body.modal-open { overflow: hidden; }

/* ============================================================
   Projects page — portfolio stats strip
   ============================================================ */

.portfolio-stats-note {
  text-align: center;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2.2rem;
}

/* ============================================================
   Company Profile page — pull-quote
   ============================================================ */

.pullquote {
  position: relative;
  margin: 2.2rem 0 0;
  padding: 1.6rem 1.8rem 1.6rem 2.2rem;
  background: var(--surface);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: 0 10px 30px rgba(26,17,80,0.06);
}
.pullquote p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-style: italic;
  color: var(--ink-900);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ============================================================
   Company Profile page — key facts / registration table
   ============================================================ */

.profile-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.profile-table .row {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) 1.3fr;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}
.profile-table dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-400);
}
.profile-table dd {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-900);
}

/* ============================================================
   Company Profile page — core values chips
   ============================================================ */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
  background: var(--gold-100);
  border: 1px solid rgba(200,146,0,0.28);
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 180ms ease, transform 180ms ease;
}
.chip:hover { background: var(--gold-500); transform: translateY(-2px); }
.chip svg { width: 15px; height: 15px; color: var(--gold-600); flex-shrink: 0; }

/* ============================================================
   Company Profile page — experience / track record list
   ============================================================ */

.experience-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.experience-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 180ms ease;
}
.experience-item:hover { padding-left: 0.4rem; }
.experience-item .dot-col {
  display: flex;
  justify-content: center;
  padding-top: 0.3rem;
}
.experience-item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--gold-100);
}
.experience-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3em;
}
.experience-item .exp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.1em;
  font-size: 0.86rem;
  color: var(--text-600);
  margin-bottom: 0;
}
.experience-item .exp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.experience-item .exp-meta svg {
  width: 14px; height: 14px;
  color: var(--gold-600);
  flex-shrink: 0;
}

/* On a dark section background (e.g. Company Profile track record) */
.section-dark .experience-list { border-top-color: rgba(255,255,255,0.14); }
.section-dark .experience-item { border-bottom-color: rgba(255,255,255,0.14); }
.section-dark .experience-item h3 { color: #fff; }
.section-dark .experience-item .exp-meta { color: rgba(255,255,255,0.68); }

/* ============================================================
   Company Profile page — credential cards (Certifications,
   Licences & Awards)
   ============================================================ */

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.credential-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.credential-card:hover {
  box-shadow: 0 20px 44px rgba(26, 17, 80, 0.12);
  transform: translateY(-4px);
}
.credential-card .credential-icon {
  width: 34px; height: 34px;
  color: var(--ink-900);
  margin-bottom: 1.1rem;
}
.credential-card h3 { font-size: 1.08rem; margin-bottom: 0.6em; }
.credential-card p { font-size: 0.93rem; margin-bottom: 0; }

@media (max-width: 980px) {
  .credential-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .credential-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Company Profile page — photo gallery
   ============================================================ */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.gallery-grid .gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery-grid .gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.gallery-grid .gallery-item:hover img { transform: scale(1.07); }
.gallery-grid .gallery-item.wide { grid-column: span 2; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Company Profile page — capability summary strip
   ============================================================ */

.cap-link-row {
  text-align: center;
  margin-top: 2.6rem;
}

@media (max-width: 700px) {
  .profile-table .row { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ============================================================
   Contact page — info column + form panel
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-info .intro-divider { background: var(--gold-500); }
.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.contact-info > p { font-size: 1.02rem; }

.contact-card-list {
  display: grid;
  gap: 1.1rem;
  margin: 1.8rem 0 2rem;
}
.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}
.contact-card:hover {
  border-color: var(--gold-500);
  box-shadow: 0 14px 32px rgba(26, 17, 80, 0.08);
}
.contact-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card-icon svg { width: 20px; height: 20px; color: var(--ink-900); }
.contact-card h3 { font-size: 0.98rem; margin-bottom: 0.35em; }
.contact-card p { font-size: 0.92rem; margin-bottom: 0.2rem; color: var(--text-600); }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a { color: var(--text-900); font-weight: 600; }
.contact-card a:hover { color: var(--gold-600); }

/* WhatsApp CTA banner */
.whatsapp-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  background: #EAFBF1;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
}
.whatsapp-cta-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-cta-icon svg { width: 24px; height: 24px; color: #fff; }
.whatsapp-cta-text { flex: 1 1 220px; }
.whatsapp-cta-text h3 { font-size: 1rem; margin-bottom: 0.25em; }
.whatsapp-cta-text p { font-size: 0.88rem; color: var(--text-600); margin-bottom: 0; }
.whatsapp-cta-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  width: 100%;
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.75em 1.3em;
}
.btn-whatsapp:hover { background: #1DA851; }
.btn-whatsapp svg { width: 16px; height: 16px; }

/* Contact form panel */
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2.6rem 2.4rem;
  box-shadow: 0 20px 50px rgba(26, 17, 80, 0.06);
}
.contact-form-panel h2 { font-size: 1.4rem; }
.contact-form-panel > p { font-size: 0.96rem; margin-bottom: 1.8rem; }
.contact-form-panel > p a { color: var(--ink-900); font-weight: 600; }
.contact-form-panel > p a:hover { color: var(--gold-600); }

.contact-form { display: grid; gap: 1.3rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
}
.form-field { display: flex; flex-direction: column; gap: 0.45rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-900);
  padding: 0.75em 0.9em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #B3261E;
  background: #FDF2F1;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-submit { justify-self: flex-start; margin-top: 0.3rem; }
.form-note {
  font-size: 0.85rem;
  margin: 0.5rem 0 0;
  min-height: 1.3em;
  color: var(--text-600);
}
.form-note.is-success { color: #1A7D3D; font-weight: 600; }
.form-note.is-error { color: #B3261E; font-weight: 600; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-panel { padding: 2.2rem 1.8rem; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .whatsapp-cta-actions { flex-direction: column; }
  .whatsapp-cta-actions .btn { width: 100%; }
}

/* ============================================================
   Contact page — office location maps
   ============================================================ */

.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 3rem;
}
.map-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 200ms ease;
}
.map-card:hover { border-color: var(--gold-500); }
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--ink-800);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-card-info { padding: 1.4rem 1.6rem; }
.map-card-info h3 { color: #fff; font-size: 1.04rem; margin-bottom: 0.4em; }
.map-card-info p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; margin-bottom: 0.9rem; }
.map-card-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-500);
}
.map-card-info a:hover { color: #fff; }
.map-card-info a svg { width: 14px; height: 14px; }

@media (max-width: 860px) {
  .map-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Accessibility + polish (global)
   ============================================================ */
html { scroll-padding-top: 88px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.skip-link {
  position: absolute;
  left: 12px; top: -64px;
  z-index: 1000;
  background: var(--gold-500);
  color: var(--ink-900);
  font-weight: 700;
  padding: 0.7em 1.1em;
  border-radius: var(--radius-sm);
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; outline: 3px solid var(--ink-900); outline-offset: 2px; }
summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.site-footer a:hover { color: var(--gold-500); }



/* ============================================================
   Gallery page + lightbox
   ============================================================ */

.project-modal-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.project-modal-actions [hidden] { display: none; }
.portfolio-card { scroll-margin-top: 96px; }

.album-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 auto;
}
.gallery-album { scroll-margin-top: 76px; padding: 80px 0; }
.gallery-album + .gallery-album { border-top: 1px solid var(--line); }
.album-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.2rem;
}
.album-head h2 { margin: 0.7rem 0 0.5rem; }
.album-tag {
  display: inline-block;
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border-radius: 999px;
}
.album-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-600);
  margin: 0 0 0.9rem;
}
.album-meta svg { width: 16px; height: 16px; color: var(--gold-600); flex-shrink: 0; }
.album-desc { max-width: 720px; margin: 0; color: var(--text-600); }
.album-head .btn { flex-shrink: 0; }

.pgal-masonry { column-count: 3; column-gap: 1.2rem; }
.album-photo { margin: 0 0 1.2rem; break-inside: avoid; }
.pgal-tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ink-900);
  cursor: zoom-in;
}
.pgal-tile img { width: 100%; height: auto; display: block; transition: transform 550ms ease; }
.pgal-tile:hover img,
.pgal-tile:focus-visible img { transform: scale(1.04); }
.pgal-tile:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.album-photo figcaption {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-600);
  padding: 0.55rem 0.15rem 0;
}
@media (max-width: 980px) { .pgal-masonry { column-count: 2; } }
@media (max-width: 620px) {
  .pgal-masonry { column-count: 1; }
  .album-head { flex-direction: column; align-items: flex-start; }
  .gallery-album { padding: 56px 0; }
}


/* ---- Gallery: project cards that open an album ---- */
.album-index { padding: 56px 0 80px; }
.album-hint { text-align: center; color: var(--text-600); margin: 0 0 2rem; }
.js-albums .album-jump { display: none; }
.album-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.album-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.album-card:hover,
.album-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(26, 17, 80, 0.14);
  border-color: var(--gold-500);
}
.album-card:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.album-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-900);
  overflow: hidden;
}
.album-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 550ms ease;
}
.album-card:hover .album-card-media img,
.album-card:focus-visible .album-card-media img { transform: scale(1.05); }
.album-card-count {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(26, 17, 80, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
}
.album-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}
.album-card-body .album-tag { align-self: flex-start; }
.album-card-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.album-card-open {
  margin-top: auto;
  padding-top: 0.3rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--gold-600);
}

/* An opened album fills the screen; closed albums are hidden */
.js-albums .gallery-album { display: none; }
.js-albums .gallery-album.is-open {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 350;
  overflow-y: auto;
  background: var(--paper);
  padding: 0 0 64px;
  border-top: 0;
}
.js-albums .gallery-album.section-alt.is-open { background: var(--paper); }
.album-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.album-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.album-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-900);
  background: var(--gold-500);
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}
.album-back:hover { background: var(--gold-600); color: #fff; }
.album-back:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 2px; }
.album-bar-count { font-size: 0.88rem; font-weight: 600; color: var(--text-600); }
body.album-open { overflow: hidden; }
@media (max-width: 980px) { .album-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .album-cards { grid-template-columns: 1fr; gap: 1.1rem; }
  .album-index { padding: 36px 0 56px; }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  visibility: hidden;
  opacity: 0;
  transition: opacity 200ms ease, visibility 200ms ease;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 30, 0.94); }
.lightbox-dialog {
  position: relative;
  z-index: 1;
  height: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  padding: 1rem 0.5rem;
  pointer-events: none;
}
.lightbox-dialog > * { pointer-events: auto; }
.lightbox-figure {
  margin: 0;
  min-width: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 8.5rem);
  max-height: calc(100dvh - 8.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  touch-action: pan-y;
}
.lightbox-caption {
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}
.lightbox-text strong { display: block; color: #fff; font-size: 1rem; }
.lightbox-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.lightbox-count { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em; color: rgba(255,255,255,0.7); }
.lightbox-project {
  background: var(--gold-500);
  color: var(--ink-900);
  border: 0;
  border-radius: 999px;
  padding: 0.5em 1.1em;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.lightbox-project:hover { background: var(--gold-600); color: #fff; }
.lightbox-project[hidden] { display: none; }
.lightbox-close,
.lightbox-nav {
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 160ms ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
  line-height: 1;
}
.lightbox-nav { width: 46px; height: 46px; margin: 0 auto; }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox.is-single .lightbox-nav { visibility: hidden; }
@media (max-width: 700px) {
  .lightbox-dialog { grid-template-columns: 1fr; padding: 3.4rem 0.75rem 1rem; }
  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(15,10,50,0.6);
    margin: 0;
  }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-figure img { max-height: calc(100dvh - 10rem); }
  .lightbox-caption { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}




body.lightbox-open { overflow: hidden; }

/* Keep the (now 7-link) header on one line on small laptops / tablets */
.main-nav a { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1140px) {
  .main-nav { gap: 1.1rem; }
  .main-nav a { font-size: 0.92rem; }
  .header-actions .btn { padding-left: 1em; padding-right: 1em; white-space: nowrap; font-size: 0.9rem; }
}

/* About: history & background text alignment */
.intro-copy p { text-align: justify; hyphens: auto; }
@media (max-width: 640px) { .intro-copy p { text-align: left; } }
