/* ==========================================================================
   MASS Logistics — main.css
   Design tokens
   - Palette: deep maritime navy, steel, warm amber accent, fog, paper
   - Type: Sora (display) + Inter (body)
   - Signature: animated cargo route line in hero + kinetic CTA
   ========================================================================== */

:root {
  --navy: #0c1f33;
  --navy-700: #10314f;
  --navy-600: #173f63;
  --steel: #5b7591;
  --fog: #e8eef4;
  --paper: #f6f8fb;
  --white: #ffffff;
  --amber: #f5a524;
  --amber-600: #e08c00;
  --amber-100: #fff1d6;
  --ink: #0c1722;
  --line: #d8e1ea;

  --maxw: 1200px;
  --gap: clamp(1rem, 3vw, 2.25rem);
  --radius: 14px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 8px rgba(12, 31, 51, .06);
  --shadow-md: 0 14px 40px rgba(12, 31, 51, .12);
  --shadow-lg: 0 30px 70px rgba(12, 31, 51, .22);

  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-fast: .18s cubic-bezier(.22,.61,.36,1);
  --t: .34s cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--amber-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.1rem; }
ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section--tint { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--fog); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--amber-600);
  margin-bottom: .9rem;
  display: inline-block;
}
.section--navy .eyebrow { color: var(--amber); }
.lead { font-size: 1.18rem; color: var(--navy-600); max-width: 60ch; }
.section--navy .lead { color: var(--fog); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --b: var(--amber);
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t), background var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform var(--t); }
.btn--primary { background: var(--amber); color: var(--navy); box-shadow: 0 10px 26px rgba(245,165,36,.32); }
.btn--primary:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(245,165,36,.45); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); transform: translateY(-2px); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-600); color: var(--white); transform: translateY(-2px); }

/* ==========================================================================
   Top bar + Header
   ========================================================================== */
.topbar {
  background: var(--navy); color: var(--fog); font-size: .82rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: var(--fog); }
.topbar a:hover { color: var(--amber); }
.topbar__contact { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.topbar__social { display: flex; gap: .9rem; align-items: center; }
.topbar__social a { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--fog); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.topbar__social a:hover { background: var(--amber); color: var(--navy); transform: translateY(-2px); }
.topbar__social svg { width: 15px; height: 15px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow var(--t); }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .7rem; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--navy); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .55rem; }
.brand img { max-height: 46px; width: auto; }
.brand__img { max-height: 46px; width: auto; display: block; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--navy), var(--navy-600)); color: var(--amber); display: grid; place-items: center; font-weight: 800; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: .3rem; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; }
.main-nav li { position: relative; }
.main-nav a { font-family: var(--font-display); font-weight: 500; font-size: .95rem; color: var(--navy); padding: .6rem .8rem; border-radius: 8px; display: inline-flex; align-items: center; gap: .3rem; }
.main-nav > ul > li > a:hover, .main-nav .current-menu-item > a { color: var(--amber-600); background: var(--amber-100); }
.main-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t-fast); }
.sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 270px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: .5rem; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { width: 100%; font-size: .9rem; padding: .55rem .7rem; justify-content: flex-start; text-align: left; }
.sub-menu a:hover { background: var(--paper); color: var(--amber-600); }

.header-cta { display: inline-flex; }
.nav-toggle { display: none; background: var(--navy); color: var(--white); border: 0; width: 46px; height: 42px; border-radius: 10px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--white); margin-inline: auto; position: relative; transition: var(--t-fast); }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Mobile nav close button (hidden on desktop) */
.nav-close { display: none; position: absolute; top: 1rem; right: 1.2rem; width: 44px; height: 44px; border: 0; background: var(--paper); color: var(--navy); font-size: 2rem; line-height: 1; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; transition: background var(--t-fast), color var(--t-fast); }
.nav-close:hover { background: var(--amber); color: var(--navy); }

/* ==========================================================================
   HERO — signature animated cargo route
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, var(--navy-600) 0%, var(--navy) 55%);
  color: var(--fog);
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.hero::after { /* subtle grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(120% 80% at 70% 10%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 2; max-width: 920px; }
.hero--img::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: var(--hero-bg); background-size: cover; background-position: center; opacity: .55; }
.hero--img .container { position: relative; }
.hero--img .container::before { content: ""; position: absolute; inset: -120px -60px; z-index: -1; background: radial-gradient(65% 85% at 28% 48%, rgba(12,31,51,.7) 0%, rgba(12,31,51,.45) 55%, rgba(12,31,51,.12) 100%); }
.hero--img { background: linear-gradient(115deg, var(--navy) 0%, rgba(12,31,51,.5) 100%), radial-gradient(120% 120% at 80% -10%, var(--navy-600) 0%, var(--navy) 60%); }
.hero__eyebrow { color: var(--amber); }
.hero h1 { color: var(--white); }
.hero__tag { font-family: var(--font-display); font-style: italic; color: var(--amber); font-size: 1.1rem; margin-top: .4rem; }
.hero__lead { font-size: 1.2rem; color: var(--fog); margin-top: 1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* animated route line */
.hero__route { position: absolute; inset: 0; z-index: 1; opacity: .9; }
.route-path { fill: none; stroke: rgba(245,165,36,.5); stroke-width: 2; stroke-dasharray: 10 8; }
.route-dash { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 60 1400; animation: routeMove 7s linear infinite; filter: drop-shadow(0 0 6px rgba(245,165,36,.7)); }
@keyframes routeMove { to { stroke-dashoffset: -1460; } }
.route-node { fill: var(--amber); }

/* hero stat strip */
.hero__stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.8rem; }
.hero__stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--amber); display: block; }
.hero__stat .l { font-size: .82rem; letter-spacing: .04em; color: #fff; text-transform: uppercase; }

/* entrance animations */
.fade-up { opacity: 0; transform: translateY(22px); }
.hero .fade-up { animation: fadeUp .8s var(--t) forwards; }
.hero .d1 { animation-delay: .05s; } .hero .d2 { animation-delay: .2s; }
.hero .d3 { animation-delay: .35s; } .hero .d4 { animation-delay: .5s; } .hero .d5 { animation-delay: .65s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ==========================================================================
   About row
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
.about-card { background: var(--navy); color: var(--fog); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.about-card h3 { color: var(--white); }
.about-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,.35), transparent 70%); }
.about-card ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.about-card li { display: flex; gap: .6rem; align-items: flex-start; }
.about-card li::before { content: "→"; color: var(--amber); font-weight: 700; }
.about-card__img { width: 100%; height: auto; border-radius: calc(var(--radius) - 4px); margin-bottom: 1.2rem; display: block; position: relative; z-index: 1; }

/* ==========================================================================
   Services grid
   ========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column; gap: .55rem; position: relative; overflow: hidden;
}
.svc-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--amber); transition: width var(--t); }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::after { width: 100%; }
.svc-card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--amber-100); color: var(--amber-600); display: grid; place-items: center; margin-bottom: .3rem; }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 1.18rem; margin: 0; }
.svc-card p { font-size: .94rem; color: #4a5a6b; margin: 0; flex: 1; }
.svc-card .more { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--amber-600); display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; }
.svc-card .more svg { width: 1em; transition: transform var(--t); }
.svc-card:hover .more svg { transform: translateX(4px); }

/* Image-variant service cards */
.svc-card--img { padding: 0 0 1.4rem; }
.svc-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: .4rem; }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease, ease); }
.svc-card--img:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,31,51,.55)); }
.svc-card--img .svc-card__media .svc-card__icon { position: absolute; right: 1.1rem; top: 1.1rem; left: auto; bottom: auto; z-index: 2; margin: 0; box-shadow: var(--shadow-sm); background: var(--white); }
.svc-card--img > h3 { margin-top: .9rem; }
.svc-card--img > h3, .svc-card--img > p, .svc-card--img > .more { padding-inline: 1.4rem; }

/* ==========================================================================
   Why choose us
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem; transition: transform var(--t), background var(--t); }
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.07); }
.why-card .num { font-family: var(--font-display); font-weight: 800; color: var(--amber); font-size: 1rem; letter-spacing: .05em; }
.why-card__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(245,165,36,.12); margin-bottom: .9rem; }
.why-card__icon img { width: 30px; height: 30px; object-fit: contain; filter: brightness(0) saturate(100%) invert(72%) sepia(48%) saturate(900%) hue-rotate(348deg) brightness(101%) contrast(95%); }
.why-card h3 { margin: .5rem 0 .4rem; }
.why-card p { color: var(--fog); font-size: .95rem; margin: 0; opacity: .9; }

/* ==========================================================================
   CTA band — kinetic
   ========================================================================== */
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-600) 60%, var(--navy) 100%);
  background-size: 200% 200%; animation: ctaShift 12s ease infinite;
  color: var(--white); border-radius: clamp(16px, 3vw, 28px);
  padding: clamp(2.6rem, 6vw, 4.5rem); box-shadow: var(--shadow-lg);
}
@keyframes ctaShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.cta::before { width: 320px; height: 320px; left: -90px; bottom: -120px; background: radial-gradient(circle, rgba(245,165,36,.35), transparent 70%); animation: floaty 9s ease-in-out infinite; }
.cta::after { width: 240px; height: 240px; right: -70px; top: -90px; background: radial-gradient(circle, rgba(91,117,145,.5), transparent 70%); animation: floaty 11s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-22px) scale(1.06); } }
.cta > * { position: relative; z-index: 2; }
.cta h2 { color: var(--white); max-width: 22ch; margin-inline: auto; }
.cta p { color: var(--fog); max-width: 60ch; margin-inline: auto; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.8rem; }
/* animated marquee strip of capabilities */
.cta__marquee { margin-top: 2.4rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cta__track { display: inline-flex; gap: 2.4rem; white-space: nowrap; animation: marquee 26s linear infinite; }
.cta__track span { font-family: var(--font-display); font-weight: 600; color: var(--amber); opacity: .85; font-size: .95rem; letter-spacing: .04em; }
.cta__track span::before { content: "◆"; color: var(--steel); margin-right: 2.4rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.tst-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.3rem; }
.tst-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.tst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tst-card .quote { font-size: 1.55rem; color: var(--amber); font-family: var(--font-display); line-height: 0; }
.tst-card p { font-size: .96rem; color: #41515f; }
.tst-card .who { font-family: var(--font-display); font-weight: 700; color: var(--navy); }

/* ==========================================================================
   Page hero (interior pages) + content
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 85% -20%, var(--navy-600), var(--navy)); color: var(--fog); padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 40px; mask-image: radial-gradient(80% 100% at 80% 0, #000, transparent 70%); }
.page-hero--img { background: var(--navy); }
.page-hero--img::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-img); background-size: cover; background-position: center; opacity: .28; z-index: 0; }
.page-hero--img::after { background: linear-gradient(110deg, var(--navy) 30%, rgba(12,31,51,.5)); mask-image: none; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.breadcrumbs { font-size: .85rem; color: var(--steel); margin-bottom: 1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a { color: var(--fog); }
.breadcrumbs span { color: var(--amber); }

.prose { max-width: 820px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.6rem; color: var(--navy-600); }
.prose strong { color: var(--navy); }
.prose .intro { font-size: 1.18rem; color: var(--navy-600); border-left: 4px solid var(--amber); padding-left: 1.1rem; }
.prose ul li { margin-bottom: .4rem; }

.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.sidebar { position: sticky; top: 90px; display: grid; gap: 1.2rem; }
.side-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.side-card--cta { background: var(--navy); color: var(--fog); }
.side-card--cta h3 { color: var(--white); }
.side-card--cta p { color: var(--fog); font-size: .92rem; }
.side-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.side-nav a { display: block; padding: .55rem .7rem; border-radius: 8px; font-size: .92rem; color: var(--navy-600); }
.side-nav a:hover, .side-nav .active a { background: var(--amber-100); color: var(--amber-600); }

/* ==========================================================================
   Quote form
   ========================================================================== */
.quote-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.quote-form { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.quote-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); transition: border var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-100); background: var(--white); }
.field textarea { min-height: 110px; resize: vertical; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--fog); padding-block: clamp(3rem, 6vw, 4.5rem) 0; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { max-height: 54px; background: #fff; padding: 8px 12px; border-radius: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: var(--fog); }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.foot-contact { font-size: .92rem; line-height: 1.7; }
.foot-social { display: flex; gap: .8rem; margin-top: 1rem; }
.foot-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); }
.foot-social a:hover { background: var(--amber); transform: translateY(-3px); }
.foot-social svg { width: 18px; height: 18px; fill: var(--fog); }
.foot-social a:hover svg { fill: var(--navy); }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input { flex: 1; padding: .7rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: var(--white); }
.newsletter input::placeholder { color: var(--steel); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.4rem; padding-bottom: 5.5rem; font-size: .85rem; color: var(--steel); display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; justify-content: space-between; align-items: center; }
.footer-credit a { color: var(--amber); font-weight: 600; }
.footer-credit a:hover { color: #fff; }

/* WhatsApp floating */
.wa-pill { position: fixed; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: .55rem; background: #25d366; color: #fff; padding: .55rem 1.1rem .55rem .6rem; border-radius: 999px; box-shadow: 0 8px 22px rgba(37,211,102,.45); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .02em; transition: transform var(--t-fast), box-shadow var(--t-fast); }
.wa-pill:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37,211,102,.55); color: #fff; }
.wa-pill--uae { left: 20px; }
.wa-pill--india { right: 20px; }
.wa-pill__icon { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.wa-pill__icon svg { width: 20px; height: 20px; fill: #fff; }
.wa-pill__label { line-height: 1; }
@media (max-width: 520px) { .wa-pill { padding: .5rem .9rem .5rem .55rem; font-size: .85rem; } .wa-pill--uae { left: 12px; } .wa-pill--india { right: 12px; } .footer-bottom { padding-bottom: 6.5rem; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .split, .quote-wrap { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .header-cta { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-close { display: flex; }
  .main-nav { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 4.5rem 1.4rem 2rem; box-shadow: none; transform: translateX(100%); transition: transform var(--t); overflow-y: auto; z-index: 200; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a { font-size: 1.05rem; padding: .85rem .8rem; border-bottom: 1px solid var(--line); }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 1rem; background: var(--paper); }
  .main-nav .menu-item-has-children > a::after { margin-left: auto; }
}
@media (max-width: 560px) {
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-form .row { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  /* Drop forced line breaks so text wraps naturally on small screens */
  .hero h1 br, .hero__lead br { display: none; }
}

/* ===== Top bar: 2 columns on mobile (contact left, social right) ===== */
@media (max-width: 820px) {
  .topbar { font-size: .76rem; }
  .topbar .container { flex-wrap: nowrap; gap: .5rem .8rem; }
  .topbar__contact { flex: 1 1 auto; min-width: 0; flex-direction: column; gap: .15rem; }
  .topbar__social { flex: 0 0 auto; }
}
@media (max-width: 420px) {
  .topbar__social { gap: .55rem; }
  .topbar__social a { width: 26px; height: 26px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fade-up, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== Service detail featured image ===== */
.prose-feature { margin: 0 0 1.8rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.prose-feature img { width: 100%; height: clamp(220px, 38vw, 420px); object-fit: cover; display: block; }

/* ===== About Us image gallery ===== */
.about-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.about-gallery__item { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.about-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.about-gallery__item:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .about-gallery { grid-template-columns: 1fr 1fr; } }

/* ===== Projects page ===== */
.project-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.project--flip .project__body { order: 2; }
.project__body h2 { margin: .3rem 0 .6rem; }
.project__scope-title { font-size: 1rem; color: var(--navy-600); margin: 1.2rem 0 .6rem; text-transform: uppercase; letter-spacing: .04em; }
.project__scope { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.project__scope li { position: relative; padding-left: 1.6rem; color: var(--steel); }
.project__scope li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--amber); }
.project__media { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.project__img { margin: 0; border-radius: calc(var(--radius) - 2px); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.project__img--lead { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.project__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.project__img:hover img { transform: scale(1.05); }
@media (max-width: 860px) { .project, .project--flip .project__body { grid-template-columns: 1fr; order: 0; } }

/* ==========================================================================
   Home: About visual (plain animated image, content on left)
   ========================================================================== */
.about-coordinate { margin: 1.4rem 0 1.6rem; }
.about-coordinate h3 { margin: 0 0 .8rem; color: var(--navy); }
.about-coordinate ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.about-coordinate li { position: relative; padding-left: 1.7rem; color: #41515f; }
.about-coordinate li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--amber); transform: rotate(45deg); }

.about-visual { position: relative; display: grid; place-items: center; }
.about-visual__frame { margin: 0; width: 100%; max-width: 460px; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 2; animation: floatY 6s ease-in-out infinite; }
.about-visual__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 8s ease; }
.about-visual:hover .about-visual__frame img { transform: scale(1.08); }
.about-visual__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,31,51,.28)); }
.about-visual__badge { position: absolute; z-index: 3; left: 6%; bottom: 8%; background: var(--white); color: var(--navy); border-radius: 14px; padding: .7rem 1.1rem; box-shadow: var(--shadow-md); font-size: .85rem; font-weight: 600; animation: floatY 6s ease-in-out infinite .6s; }
.about-visual__badge strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--amber); line-height: 1; }
.about-visual__ring { position: absolute; z-index: 1; width: 78%; aspect-ratio: 1; right: -8%; top: -6%; border: 2px dashed rgba(245,165,36,.55); border-radius: 50%; animation: spin 24s linear infinite; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .about-visual__frame, .about-visual__badge, .about-visual__ring { animation: none; } }

/* ==========================================================================
   Home: CTA with quote form (two columns, left aligned)
   ========================================================================== */
.cta--form { text-align: left; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cta--form > * { min-width: 0; }
.cta--form .cta__intro .cta__marquee { max-width: 100%; }
.cta--form h2, .cta--form p { margin-inline: 0; }
.cta--form .cta__actions { justify-content: flex-start; }
.cta--form .cta__intro { position: relative; z-index: 2; }
.cta__form { position: relative; z-index: 2; background: var(--white); border-radius: 18px; padding: 1.8rem; box-shadow: var(--shadow-lg); }
.cta__form h3 { margin: 0 0 1.1rem; color: var(--navy); }
.quote-form .qf-row { margin-bottom: .8rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff; box-sizing: border-box; transition: border-color var(--t), box-shadow var(--t);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,165,36,.18); }
.quote-form textarea { resize: vertical; }
.qf-submit { width: 100%; margin-top: .3rem; justify-content: center; }
/* CF7 fallback styling, if plugin used */
.cta__form .wpcf7 input:not([type=submit]), .cta__form .wpcf7 select, .cta__form .wpcf7 textarea { width: 100%; padding: .8rem .95rem; border: 1px solid var(--line); border-radius: 10px; box-sizing: border-box; margin-bottom: .7rem; }
.cta__form .wpcf7 input[type=submit] { background: var(--amber); color: var(--navy); border: 0; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; cursor: pointer; width: 100%; }
@media (max-width: 860px) { .cta--form { grid-template-columns: 1fr; } }

/* ==========================================================================
   Testimonials slider (2 per view)
   ========================================================================== */
.tst-slider { position: relative; }
.tst-viewport { overflow: hidden; }
.tst-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.tst-slide { flex: 0 0 50%; max-width: 50%; padding: .65rem; box-sizing: border-box; }
.tst-slide .tst-card { height: 100%; }
.tst-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.6rem; }
.tst-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); cursor: pointer; display: inline-grid; place-items: center; transition: background var(--t), color var(--t), transform var(--t); }
.tst-arrow svg { width: 18px; height: 18px; }
.tst-arrow:hover { background: var(--navy); color: #fff; }
.tst-arrow:not(.tst-arrow--next) svg { transform: rotate(180deg); }
.tst-dots { display: flex; gap: .5rem; }
.tst-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; padding: 0; transition: background var(--t), width var(--t); }
.tst-dot.is-active { background: var(--amber); width: 24px; border-radius: 6px; }
@media (max-width: 720px) { .tst-slide { flex: 0 0 100%; max-width: 100%; } }

/* ==========================================================================
   Services landing enhancements
   ========================================================================== */
.svc-hero-stats { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 2rem; }
.svc-hero-stats > div { display: flex; flex-direction: column; }
.svc-hero-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--amber); line-height: 1; }
.svc-hero-stats span { font-size: .82rem; letter-spacing: .04em; color: #fff; text-transform: uppercase; margin-top: .35rem; }

.svc-grid--landing .svc-card { position: relative; }
.svc-card__no { position: absolute; top: .9rem; left: 1.1rem; z-index: 3; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--amber); background: rgba(12,31,51,.6); border-radius: 8px; padding: .15rem .5rem; backdrop-filter: blur(3px); }
.svc-card--img .svc-card__no { color: #fff; background: rgba(12,31,51,.55); }

.svc-process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.svc-step { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.6rem 1.4rem; transition: transform var(--t), background var(--t); }
.svc-step:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); }
.svc-step__no { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--amber); display: block; margin-bottom: .5rem; }
.svc-step h3 { color: #fff; font-size: 1.08rem; margin: 0 0 .5rem; }
.svc-step p { color: var(--fog); font-size: .92rem; margin: 0; }
.svc-step::after { content: ""; position: absolute; top: 2.1rem; right: -.85rem; width: 1.2rem; height: 2px; background: rgba(245,165,36,.5); display: none; }
@media (min-width: 861px) { .svc-step:not(:last-child)::after { display: block; } }
@media (max-width: 860px) { .svc-process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .svc-process { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-layout { display: grid; gap: 2.4rem; max-width: 900px; margin-inline: auto; }
.faq-group__title { font-size: 1.4rem; color: var(--navy); margin: 0 0 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--amber); display: inline-block; }
.faq-accordion { display: grid; gap: .8rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.faq-item.is-open { box-shadow: var(--shadow-md); border-color: rgba(245,165,36,.5); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--navy); }
.faq-q__icon { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber-100); }
.faq-q__icon::before, .faq-q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--amber-600); border-radius: 2px; transform: translate(-50%, -50%); transition: transform var(--t); }
.faq-q__icon::before { width: 11px; height: 2px; }
.faq-q__icon::after { width: 2px; height: 11px; }
.faq-item.is-open .faq-q__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .4s ease; }
.faq-a__inner { padding: 0 1.3rem 1.2rem; }
.faq-a p { margin: 0; color: #41515f; font-size: .96rem; line-height: 1.7; }

/* Legal pages */
.legal-prose h2 { font-size: 1.18rem; color: var(--navy-600); margin-top: 1.9rem; }
.legal-prose p { color: #41515f; }

/* ==========================================================================
   Blog pagination + single post navigation
   ========================================================================== */
.blog-pagination { margin-top: 2.8rem; }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 .9rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--navy); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.blog-pagination a.page-numbers:hover { background: var(--amber-100); color: var(--amber-600); border-color: var(--amber); transform: translateY(-2px); }
.blog-pagination .page-numbers.current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.blog-pagination .page-numbers.dots { border: 0; background: transparent; min-width: 28px; }
.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next { gap: .35rem; font-weight: 700; }

/* Single post prev/next navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.post-nav__link { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.post-nav__link:hover { background: var(--amber-100); border-color: var(--amber); transform: translateY(-3px); }
.post-nav__link--next { text-align: right; }
.post-nav__link--prev:only-child { grid-column: 1; }
.post-nav__link--next:only-child { grid-column: 2; }
.post-nav__dir { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--amber-600); }
.post-nav__title { font-family: var(--font-display); font-weight: 600; color: var(--navy); line-height: 1.3; }
@media (max-width: 560px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__link--next { text-align: left; }
  .post-nav__link--prev:only-child,
  .post-nav__link--next:only-child { grid-column: 1; }
}

/* ==========================================================================
   Form spam protection: captcha + honeypot
   ========================================================================== */
.qf-captcha { margin-bottom: .9rem; }
.qf-captcha__label { display: block; font-size: .9rem; margin-bottom: .35rem; color: inherit; }
.qf-captcha__label strong { font-weight: 700; }
.qf-captcha__input {
  width: 120px; max-width: 100%; padding: .65rem .8rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; background: var(--white); color: var(--ink);
}
.qf-captcha.has-error .qf-captcha__input { border-color: #b32d2e; outline: 2px solid rgba(179,45,46,.25); }
.qf-captcha__error { display: block; margin-top: .35rem; font-size: .85rem; color: #ff6b6b; }
.cta__form .qf-captcha__error { color: #ffb4b4; }

/* Honeypot: kept in the layout for bots but invisible/unfocusable for humans. */
.qf-hp {
  position: absolute !important; left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ==========================================================================
   Form submission notices (success / error)
   ========================================================================== */
.qf-notice { padding: .85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; line-height: 1.5; }
.qf-notice--ok  { background: #e7f6ec; color: #14532d; border: 1px solid #7ed9a0; }
.qf-notice--err { background: #fdecec; color: #7f1d1d; border: 1px solid #f0a3a3; }
.cta__form .qf-notice--ok  { background: rgba(126,217,160,.18); color: #d6ffe4; border-color: rgba(126,217,160,.5); }
.cta__form .qf-notice--err { background: rgba(240,163,163,.18); color: #ffdada; border-color: rgba(240,163,163,.5); }

/* ==========================================================================
   Thank You page
   ========================================================================== */
.thankyou { max-width: 640px; margin: 0 auto; text-align: center; }
.thankyou__check {
  display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1.4rem;
  border-radius: 50%; background: var(--amber-100, #fff4e0); color: var(--amber-600, #b45309);
}
.thankyou__title { margin: 0 0 .6rem; }
.thankyou__text { color: var(--navy-600, #475569); font-size: 1.08rem; line-height: 1.6; margin: 0 auto 1.6rem; max-width: 52ch; }
.thankyou__body { text-align: left; margin-bottom: 1.6rem; }
.thankyou__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 2.2rem; }
.thankyou__contacts { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; justify-content: center; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.thankyou__contacts > div { display: flex; flex-direction: column; gap: .2rem; }
.thankyou__region { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--amber-600, #b45309); }
.thankyou__contacts a { font-weight: 600; color: var(--navy, #0c1f33); }
.thankyou__contacts a:hover { color: var(--amber-600, #b45309); }
