:root {
  --navy: #052f6d;
  --navy-2: #001f4c;
  --red: #ed1c24;
  --gold: #fdb515;
  --sky: #0b8fd3;
  --ink: #12233f;
  --muted: #627089;
  --paper: #ffffff;
  --soft: #f4f8fc;
  --line: #dbe5f0;
  --success: #1d6f42;
  --danger: #9a1f2f;
  --shadow: 0 14px 40px rgba(1, 41, 92, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px; }
.skip-link:focus { left: 10px; }
.topbar { background: var(--navy-2); color: #fff; text-align: center; padding: 7px 14px; font-size: .92rem; letter-spacing: .01em; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-family: Georgia, serif; font-weight: 800; color: var(--navy); font-size: 1.55rem; white-space: nowrap; }
.brand small { color: var(--red); font-style: italic; font-size: .62em; }
.brand-mark { color: var(--gold); font-size: 1.4rem; filter: drop-shadow(2px 2px 0 var(--red)); }
nav { display: flex; align-items: center; gap: 20px; }
nav a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-cta { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 999px; }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #fff 0%, #f6fbff 100%); border-bottom: 1px solid var(--line); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 14px; background: linear-gradient(90deg, var(--red) 0 24%, var(--gold) 24% 46%, var(--sky) 46% 72%, var(--navy) 72% 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; padding: 64px 0 76px; }
.eyebrow { color: var(--red); text-transform: uppercase; letter-spacing: .13em; font-weight: 900; font-size: .8rem; }
h1, h2, h3 { color: var(--navy); line-height: 1.1; margin-top: 0; }
h1 { font-family: Georgia, serif; font-size: clamp(2.45rem, 5vw, 4.8rem); margin-bottom: 20px; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.65rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.18rem; color: #31435f; max-width: 64ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; text-decoration: none; font-weight: 800; cursor: pointer; background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(5,47,109,.15); }
.button:hover { transform: translateY(-1px); }
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button.gold { background: var(--gold); color: var(--navy-2); }
.hero-card { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; overflow: hidden; }
.hero-card img { display: block; width: 100%; }
.section { padding: 72px 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 10px 28px rgba(1,41,92,.06); }
.card .icon { font-size: 1.65rem; }
.card p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { border-top: 4px solid var(--gold); padding-top: 18px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; margin-bottom: 12px; }
.banner { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 20px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.banner h2 { color: #fff; margin-bottom: 8px; }
.form-shell { max-width: 900px; margin: 48px auto; padding: 0 18px; }
.form-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: clamp(22px, 4vw, 38px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 800; color: var(--navy); }
input, select, textarea { width: 100%; border: 1px solid #bfcddd; border-radius: 9px; padding: 11px 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11,143,211,.18); border-color: var(--sky); }
textarea { min-height: 130px; resize: vertical; }
.help { color: var(--muted); font-size: .91rem; }
.notice { border-left: 4px solid var(--sky); background: #eef8fd; padding: 14px 16px; border-radius: 8px; margin: 16px 0; }
.notice.success { border-left-color: var(--success); background: #eef8f2; }
.notice.error { border-left-color: var(--danger); background: #fff1f3; }
.order-summary { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; padding: 7px 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 14px; font-weight: 900; font-size: 1.12rem; }
.product-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-option { position: relative; }
.product-option input { position: absolute; opacity: 0; pointer-events: none; }
.product-option label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: 16px; height: 100%; cursor: pointer; }
.product-option input:checked + label { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(5,47,109,.08); background: #f8fbff; }
.product-price { color: var(--red); font-weight: 900; }
.status-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #edf4ff; color: var(--navy); font-weight: 800; font-size: .83rem; }
.file-list { list-style: none; padding: 0; margin: 16px 0 0; }
.file-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; }
.policy { max-width: 860px; margin: 0 auto; }
.policy h2 { margin-top: 36px; }
.policy h3 { margin-top: 28px; }
.site-footer { background: var(--navy-2); color: #dbe8f8; padding: 46px 0 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 34px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 28px; padding-top: 20px; font-size: .9rem; }
.cookie-note { position: fixed; right: 18px; bottom: 18px; z-index: 50; max-width: 430px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 14px; display: flex; gap: 12px; align-items: center; }
.cookie-note button { border: 0; background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 12px; font-weight: 800; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 11px 8px; text-align: left; vertical-align: top; }
.admin-table th { color: var(--navy); }
@media (max-width: 900px) {
  .hero-grid, .cards, .steps, .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 28px; }
  .menu-button { display: inline-block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px; flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  nav a { padding: 8px 4px; }
}
@media (max-width: 640px) {
  .hero-grid, .cards, .steps, .footer-grid, .form-grid, .product-picker { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 42px; }
  .hero-card { order: -1; }
  .banner { flex-direction: column; align-items: flex-start; }
  .form-shell { margin-top: 28px; }
}

.cookie-note[hidden] { display: none !important; }

/* Gallery */
.gallery-grid .card {
  display: flex;
  flex-direction: column;
}

.gallery-grid .card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f7fa;
  border: 1px solid var(--line);
}

.gallery-grid .card h3 {
  margin-top: 0;
}

.gallery-grid .card p {
  margin-bottom: 0;
}

.gallery-grid .card img {
  cursor: zoom-in;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.86);
}

.gallery-lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.gallery-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 800;
  cursor: pointer;
}

.gallery-filter:hover,
.gallery-filter:focus-visible {
  border-color: var(--navy);
}

.gallery-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.gallery-grid .card[hidden] {
  display: none !important;
}

/* Homepage Featured Work */
.featured-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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