/* =========================================================
   EMMAVIS CONSTRUCTION LTD — Stylesheet
   Design concept: blueprint / technical-drawing motif —
   drafting-line grids, corner tick marks, measurement rules —
   paired with a bold structural type system.
   ========================================================= */

:root {
  --blue: #0057FF;
  --cyan: #00A8FF;
  --red: #FF0000;
  --black: #000000;
  --white: #FFFFFF;
  --navy: #1E293B;
  --navy-2: #16202e;
  --paper: #F4F6F9;
  --ink: #0B1220;
  --ink-soft: #4B5567;
  --line: rgba(11, 18, 32, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 800;
}
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Blueprint grid texture (shared decorative layer) ---------- */
.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.5;
}
.on-light .blueprint-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
}

/* Corner tick marks — drafting-plate corners */
.tick-frame { position: relative; }
.tick-frame::before,
.tick-frame::after,
.tick-frame > .tick-br-a,
.tick-frame > .tick-br-b { display: none; }
.tick-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  opacity: 0.55;
}
.tick-corners .tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.tick-corners .tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.tick-corners .bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.tick-corners .br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  color: var(--ink);
}
.section-head p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.on-dark .section-head h2 { color: var(--white); }
.on-dark .section-head p { color: rgba(255,255,255,0.72); }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(0, 168, 255, 0.6);
}
.btn-primary:hover {
  box-shadow: 0 0 26px 2px rgba(0, 168, 255, 0.55);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--red);
}
.btn-secondary:hover {
  background: var(--red);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-block { width: 100%; justify-content: center; }

/* =========================================================
   TOP BAR + HAMBURGER
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  transition: background 0.35s var(--ease), padding 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.topbar.scrolled {
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.hamburger {
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 210;
}
.hamburger span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 0.32s var(--ease), opacity 0.2s var(--ease), top 0.32s var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 23px; }
.hamburger span:nth-child(3) { top: 30px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

.brand-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.brand-mini .mark {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--white);
  border: 1px solid var(--cyan);
}
.topbar-cta { display: none; }
@media (min-width: 860px) {
  .topbar-cta { display: inline-flex; }
}

/* ---------- Drawer nav ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 16, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 190;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(340px, 86vw);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  border-right: 1px solid var(--line-on-dark);
  transform: translateX(-100%);
  transition: transform 0.45s var(--ease);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }

.drawer-head {
  padding: 28px 26px 20px;
  border-bottom: 1px solid var(--line-on-dark);
  position: relative;
}
.drawer-head .brand-mini { font-size: 1.15rem; }
.drawer-head .tagline {
  margin-top: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}

.drawer-nav { padding: 14px 12px; flex: 1; }
.drawer-nav li + li { margin-top: 2px; }
.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: var(--radius);
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.drawer-link .ico {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--cyan);
  opacity: 0.85;
}
.drawer-link .ico svg { width: 18px; height: 18px; }
.drawer-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.drawer-link:hover, .drawer-link:focus-visible, .drawer-link.active {
  color: var(--white);
  background: rgba(0, 87, 255, 0.16);
  padding-left: 20px;
  box-shadow: inset 0 0 0 1px rgba(0,168,255,0.25), 0 0 18px rgba(0,168,255,0.12);
}
.drawer-link:hover::after, .drawer-link.active::after { transform: scaleX(1); }

.drawer-foot {
  padding: 20px 26px 28px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.drawer-foot a { color: var(--cyan); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(6,10,20,0.95) 0%, rgba(6,10,20,0.55) 46%, rgba(6,10,20,0.35) 100%),
    linear-gradient(100deg, rgba(0,20,60,0.55) 0%, rgba(0,0,0,0.15) 60%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px var(--gutter) 64px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--cyan);
  font-size: 0.95rem;
  margin-bottom: 22px;
}
.hero-eyebrow .rule { width: 40px; height: 2px; background: var(--red); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 15ch;
}
.hero .lede {
  margin-top: 22px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  font-family: var(--font-body);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}
.hero-stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  max-width: 620px;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 28px;
}
@media (min-width: 720px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--white);
  font-weight: 800;
}
.stat .num .plus { color: var(--cyan); }
.stat .label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.62);
}
.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  writing-mode: vertical-rl;
}
@media (min-width: 860px) { .scroll-cue { display: flex; } }
.scroll-cue .line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: cueMove 1.8s var(--ease) infinite;
}
@keyframes cueMove {
  0% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0.3); transform-origin: bottom; opacity: 0.4; }
}

/* =========================================================
   REVEAL ANIMATION UTILITY
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  padding: 108px 0;
  background: var(--white);
}
.about .container {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .about .container { grid-template-columns: 0.9fr 1.1fr; }
}
.about-media {
  position: relative;
}
.about-media .frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
.about-media img { width: 100%; height: 460px; object-fit: cover; }
.about-media .measure {
  position: absolute;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.about-media .measure.top { top: -26px; left: 0; }
.about-media .badge {
  position: absolute;
  bottom: -26px; right: -18px;
  background: var(--navy);
  color: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,168,255,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.about-media .badge .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--cyan); }
.about-media .badge .t { font-size: 0.78rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); color: var(--ink); max-width: 14ch; }
.about-copy .lede { margin-top: 20px; color: var(--ink-soft); font-size: 1.05rem; max-width: 58ch; }
.about-list {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
}
.about-list li::before {
  content: "";
  width: 8px; height: 8px;
  margin-top: 6px;
  background: var(--red);
  flex-shrink: 0;
}
.about-copy .btn { margin-top: 34px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding: 108px 0; background: var(--paper); }
.service-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  color: var(--blue);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,87,255,0.35);
  box-shadow: 0 20px 44px -20px rgba(0,87,255,0.35), 0 0 0 1px rgba(0,168,255,0.18);
}
.service-card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(0,87,255,0.08);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.service-card .icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-card p { color: var(--ink-soft); font-size: 0.94rem; }
.service-card .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--blue);
}
.service-card .more svg {
  width: 14px; height: 14px;
  transition: transform 0.25s var(--ease);
}
.service-card:hover .more svg { transform: translateX(4px); }

/* =========================================================
   PROJECTS
   ========================================================= */
.projects { padding: 108px 0; background: var(--white); }
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: var(--white); }

.project-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 4/5;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-card.hide { display: none; }
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.project-card:hover img { transform: scale(1.08); }
.project-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,10,20,0.92) 0%, rgba(6,10,20,0.15) 55%, transparent 75%);
}
.project-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: var(--white);
}
.project-info .cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.project-info h3 { font-size: 1.15rem; }
.project-info .loc { margin-top: 6px; font-size: 0.84rem; color: rgba(255,255,255,0.75); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(2,6,16,0.82);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--white);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal-media { position: relative; }
.modal-media img { width: 100%; height: 340px; object-fit: cover; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(6,10,20,0.6);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.modal-body { padding: 32px; }
.modal-body .cat { color: var(--blue); font-weight: 700; font-size: 0.8rem; margin-bottom: 8px; }
.modal-body h3 { font-size: 1.6rem; margin-bottom: 14px; }
.modal-body p { color: var(--ink-soft); margin-bottom: 20px; }
.modal-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.modal-meta .k { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.modal-meta .v { margin-top: 4px; font-weight: 700; color: var(--ink); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: 108px 0; background: var(--paper); }
.gallery-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px;
}
.masonry {
  columns: 1;
  column-gap: 18px;
}
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 980px) { .masonry { columns: 3; } }
.masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
}
.masonry-item.hide { display: none; }
.masonry-item img {
  width: 100%;
  transition: transform 0.5s var(--ease);
  display: block;
}
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item .tag {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(6,10,20,0.7);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s var(--ease);
}
.masonry-item:hover .tag { opacity: 1; transform: translateY(0); }

.lightbox {
  position: fixed; inset: 0;
  background: rgba(2,6,16,0.95);
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.94);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open img { transform: scale(1); }
.lightbox-close, .lightbox-nav {
  position: absolute;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }

/* =========================================================
   ARCHITECTURE / DRAWINGS
   ========================================================= */
.architecture {
  padding: 108px 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.architecture .container { position: relative; z-index: 1; }
.arch-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) { .arch-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }
.arch-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.arch-mosaic img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--line-on-dark);
}
.arch-mosaic .tall { grid-row: span 2; height: 394px; }
.arch-copy p { margin-top: 18px; color: rgba(255,255,255,0.75); max-width: 52ch; }
.arch-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.arch-cta .tag-line {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why {
  padding: 108px 0;
  background: var(--navy-2);
  color: var(--white);
  position: relative;
}
.why-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
}
.why-item {
  padding: 26px 22px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.why-item:hover { border-color: rgba(0,168,255,0.5); transform: translateY(-4px); }
.why-item .icon { color: var(--cyan); margin-bottom: 14px; }
.why-item .icon svg { width: 26px; height: 26px; }
.why-item h4 { font-size: 1rem; margin-bottom: 8px; }
.why-item p { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* =========================================================
   PROCESS TIMELINE
   ========================================================= */
.process { padding: 108px 0; background: var(--white); }
.timeline {
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 27px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
@media (min-width: 760px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
}
.tl-step {
  position: relative;
  padding: 0 0 44px 68px;
}
@media (min-width: 760px) {
  .tl-step {
    width: 50%;
    padding: 0 48px 56px 0;
  }
  .tl-step:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 56px 48px;
  }
}
.tl-step .dot {
  position: absolute;
  left: 16px; top: 2px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  display: grid; place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
  z-index: 2;
}
@media (min-width: 760px) {
  .tl-step .dot { left: auto; right: -12px; }
  .tl-step:nth-child(even) .dot { right: auto; left: -12px; }
}
.tl-step .card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 24px;
  border-radius: var(--radius);
}
.tl-step h4 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.tl-step p { color: var(--ink-soft); font-size: 0.92rem; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  padding: 108px 0;
  background: var(--paper);
}
.t-carousel {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
}
.t-track {
  display: flex;
  transition: transform 0.6s var(--ease);
}
.t-slide {
  flex: 0 0 100%;
  padding: 8px;
}
.t-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.t-stars { color: var(--red); font-size: 1rem; letter-spacing: 3px; margin-bottom: 18px; }
.t-quote { font-size: 1.08rem; color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.5; }
.t-person { margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.t-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.t-name { font-weight: 700; font-size: 0.92rem; }
.t-role { font-size: 0.8rem; color: var(--ink-soft); }
.t-controls { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.t-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
  border: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.t-dot.active { background: var(--blue); transform: scale(1.3); }
.t-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--blue);
}
.t-arrow.prev { left: -6px; }
.t-arrow.next { right: -6px; }
@media (min-width: 860px) {
  .t-arrow.prev { left: -54px; }
  .t-arrow.next { right: -54px; }
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  padding: 120px 0;
  color: var(--white);
  overflow: hidden;
}
.cta-band .hero-media img { transform: scale(1); }
.cta-band .container { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 18ch; margin: 0 auto; }
.cta-band p { margin-top: 18px; font-size: 1.1rem; color: rgba(255,255,255,0.82); }
.cta-band .hero-ctas { justify-content: center; margin-top: 36px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 108px 0; background: var(--white); }
.contact-grid {
  display: grid;
  gap: 48px;
}
@media (min-width: 940px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-card {
  background: var(--navy);
  color: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.contact-card p.lede { color: rgba(255,255,255,0.7); margin-bottom: 28px; font-size: 0.95rem; }
.contact-line {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line-on-dark);
}
.contact-line:first-of-type { border-top: none; }
.contact-line .ico { color: var(--cyan); flex-shrink: 0; }
.contact-line .ico svg { width: 20px; height: 20px; }
.contact-line .k { font-size: 0.72rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.03em; }
.contact-line .v { font-weight: 600; margin-top: 2px; }
.map-embed {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-on-dark);
}
.map-embed iframe { width: 100%; height: 200px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; gap: 20px; }
.form-row.two { grid-template-columns: 1fr; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 3px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,255,0.14);
  outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.form-wrap .btn { margin-top: 26px; }
.form-success {
  display: none;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  background: rgba(0,168,255,0.08);
  border: 1px solid rgba(0,87,255,0.3);
  border-radius: var(--radius);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-success.is-shown { display: flex; }
.form-success svg { width: 22px; height: 22px; flex-shrink: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.72);
  padding: 76px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr; }
}
.footer-brand .brand-mini { color: var(--white); font-size: 1.15rem; }
.footer-brand p { margin-top: 16px; font-size: 0.9rem; max-width: 34ch; color: rgba(255,255,255,0.6); }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col li { margin-bottom: 11px; font-size: 0.9rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid; place-items: center;
  border: none;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 80;
  box-shadow: 0 8px 24px rgba(0,87,255,0.35);
}
.to-top.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { box-shadow: 0 8px 30px rgba(0,168,255,0.55); }

/* ---------- Page loader ---------- */
.page-loader {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.2s var(--ease), visibility 0.2s var(--ease);
}
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-mark {
  width: 56px; height: 56px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.page-loader span { color: rgba(255,255,255,0.6); font-size: 0.85rem; letter-spacing: 0.03em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   ADDED: multi-page navigation support
   (topbar needs a solid background on interior pages that
   have no full-bleed hero underneath it)
   ========================================================= */
.topbar.solid {
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: blur(10px);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--line-on-dark);
}
.page-top-spacer {
  padding-top: 128px;
}
.drawer-link.active {
  color: var(--white);
  background: rgba(0, 87, 255, 0.16);
  padding-left: 20px;
  box-shadow: inset 0 0 0 1px rgba(0,168,255,0.25), 0 0 18px rgba(0,168,255,0.12);
}
.drawer-link.active::after { transform: scaleX(1); }

/* =========================================================
   ADDED: company logo slot (reuses the existing .mark box
   styling/colors — swap the placeholder image, not the CSS)
   ========================================================= */
.mark.brand-logo {
  padding: 0;
  overflow: hidden;
}
.mark.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================
   ADDED: CEO / leadership block (About page)
   ========================================================= */
.leadership {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 26px;
  grid-template-columns: 150px 1fr;
  align-items: center;
}
@media (max-width: 480px) {
  .leadership { grid-template-columns: 1fr; justify-items: start; }
}
.leadership-media img.ceo-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(0,168,255,0.15);
}
.leadership-info .section-tag { margin-bottom: 8px; }
.leadership-info h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.leadership-info .role {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 10px;
}
.leadership-info .bio {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 56ch;
}


/* =========================================================
   ADDED: Gallery + Workers Gallery (automatic media grid,
   watermark and viewer - add media in the HTML only)
   ========================================================= */
.media-page { min-height: 100vh; }
.media-source { display: none; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.wm-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  aspect-ratio: 4 / 3;
}
.wm-item img,
.wm-item video {
  width: 100%;
  height: 100%;
  display: block;
}
.wm-item img {
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.wm-item video { object-fit: contain; background: var(--black); }
.wm-item.is-photo { cursor: zoom-in; }
.wm-item.is-photo:hover img { transform: scale(1.05); }

/* Watermark: "EMMAVIS CONSTRUCTION LTD" over every gallery picture/video */
.wm-item::after,
.lb-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='320'%20height='200'%20viewBox='0%200%20320%20200'%3E%3Ctext%20x='160'%20y='100'%20transform='rotate%28-25%20160%20100%29'%20text-anchor='middle'%20dominant-baseline='middle'%20font-family='Arial,Helvetica,sans-serif'%20font-size='17'%20font-weight='700'%20letter-spacing='1'%20fill='white'%20fill-opacity='0.5'%20stroke='black'%20stroke-opacity='0.3'%20stroke-width='0.7'%3EEMMAVIS%20CONSTRUCTION%20LTD%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-position: center;
  background-size: min(90%, 360px) auto;
}
.lb-frame {
  position: relative;
  display: inline-block;
  line-height: 0;
}
