/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #121212;
  --blue:      #0176D3;
  --sky:       #1589EE;
  --light-sky: #9DC4F7;
  --pale:      #EAF4FF;
  --white:     #ffffff;
  --gray:      #F3F3F3;
  --text:      #3E3E3C;
  --muted:     #706E6B;
  --gold:      #FE9339;
  --border:    #DDDBDA;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.header-inner {
  /* full-width header bar: no max-width cap, no auto margins.
     Logo sits flush with the actual screen edge regardless of monitor size. */
  margin: 0;
  padding: 8px 32px 8px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

/* Logo on left */
.header-brand {
  flex-shrink: 0;
}

.header-logo {
  height: 96px;
  width: auto;
  display: block;
}

/* Global Nav Bar */
.global-nav {
  background: rgba(8, 8, 8, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 16px;
}

.global-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.global-nav ul li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.global-nav ul li a:hover,
.global-nav ul li a.active {
  color: var(--light-sky);
  border-bottom-color: var(--blue);
}

/* Hamburger toggle — hidden on desktop, shown via media query */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px 16px;
  margin-left: auto;
}
.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ===== PAGE WRAPPER ===== */
.page-content {
  padding-top: 154px;
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 80px 32px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ===== THUMBNAIL GRID ===== */
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.thumb-card {
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.thumb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(1, 118, 211, 0.15);
}

.thumb-img-wrap {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.thumb-card:hover .thumb-img-wrap img {
  transform: scale(1.07);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 55%);
}

.thumb-label {
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  border-top: 3px solid transparent;
  background: var(--white);
  transition: border-color 0.25s, color 0.25s;
}

.thumb-card:hover .thumb-label {
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 32px;
  font-size: 14px;
}

footer a { color: var(--light-sky); }
footer a:hover { color: var(--white); }

/* ===== ─── HOME PAGE ─── ===== */

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: url('homebackground.jpg');
  transform: scale(1.05);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(3, 45, 96, 0.75) 0%,
    rgba(1, 68, 134, 0.58) 50%,
    rgba(3, 45, 96, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 880px;
  animation: fadeUp 1.1s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-quote {
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.45);
  margin-bottom: 28px;
}

.hero-quote em {
  font-style: normal;
  color: var(--light-sky);
  font-weight: 500;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  background: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 4px 16px rgba(1, 118, 211, 0.40);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  animation: fadeUp 1.1s 0.3s ease both;
}

.hero-cta:hover {
  background: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(1, 118, 211, 0.55);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bounce 2.4s ease infinite;
}

.hero-scroll svg {
  width: 22px;
  height: 22px;
  stroke: rgba(255,255,255,0.5);
  fill: none;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* About section */
@keyframes cityPan {
  0%   { transform: scale(1.15) translate(0%,    0%);   }
  20%  { transform: scale(1.12) translate(-2%,  -1.5%); }
  40%  { transform: scale(1.18) translate( 2%,   1%);   }
  60%  { transform: scale(1.13) translate(-1%,   2%);   }
  80%  { transform: scale(1.16) translate( 1.5%, -0.5%);}
  100% { transform: scale(1.15) translate(0%,    0%);   }
}

.about-section {
  position: relative;
  padding: 120px 32px;
  overflow: hidden;
}

/* Looping background video (replaces the old panning image layer) */
.about-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* On very small screens, hide the video and fall back to the poster image
   to save bandwidth and avoid iOS Low Power Mode autoplay quirks. */
@media (max-width: 700px) {
  .about-bg-video { display: none; }
  .about-section {
    background-image: url('aboutus.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* Dark overlay on top of the animated bg */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.64) 100%);
  z-index: 1;
}

.about-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.about-text .section-title {
  text-align: left;
  color: var(--white);
}
.about-text .divider { margin: 14px 0 0; }

.about-body {
  margin-top: 24px;
  font-size: 16px;
  color: rgba(255,255,255,0.88);
  line-height: 1.85;
}

/* Stats bar */
.stats-bar {
  background: var(--navy);
  padding: 48px 32px;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 32px;
}

.stat-item {
  text-align: center;
  color: var(--white);
}

.stat-num {
  font-size: 48px;
  font-weight: 700;
  color: var(--light-sky);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Teaser sections on home */
.home-teasers {
  padding: 80px 32px;
  background: var(--gray);
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.teaser-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  height: 300px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: transform 0.3s, box-shadow 0.3s;
}

.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(1, 118, 211, 0.18);
}

.teaser-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.teaser-card:hover img { transform: scale(1.06); }

.teaser-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 60%);
}

.teaser-card-body {
  position: relative;
  z-index: 2;
  padding: 28px;
  color: var(--white);
}

.teaser-card-body h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.teaser-card-body p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 14px;
}

.teaser-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-sky);
}

/* ===== CONTACT PAGE ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 52px;
  align-items: start;
}

.contact-info h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--pale);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
}

.contact-detail-text strong {
  display: block;
  color: var(--navy);
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-detail-text span {
  color: var(--muted);
  font-size: 15px;
}

.map-wrap {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 480px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding: 6px 14px 6px 10px;
  }

  .header-logo { height: 72px; }

  /* Collapse nav into a hamburger menu */
  .global-nav {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle-label { display: flex; }

  .global-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav-toggle:checked ~ ul { display: flex; }

  .global-nav ul li { width: 100%; }

  .global-nav ul li a {
    padding: 14px 22px;
    font-size: 14px;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .global-nav ul li a:hover,
  .global-nav ul li a.active {
    border-bottom-color: transparent;
    border-left-color: var(--blue);
    background: rgba(255, 255, 255, 0.05);
  }

  /* Animate bars into an X when open */
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .stats-inner { gap: 24px; }

  .hero-quote { font-size: 22px; }
}

/* ===== PRODUCT CATALOG (sidebar + description) ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 44px;
  align-items: start;
}

.catalog-sidebar {
  position: sticky;
  top: 170px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.catalog-sidebar-title {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 20px;
  font-weight: 600;
}

.catalog-nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.catalog-nav button:last-child { border-bottom: none; }

.catalog-nav button:hover {
  background: var(--pale);
  color: var(--navy);
}

.catalog-nav button.active {
  background: var(--pale);
  color: var(--blue);
  border-left-color: var(--blue);
  font-weight: 600;
}

.catalog-content { min-height: 300px; }

.catalog-panel { display: none; }
.catalog-panel.active {
  display: block;
  animation: fadeUp 0.45s ease both;
}

.catalog-panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--navy);
  margin-bottom: 6px;
}

.catalog-panel .divider { margin: 14px 0 26px; }

.catalog-panel p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.9;
  max-width: 760px;
}

@media (max-width: 760px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { position: static; }
}

/* ===== PAGE HERO BANNER (Products / Services / Contact) ===== */
.page-banner {
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.52) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.page-banner-content h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

.page-banner-content p {
  margin-top: 10px;
  font-size: 16px;
  color: var(--light-sky);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ===== NAV CTA BUTTON ===== */
.global-nav ul li a.nav-cta {
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  margin-left: 8px;
  border-bottom: 2px solid transparent;
  box-shadow: 0 2px 10px rgba(1, 118, 211, 0.35);
}
.global-nav ul li a.nav-cta:hover {
  background: var(--sky);
  color: #fff;
  border-bottom-color: transparent;
}

/* ===== QUOTE FORM ===== */
.quote-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.quote-aside h2 { font-size: 26px; color: var(--navy); margin-bottom: 14px; }
.quote-aside > p { color: var(--muted); margin-bottom: 26px; font-size: 15px; }

.quote-steps { list-style: none; margin: 0 0 28px; padding: 0; }
.quote-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.quote-steps .step-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.quote-steps .step-text strong { display: block; color: var(--navy); font-size: 15px; }
.quote-steps .step-text span { color: var(--muted); font-size: 14px; }

.quote-contact-note {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 15px;
  color: var(--muted);
}
.quote-contact-note a { color: var(--blue); font-weight: 600; }

.quote-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(3, 45, 96, 0.08);
}

.form-row { margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
  margin-bottom: 7px;
}
.form-row label .req { color: var(--gold); }

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.12);
}
.form-row textarea { resize: vertical; min-height: 110px; }

/* Photo dropzone */
.dropzone {
  border: 2px dashed var(--light-sky);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--pale);
  transition: background 0.2s, border-color 0.2s;
}
.dropzone:hover,
.dropzone.dragover { background: #dceaff; border-color: var(--blue); }
.dropzone svg { width: 34px; height: 34px; stroke: var(--blue); fill: none; margin-bottom: 8px; }
.dropzone p { color: var(--navy); font-size: 15px; font-weight: 600; margin: 0; }
.dropzone span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.preview-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.85);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-remove:hover { background: var(--navy); }

.btn-submit {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(1, 118, 211, 0.35);
}
.btn-submit:hover { background: var(--sky); transform: translateY(-2px); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-status { margin-top: 16px; font-size: 15px; border-radius: 6px; display: none; }
.form-status.show { display: block; padding: 14px 16px; }
.form-status.error { background: #fde8e8; color: #b42318; border: 1px solid #f5c2c0; }

.form-success-panel { text-align: center; padding: 34px 10px; }
.form-success-panel svg { width: 56px; height: 56px; stroke: #1c7a45; fill: none; margin-bottom: 12px; }
.form-success-panel h3 { color: var(--navy); font-size: 24px; margin-bottom: 8px; }
.form-success-panel p { color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .quote-layout { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
