/* =========================================================
   CREST SOLUTIONS — DESIGN TOKENS
   ========================================================= */
:root {
  --navy-950: #0a1f3d;
  --navy-900: #0f2a52;
  --navy-800: #16386b;
  --navy-700: #1f4784;
  --gold-500: #c9962c;
  --gold-400: #dcae4f;
  --gold-100: #f6e9cf;
  --off-white: #f7f5f0;
  --paper: #ffffff;
  --ink: #1b1f27;
  --ink-soft: #4a5266;
  --steel: #7c8598;
  --line: #e3e0d6;

  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius-sm: 6px;
  --radius-md: 14px;
  --shadow-md: 0 12px 30px -12px rgba(10, 31, 61, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(10, 31, 61, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESET
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Placeholder styling: if an image hasn't been added yet, the alt text
   shows here as a readable label instead of a broken-image icon. */
img {
  background: var(--navy-800);
  color: var(--gold-100);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-align: center;
  min-height: 80px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}
.section-tint {
  background: var(--paper);
}
.section-navy {
  background: var(--navy-950);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
  display: inline-block;
}
.eyebrow-light {
  color: var(--gold-400);
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.h2-light {
  color: var(--paper);
}

.section-lede {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 48px;
}
.section-navy .section-lede,
.contact-lede {
  color: #b9c4da;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-md);
}
.btn-gold:hover {
  background: var(--gold-400);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(4px);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-ghost {
  border: 1.5px solid var(--navy-800);
  color: var(--navy-900);
}
.btn-ghost:hover {
  background: var(--navy-900);
  color: #fff;
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.85rem;
}
.btn-full {
  width: 100%;
  justify-content: center;
}

/* icons (simple CSS glyph placeholders) */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}
.icon-phone::before {
  content: "\260E";
}

.icon-mail::before {
  content: "\2709";
}
.icon-pin::before {
  content: "\1F4CD";
}
.icon::before {
  font-size: 16px;
  line-height: 1;
}

.icon-whatsapp::before {
  content: "\260E";
}
/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition:
    background 0.35s ease,
    padding 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease,
    opacity 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  height: 76px;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow:
    0 12px 35px rgba(5, 25, 55, 0.14),
    0 2px 8px rgba(5, 25, 55, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-radius 0.35s ease;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 10px;
  background: transparent;
  transition:
    transform 0.3s ease,
    width 0.35s ease,
    height 0.35s ease;
}
.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-sub {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #b8860b;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* margin-left: auto; */
  gap: 1.5rem;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  /* padding: 8px 0; */
  color: #16386b;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.main-nav a:hover {
  color: #c99616;
  transform: translateY(-1px);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #dca902;
  transform: translateX(-50%);
  transition: width 0.28s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 70%;
}
.main-nav a.active {
  color: #c28b08;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}
.header-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  border: 1.5px solid #16386b;
  color: #f4f5f6;
  background: #16386b;
  border-radius: 10px;
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.header-actions .btn-ghost:hover {
  background: #3b87f9;
  color: #16386b;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 56, 107, 0.2);
}
.header-actions .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  background: #dca902;
  color: #102a50;
  border: 1.5px solid #dca902;
  border-radius: 10px;
  font-weight: 800;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.header-actions .btn-gold:hover {
  background: #edbc18;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(220, 169, 2, 0.3);
}
.header-actions .icon {
  margin-right: 7px;
}

/* Scrolled state: turns on as soon as the page moves a few px
   (toggled from script.js) — gives the pill a tighter, solid look */
.site-header.is-scrolled {
  padding: 18px 0;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(22, 56, 107, 0.08);
  border-radius: 17px;
  box-shadow:
    0 12px 30px rgba(5, 25, 55, 0.16),
    0 3px 10px rgba(5, 25, 55, 0.08);
}

.site-header.is-scrolled .brand-logo {
  width: 90px;
  height: 90px;
}

/* Hidden state: header slides up and out while scrolling down;
   comes back the moment the user scrolls up (see script.js) */
.site-header.header-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Mobile menu button */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(22, 56, 107, 0.15);
  border-radius: 10px;
  background: #f5f7fa;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}
.nav-toggle:hover {
  background: #edf1f6;
  border-color: rgba(22, 56, 107, 0.3);
}
.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: #16386b;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s 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);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-950);
}

.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition:
    opacity 1.2s ease-in-out,
    transform 4s ease,
    visibility 1.2s ease-in-out;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100vh;
  transform: scale(1);
  transition: none;
}

.hero-slide {
  transform: scale(1);
  transition:
    opacity 1.2s ease-in-out,
    visibility 1.2s ease-in-out;
}
.hero-slide.is-active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 31, 61, 0.3) 0%,
    rgba(10, 31, 61, 0.18) 45%,
    rgba(10, 31, 61, 0.4) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 100px;
  max-width: 760px;
  animation: rise 1s var(--ease) both;
  left: -10rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero background overlay — image ko thora dark karo taake text upar chamke */
.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 20, 38, 0.2) 0%,
    rgba(11, 20, 38, 0.1) 35%,
    rgba(11, 20, 38, 0.25) 100%
  );
  z-index: 1;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
}

/* Eyebrow text (EST. 2010 · KINGDOM OF SAUDI ARABIA) */
.hero .eyebrow {
  color: var(--gold-400);
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(0, 0, 0, 0.5);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Main heading */
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  color: #ffffff;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow:
    0 2px 6px rgba(41, 41, 41, 0.85),
    0 0 24px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.5);
}
.hero h1 .accent {
  color: rgb(0, 33, 83);
  text-shadow:
    0 2px 6px rgba(53, 88, 163, 0.85),
    0 0 20px rgba(212, 160, 60, 0.35);

  -webkit-text-stroke: 1px #f0f2f7;
}

/* Lede paragraph */
.hero-lede {
  color: #f1f3f8;
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 20px;
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(0, 0, 0, 0.5);
  font-weight: 500;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }
  .hero-lede {
    font-size: 1rem;
    max-width: 100%;
  }
  .hero .eyebrow {
    font-size: 0.85rem;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 1rem;
  justify-content: space-around;
}

/* =========================================================
   STATS STRIP
   ========================================================= */
.stats-strip {
  background: var(--navy-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--gold-400);
}
.stat-label {
  color: #cfd7e6;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* =========================================================
   REVEAL ON SCROLL (JS toggles .is-visible)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   MEDIA FRAME
   Rectangular image frame used across About / Services / Why Us.
   (Previously a diamond clip-path — switched to a clean rounded
   rectangle so the photos display fully instead of being cropped
   into the diamond shape.)
   ========================================================= */
.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--gold-500);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame-sm {
  max-width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 0 20px 0;
  border-width: 2px;
  border-radius: var(--radius-sm);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

#about-image {
  height: 34rem;
}
.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.mv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
  text-align: center;
}
.mv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.mv-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}
.mv-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.mv-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* =========================================================
   CORE VALUES
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.value-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  background: rgba(201, 150, 44, 0.08);
  border-color: var(--gold-500);
}
.value-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 14px;
}
.value-card h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* =========================================================
   PROJECTS
   ========================================================= */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.category-card {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.category-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.category-card:hover .category-media img {
  transform: scale(1.06);
}
.category-card h3 {
  font-size: 1rem;
  padding: 18px 20px 4px;
}
.category-card p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding: 0 20px 20px;
}

.ledger-wrap {
  background: var(--navy-950);
  border-radius: var(--radius-md);
  padding: 40px;
}
.ledger-title {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.ledger-scroll {
  overflow-x: auto;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 640px;
}
.ledger-table th {
  text-align: left;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.ledger-table td {
  padding: 12px 16px;
  color: #dbe1ee;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ledger-table tr:hover td {
  background: rgba(201, 150, 44, 0.06);
}

/* =========================================================
   WHY US
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.why-copy p {
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.check-list {
  margin-bottom: 32px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.why-us-image {
  height: 35rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold-500);
  font-weight: 700;
}
.hse-title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.hse-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.hse-chips span {
  background: var(--navy-900);
  color: var(--gold-100);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.contact-method:not(.contact-method-static):hover {
  background: rgba(201, 150, 44, 0.08);
  border-color: var(--gold-500);
  transform: translateX(4px);
}
.contact-method .icon {
  font-size: 1.2rem;
  margin-top: 2px;
  color: #ffffff;
}
.contact-method strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.contact-method span span {
  color: #b9c4da;
  font-size: 0.9rem;
}

.contact-form-wrap {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.form-row {
  margin-bottom: 20px;
}
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 150, 44, 0.15);
}
.form-row input.has-error,
.form-row textarea.has-error {
  border-color: #d64545;
  box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.12);
}
.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 4px;
  min-height: 1em;
}
.form-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-align: center;
}
.form-note.is-success {
  color: #1e7a3c;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--navy-950);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  width: 190px;
  height: 150px;
  margin-bottom: 4px;
  background: transparent;
}
.footer-brand p {
  color: #b9c4da;
  font-size: 0.9rem;
  max-width: 340px;
}
.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}
.footer-col a,
.footer-col span {
  display: block;
  color: #b9c4da;
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--gold-400);
}
.footer-bottom {
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  color: #7c8598;
  font-size: 0.82rem;
}

/* =========================================================
   WhatsApp Floating Button
   ========================================================= */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;

  width: 58px;
  height: 58px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #09ff53;
  color: #fffefe;

  overflow: hidden;
  white-space: nowrap;

  box-shadow:
    0 10px 25px rgba(10, 31, 61, 0.25),
    0 4px 10px rgba(0, 0, 0, 0.12);

  transition:
    width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;

  animation: whatsappFloat 3s ease-in-out infinite;
}

/* =========================================================
   WhatsApp Official Icon
   ========================================================= */

.whatsapp-icon {
  flex-shrink: 0;
  width: 40px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;

  color: #feffff;

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* =========================================================
   Hidden Text
   ========================================================= */

.whatsapp-text {
  max-width: 0;
  opacity: 0;

  overflow: hidden;

  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;

  color: #ffffff;

  transition:
    max-width 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    margin-left 0.4s ease;
}

/* =========================================================
   Hover Expansion
   ========================================================= */

.whatsapp-float:hover {
  width: 135px;

  background: #ffffff;
  color: var(--navy-900);
  transform: translateY(-4px);

  box-shadow:
    0 14px 32px rgba(10, 31, 61, 0.32),
    0 6px 14px rgba(0, 0, 0, 0.15);

  animation-play-state: paused;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.08);
  color: rgb(3, 206, 3);
}

.whatsapp-float:hover .whatsapp-text {
  max-width: 120px;
  opacity: 1;
  /* margin-left: 4px; */
  color: var(--navy-700);
}

/* =========================================================
   Click Effect
   ========================================================= */

.whatsapp-float:active {
  transform: scale(0.95);
}

/* =========================================================
   Floating Animation
   ========================================================= */

@keyframes whatsappFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 600px) {
  .whatsapp-float {
    right: 18px;
    bottom: 18px;

    width: 52px;
    height: 52px;
  }

  .whatsapp-icon {
    width: 52px;
    height: 52px;

    font-size: 25px;
  }

  /* Don't expand on mobile because there is no mouse hover */
  .whatsapp-float:hover {
    width: 52px;
    transform: translateY(-3px);
  }

  .whatsapp-float:hover .whatsapp-text {
    max-width: 0;
    opacity: 0;
    margin-left: 0;
  }
}

/* Floating movement */
@keyframes whatsappFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* Ripple animation */
@keyframes whatsappPulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }

  70% {
    transform: scale(1.25);
    opacity: 0;
  }

  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;

    right: 18px;
    bottom: 18px;
  }

  .whatsapp-float .icon::before {
    font-size: 24px;
  }
}

/* =========================================================
   ACCESSIBILITY — respect reduced-motion everywhere
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   RESPONSIVE
   Mobile-first adjustments are layered on top going down —
   every grid collapses to a single, centered flex column so
   content always reads well on a phone screen.
   ========================================================= */
@media (max-width: 980px) {
  .main-nav a {
    color: white;
  }
  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .why-media,
  .about-media {
    order: -1;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 32px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / small desktop header spacing */
@media (max-width: 1150px) {
  .main-nav a {
    color: white;
  }
  .header-inner {
    gap: 16px;
  }
  .main-nav {
    gap: 20px;
  }
  .main-nav a {
    font-size: 0.94rem;
  }
  .brand-name {
    font-size: 1rem;
  }
  .brand-sub {
    font-size: 0.58rem;
  }
  .header-actions .btn-small {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 950px) {
  .site-header {
    padding: 12px 0;
  }
  .header-inner {
    min-height: 70px;
    padding: 6px 12px;
    border-radius: 17px;
  }
  .brand-logo {
    width: 60px;
    height: 60px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-sub {
    font-size: 0.55rem;
  }
  .main-nav {
    gap: 15px;
  }
  .main-nav a {
    font-size: 0.88rem;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .btn-ghost,
  .header-actions .btn-gold {
    min-width: auto;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 860px) {
  .main-nav a {
    color: white;
  }
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-950);
    padding: 20px 24px 28px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    color: rgb(255, 255, 255);
  }
}

/* Mobile header polish + centered nav panel */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }
  .header-inner {
    justify-content: space-between;
    min-height: 66px;
    padding: 5px 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
  }
  .brand {
    gap: 8px;
  }
  .brand-logo {
    width: 56px;
    height: 56px;
  }
  .brand-name {
    font-size: 0.92rem;
  }
  .brand-sub {
    font-size: 0.52rem;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(22, 56, 107, 0.08);
    border-radius: 17px;
    box-shadow: 0 18px 40px rgba(5, 25, 55, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    width: 100%;
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 0.98rem;
    color: white;
    text-align: center;
  }
  .main-nav a:hover {
    transform: none;
  }
  .main-nav a::after {
    display: none;
  }
  .main-nav a.active {
    background: rgba(220, 169, 2, 0.12);
    color: #b47e00;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
  }

  .header-actions .btn-small {
    padding: 7px 8px;
    font-size: 0.7rem;
  }

  .header-actions .btn-small .icon {
    margin-right: 3px;
  }
  .nav-toggle {
    display: flex;
  }

  /* hero content centered and stacked for small screens */
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    left: 0;
    right: auto;
    width: 100%;
    max-width: 100%;
    text-align: center;
    color: black;
  }

  .hero-content p {
    -webkit-text-stroke: black;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-dots {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
  .services-grid,
  .category-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }
  .mv-cards {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form-wrap {
    padding: 28px;
  }
  .media-frame {
    max-width: 320px;
  }

  .service-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .service-card p {
    color: rgb(0, 0, 0);
    text-align: center;
  }

  /* about */

  #about-image {
    height: 23rem;
    width: 22rem;
  }

  /* center headings/copy blocks and eyebrows on small screens for
     a more app-like, eye-catching mobile reading experience */
  .section .container > .eyebrow,
  .section h2,
  .section-lede {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .about-copy,
  .why-copy {
    text-align: center;
  }
  .mv-card {
    text-align: center;
  }
}

@media (max-width: 420px) {
  .header-inner {
    padding-left: 7px;
    padding-right: 7px;
  }
  .brand-logo {
    width: 65px;
    height: 65px;
  }
  .brand-name {
    font-size: 0.84rem;
  }
  .brand-sub {
    font-size: 0.46rem;
    letter-spacing: 0.06em;
  }
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
  .header-actions {
    gap: 7px;
  }

  .header-actions .btn-small {
    padding: 6px 6px;
    font-size: 0.65rem;
  }

  .header-actions .btn-small .icon {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

/* why chose us */

.why-us-image {
  height: 23rem;
  width: 22rem;
}

/* =========================================================
   TABLET & MOBILE FOOTER
   ========================================================= */

@media (max-width: 900px) {
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "links contact"
      "brand brand";

    column-gap: 40px;
    row-gap: 45px;

    align-items: start;
  }

  /* Logo + description */
  .footer-brand {
    grid-area: brand;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    width: 100%;
  }

  .footer-logo {
    display: block;
    margin: 0 auto 8px;
    max-width: 230px;
    height: auto;
  }

  .footer-brand p {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.7;
  }

  /* Quick Links */
  .footer-grid .footer-col:nth-child(2) {
    grid-area: links;
    text-align: left;
  }

  /* Contact */
  .footer-grid .footer-col:nth-child(3) {
    grid-area: contact;
    text-align: right;
  }

  /* Contact items */
  .footer-grid .footer-col:nth-child(3) a,
  .footer-grid .footer-col:nth-child(3) span {
    display: block;
  }

  /* Bottom copyright */
  .footer-bottom {
    text-align: center;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .footer-grid {
    column-gap: 20px;
    row-gap: 38px;
  }

  .footer-logo {
    max-width: 200px;
    margin-bottom: 8px;
  }

  .footer-brand p {
    max-width: 90%;
    font-size: 14px;
    line-height: 1.65;
  }

  .footer-grid .footer-col h4 {
    font-size: 15px;
  }

  .footer-grid .footer-col a,
  .footer-grid .footer-col span {
    font-size: 13px;
    line-height: 1.8;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.6;
  }
}

.top-wicon {
  color: #0f2a52;
  font-size: 1.2rem;
}

/* =========================================================
   CERTIFICATIONS SECTION
   ========================================================= */

.certifications-section {
  overflow: hidden;
}

.certifications-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.certifications-intro {
  max-width: 600px;
}

.certifications-intro h2 {
  margin-bottom: 20px;
}

.certifications-intro .section-lede {
  max-width: 560px;
}

/* View Certificates Button */

.cert-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 20px;

  border: 1px solid rgba(16, 30, 54, 0.18);
  background: transparent;
  color: var(--navy, #102038);

  font-family: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
  transition: all 0.25s ease;
}

.cert-view-btn i {
  transition: transform 0.25s ease;
}

.cert-view-btn:hover {
  background: var(--navy, #102038);
  color: #fff;
  border-color: var(--navy, #102038);
}

.cert-view-btn:hover i {
  transform: translateX(5px);
}

/* =========================================================
   CERTIFICATE STACK
   ========================================================= */

.certificate-stack-wrapper {
  position: relative;
  min-height: 470px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.certificate-stack {
  position: relative;

  width: min(440px, 100%);
  height: 350px;

  cursor: pointer;

  transition: transform 0.35s ease;
}

.certificate-stack:hover {
  transform: translateY(-8px);
}

/* Individual certificate */

.certificate-card {
  position: absolute;

  width: 330px;
  height: 245px;

  left: 50%;
  top: 50%;

  transform-origin: center center;
  transform: translate(-50%, -50%);

  background: #fff;

  border: 7px solid #fff;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);

  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.certificate-card img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

/* Back */

.certificate-card-back {
  z-index: 1;

  transform: translate(-50%, -50%) rotate(-8deg) translate(-20px, 14px);
}

/* Middle */

.certificate-card-middle {
  z-index: 2;

  transform: translate(-50%, -50%) rotate(6deg) translate(18px, 10px);
}

/* Second */

.certificate-card-second {
  z-index: 3;

  transform: translate(-50%, -50%) rotate(-3deg) translate(-8px, 4px);
}

/* Top */

.certificate-card-top {
  z-index: 4;

  transform: translate(-50%, -50%) rotate(1deg);
}

/* Hover stack */

.certificate-stack:hover .certificate-card-back {
  transform: translate(-50%, -50%) rotate(-11deg) translate(-30px, 20px);
}

.certificate-stack:hover .certificate-card-middle {
  transform: translate(-50%, -50%) rotate(8deg) translate(28px, 14px);
}

.certificate-stack:hover .certificate-card-second {
  transform: translate(-50%, -50%) rotate(-4deg) translate(-14px, 6px);
}

.certificate-stack:hover .certificate-card-top {
  transform: translate(-50%, -50%) rotate(0deg) translateY(-8px);
}

/* Certificate count badge */

.certificate-stack-label {
  position: absolute;

  right: 12px;
  bottom: 12px;

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 7px 11px;

  background: rgba(10, 20, 35, 0.88);
  color: #fff;

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 0.04em;

  border-radius: 4px;
}

.certificate-stack-label i {
  font-size: 12px;
}

/* Hint */

.certificate-hint {
  margin-top: 5px;

  display: flex;
  align-items: center;
  gap: 7px;

  font-size: 12px;
  color: #777;

  letter-spacing: 0.02em;
}

.certificate-hint i {
  font-size: 11px;
}

/* =========================================================
   CERTIFICATE MODAL
   ========================================================= */

.certificate-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.certificate-modal.is-open {
  visibility: visible;
  opacity: 1;
}

/* Dark background */

.certificate-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(5, 12, 23, 0.88);

  backdrop-filter: blur(7px);
}

/* Modal */

.certificate-modal-content {
  position: relative;

  z-index: 2;

  width: min(1000px, 94vw);

  max-height: 94vh;

  display: flex;
  flex-direction: column;
  align-items: center;

  transform: translateY(25px) scale(0.96);

  transition: transform 0.35s ease;
}

.certificate-modal.is-open .certificate-modal-content {
  transform: translateY(0) scale(1);
}

/* Certificate viewer */

.certificate-viewer {
  width: min(850px, 82vw);
  height: min(68vh, 620px);

  display: flex;
  align-items: center;
  justify-content: center;

  background: #111;

  border: 8px solid #fff;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);

  overflow: hidden;
}

.certificate-viewer img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;

  background: #fff;
}

/* =========================================================
   MODAL CONTROLS
   ========================================================= */

.certificate-close {
  position: absolute;

  top: -18px;
  right: -18px;

  z-index: 10;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;

  background: #fff;
  color: #18283f;

  cursor: pointer;

  font-size: 16px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.certificate-close:hover {
  transform: rotate(90deg);
  background: #f1f1f1;
}

/* Previous / Next */

.certificate-nav {
  position: absolute;

  top: 50%;

  z-index: 10;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.96);
  color: #172941;

  cursor: pointer;

  font-size: 16px;

  transform: translateY(-50%);

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.certificate-nav:hover {
  background: #fff;
}

.certificate-prev {
  left: -70px;
}

.certificate-next {
  right: -70px;
}

/* =========================================================
   MODAL FOOTER
   ========================================================= */

.certificate-modal-footer {
  width: min(850px, 82vw);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 4px 0;

  color: #fff;
}

.certificate-counter {
  display: block;

  margin-bottom: 4px;

  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;

  opacity: 0.65;

  text-transform: uppercase;
}

.certificate-modal-footer h3 {
  margin: 0;

  font-size: 18px;
  color: #fff;
}

/* Dots */

.certificate-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.certificate-dot {
  width: 7px;
  height: 7px;

  padding: 0;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.35);

  cursor: pointer;

  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.certificate-dot.active {
  width: 22px;

  border-radius: 10px;

  background: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
  .certifications-header {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .certifications-intro {
    max-width: 100%;
  }

  .certificate-stack-wrapper {
    min-height: 430px;
  }

  .certificate-prev {
    left: -25px;
  }

  .certificate-next {
    right: -25px;
  }
}

@media (max-width: 600px) {
  .certifications-header {
    gap: 30px;
  }

  .certificate-stack-wrapper {
    min-height: 350px;
  }

  .certificate-stack {
    height: 280px;
  }

  .certificate-card {
    width: 280px;
    height: 205px;
  }

  .certificate-card-back {
    transform: translate(-50%, -50%) rotate(-8deg) translate(-13px, 10px);
  }

  .certificate-card-middle {
    transform: translate(-50%, -50%) rotate(6deg) translate(12px, 7px);
  }

  .certificate-card-second {
    transform: translate(-50%, -50%) rotate(-3deg) translate(-5px, 3px);
  }

  .certificate-stack:hover .certificate-card-back {
    transform: translate(-50%, -50%) rotate(-9deg) translate(-18px, 12px);
  }

  .certificate-stack:hover .certificate-card-middle {
    transform: translate(-50%, -50%) rotate(7deg) translate(17px, 9px);
  }

  .certificate-stack:hover .certificate-card-second {
    transform: translate(-50%, -50%) rotate(-4deg) translate(-8px, 4px);
  }

  .certificate-stack:hover .certificate-card-top {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-5px);
  }

  .certificate-viewer {
    width: 88vw;
    height: 65vh;

    border-width: 5px;
  }

  .certificate-modal-footer {
    width: 88vw;
  }

  .certificate-nav {
    width: 40px;
    height: 40px;
  }

  .certificate-prev {
    left: 5px;
  }

  .certificate-next {
    right: 5px;
  }

  .certificate-close {
    top: -15px;
    right: -5px;

    width: 38px;
    height: 38px;
  }

  .certificate-modal-footer h3 {
    font-size: 15px;
  }

  .certificate-counter {
    font-size: 9px;
  }

  .certificate-dots {
    display: none;
  }
}

/* =========================================================
   CREST SOLUTIONS
   TOP CONTACT BAR + NAVBAR FINAL FIX
   No JavaScript required
========================================================= */

/* =========================================================
   TOP CONTACT BAR
========================================================= */

.top-contact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;

  height: 38px;

  background: var(--navy-950);
  color: #ffffff;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-contact-inner {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-around;
}

.contact-num {
  display: flex;
  gap: 1rem;
}

.top-contact-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  color: #dbe4f3;

  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;

  white-space: nowrap;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.top-contact-item i {
  color: var(--gold-500);
  font-size: 0.78rem;

  flex-shrink: 0;
}

.top-contact-item:hover {
  color: var(--gold-500);
}

.top-contact-item:hover i {
  color: #ffffff;
}

/* .top-contact-address {
  cursor: default;
} */

/* =========================================================
   MAIN NAVBAR
========================================================= */

.site-header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;

  z-index: 1000;

  padding: 12px 0;

  background: transparent;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    padding 0.35s ease;
}

/* Navbar container */

.header-inner {
  width: 100%;

  display: flex;
  align-items: center;

  justify-content: space-between;

  gap: 28px;

  height: 74px;

  padding: 6px 10px 6px 18px;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid rgba(255, 255, 255, 0.75);

  border-radius: 18px;

  box-shadow:
    0 12px 35px rgba(5, 25, 55, 0.14),
    0 2px 8px rgba(5, 25, 55, 0.08);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    border-radius 0.3s ease;
}

/* =========================================================
   LOGO
========================================================= */

.brand {
  display: flex;
  align-items: center;

  flex-shrink: 0;
}

.brand-logo {
  width: 78px;
  height: 78px;

  display: block;

  object-fit: contain;

  background: transparent;

  min-height: 0;

  border-radius: 8px;

  transition:
    width 0.3s ease,
    height 0.3s ease,
    transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* =========================================================
   MAIN NAVIGATION
========================================================= */

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 26px;

  flex: 1;

  margin: 0;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0.3s ease;
}

.main-nav a {
  position: relative;

  display: inline-flex;
  align-items: center;

  padding: 8px 0;

  color: var(--navy-800);

  font-size: 0.92rem;
  font-weight: 700;

  white-space: nowrap;

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--gold-500);

  transform: translateY(-1px);
}

/* Active / hover underline */

.main-nav a::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: 0;

  width: 0;
  height: 3px;

  border-radius: 999px;

  background: var(--gold-500);

  transform: translateX(-50%);

  transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 65%;
}

.main-nav a.active {
  color: var(--gold-500);
}

/* =========================================================
   HEADER ACTION BUTTONS
========================================================= */

.header-actions {
  display: flex;
  align-items: center;

  gap: 8px;

  flex-shrink: 0;
}

/* Call button */

.header-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 100px;

  padding: 9px 14px;

  border: 1.5px solid var(--navy-800);

  border-radius: 9px;

  background: var(--navy-800);

  color: #ffffff;

  font-size: 0.82rem;
  font-weight: 700;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.header-actions .btn-ghost:hover {
  background: #ffffff;

  color: var(--navy-800);

  transform: translateY(-2px);

  box-shadow: 0 8px 18px rgba(22, 56, 107, 0.18);
}

/* WhatsApp button */

.header-actions .btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 125px;

  padding: 9px 14px;

  border: 1.5px solid var(--gold-500);

  border-radius: 9px;

  background: var(--gold-500);

  color: var(--navy-950);

  font-size: 0.82rem;
  font-weight: 800;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.header-actions .btn-gold:hover {
  background: var(--gold-400);

  transform: translateY(-2px);

  box-shadow: 0 10px 22px rgba(220, 169, 2, 0.25);
}

/* Header icons */

.header-actions .icon {
  margin-right: 6px;
}

.top-wicon {
  color: white;
}

/* =========================================================
   SCROLLED HEADER
========================================================= */

.site-header.is-scrolled {
  padding: 8px 0;
}

.site-header.is-scrolled .header-inner {
  background: rgba(255, 255, 255, 0.98);

  border-color: rgba(22, 56, 107, 0.08);

  border-radius: 15px;

  box-shadow:
    0 12px 30px rgba(5, 25, 55, 0.16),
    0 3px 10px rgba(5, 25, 55, 0.08);
}

.site-header.is-scrolled .brand-logo {
  width: 72px;
  height: 72px;
}

/* =========================================================
   HIDDEN NAVBAR
   Your existing JS can still use this class
========================================================= */

.site-header.header-hidden {
  transform: translateY(calc(-100% - 40px));
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.nav-toggle {
  display: none;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  gap: 5px;

  width: 42px;
  height: 42px;

  padding: 0;

  border: 1px solid rgba(22, 56, 107, 0.15);

  border-radius: 9px;

  background: #f5f7fa;

  flex-shrink: 0;
}

.nav-toggle span {
  display: block;

  width: 20px;
  height: 2px;

  background: var(--navy-800);

  border-radius: 999px;

  transition:
    transform 0.25s ease,
    opacity 0.25s 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);
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.84rem;
  }

  .header-actions .btn-ghost {
    min-width: auto;
    padding: 8px 11px;
  }

  .header-actions .btn-gold {
    min-width: auto;
    padding: 8px 11px;
  }
}

/* =========================================================
   TABLET / MOBILE NAV
========================================================= */

@media (max-width: 860px) {
  .top-contact-inner {
    justify-content: center;

    gap: 20px;
  }

  .top-contact-item {
    font-size: 0.7rem;
  }

  /* .top-contact-address {
    display: none;
  } */

  .site-header {
    top: 38px;

    padding: 9px 0;
  }

  .header-inner {
    height: 66px;

    padding: 5px 10px;

    border-radius: 15px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .main-nav {
    position: absolute;

    top: calc(100% + 10px);

    left: 0;
    right: 0;
    color: white;
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 4px;

    padding: 10px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(22, 56, 107, 0.08);

    border-radius: 15px;

    box-shadow: 0 18px 40px rgba(5, 25, 55, 0.18);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-10px);

    pointer-events: none;
  }

  .main-nav.is-open {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;

    padding: 12px 14px;

    border-radius: 8px;

    color: white;

    font-size: 0.94rem;

    text-align: center;
  }

  .main-nav a:hover {
    transform: none;

    background: rgba(220, 169, 2, 0.08);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active {
    color: var(--gold-500);

    background: rgba(220, 169, 2, 0.1);
  }

  .header-actions {
    gap: 7px;
  }

  .header-actions .btn-small {
    padding: 7px 9px;

    font-size: 0.72rem;
  }

  .header-actions .btn-small .icon {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {
  @media (max-width: 600px) {
    .top-contact-bar {
      height: auto;
      min-height: 62px;
    }

    .top-contact-inner {
      min-height: 62px;
      height: auto;

      padding: 6px 12px;

      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: auto auto;

      justify-content: initial;
      align-items: center;

      gap: 3px 10px;
    }

    /* Email */
    .top-contact-item:nth-child(1) {
      grid-column: 1;
      grid-row: 1;

      justify-content: flex-start;
    }

    /* Phone */
    .top-contact-item:nth-child(2) {
      grid-column: 2;
      grid-row: 1;

      justify-content: flex-end;
    }

    /* Location */
    .top-contact-address {
      display: flex;

      grid-column: 1 / -1;
      grid-row: 2;

      justify-content: center;

      width: 100%;
    }

    .top-contact-item {
      font-size: 0.62rem;
      gap: 5px;

      min-width: 0;
    }

    .top-contact-item i {
      font-size: 1rem;
      flex-shrink: 0;
      color: var(--gold-500);
    }

    .top-contact-item span {
      max-width: none;

      overflow: visible;
      text-overflow: clip;
      white-space: nowrap;
    }

    .top-contact-address span {
      width: 100%;
      text-align: center;

      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
    }

    .site-header {
      top: 62px;
      padding: 8px 0;
    }

    /* baqi tumhari existing mobile CSS */
  }

  .top-contact-item {
    font-size: 0.65rem;

    gap: 5px;
  }

  .top-contact-item i {
    font-size: 0.7rem;
  }

  .top-contact-item span {
    max-width: 150px;

    overflow: hidden;

    text-overflow: ellipsis;
  }

  .site-header {
    top: 62px;

    padding: 8px 0;
  }

  .header-inner {
    min-height: 62px;

    height: 62px;

    padding: 4px 8px;

    gap: 8px;

    border-radius: 14px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions .btn-small {
    min-width: auto;

    padding: 7px 8px;

    font-size: 0.68rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .main-nav {
    top: calc(100% + 8px);

    border-radius: 13px;
  }

  .main-nav a {
    padding: 11px 12px;

    font-size: 0.9rem;
  }
}

/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {
  .header-inner {
    padding-left: 6px;
    padding-right: 6px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .header-actions .btn-small {
    padding: 6px 7px;

    font-size: 0.62rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   IMPORTANT:
   TOP BAR + NAVBAR SHOULD NOT COVER HERO CONTENT
========================================================= */

.hero-content {
  padding-top: 150px;
}

/* On mobile */

@media (max-width: 860px) {
  .hero-content {
    padding-top: 130px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 115px;
  }
}

#nav-whatsapp-icon {
  color: rgb(255, 255, 255);
  font-size: 1.3rem;
  transition: all 0.5s ease;
}

#nav-whatsapp-button {
  color: white;
  transition: all 1s ease;
}
#nav-whatsapp-button:hover {
  color: var(--navy-950);
  background-color: white;
  #nav-whatsapp-icon {
    color: var(--navy-950);
  }
}

#contact-whatsap-icon {
  margin-top: 1rem;
  color: white;
  display: block;
  font-size: 1rem;
}
