/* ===============================================
   CASABLANCA MARINE & OFFSHORE CONSULTANTS
   Global Stylesheet — v1.0
   =============================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  --navy:       #07243F;
  --navy-mid:   #0B3460;
  --navy-light: #134A87;
  --gold:       #1B7EC0;
  --gold-lt:    #3AAEE0;
  --gold-dk:    #0F5A8E;
  --cream:      #EDE8DF;
  --off-white:  #F8F7F5;
  --white:      #FFFFFF;
  --charcoal:   #111827;
  --muted:      #6B7A8D;
  --border:     rgba(27,126,192,0.2);
  --border-lt:  rgba(0,0,0,0.07);

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans:     0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --trans-slow:0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --shadow:      0 8px 40px rgba(7,36,63,0.28);
  --shadow-gold: 0 8px 30px rgba(27,126,192,0.35);
  --radius:   4px;
  --radius-lg:10px;

  --nav-h:  80px;
  --max-w:  1200px;
  --pad:    0 clamp(20px, 5vw, 60px);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
body  { font-family: var(--font-b); color: var(--charcoal); background: var(--white); line-height: 1.7; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button{ cursor: pointer; border: none; outline: none; background: none; }
a, button, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: var(--font-h); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw,  4rem);  font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw,2.8rem);font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw,  1.65rem);font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { font-size: 1rem; line-height: 1.82; }

.section-label {
  display: block;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title { position: relative; margin-bottom: 1.4rem; }
.section-title::after {
  content: '';
  display: block;
  width: 55px; height: 3px;
  background: var(--gold);
  margin-top: 16px;
  border-radius: 2px;
}
.section-title.center::after { margin: 16px auto 0; }
.text-center { text-align: center; }

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: var(--pad); }
.section { padding: 100px 0; }
.section--dark    { background: var(--navy);     color: var(--white); }
.section--mid     { background: var(--navy-mid); color: var(--white); }
.section--cream   { background: var(--cream); }
.section--off-white{ background: var(--off-white); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: var(--font-b);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.55s;
}
.btn-gold:hover::before { left: 100%; }
.btn-gold:hover { background: var(--gold-lt); box-shadow: var(--shadow-gold); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: var(--pad);
  transition: background var(--trans-slow), height var(--trans-slow), box-shadow var(--trans-slow);
}
.navbar.scrolled {
  background: rgba(7,36,63,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 2px 30px rgba(7,36,63,0.5);
  height: 68px;
}
.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: height var(--trans);
}
.navbar.scrolled .nav-logo img { height: 42px; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-logo-name {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo-sub {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  transition: color var(--trans);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--trans);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: background var(--trans), box-shadow var(--trans), transform var(--trans) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-lt) !important; color: var(--white) !important; box-shadow: var(--shadow-gold); transform: translateY(-1px); }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--trans); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(148deg, rgba(4,24,39,0.88) 0%, rgba(7,36,63,0.82) 55%, rgba(11,52,96,0.75) 100%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,174,224,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,174,224,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift {
  from { transform: translate(0,0); }
  to   { transform: translate(72px, 72px); }
}
.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,174,224,0.18) 0%, rgba(27,126,192,0.08) 50%, transparent 68%);
  top: -180px; right: -160px;
  animation: glowPulse 7s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowPulse {
  from { transform: scale(1);    opacity: 0.45; }
  to   { transform: scale(1.18); opacity: 1; }
}
.hero-orb {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,126,192,0.1) 0%, transparent 70%);
  bottom: 80px; left: 5%;
  animation: glowPulse 9s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  line-height: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow-line { width: 40px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 { color: var(--white); max-width: 720px; margin-bottom: 10px; }
.hero h1 em { font-style: italic; color: var(--gold-lt); }
.hero-sub {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1.18rem;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin-bottom: 18px;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.62);
  max-width: 580px;
  margin-bottom: 44px;
  line-height: 1.85;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 38px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2.2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(201,151,74,0.55), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--border-lt);
  border-bottom: 1px solid var(--border-lt);
  padding: 70px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
}
.stat-item {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border-lt);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-h);
  font-size: clamp(2.8rem,4vw,3.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SERVICES GRID (HOME)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 60px;
}
.service-card {
  background: var(--navy-mid);
  padding: 42px 34px;
  transition: background var(--trans), transform var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}
.service-card:hover { background: var(--navy-light); transform: translateY(-3px); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; color: var(--gold); margin-bottom: 22px; }
.service-card h3 { color: var(--white); margin-bottom: 12px; font-size: 1.1rem; }
.service-card p  { color: rgba(255,255,255,0.52); font-size: 0.9rem; line-height: 1.72; margin-bottom: 22px; }
.service-link {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap var(--trans);
}
.service-link:hover { gap: 14px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.why-visual { position: relative; }
.why-visual-box {
  background: var(--navy-mid) center/cover no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.why-visual-box::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,36,63,0.30) 0%, rgba(7,36,63,0.60) 100%);
  border-radius: inherit;
  z-index: 0;
}
.why-visual-box > * { position: relative; z-index: 1; }
.why-quote {
  margin-top: 28px;
  padding-top: 28px;
  padding-bottom: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  text-align: center;
}
.why-badge {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-gold);
  text-align: center;
  white-space: nowrap;
}
.why-badge strong { display: block; font-family: var(--font-h); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.why-badge span   { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; }
.why-points { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.why-point  { display: flex; gap: 18px; align-items: flex-start; }
.why-point-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,151,74,0.1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.why-point h4  { color: var(--charcoal); margin-bottom: 5px; font-size: 0.95rem; }
.why-point p   { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-top: 60px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  padding: 42px 36px;
  position: relative;
  transition: box-shadow var(--trans), transform var(--trans);
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}
.testimonial-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-h);
  font-size: 7rem;
  color: var(--gold);
  opacity: 0.14;
  position: absolute;
  top: 4px; left: 22px;
  line-height: 1;
}
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 18px; color: var(--gold); font-size: 0.95rem; }
.testimonial-text {
  font-family: var(--font-h);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial-author-info strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--charcoal); }
.testimonial-author-info span   { font-size: 0.78rem; color: var(--muted); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  margin-top: 60px;
}
.project-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project-visual {
  height: 185px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light)) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,36,63,0.45) 0%, rgba(7,36,63,0.78) 100%);
  z-index: 1;
}
.project-visual .project-tag { z-index: 2; }
.project-visual .project-visual-icon { z-index: 2; }
.project-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--gold);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-visual-icon { width: 62px; height: 62px; color: rgba(201,151,74,0.38); position: relative; z-index: 1; }
.project-body { padding: 28px; }
.project-body h3 { color: var(--white); font-size: 1.02rem; margin-bottom: 10px; }
.project-body p  { color: rgba(255,255,255,0.5); font-size: 0.87rem; line-height: 1.65; }

/* ============================================================
   CLIENTS STRIP
   ============================================================ */
.clients-strip {
  padding: 60px 0;
  border-top: 1px solid var(--border-lt);
}
.clients-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}
.clients-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.client-badge {
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: var(--radius);
  padding: 12px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-mid);
  letter-spacing: 0.04em;
  transition: var(--trans);
  white-space: nowrap;
}
.client-badge:hover { border-color: var(--gold); color: var(--gold-dk); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(11,52,96,0.93) 0%, rgba(7,36,63,0.95) 100%),
    url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(58,174,224,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,174,224,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.55); max-width: 500px; margin: 0 auto 44px; }
.cta-banner .hero-btns { justify-content: center; }

/* ============================================================
   PAGE HERO (reusable for inner pages)
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 190px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(148deg, rgba(4,24,39,0.88) 0%, rgba(7,36,63,0.80) 50%, rgba(11,52,96,0.75) 100%),
    url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  animation: none;
}
.page-hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,174,224,0.12) 0%, transparent 70%);
  top: -200px; right: -120px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content h1  { color: var(--white); }
.page-hero-content p   { color: rgba(255,255,255,0.58); max-width: 600px; margin-top: 18px; font-size: 1.05rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-intro-text h2  { margin-bottom: 20px; }
.about-intro-text p   { color: var(--muted); line-height: 1.85; margin-bottom: 16px; }
.about-intro-visual {
  background: var(--navy-mid) center/cover no-repeat;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-intro-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,36,63,0.50) 0%, rgba(7,36,63,0.82) 100%);
  border-radius: inherit;
  z-index: 0;
}
.about-intro-visual > * { position: relative; z-index: 1; }
.about-est-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 22px 30px;
  border-radius: var(--radius-lg);
  margin-top: 28px;
  box-shadow: var(--shadow-gold);
}
.about-est-badge strong { display: block; font-family: var(--font-h); font-size: 2.8rem; font-weight: 800; line-height: 1; }
.about-est-badge span   { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* Vision / Mission */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 60px; }
.vm-card {
  padding: 52px 44px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.vm-card--vision  { background: var(--navy); color: var(--white); border: 1px solid var(--border); }
.vm-card--mission { background: var(--cream); color: var(--charcoal); }
.vm-card-watermark {
  font-family: var(--font-h);
  font-size: 9rem;
  font-weight: 800;
  color: rgba(201,151,74,0.08);
  position: absolute;
  top: -20px; right: 16px;
  line-height: 1;
  pointer-events: none;
}
.vm-card h3  { position: relative; z-index: 1; margin-bottom: 18px; font-size: 1.45rem; }
.vm-card--vision  h3 { color: var(--gold); }
.vm-card--mission h3 { color: var(--navy); }
.vm-card p   { position: relative; z-index: 1; line-height: 1.82; }
.vm-card--vision  p  { color: rgba(255,255,255,0.65); }
.vm-card--mission p  { color: var(--charcoal); }

/* Quality Policy */
.quality-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 60px;
  margin-top: 60px;
}
.quality-card h3 { color: var(--gold); margin-bottom: 18px; font-size: 1.45rem; }
.quality-card p  { color: rgba(255,255,255,0.65); font-size: 1.04rem; line-height: 1.9; margin-bottom: 32px; }
.quality-pillars { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.quality-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.quality-pillar::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
  margin-top: 60px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.team-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.team-avatar {
  height: 195px;
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-avatar-initials {
  font-family: var(--font-h);
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--gold);
}
.team-avatar::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}
.team-info { padding: 28px; }
.team-info h3 { color: var(--charcoal); font-size: 1.05rem; margin-bottom: 4px; }
.team-designation {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.team-info p { font-size: 0.87rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-list-page { margin-top: 20px; }
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.section--off-white .service-detail { border-bottom-color: rgba(0,0,0,0.07); }
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse .service-detail-text  { order: 2; }
.service-detail.reverse .service-detail-visual{ order: 1; }
.service-detail-num {
  font-family: var(--font-h);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(201,151,74,0.12);
  line-height: 1;
  margin-bottom: 14px;
}
.service-detail h3   { margin-bottom: 14px; font-size: 1.55rem; }
.section--dark .service-detail h3 { color: var(--white); }
.service-detail > .service-detail-text > p { margin-bottom: 24px; color: rgba(255,255,255,0.6); }
.section--off-white .service-detail > .service-detail-text > p { color: var(--muted); }
.service-bullets li {
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
  position: relative;
  color: rgba(255,255,255,0.62);
}
.section--off-white .service-bullets li { border-bottom-color: rgba(0,0,0,0.06); color: var(--charcoal); }
.service-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.service-bullets li:last-child { border-bottom: none; }
.service-detail-visual {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 320px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.section--off-white .service-detail-visual { background: var(--cream); border-color: rgba(0,0,0,0.1); }
/* remap section visual grid to cerulean */
.service-detail-visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,151,74,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,151,74,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.service-detail-visual svg { width: 85px; height: 85px; color: rgba(201,151,74,0.3); position: relative; z-index: 1; }
.service-detail-visual img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-lg); position: relative; z-index: 1; }

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--trans);
  border: 1px solid var(--border);
  color: rgba(255,255,255,0.55);
  background: transparent;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.project-card-lg {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans);
}
.project-card-lg:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project-visual-lg {
  height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light)) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-visual-lg::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,36,63,0.38) 0%, rgba(7,36,63,0.82) 100%);
  z-index: 1;
}
.project-visual-lg .project-tag { z-index: 2; }
.project-visual-lg svg { width: 68px; height: 68px; color: rgba(255,255,255,0.55); position: relative; z-index: 2; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 60px;
}
.contact-info h3 { color: var(--white); margin-bottom: 32px; font-size: 1.45rem; }
.contact-item { display: flex; gap: 20px; margin-bottom: 32px; align-items: flex-start; }
.contact-item-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(201,151,74,0.1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item-text strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-item-text a, .contact-item-text p { color: rgba(255,255,255,0.65); font-size: 0.95rem; transition: color var(--trans); display: block; line-height: 1.65; }
.contact-item-text a:hover { color: var(--gold-lt); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 44px;
  box-shadow: var(--shadow);
}
.contact-form-wrap .section-label { color: var(--gold-dk); margin-bottom: 6px; }
.contact-form-wrap h3 { color: var(--navy); margin-bottom: 32px; font-size: 1.55rem; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(0,0,0,0.13);
  border-radius: var(--radius);
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,151,74,0.13);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.map-section {
  padding: 0 0 100px;
  background: var(--navy);
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
  position: relative;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 90px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 60px;
  margin-bottom: 64px;
}
.footer-brand p { color: rgba(255,255,255,0.42); font-size: 0.88rem; line-height: 1.78; max-width: 280px; margin-top: 18px; }
.footer-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.87rem; transition: color var(--trans), padding-left var(--trans); }
.footer-links a:hover { color: var(--gold-lt); padding-left: 5px; }
.footer-contact-data p,
.footer-contact-data a {
  display: block;
  color: rgba(255,255,255,0.45);
  font-size: 0.87rem;
  line-height: 1.7;
  transition: color var(--trans);
}
.footer-contact-data a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { color: rgba(255,255,255,0.28); font-size: 0.78rem; }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { color: rgba(255,255,255,0.28); font-size: 0.78rem; transition: color var(--trans); }
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.60s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n-1) { border-right: 1px solid var(--border); }
  .stat-item:last-child, .stat-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }

  .testimonials-track { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .vm-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 50px; }

  .service-detail { grid-template-columns: 1fr; gap: 44px; }
  .service-detail.reverse .service-detail-text  { order: unset; }
  .service-detail.reverse .service-detail-visual{ order: unset; }

  .contact-grid { grid-template-columns: 1fr; }
  .why-wrap { grid-template-columns: 1fr; gap: 50px; }
  .why-badge { position: relative; bottom: auto; left: auto; transform: none; display: inline-block; margin-top: 22px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
  height: 100dvh;
  width: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
    background: rgba(13,27,42,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 32px;
    transition: right var(--trans-slow);
    border-left: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { text-align: center; width: 100%; justify-content: center; }
  .nav-toggle { display: flex; z-index: 1001; }

  .section { padding: 72px 0; }
  .page-hero { padding: 160px 0 80px; }

  .hero-content { padding-top: calc(var(--nav-h) + 50px); padding-bottom: 80px; }
  .hero-btns { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-track { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .form-row { grid-template-columns: 1fr; }
  .quality-pillars { grid-template-columns: 1fr; }
  .cta-banner .hero-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .quick-contacts-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   CONTACT PAGE — LIGHT THEME OVERRIDES
   ============================================================ */
.contact-item-body strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 6px;
}
.contact-item-body p,
.contact-item-body a { color: var(--charcoal); font-size: 0.95rem; transition: color var(--trans); display: block; line-height: 1.7; }
.contact-item-body a:hover { color: var(--gold-dk); }
.contact-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(166,124,53,0.1);
  border: 1px solid rgba(166,124,53,0.25);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dk);
}
.contact-icon-wrap svg { width: 20px; height: 20px; }
.contact-item-icon svg { width: 20px; height: 20px; }

.contact-link { color: var(--charcoal); font-size: 0.95rem; transition: color var(--trans); display: block; line-height: 1.7; }
.contact-link:hover { color: var(--gold-dk); }

/* Business hours */
.contact-hours {
  background: rgba(13,27,42,0.04);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 32px;
}
.contact-hours h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 14px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--charcoal);
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.hours-row:last-of-type { border-bottom: none; }
.hours-row.muted { color: var(--muted); }

/* Full-width button */
.btn-full { width: 100%; justify-content: center; }

/* Form success message */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 12px;
}
.form-success.show { display: flex; }
.form-success svg { width: 52px; height: 52px; color: var(--gold-dk); }
.form-success strong { font-size: 1.15rem; color: var(--navy); }
.form-success p { color: var(--muted); font-size: 0.9rem; }

/* Map section */
.map-header {
  background: var(--navy);
  padding: 72px 0 44px;
}
.map-embed { line-height: 0; border: none; }
.map-embed iframe { display: block; }

/* Quick contact cards */
.quick-contact-card {
  display: block;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.quick-contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.quick-contact-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(201,151,74,0.1);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold);
}
.quick-contact-icon svg { width: 22px; height: 22px; }
.quick-contact-card h4 { color: var(--white); margin-bottom: 6px; font-size: 1rem; }
.quick-contact-card p { color: rgba(255,255,255,0.55); font-size: 0.88rem; margin-bottom: 14px; }
.quick-contact-action { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* Section cream for client types grid */
.section--cream { background: var(--cream); }
.section--cream .section-label { color: var(--gold-dk); }

/* Testimonial card overrides when on dark bg */
.testimonial-card .testimonial-text { color: rgba(255,255,255,0.78); }

@media (max-width: 900px) {
  .map-header { padding: 56px 0 36px; }
}
@media (max-width: 768px) {
  .contact-hours { margin-top: 20px; }
  .quick-contacts-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px) {
  .quick-contacts-grid { grid-template-columns: 1fr !important; }
  .contact-form-wrap { padding: 32px 22px; }
}

/* ============================================================
   INDUSTRIES PAGE — about-grid layout
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-grid--reverse { direction: rtl; }
.about-grid--reverse > * { direction: ltr; }
.about-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p  { color: var(--muted); line-height: 1.85; margin-bottom: 14px; }
.section--dark .about-text p { color: rgba(255,255,255,0.62); }
.about-points {
  list-style: none;
  padding: 0;
  margin: 14px 0 24px;
}
.about-points li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.about-points li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }
.section--dark .about-points li { color: rgba(255,255,255,0.62); }
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* btn-outline-dark: navy outline on light sections, white-ish on dark sections */
.btn-outline-dark {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.section--dark .btn-outline-dark {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.section--dark .btn-outline-dark:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid--reverse { direction: ltr; }
  .about-visual img { height: 280px; }
}

/* ============================================================
   NAV OVERLAY — mobile menu backdrop
   ============================================================ */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.nav-overlay.open { display: block; }

/* ============================================================
   CONTACT LAYOUT — responsive two-column grid
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ============================================================
   GLOBAL OVERFLOW PROTECTION
   ============================================================ */
.contact-item-text a,
.contact-link,
.footer-contact-data a,
.footer-contact-data p {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================================
   EXTENDED RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Contact layout: stack vertically */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }

  /* iOS Safari: prevent auto-zoom on input focus (font-size must be >= 16px) */
  input, select, textarea { font-size: 1rem !important; }

  /* Reduce heavy visual-box padding */
  .about-intro-visual { padding: 36px 24px; }
  .quality-card { padding: 40px 28px; }
  .vm-card { padding: 36px 28px; }

  /* Service section spacing */
  .service-detail { padding: 56px 0; }

  /* CTA banner */
  .cta-banner { padding: 80px 0; }

  /* Hide scroll hint on mobile */
  .hero-scroll { display: none; }
}

/* ============================================================
   EXTENDED RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .stats-bar { padding: 50px 0; }
  .page-hero { padding: 130px 0 60px; }
  .cta-banner { padding: 64px 0; }
  .footer { padding: 64px 0 28px; }

  .about-intro-visual { padding: 28px 16px; }
  .quality-card { padding: 32px 20px; }
  .vm-card { padding: 28px 20px; }
  .service-card { padding: 32px 24px; }
  .testimonial-card { padding: 32px 24px; }
  .project-body { padding: 22px 20px; }
  .team-info { padding: 22px 20px; }
  .service-detail { padding: 44px 0; }
}

/* ============================================================
   EXTENDED RESPONSIVE — 360px (small Android phones)
   ============================================================ */
@media (max-width: 360px) {
  :root { --nav-h: 60px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 12px 20px; font-size: 0.78rem; }
  .nav-logo img { height: 40px; }
  .nav-logo-name { font-size: 0.95rem; }
  .nav-logo-sub { display: none; }
}

/* ============================================================
   LANDSCAPE ORIENTATION — mobile phones on their side
   ============================================================ */
@media (orientation: landscape) and (max-height: 600px) {
  .hero { min-height: auto; }
  .hero-content {
    padding-top: calc(var(--nav-h) + 30px);
    padding-bottom: 60px;
  }
  .hero-scroll { display: none; }
  .page-hero { padding: 120px 0 60px; }
  .nav-links {
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 80px;
  }
}

/* ============================================================
   SAFARI / FIREFOX CROSS-BROWSER FIXES
   ============================================================ */
/* Prevent Safari font inflation */
@supports (-webkit-touch-callout: none) {
  .hero { min-height: -webkit-fill-available; }
}
