/* ==========================================================
   1. DESIGN TOKENS AND GLOBAL STYLES
   Change the variables below to update colours across the site.
   ========================================================== */
:root {
  --ink: #102f39;
  --deep: #063b4b;
  --deep-2: #032b37;
  --aqua: #0bb4d2;
  --aqua-light: #83e7f5;
  --white: #ffffff;
  --muted: #63767d;
  --line: #dbe7ea;
  --surface: #f4fafb;
  --radius: 24px;
  --shadow: 0 20px 60px rgba(3, 49, 62, 0.14);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
}
.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.section {
  padding: 64px 0;
}
.section-label,
.eyebrow {
  margin: 0 0 18px;
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0 0 24px;
  font-size: clamp(2.15rem, 4.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.section-heading {
  max-width: 850px;
  margin-bottom: 36px;
}
.section-heading > p:last-child {
  color: var(--muted);
  max-width: 720px;
}
.section-heading > .section-label:last-child {
  color: var(--aqua);
}

/* ==========================================================
   2. HEADER AND DESKTOP NAVIGATION
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--ink);
  background: var(--surface);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(244, 250, 251, 0.96);
  box-shadow: 0 8px 24px rgba(3, 49, 62, 0.12);
  backdrop-filter: blur(10px);
}
.nav {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  transition: height 0.2s ease;
}
.site-header.is-scrolled .nav {
  height: 68px;
}
.site-header.is-scrolled .brand img {
  width: 108px;
  height: 40px;
  transition: width 0.2s ease, height 0.2s ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.08em;
}
.site-header .brand {
  transform: translateY(4px);
}
.brand img {
  width: 122px;
  height: 44px;
  display: block;
  object-fit: contain;
  object-position: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}
.nav-links a:hover {
  color: var(--aqua-light);
}
.nav-links > a,
.nav-dropdown-toggle {
  position: relative;
}
.nav-links > a[aria-current="location"],
.nav-dropdown-toggle[aria-current="location"] {
  color: var(--deep);
}
.nav-links > a[aria-current="location"]::after,
.nav-dropdown-toggle[aria-current="location"]::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--aqua);
  content: "";
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--aqua-light);
}
.nav-dropdown-toggle span {
  font-size: 1.1rem;
  line-height: 1;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 22px);
  right: -150px;
  width: 390px;
  display: grid;
  gap: 6px;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 16px 14px;
  color: var(--ink);
  border-radius: 14px;
}
.nav-dropdown-menu a:hover {
  color: var(--ink);
  background: var(--surface);
}
.nav-dropdown-number {
  color: var(--aqua);
  font-size: 0.85rem;
  font-weight: 800;
}
.nav-dropdown-menu strong,
.nav-dropdown-menu small {
  display: block;
}
.nav-dropdown-menu strong {
  font-size: 1rem;
}
.nav-dropdown-menu small {
  margin-top: 6px;
  padding-left: 9px;
  color: var(--muted);
  border-left: 2px solid var(--aqua-light);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}
.menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px;
  background: currentColor;
}

/* ==========================================================
  3. HERO
  The hero background is built from CSS gradients and decorative geometry.
   ========================================================== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-image {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(11,180,210,.25),
            transparent 35%
        ),

        radial-gradient(
            circle at 85% 15%,
            rgba(255,255,255,.08),
            transparent 25%
        ),

        radial-gradient(
            circle at 70% 80%,
            rgba(0,180,255,.15),
            transparent 30%
        ),

        linear-gradient(
            135deg,
            #021c25 0%,
            #063b4b 45%,
            #0a5568 100%
        );
}

/* Subtle grid */
.hero-image::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

    background-size: 80px 80px;
}

/* Decorative wave circles */
.hero-image::after {
    content: "";

    position: absolute;

    width: 900px;
    height: 900px;

    right: -300px;
    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    border: 1px solid rgba(255,255,255,.08);

    box-shadow:
        0 0 0 120px rgba(255,255,255,.04),
        0 0 0 240px rgba(255,255,255,.02);
}
.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(2, 32, 42, 0.91) 0%,
    rgba(2, 32, 42, 0.58) 50%,
    rgba(2, 32, 42, 0.18) 100%
  );
}
.hero-content {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  z-index: 2;
  transform: translateY(calc(-50% + 40px));
}
.hero-content.reveal.visible {
  transform: translateY(calc(-50% + 40px));
}

.hero h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}
.hero-copy {
  max-width: 670px;
  margin: 28px 0 36px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 2vw, 1.22rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  transition: 0.25s;
}
.button-primary {
  color: #052e3a;
  background: var(--aqua);
}
.button-primary:hover {
  background: var(--aqua-light);
  transform: translateY(-2px);
}
.button-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.button-ghost:hover {
  color: var(--deep);
  background: var(--white);
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--white);
  text-decoration: none;
  font-size: 1.6rem;
}

/* ==========================================================
   4. ABOUT
   Two columns on desktop and one column on smaller screens.
   ========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 80px;
  align-items: center;
}
.about-text .lead {
  margin: 0 0 18px;
  font-size: 1.3rem;
}
.about-text > p:not(.section-label):not(.lead) {
  color: var(--muted);
}
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}
.highlights span {
  padding: 9px 14px;
  color: var(--deep);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}
.about-visual {
  position: relative;
  align-self: stretch;
  aspect-ratio: 4 / 5;
  background: url("assets/images/about/about.jpg")
              center center / cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.about-visual::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  content: "";
  background: var(--aqua);
}

/* ==========================================================
   5. STRUCTURE FEATURES
   ========================================================== */







   .structure {
  color: var(--white);
  background: var(--deep);
}
.structure .section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.66);
}
.structure-content {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: start;
  gap: 16px;
}

.structure-visuals {
  display: grid;
  grid-template-rows: repeat(2, 180px);
  align-self: center;
  gap: 12px;
}

.structure-visual {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(131, 231, 245, 0.13), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.structure-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 72%);
}

.structure-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.structure-visual:hover img {
  transform: scale(1.035);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 152px;
  padding: 18px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 20px;

  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--aqua);
  border: 1px solid rgba(131, 231, 245, 0.32);
  border-radius: 50%;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h3 {
  margin: 12px 0 6px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ==========================================================
   6. CIVIL CONSTRUCTION
   ========================================================== */
.construction {
  background: var(--surface);
}
.construction-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: start;
}
.construction-intro {
  position: sticky;
  top: 40px;
}
.construction-intro > p:last-child {
  color: var(--muted);
}
.construction-details {
  display: grid;
  gap: 20px;
  padding-top: 44px;
}
.construction-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.construction-list article:first-child {
  padding-top: 0;
}
.construction-list span {
  color: var(--aqua);
  font-weight: 800;
}
.construction-list h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}
.construction-list p {
  margin: 0;
  color: var(--muted);
}
.construction-image-button {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: zoom-in;
}
.construction-image-button::after {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 26px;
  height: 26px;
  content: "+";
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(6, 59, 75, 0.82);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  transform: translateY(4px);
  transition: 0.2s ease;
}
.construction-image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.construction-image-button:hover img,
.construction-image-button:focus-visible img {
  transform: scale(1.07);
}
.construction-image-button:hover::after,
.construction-image-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.construction-image-button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}
.construction-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ==========================================================
   7. AUTOMATIC GALLERY
   Cards are generated by script.js from gallery-data.js.
   ========================================================== */
.gallery-section > .container > .section-heading {
  margin-bottom: 24px;
}
.gallery-section > .container > .section-heading h2 {
  margin: 0 0 18px;
  font-size: 0.74rem;
  line-height: 1.65;
  letter-spacing: 0.18em;
}
.gallery-panel {
  margin-bottom: 48px;
  padding: 0;
}
.gallery-panel:last-child {
  margin-bottom: 0;
}
.gallery-panel .projects-heading {
  margin-bottom: 14px;
}
.gallery-subsection-title {
  margin: 0 0 6px;
  color: var(--deep);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}
.gallery-panel .gallery-subsection-heading .section-label {
  margin-bottom: 6px;
  color: var(--aqua);
}
.gallery-panel[id] {
  scroll-margin-top: 24px;
}
.gallery-subsection-heading {
  max-width: 690px;
  margin-bottom: 22px;
}
.gallery-subsection-heading p {
  margin: 0;
  color: var(--muted);
}
.projects-heading {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: none;
  margin: 0 0 12px;
}
.featured-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr;
  aspect-ratio: 2 / 1;
  gap: 14px;
  margin-bottom: 14px;
}
.featured-image-button {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--deep);
  cursor: pointer;
}
.featured-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.featured-image-button::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  content: "+";
  place-items: center;
  color: var(--deep);
  background: var(--aqua);
  border-radius: 50%;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateY(5px);
  transition: 0.25s ease;
}
.featured-image-button:hover img,
.featured-image-button:focus-visible img {
  transform: scale(1.04);
}
.featured-image-button:hover::after,
.featured-image-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.featured-image-button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}
.concept-projects {
  margin-top: 20px;
  border-bottom: 1px solid var(--line);
}
.concept-project-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.concept-project-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 12px;
}
.concept-project-number {
  color: var(--aqua);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.concept-project-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.concept-project-stage {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}
.concept-project-drawings {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 0;
  background: transparent;
}
.concept-project-drawings.has-multiple-drawings {
  grid-template-columns: minmax(0, 1fr);
}
.concept-image-button {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: zoom-in;
}
.concept-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
}
.concept-drawing-image {
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 1px solid var(--line);
}
.concept-drawing-image img {
  object-fit: contain;
}
.has-multiple-drawings .concept-drawing-image {
  aspect-ratio: 4 / 3;
}
.concept-result-image {
  aspect-ratio: 4 / 3;
}
.concept-result-image img {
  object-fit: cover;
}
.concept-image-button:hover img,
.concept-image-button:focus-visible img {
  transform: scale(1.035);
}
.concept-image-button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
}
.concept-project-arrow {
  justify-self: center;
  align-self: center;
}
.project-flow-arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--deep);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.project-flow-arrow svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
.photo-card:hover img {
  transform: scale(1.045);
}
.photo-card::after {
  content: "+";
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--white);
  background: rgba(3, 49, 62, 0.72);
  border-radius: 999px;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-card:hover::after {
  opacity: 1;
}
.photo-gallery {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--aqua) var(--line);
}
.photo-card {
  flex: 0 0 auto;
  width: max-content;
  height: auto;
  padding: 0;
  overflow: visible;
  scroll-snap-align: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.photo-card img {
  display: block;
  width: auto;
  max-width: 240px;
  height: 150px;
  object-fit: contain;
  transition: transform 0.5s;
}
.photo-gallery-primary {
  gap: 18px;
}
.photo-gallery-primary .photo-card img {
  width: min(480px, 42vw);
  max-width: none;
  height: clamp(260px, 25vw, 360px);
  object-fit: cover;
  border-radius: 8px;
}
/* LIGHTBOX */
.lightbox {
  width: min(1100px, calc(100% - 160px));
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}
.lightbox::backdrop {
  background: rgba(0, 20, 26, 0.92);
  backdrop-filter: blur(8px);
}
.lightbox-stage {
  position: relative;
}
.lightbox figure {
  margin: 0;
}
.lightbox img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 16px;
}
.lightbox figcaption {
  padding-top: 12px;
  color: var(--white);
  text-align: center;
  font-weight: 700;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-close {
  top: -58px;
  right: 0;
  width: 46px;
  height: 46px;
  padding: 0;
}
.lightbox-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2.2;
}
.lightbox-nav {
  top: 50%;
  width: 50px;
  height: 50px;
  padding: 0;
  transform: translateY(-50%);
}
.lightbox-nav svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.lightbox-prev {
  left: -64px;
}
.lightbox-next {
  right: -64px;
}

@media (max-width: 760px) {
  .lightbox {
    width: min(100% - 32px, 1100px);
  }
  .lightbox-stage {
    padding-bottom: 62px;
  }
  .lightbox-close,
  .lightbox-nav {
    top: auto;
    bottom: 0;
    transform: none;
  }
  .lightbox-prev {
    left: calc(50% - 76px);
  }
  .lightbox-close {
    right: calc(50% - 23px);
  }
  .lightbox-next {
    right: calc(50% - 76px);
  }
}

/* ==========================================================
   8. CONTACT AND FOOTER
   ========================================================== */
.contact {
  color: #062f3a;
  background: var(--aqua);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 82px;
  align-items: center;
}
.section-label.light {
  color: var(--white);
}
.contact-cta {
  margin-top: 22px;
  padding: 13px 20px;
  color: var(--deep);
  background: var(--white);
  border: 1px solid rgba(6, 59, 75, 0.28);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.contact-cta:hover,
.contact-cta:focus-visible {
  background: var(--aqua-light);
  border-color: var(--aqua-light);
  transform: translateY(-2px);
}
.contact-cta:focus-visible {
  outline: 3px solid rgba(6, 59, 75, 0.3);
  outline-offset: 3px;
}

/* Quote modal styles keep the form aligned with the existing Allpool palette. */
.quote-modal {
  width: min(680px, calc(100% - 32px));
  max-height: min(760px, calc(100% - 32px));
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}
.quote-modal::backdrop {
  background: rgba(2, 32, 42, 0.78);
  backdrop-filter: blur(7px);
}
.quote-modal-panel {
  position: relative;
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(3, 49, 62, 0.26);
}
.quote-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}
.quote-modal-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}
.quote-modal-heading {
  max-width: 540px;
  padding-right: 42px;
  margin-bottom: 26px;
}
.quote-modal-heading .section-label {
  margin-bottom: 10px;
}
.quote-modal-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
}
.quote-modal-heading p:last-child {
  margin: 0;
  color: var(--muted);
}
.quote-form,
.quote-form-grid {
  display: grid;
  gap: 16px;
}
.quote-form[hidden],
.quote-modal-heading[hidden],
.quote-success[hidden] {
  display: none;
}
.quote-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quote-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}
.quote-form label span {
  color: #c54141;
}
.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.quote-form textarea {
  min-height: 104px;
  resize: vertical;
}
.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(11, 180, 210, 0.16);
}
.quote-form-status {
  min-height: 1.3em;
  margin: 0;
  color: #b13e3e;
  font-size: 0.86rem;
}
.quote-form-submit {
  justify-self: start;
  padding: 13px 22px;
  color: #052e3a;
  background: var(--aqua);
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}
.quote-form-submit:hover {
  background: var(--aqua-light);
}
.quote-form-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}
.quote-success {
  display: grid;
  width: min(100%, 520px);
  min-height: 250px;
  margin-inline: auto;
  place-items: center;
  padding: 38px 28px;
  color: var(--deep);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
}
.quote-success::before {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  content: "✓";
  place-items: center;
  color: var(--white);
  background: var(--aqua);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 800;
}
.quote-success > * {
  grid-column: 1;
}
.quote-success strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
.quote-success p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .quote-modal {
    width: calc(100% - 24px);
  }
  .quote-modal-panel {
    padding: 28px 20px 22px;
    border-radius: 12px;
  }
  .quote-modal-close {
    top: 13px;
    right: 13px;
  }
  .quote-form-grid {
    grid-template-columns: 1fr;
  }
  .quote-form-submit {
    width: 100%;
  }
}
.contact-card {
  padding: 16px 34px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card > a,
.contact-card > .contact-address {
  display: flex;
  flex-direction: column;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.contact-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-card strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
  overflow-wrap: anywhere;
}
.socials {
  display: flex;
  gap: 24px;
  padding: 23px 0 12px;
}
.socials a {
  text-decoration: none;
  font-weight: 800;
}
.footer {
  min-height: 88px;
  padding: 16px 0;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand {
  color: var(--ink);
}
.footer p {
  margin: 0;
  font-size: 0.86rem;
}

/* ==========================================================
   9. SCROLL ANIMATION
   JavaScript adds the visible class when an element appears.
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================
   10. TABLET LAYOUT: iPad and similar devices
   ========================================================== */
@media (max-width: 1024px) {
  .site-header.is-scrolled .nav {
    height: 62px;
  }
  .menu-toggle {
    display: block;
    z-index: 3;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    color: var(--white);
    background: rgba(3, 49, 62, 0.98);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 13px;
  }
  .nav-links > a[aria-current="location"],
  .nav-dropdown-toggle[aria-current="location"] {
    color: var(--aqua-light);
  }
  .nav-links > a[aria-current="location"]::after,
  .nav-dropdown-toggle[aria-current="location"]::after {
    display: none;
  }
  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 13px;
    color: var(--white);
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    width: auto;
    margin: 0 0 8px;
    gap: 4px;
    padding: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    display: grid;
  }
  .nav-dropdown-menu a {
    padding: 14px 12px;
    color: var(--white);
  }
  .nav-dropdown-menu a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-dropdown-menu small {
    color: rgba(255, 255, 255, 0.78);
    border-color: var(--aqua);
  }
  .about-grid,
  .construction-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .construction-intro {
    position: static;
  }
  .construction-details {
    padding-top: 0;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .structure-content {
    grid-template-columns: 1fr;
  }
  .structure-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 16px;
    order: 0;
  }
  .structure-visual {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .structure-visual img {
    object-fit: contain;
    padding: 8px;
  }
  .feature-card {
    min-height: 152px;
    padding: 18px;
  }

  .feature-card h3 {
    margin: 12px 0 6px;
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }
  .photo-card {
    height: auto;
  }
  .photo-card img {
    max-width: 210px;
    height: 136px;
  }
  .photo-gallery-primary .photo-card img {
    width: 44vw;
    max-width: none;
    height: 280px;
  }
  .featured-gallery {
    aspect-ratio: 2 / 1;
  }
}

/* ==========================================================
   11. MOBILE LAYOUT
   ========================================================== */
@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }
  .nav {
    height: 74px;
  }
  .section {
    padding: 52px 0;
  }
  .gallery-section {
    padding-top: 48px;
  }
  .gallery-section > .container > .section-heading {
    margin-bottom: 18px;
  }
  .gallery-panel {
    margin-bottom: 32px;
    padding: 0;
  }
  .gallery-panel .projects-heading {
    margin-bottom: 10px;
  }
  .gallery-subsection-heading {
    margin-bottom: 10px;
  }
  .projects-heading {
    gap: 4px;
    margin-bottom: 10px;
  }
  .about {
    padding-bottom: 0;
  }
  .hero {
    min-height: 700px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-visual {
    width: 100vw;
    height: min(178vw, 700px);
    margin-left: calc((100% - 100vw) / 2);
    margin-top: 36px;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    border: 0;
    border-radius: 0;
  }
  .about-visual::after {
    display: none;
  }
  .about-visual.reveal {
    opacity: 1;
    transform: none;
  }
  .construction-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .structure-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 120px;
    min-height: auto;
    gap: 12px;
    order: 0;
  }
  .structure-visual {
    min-height: 0;
    aspect-ratio: auto;
  }
  .projects-heading {
    align-items: flex-start;
    margin-top: 0;
  }
  .concept-project-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 22px 0;
  }
  .concept-project-meta {
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }
  .concept-project-number {
    font-size: 1.5rem;
  }
  .concept-project-comparison {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .concept-project-drawings,
  .concept-project-arrow,
  .concept-result-image {
    grid-column: 1;
  }
  .concept-project-arrow {
    transform: rotate(90deg);
    margin-top: 0;
  }
  .project-flow-arrow {
    width: 40px;
    height: 40px;
    justify-self: center;
    transform: rotate(90deg);
  }
  .photo-gallery {
    gap: 10px;
  }
  .photo-card {
    height: auto;
  }
  .photo-card img {
    max-width: 180px;
    height: 116px;
  }
  .photo-gallery-primary .photo-card img {
    width: 78vw;
    max-width: none;
    height: 230px;
  }
  .featured-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: auto;
    gap: 10px;
  }
  .feature-card {
    min-height: auto;
  }
  .feature-card h3 {
    margin-top: 12px;
  }
  .lightbox-nav {
    width: 42px;
    height: 42px;
  }
  .contact-card {
    padding: 10px 22px;
  }
  .socials {
    flex-direction: column;
    gap: 12px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* Accessibility: Disable animation when the user requests less motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .photo-card img,
  .button {
    transition: none;
  }
}
