:root {
  --blue-dark: #0f2d5e;
  --blue: #1a4d9c;
  --blue-light: #2563c7;
  --red: #d41e2c;
  --red-dark: #a01522;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #dbe4f0;
  --panel: #ffffff;
  --panel-alt: #f0f4fa;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 45, 94, 0.08);
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--panel);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.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;
}

.hidden { display: none !important; }

.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.brand-text span {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--panel-alt);
  color: var(--blue-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 55%, #1e5bb8 100%);
  color: #fff;
  padding: 56px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.12rem;
  max-width: 54ch;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.hero-placeholder {
  min-height: 320px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,0.06),
      rgba(255,255,255,0.06) 12px,
      rgba(255,255,255,0.02) 12px,
      rgba(255,255,255,0.02) 24px
    );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}

.hero-photo {
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
}

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.staff-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.staff-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.staff-photo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff, var(--panel-alt));
  color: var(--muted);
  font-weight: 600;
}

.staff-body {
  padding: 22px 24px 26px;
}

.staff-body h3 {
  margin: 0 0 4px;
  color: var(--blue-dark);
}

.staff-role {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}

.staff-body p {
  margin: 0 0 12px;
}

.staff-hours {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.staff-hours strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.staff-hours ul {
  margin: 0;
  padding-left: 1.1rem;
}

.staff-hours li + li {
  margin-top: 4px;
}

.staff-soon {
  margin-bottom: 0 !important;
  font-style: italic;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--panel-alt);
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.split h2,
.visit-section h2,
.page-intro h1 {
  margin: 0 0 10px;
  color: var(--blue-dark);
  line-height: 1.2;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
}

.feature-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.product-card,
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.product-card .category,
.service-card .category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  font-weight: 700;
}

.product-card h3,
.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.product-card .brand,
.product-card .weight {
  color: var(--muted);
  font-size: 0.92rem;
}

.availability {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.availability::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.availability.in_stock::before { background: #15803d; }
.availability.limited::before { background: #d97706; }
.availability.out_of_stock::before { background: #94a3b8; }
.availability.service::before { background: var(--blue); }

.price-note {
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

.section-cta {
  margin-top: 28px;
  text-align: center;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-slot {
  margin: 0;
  min-height: 180px;
  border-radius: var(--radius);
  border: 2px dashed var(--line);
  background: linear-gradient(180deg, #fff, var(--panel-alt));
  display: grid;
  place-items: end start;
  padding: 16px;
}

.gallery-slot figcaption {
  font-weight: 600;
  color: var(--muted);
}

.gallery-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.gallery-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-photo figcaption {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Visit */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.visit-list {
  margin: 20px 0 0;
}

.visit-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.visit-list dt {
  font-weight: 700;
  color: var(--blue-dark);
}

.visit-list dd {
  margin: 0;
}

.visit-card {
  background: var(--panel-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.12s, background 0.12s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
}

.btn-inquire {
  display: block;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
  transition: background 0.12s, transform 0.12s;
}

.btn-inquire:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: rgba(255,255,255,0.45);
}

.section .btn-secondary,
.visit-card .btn-secondary,
.catalog-main .btn-secondary {
  color: var(--blue-dark);
  border-color: var(--line);
  background: var(--panel);
}

/* Catalog page */
.catalog-main {
  padding: 40px 0 72px;
  background: var(--panel-alt);
  min-height: calc(100vh - 160px);
}

.page-intro {
  margin-bottom: 24px;
}

.catalog-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.search-field input {
  width: 100%;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--panel);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
}

/* Contact page */
.contact-main {
  padding: 40px 0 72px;
  background: var(--panel-alt);
  min-height: calc(100vh - 160px);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.contact-info h1 {
  margin: 0 0 10px;
  color: var(--blue-dark);
}

.contact-details {
  margin-top: 24px;
}

.contact-map {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
}

.contact-map iframe,
.visit-map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.visit-map {
  margin-top: 20px;
}

.contact-form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form-card h2 {
  margin: 0 0 8px;
  color: var(--blue-dark);
}

.contact-notice {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  width: 100%;
}

.contact-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.contact-form label {
  display: block;
  font-weight: 600;
  color: var(--blue-dark);
  font-size: 0.95rem;
}

.contact-form .req {
  color: var(--red);
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--panel-alt);
  transition: border-color 0.12s, box-shadow 0.12s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 77, 156, 0.12);
}

.contact-form textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.5;
}

.form-field-message textarea {
  min-height: 220px;
}

.form-field-check {
  margin-top: 4px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.45;
  cursor: pointer;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.hp-field {
  display: none !important;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.captcha-field label {
  font-weight: 600;
}

.captcha-field input {
  max-width: 120px;
}

.hidden {
  display: none !important;
}

.contact-status {
  margin: 0;
  font-size: 0.95rem;
}

.contact-status.success {
  color: #15803d;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.6;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 16px;
}
.contact-status.error { color: var(--red); font-weight: 600; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map iframe { height: 240px; }
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.88);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  opacity: 0.9;
}

.site-footer a { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    display: none;
  }

  .site-nav.open { display: flex; }

  .header-inner { position: relative; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .visit-list div { grid-template-columns: 1fr; gap: 4px; }
}
