:root {
  --bg: #010c1f;
  --bg-soft: #0b2244;
  --text: #1b6ec7;
  --muted: #526181;
  --brand: #1b6ec7;
  --accent: #0fb5ff;
  --accent-soft: #7dd3fc;
  --panel: #f4f8ff;
  --white: #ffffff;
  --shadow: rgba(9, 22, 38, 0.08);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  transition: background 0.6s ease;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background: none;
}

body::after {
  background: none;
}

body.theme-aurora {
  background: radial-gradient(circle at 20% 15%, #f1f7ff 0%, #d9ecff 50%, #c8ecff 100%);
}

body.theme-aurora::before {
  background: radial-gradient(circle at 70% 20%, rgba(15, 181, 255, 0.35), transparent 55%),
    radial-gradient(circle at 15% 45%, rgba(27, 110, 199, 0.25), transparent 55%);
}

body.theme-aurora::after {
  background: radial-gradient(circle at 65% 20%, rgba(15, 84, 217, 0.25), transparent 60%);
}

body.policy-page {
  background: linear-gradient(135deg, #0a1f3d 0%, #0b3d6c 48%, #0a6bb0 100%);
  color: #e6f1ff;
}

body.policy-page::before {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at 78% 8%, rgba(15, 181, 255, 0.2), transparent 38%);
}

body.policy-page::after {
  background: radial-gradient(circle at 65% 25%, rgba(15, 84, 217, 0.3), transparent 55%);
}

body.policy-page main {
  padding-top: 2rem;
}

.policy-section {
  max-width: 960px;
  margin: 0 auto 1.5rem auto;
}

.policy-section h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #f5f8ff;
}

.policy-section p {
  margin-top: 0;
  color: #d5e5ff;
}

.policy-section ul {
  margin: 0 0 1rem 1.25rem;
  color: #d5e5ff;
}

.policy-page .policy-section h2 {
  color: #f5f8ff;
}

.policy-page .policy-section p,
.policy-page .policy-section ul {
  color: #d5e5ff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  background: #ffffff;
  color: var(--text);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.4rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
  border-bottom-left-radius: 2.5rem;
  border-bottom-right-radius: 2.5rem;
  box-shadow: 0 30px 80px rgba(2, 9, 24, 0.45);
}
/* Push logo + text down below the nav */
.hero__body {
  margin-top: 2.5rem;
}


/* Tighter padding for the main page hero (leave policy page as-is) */
body:not(.policy-page) .hero {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.4rem, 5vw, 4.25rem) clamp(1.75rem, 4.5vw, 3rem);
}

/* Center everything inside the hero */
.hero__shell {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2.25rem);
}

/* Nav still sits on top */
.primary-nav {
  position: relative;
  z-index: 2;
}

.hero__body {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.6rem);
}


.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
  mix-blend-mode: normal;
  opacity: 0;
  pointer-events: none;
}

.hero__logo-mark {
  position: absolute;
  top: 1.5rem;
  right: clamp(1rem, 4vw, 3.5rem);
  opacity: 0.08;
  pointer-events: none;
  transform: rotate(-2deg);
  z-index: 1;
}

.hero__logo-mark svg {
  display: block;
  width: clamp(150px, 25vw, 260px);
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.3));
}

.primary-nav {
  display: grid;
  grid-template-columns: minmax(240px, auto) 1fr;
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  row-gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-top: 0;
  margin-bottom: 1.65rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
}

/* Stack logo and tagline vertically */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

/* ✅ ONLY CHANGE — enlarged logo */
.brand__logo {
  width: clamp(200px, 40vw, 280px);
  height: auto;
  max-height: none;
  transform: none;
}


.brand__logo-img {
  width: auto;         /* Allow stretching horizontally */
  height: 100%;        /* Fit the small height */
  display: block;
  object-fit: contain; /* Prevent distortion */
}

.policy-page .hero {
  background: linear-gradient(135deg, #0a1f3d 0%, #0b3d6c 48%, #0a6bb0 100%);
  color: #e6f1ff;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  padding-top: 0.2rem;
  padding-bottom: 1.75rem;
}

.policy-page .primary-nav a {
  color: #e8f2ff;
  font-weight: 600;
}

.policy-page .primary-nav {
  margin-top: -0.25rem;
  margin-bottom: 1.5rem;
}

.policy-page .primary-nav a:hover {
  opacity: 1;
}

.policy-page .brand__title {
  color: #ffffff;
}

.policy-page .hero__eyebrow {
  color: #7dd3fc;
}

.policy-page .hero h1 {
  color: #ffffff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.28);
}

.policy-page .hero .lead-copy {
  color: #dce8ff;
}

.policy-page main {
  color: #e6f1ff;
}

.policy-page .section {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
/* END OF CHANGE */

.brand__meta {
  display: flex;
  flex-direction: column;
  margin-left: 0.15rem;
}

.brand__title {
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  display: block;
}

.brand__tagline {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__content {
  max-width: 720px;
  margin-top: clamp(1.15rem, 3vw, 2.35rem);
}

/* Widen main hero copy on the home page without affecting policy pages */
body:not(.policy-page) .hero__content {
  max-width: clamp(880px, 78vw, 1160px);
  margin-top: clamp(0.85rem, 2.5vw, 1.75rem);
}

.hero__eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin: 1rem 0;
  line-height: 1.2;
  color: #0a2344;
  text-shadow: none;
}

/* Slightly tighter hero heading on the home page so the text fits more comfortably */
body:not(.policy-page) .hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0.85rem 0 0.9rem;
  line-height: 1.15;
}

.lead-copy {
  font-size: 1.125rem;
  color: var(--text);
}

.hero .lead-copy {
  color: var(--muted);
}

.hero__carousel {
  margin-top: 2.5rem;
  max-width: none;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-carousel {
  background: linear-gradient(135deg, #0a2344 0%, #0b3d74 55%, #0a62a8 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  padding: 1.25rem 2rem 1.75rem;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.hero-carousel__viewport {
  overflow: hidden;
}

.hero-carousel__track {
  display: flex;
  gap: 0;
  transition: transform 0.65s ease;
  will-change: transform;
}

.hero-carousel__slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  gap: 1rem;
  color: var(--text);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 245, 255, 0.9));
  border-radius: 1rem;
  border: 1px solid rgba(27, 110, 199, 0.14);
  overflow: hidden;
  box-shadow: 0 18px 38px rgba(2, 9, 24, 0.18);
  opacity: 0.4;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-carousel__caption {
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.25rem;
}

.hero-carousel__category {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-carousel__text {
  color: var(--bg);
  font-size: 1.05rem;
}

.hero-carousel__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 1.25rem;
  padding: 0 1rem 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.hero-carousel__thumbs::-webkit-scrollbar {
  height: 8px;
}

.hero-carousel__thumbs::-webkit-scrollbar-thumb {
  background: rgba(27, 110, 199, 0.35);
  border-radius: 999px;
}

.hero-carousel__thumb {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0.85rem;
  border: 1px solid rgba(27, 110, 199, 0.12);
  box-shadow: 0 10px 24px rgba(2, 9, 24, 0.12);
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 260px;
}

.hero-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-carousel__thumb.is-architectural img {
  height: 100%;
}

.hero-carousel__thumbs.is-architectural {
  grid-auto-columns: minmax(300px, 1fr);
  gap: 1.35rem;
}

.hero-carousel__thumbs.is-architectural .hero-carousel__thumb {
  height: 300px;
}

.hero-carousel__thumbs.is-architectural .hero-carousel__thumb img {
  height: 100%;
}

.hero-carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(27, 110, 199, 0.25);
  color: var(--bg-soft);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 3;
}

.hero-carousel__control:hover {
  transform: translateY(-50%) translateY(-1px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.hero-carousel__control.is-prev {
  left: 0.5rem;
}

.hero-carousel__control.is-next {
  right: 0.5rem;
}

.hero-carousel:hover .hero-carousel__control {
  opacity: 1;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 1.5rem;
  border: 1px solid transparent;
  background-size: 200% auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease;
}

.btn-primary {
  background-image: linear-gradient(120deg, #1b6ec7, #0fb5ff, #4cc9ff);
  color: #03152c;
  box-shadow: 0 18px 38px rgba(15, 181, 255, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(27, 110, 199, 0.35);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-3px);
  background-position: right center;
  box-shadow: 0 20px 35px rgba(99, 102, 241, 0.18);
}

main {
  padding: 4rem clamp(1.25rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.section {
  margin: 0;
  padding: clamp(2rem, 4vw, 3.25rem);
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.95), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(27, 110, 199, 0.08);
  box-shadow: 0 30px 70px rgba(6, 24, 57, 0.12);
  backdrop-filter: blur(6px);
}

.section__header {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.section h2 {
  margin: 0.5rem 0 1rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bg-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(180deg, rgba(27, 110, 199, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 1.5rem;
  padding: 1.85rem;
  box-shadow: 0 15px 40px rgba(2, 18, 42, 0.1);
  border: 1px solid rgba(27, 110, 199, 0.1);
  backdrop-filter: blur(8px);
}

.card h3 {
  margin-top: 0;
}

.section--split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.stat-card {
  background: linear-gradient(135deg, #04224d, #0a3b7a 60%, #1555a4);
  color: var(--white);
  padding: 1.75rem;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(1, 19, 48, 0.45);
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.highlight-list {
  padding-left: 1.25rem;
  color: var(--muted);
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-priority {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 0.5rem auto 0;
  max-width: 980px;
  justify-content: center;
  justify-items: stretch;
}

.priority-card {
  background: linear-gradient(180deg, rgba(27, 110, 199, 0.08) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(27, 110, 199, 0.12);
  box-shadow: 0 12px 30px rgba(7, 23, 48, 0.08);
}

.priority-card__title {
  margin: 0 0 0.5rem 0;
  color: var(--bg-soft);
}

.priority-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.section#work .section__header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.work-card {
  background: linear-gradient(160deg, rgba(27, 110, 199, 0.08), rgba(255, 255, 255, 0.95));
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(27, 110, 199, 0.12);
  box-shadow: 0 18px 40px rgba(7, 23, 48, 0.12);
  display: flex;
  flex-direction: column;
}

.work-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: saturate(1.05);
}

.work-card.is-architectural img {
  height: 240px;
}

.work-card figcaption {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.9);
}

.work-card__category {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.work-card__text {
  color: var(--text);
}

.case-study {
  background: linear-gradient(135deg, rgba(27, 110, 199, 0.08), rgba(15, 181, 255, 0.08));
  border-radius: 1.75rem;
  padding: 2.5rem;
  border: 1px solid rgba(27, 110, 199, 0.2);
  box-shadow: 0 25px 60px rgba(6, 24, 57, 0.15);
}

.case-study ul {
  padding-left: 1.25rem;
  color: var(--muted);
}

.case-study .btn-secondary {
  background: linear-gradient(120deg, rgba(15, 181, 255, 0.2), rgba(27, 110, 199, 0.45));
  color: #f0f7ff;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(27, 110, 199, 0.35);
}

.section#contact {
  background: linear-gradient(180deg, #f6faff 0%, #eef4ff 100%);
  border: 1px solid rgba(27, 110, 199, 0.1);
  box-shadow: 0 26px 70px rgba(6, 24, 57, 0.14);
}

.section#contact .section__header {
  max-width: 940px;
  margin-bottom: 2.1rem;
}

.section#contact .section__eyebrow {
  letter-spacing: 0.24em;
  color: #0fb5ff;
}

.section#contact h2 {
  font-size: clamp(2.25rem, 4.8vw, 3.25rem);
  color: #0a2344;
  margin: 0.35rem 0 0.85rem 0;
}

.section#contact .lead-copy {
  color: #1f66c2;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: clamp(1.35rem, 2vw, 1.85rem);
  margin-top: 0.75rem;
}

.contact-card {
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.85), rgba(239, 246, 255, 0.95)),
    linear-gradient(180deg, #f3f7ff 0%, #e6f1ff 100%);
  border-radius: 1.6rem;
  padding: clamp(1.75rem, 3vw, 2.3rem);
  border: 1px solid rgba(27, 110, 199, 0.16);
  box-shadow: 0 18px 48px rgba(7, 23, 48, 0.12);
}

.contact-card h3 {
  margin: 0 0 1rem 0;
  color: #1555a4;
  font-size: 1.35rem;
}

.contact-card p {
  margin: 0.2rem 0;
  color: #1f66c2;
}

.contact-card strong {
  color: #0d2f5f;
}

.contact-card h3:not(:first-child) {
  margin-top: 1rem;
}

.contact-card a {
  color: #1b6ec7;
  font-weight: 600;
}

.reassurance {
  margin-top: 1.75rem;
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.95), rgba(227, 237, 251, 0.95));
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1.4rem, 3vw, 1.9rem);
  border-radius: 1.3rem;
  border: 1px solid rgba(27, 110, 199, 0.16);
  color: #163c74;
  box-shadow: 0 14px 36px rgba(7, 23, 48, 0.1);
}

.site-footer {
  border-top: none;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  background: linear-gradient(120deg, #02122d, #053169 65%, #0b4a8c);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}

.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, #1b6ec7, #0fb5ff);
  color: #021024;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 25px 35px rgba(27, 110, 199, 0.35);
  transform: translateY(150%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 5;
}

.scroll-top.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.scroll-top:focus {
  outline: 3px solid rgba(27, 110, 199, 0.4);
  outline-offset: 4px;
}

.site-popover {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: min(360px, calc(100% - 3rem));
  transform: translateY(180%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
  z-index: 6;
}

.site-popover.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-popover__card {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1.5rem;
  padding: 2.25rem 1.85rem 1.85rem 1.85rem;
  border: 1px solid rgba(27, 110, 199, 0.25);
  box-shadow: 0 25px 55px rgba(7, 23, 48, 0.2);
  overflow: hidden;
}

.site-popover__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(27, 110, 199, 0.2), transparent 55%);
  pointer-events: none;
}

.site-popover__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 110, 199, 0.3);
  background: rgba(27, 110, 199, 0.08);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-popover__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.site-popover__card h3 {
  margin: 0 0 0.35rem 0;
  color: var(--bg-soft);
  font-size: 1.25rem;
}

.site-popover__card p {
  margin: 0 0 1rem 0;
  color: var(--muted);
}

.site-popover__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-popover__actions .btn-primary,
.site-popover__actions .btn-ghost {
  margin-top: 0;
}

.site-popover__actions .btn-ghost {
  color: var(--muted);
}

@keyframes popSlide {
  from {
    transform: translateY(25px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.site-popover.is-visible .site-popover__card {
  animation: popSlide 0.6s ease forwards;
}

@media (max-width: 1280px) {
  .primary-nav {
    grid-template-columns: 1fr;
    align-items: flex-start;
    column-gap: 0;
    row-gap: 0.75rem;
  }

  .primary-nav ul {
    width: 100%;
    gap: 1rem;
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  body:not(.policy-page) .hero {
    padding: clamp(1.5rem, 3.5vw, 2.35rem) clamp(1rem, 5vw, 2rem) clamp(1.75rem, 4vw, 2.35rem);
  }

  .primary-nav a {
    font-size: 1.05rem;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero-carousel {
    padding: 1.1rem 1.35rem 1.25rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding: 1.25rem 1.15rem 1.75rem;
    border-bottom-left-radius: 1.5rem;
    border-bottom-right-radius: 1.5rem;
  }

  .primary-nav {
    grid-template-columns: 1fr;
    align-items: flex-start;
    row-gap: 0.6rem;
  }

  .primary-nav ul {
    width: 100%;
    gap: 0.8rem;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .primary-nav a {
    font-size: 1rem;
  }

  .brand__logo {
    width: clamp(200px, 40vw, 280px);
    height: auto;
    max-height: none;
    transform: none;
  }

  .brand__title {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.1rem);
  }

  .lead-copy {
    font-size: 1rem;
  }

  .hero__carousel {
    margin-top: 1.5rem;
  }

  .hero-carousel__thumbs {
    grid-auto-columns: minmax(200px, 1fr);
    gap: 0.85rem;
    padding: 0 0.35rem 0.9rem;
  }

  .hero-carousel__control {
    display: grid;
      width: 38px;
      height: 38px;
      top: 46%;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
      z-index: 4;
    }
    
     .hero-carousel__control.is-prev {
       left: 30;
       transform: translate(-50%, -50%);
    }
    
    .hero-carousel__control.is-next {
      right: 0;
      transform: translate(-50%, -50%);
    }

  main {
    padding: 2.25rem 1.25rem;
    gap: 1.75rem;
  }

  .section {
    padding: 1.45rem 1.25rem;
  }

  .section h2 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .section--split {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .work-gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-popover {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}

@media (max-width: 480px) {
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    width: 100%;
  }

  .hero-carousel__thumb {
    height: 190px;
  }

  .reassurance {
    padding: 1rem 1.1rem;
  }

  .site-footer {
    padding: 1.5rem 1rem;
  }

  .scroll-top {
    width: 2.75rem;
    height: 2.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

/* === RESPONSIVE HEADER & NAV (clean version) === */

/* Mobile-first: stacked logo and nav */
.primary-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative; /* keep it above hero background */
  z-index: 2;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #0a2344;
}

/* Logo + tagline on mobile */
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.brand__logo {
  width: min(70vw, 260px);
  height: auto;
}

.brand__logo-img {
  width: 100%;
  height: auto;
}

.brand__tagline {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #004c99;
}

/* Hero content spacing on mobile */
.hero__content {
  margin-top: 0.75rem;
  max-width: 100%;
}

/* Tablet and up: logo left, links on the right in a single row */
@media (min-width: 768px) {
  .primary-nav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .primary-nav ul {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .primary-nav a {
    font-size: 1.1rem;
    font-weight: 600;
  }

  .brand__logo {
    width: clamp(260px, 32vw, 420px);
  }

  .hero__content {
    max-width: 980px;
    margin-top: 1rem;
  }
}

/* Large desktop: slightly larger hero heading & comfy copy width */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: clamp(2.3rem, 3.4vw, 3.1rem);
  }

  .hero .lead-copy {
    max-width: 1180px;
  }
}
