@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.css');

:root {
  --navy: #0F172A;
  --navy-soft: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-100: #E2E8F0;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --accent: #F97316;
  --accent-dark: #EA580C;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;
  --container: 1180px;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--slate-700);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: var(--slate-300);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--slate-300); }
.topbar a:hover { color: var(--white); }
.topbar strong { color: var(--white); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-700);
  border-radius: var(--radius);
  transition: color 150ms ease, background 150ms ease;
}
.main-nav a:hover { color: var(--accent-dark); background: #FFF7ED; }
.main-nav a.active { color: var(--accent-dark); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--slate-300); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost-light { background: rgba(255,255,255,0.1); color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn-lg { padding: 16px 32px; font-size: 17px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 40%, transparent 90%);
  pointer-events: none;
  z-index: 0;
}
.hero .hero-grid { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  min-height: 560px;
  padding: 72px 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-underline {
  position: relative;
  display: inline-block;
}
.hero-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.06em;
  width: 100%;
  height: 0.26em;
  background: var(--accent);
  opacity: 0.4;
  z-index: -1;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-underline-sweep 900ms cubic-bezier(0.65, 0, 0.35, 1) 600ms forwards;
}
@keyframes hero-underline-sweep {
  to { transform: scaleX(1); }
}
.wave-char {
  display: inline-block;
  animation: wave-bounce 1.8s ease-in-out 2;
}
@keyframes wave-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--slate-300);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(15, 23, 42, 0.75);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Hero product slider */
.hero-slider { padding: 0; }
.hero-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 600ms ease;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2b4a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.hero-slide-title { color: var(--white); font-weight: 800; font-size: 20px; }
.hero-slide-sub { color: var(--slate-300); font-size: 14px; }
.hero-slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, width 200ms ease;
}
.hero-dot.active { background: var(--white); width: 22px; border-radius: 4px; }
.hero-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.55); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; z-index: 5;
  transition: background 200ms ease;
}
.hero-slider-arrow:hover { background: var(--accent-dark); }
.hero-slider-prev { left: 12px; }
.hero-slider-next { right: 12px; }

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
}
.page-hero .eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
.page-hero p { margin-top: 14px; color: var(--slate-300); max-width: 62ch; font-size: 17px; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: var(--slate-500); display: flex; gap: 6px; }
.breadcrumb a { color: var(--slate-300); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-navy .eyebrow { color: var(--accent); }
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section-navy .section-head h2 { color: var(--white); }
.section-head p { margin-top: 14px; color: var(--slate-500); font-size: 16px; }
.section-navy .section-head p { color: var(--slate-300); }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.greeting-columns { max-width: 1080px; margin: 0 auto; }

.card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  padding: 32px 28px;
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #FFF7ED;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--slate-500); font-size: 15px; }

/* Danger / warning callout — styled like an industrial hazard placard, not a software alert box */
.callout-danger {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 4px;
  padding: 40px 28px 28px;
  overflow: hidden;
}
.callout-danger::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: repeating-linear-gradient(
    135deg,
    var(--danger) 0, var(--danger) 12px,
    var(--navy) 12px, var(--navy) 24px
  );
}
.callout-danger::after {
  content: "SAFETY ALERT";
  position: absolute;
  top: 20px; left: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--danger);
}
.callout-danger p:first-of-type { margin-top: 8px; }
.callout-danger strong { color: var(--danger); font-weight: 700; }

.callout-info {
  position: relative;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 4px;
  padding: 40px 28px 28px;
  overflow: hidden;
}
.callout-info::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: var(--accent);
}
.callout-info::after {
  content: "COST TIP";
  position: absolute;
  top: 20px; left: 28px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-dark);
}
.callout-info p:first-of-type { margin-top: 8px; }
.callout-info strong { color: var(--accent-dark); font-weight: 700; }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}
.stat { text-align: center; }
.stat .num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: var(--white); }
.stat .num span { color: var(--accent); }
.stat .label { margin-top: 6px; font-size: 14px; color: var(--slate-300); }

/* Project / gallery cards */
.project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--slate-100);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-card .body { padding: 20px 22px; }
.project-card .body h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.project-card .body p { font-size: 14px; color: var(--slate-500); margin-top: 6px; }

.logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 24px 0;
}
.logo-strip img { height: 32px; width: auto; filter: grayscale(1) opacity(0.7); transition: filter 200ms ease; }
.logo-strip img:hover { filter: grayscale(0) opacity(1); }

/* Timeline */
.timeline { border-left: 2px solid var(--slate-100); padding-left: 28px; display: flex; flex-direction: column; gap: 28px; }
.timeline-item { position: relative; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .date { font-weight: 700; color: var(--accent-dark); font-size: 14px; }
.timeline-item h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.timeline-item p { font-size: 14px; color: var(--slate-500); margin-top: 4px; }

/* Certificate cards */
.cert-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  overflow: hidden;
}
.cert-card .frame { aspect-ratio: 3/4; background: var(--slate-100); overflow: hidden; }
.cert-card .frame img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.cert-card .body { padding: 18px 20px; }
.cert-card .body .tag { font-size: 12px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.03em; }
.cert-card .body h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-top: 6px; }
.cert-card .body p { font-size: 13px; color: var(--slate-500); margin-top: 4px; }
.cert-card .extra-pages { display: flex; gap: 6px; padding: 10px 20px 0; }
.cert-card .extra-pages img { width: 40px; height: 54px; object-fit: cover; border-radius: 3px; border: 1px solid var(--slate-100); cursor: zoom-in; }

/* Gallery */
.gallery-filters { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--slate-300);
  background: var(--white);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--slate-700);
  transition: all 150ms ease;
  min-height: 44px;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: var(--slate-100);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(15,23,42,0.75));
  color: var(--white);
  font-size: 12px;
  padding: 20px 10px 8px;
  opacity: 0;
  transition: opacity 200ms ease;
}
.gallery-item:hover .cap { opacity: 1; }

.gallery-item.no-crop {
  aspect-ratio: auto;
  background: var(--white);
  border: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
}
.gallery-item.no-crop .frame { width: 100%; aspect-ratio: 3/4; overflow: hidden; }
.gallery-item.no-crop img { width: 100%; height: 100%; object-fit: contain; }
.gallery-item.no-crop:hover img { transform: none; }
.gallery-item.no-crop .cap {
  position: static;
  opacity: 1;
  background: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 19px;
  padding: 14px;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(15,23,42,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--slate-300); font-size: 14px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 200ms ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 767px) {
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* Video grid */
.video-card { border-radius: 8px; overflow: hidden; border: 1px solid var(--slate-100); background: var(--white); }
.video-card .frame-wrap { position: relative; aspect-ratio: 16/9; background: #000; display: flex; align-items: center; justify-content: center; }
.video-card .frame-wrap .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card .frame-wrap svg { position: relative; z-index: 1; }
.video-card iframe, .video-card video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .body { padding: 16px 18px; }
.video-card .body h3 { font-size: 15px; font-weight: 700; color: var(--navy); }

/* Comparison table */
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--slate-100); font-size: 15px; }
.compare-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.hl { color: var(--accent-dark); font-weight: 700; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-info-card { background: var(--navy); color: var(--white); border-radius: 8px; padding: 40px 32px; }
.contact-info-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
.contact-line { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.contact-line:first-of-type { border-top: none; }
.contact-line .ico { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.contact-line .label { font-size: 13px; color: var(--slate-300); }
.contact-line .value { font-size: 16px; font-weight: 600; color: var(--white); }

.form-card { background: var(--white); border: 1px solid var(--slate-100); border-radius: 8px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
label .req { color: var(--danger); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--slate-700);
  background: var(--white);
  transition: border-color 150ms ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--slate-500); margin-top: 16px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 24px; }
.checkbox-row input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.checkbox-row label { margin: 0; font-weight: 400; font-size: 14px; color: var(--slate-500); }

/* Map */
.map-wrap { border-radius: 8px; overflow: hidden; border: 1px solid var(--slate-100); box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

.directions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2b4a 100%);
  color: var(--white);
  border-radius: 12px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h3 { font-size: 24px; font-weight: 800; }
.cta-band p { margin-top: 8px; color: var(--slate-300); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy); color: var(--slate-300); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--slate-500); max-width: 34ch; }
.footer-col h4 { color: var(--white); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-col address { font-style: normal; font-size: 14px; line-height: 2; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 13px; color: var(--slate-500); flex-wrap: wrap; gap: 8px;
}

/* Back to top */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); cursor: pointer; border: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 40;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; }
  .hero-media { max-width: 480px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .main-nav, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .site-header .container { height: 64px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .topbar .container { justify-content: center; }
  .directions-grid { grid-template-columns: 1fr; }

  /* Horizontally-scrollable table wrappers: hint that there's more to the right */
  div[style*="overflow-x:auto"] { position: relative; }
  div[style*="overflow-x:auto"]::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(15,23,42,0.15));
    pointer-events: none;
  }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; background: var(--navy);
  z-index: 60; display: none; flex-direction: column;
  padding: 24px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mobile-nav-head img { height: 32px; }
.mobile-nav a {
  color: var(--white); font-size: 20px; font-weight: 700;
  padding: 16px 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav .btn { margin-top: 24px; }
