/* ============================================
   FAMARIN — Site Stylesheet
   Marine Stainless Steel Products
   ============================================ */

:root {
  --bg: #f2f5f9;
  --bg-warm: #f7f4ef;
  --bg-white: #ffffff;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-strong: #ffffff;
  --navy: #1a2840;
  --navy-light: #243354;
  --navy-soft: rgba(26, 40, 64, 0.06);
  --line: rgba(200, 169, 110, 0.18);
  --gold: #c8a96e;
  --gold-dark: #9b7a43;
  --gold-light: #d9c08a;
  --gold-pale: #e8d9b8;
  --gold-soft: rgba(200, 169, 110, 0.13);
  --gold-border: rgba(200, 169, 110, 0.28);
  --blue: #4e6a8a;
  --text: #1a2840;
  --muted: #6b7889;
  --danger: #c96e6e;
  --success: #6ab987;
  --shadow-xs: 0 2px 8px rgba(26, 40, 64, 0.05);
  --shadow-sm: 0 6px 22px rgba(26, 40, 64, 0.08);
  --shadow: 0 14px 44px rgba(26, 40, 64, 0.11);
  --shadow-lg: 0 28px 72px rgba(26, 40, 64, 0.15);
  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 8px;
  --container: min(1180px, calc(100vw - 2.5rem));
  --section-v: 5.5rem;
  --transition: 200ms ease;
  --transition-slow: 320ms ease;
}

/* ─── Reset ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[data-aos]:not(.aos-init):not(.aos-animate) {
  opacity: 1;
  transform: none;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; }
main { overflow: clip; }

/* ─── Layout ─────────────────────────────── */
.container {
  width: var(--container);
  margin: 0 auto;
}

.section { padding: var(--section-v) 0; }

/* Section color rhythm */
.section-white  { background: var(--bg-white); }
.section-light  { background: var(--bg); }
.section-warm   { background: var(--bg-warm); }
.section-dark   { background: var(--navy); }

.section-dark p,
.section-dark .section-kicker ~ p { color: rgba(255, 255, 255, 0.55); }

.section-surface-alt {
  background: var(--bg-warm);
  border-block: 1px solid rgba(200, 169, 110, 0.08);
}

.section-header {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

/* ─── Typography ─────────────────────────── */
.section-kicker {
  display: inline-block;
  margin: 0 0 0.6rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-dark .section-kicker { color: var(--gold-light); }

h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-family: "Lora", Georgia, serif;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.1rem, 1.9vw, 1.45rem); }

p { margin: 0; color: var(--muted); }

.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #ffffff; }

/* ─── Buttons ─────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.94rem;
  transition: var(--transition);
  white-space: nowrap;
}

.button-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #0d1a2a;
  box-shadow: 0 6px 24px rgba(200, 169, 110, 0.28);
}

.button-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 169, 110, 0.42);
}

.button-outline {
  border-color: rgba(26, 40, 64, 0.16);
  background: var(--bg-white);
  color: var(--text);
}

.button-outline:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-sm);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.button-outline-light:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
}

.button-small {
  min-height: 2.4rem;
  padding: 0.48rem 1rem;
  font-size: 0.875rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.text-link:hover { color: var(--gold-dark); gap: 0.6rem; }
.text-link-danger { color: var(--danger); }

/* ─── Navbar ─────────────────────────────── */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.9rem 0;
}

.navbar {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.2), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.brand-text {
  display: grid;
  gap: 0.02rem;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.brand-text small {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-menu a:not(.button) {
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-menu a:not(.button):hover,
.nav-menu a.is-active {
  color: var(--text);
  background: var(--navy-soft);
}

.nav-menu .button-gold { margin-left: 0.5rem; }

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(26, 40, 64, 0.14);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}

.menu-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── Hero Section ───────────────────────── */
.hero-section {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
  background: linear-gradient(150deg, #dce8f5 0%, #e6edf7 35%, #ede8e0 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 12% 20%, rgba(200, 169, 110, 0.16), transparent),
    radial-gradient(ellipse 45% 55% at 88% 15%, rgba(78, 106, 138, 0.14), transparent);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/detail-wave.svg") center / cover no-repeat;
  opacity: 0.08;
  animation: heroZoom 24s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { position: relative; z-index: 1; }

.hero-eyebrow { margin-bottom: 0.85rem; }

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  margin-bottom: 1rem;
  color: var(--navy);
}

.hero-subtitle {
  max-width: 34rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

.hero-visual {
  position: relative;
  min-height: 26rem;
}

.hero-card {
  position: absolute;
  inset: 1.5rem 0 0 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.07);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}

.hero-panel {
  position: absolute;
  left: 0;
  bottom: 2rem;
  z-index: 2;
  padding: 0.85rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-width: 15rem;
}

.hero-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.hero-panel strong {
  display: block;
  color: var(--gold-dark);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ─── Stats / Badges below hero ──────────── */
.stats-section {
  background: var(--bg-white);
  border-bottom: 1px solid rgba(26, 40, 64, 0.07);
  padding: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-right: none;
  border-bottom: 1px solid rgba(26, 40, 64, 0.07);
  transition: background var(--transition);
}

.stat-card:last-child { border-bottom: none; }

.stat-card:hover { background: rgba(200, 169, 110, 0.04); }

.stat-card-text { display: grid; gap: 0.1rem; }

.stat-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.75;
}

.stat-card strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-card > span,
.stat-card-text span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Certification badge row */
.cert-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: flex-start;
  padding: 1rem 1.25rem;
  background: linear-gradient(90deg, rgba(200, 169, 110, 0.06), rgba(200, 169, 110, 0.03));
  border-top: 1px solid rgba(200, 169, 110, 0.12);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cert-row::-webkit-scrollbar { display: none; }

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-white);
  border: 1px solid var(--gold-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-dark);
  letter-spacing: 0.04em;
}

.cert-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  stroke-width: 2;
}

.cert-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ─── Page Hero (inner pages) ────────────── */
.page-hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  background: var(--navy);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 80% at 10% 50%, rgba(200, 169, 110, 0.14), transparent),
    radial-gradient(ellipse 55% 55% at 90% 20%, rgba(78, 106, 138, 0.2), transparent),
    url("../images/detail-wave.svg") center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-kicker { color: var(--gold-light); }

.page-hero h1 {
  color: #ffffff;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  max-width: 34rem;
  line-height: 1.12;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.58);
  max-width: 32rem;
  font-size: clamp(0.97rem, 1.6vw, 1.08rem);
  margin-top: 0.75rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.87rem;
}

/* ─── Category Flow ──────────────────────── */
.category-story-section { background: var(--bg-warm); }

.category-flow-stack {
  display: grid;
  gap: 2rem;
}

.category-flow-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.07);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}

.category-flow-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.category-flow-visual { overflow: hidden; background: var(--bg); }

.category-flow-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease;
}

.category-flow-card:hover .category-flow-visual img { transform: scale(1.04); }

.category-flow-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2.25rem 2rem;
}

.category-flow-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.category-flow-index {
  font-family: "Lora", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  color: rgba(200, 169, 110, 0.6);
  font-weight: 700;
  flex-shrink: 0;
}

.category-flow-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  text-transform: uppercase;
}

.category-flow-copy h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: 0.2rem;
}

.category-flow-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.category-flow-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid rgba(26, 40, 64, 0.09);
  color: var(--text);
}

/* ─── About Split ────────────────────────── */
.about-split { background: var(--bg-white); }

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.06);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.split-media img {
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.split-copy { display: grid; gap: 1.2rem; }

.split-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }

.bullet-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bullet-list li::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 0.55rem;
}

/* ─── Why Famarin ────────────────────────── */
.why-us-section {
  background: var(--navy);
  padding: var(--section-v) 0;
}

.why-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.why-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: background var(--transition-slow), border-color var(--transition-slow), transform var(--transition-slow);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(200, 169, 110, 0.35);
  transform: translateY(-2px);
}

.why-icon-box {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.16) 0%, rgba(200, 169, 110, 0.28) 100%);
  border: 1px solid rgba(200, 169, 110, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.why-icon-box svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 1.75;
}

.why-card-text { display: grid; gap: 0.3rem; }

.why-card-text h3 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-weight: 600;
}

.why-card-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ─── Gallery Preview ────────────────────── */
.gallery-preview { background: var(--bg); }

.masonry-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.gallery-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 18rem;
  cursor: pointer;
  border: 1px solid rgba(200, 169, 110, 0.13);
  box-shadow: var(--shadow-sm);
  padding: 0;
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
  background: var(--bg);
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.gallery-tile:hover img { transform: scale(1.05); }

.gallery-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 40, 64, 0.6) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-tile:hover::after { opacity: 1; }

.gallery-tile span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.83rem;
  font-weight: 500;
  background: rgba(26, 40, 64, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gallery-tile.is-hidden { display: none; }

/* ─── Gallery Filter ─────────────────────── */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover { color: var(--text); border-color: var(--gold-border); }

.filter-pill.is-active {
  background: var(--gold-soft);
  border-color: var(--gold-border);
  color: var(--gold-dark);
  font-weight: 600;
}

/* ─── CTA Panel ──────────────────────────── */
.cta-panel {
  background: var(--navy);
  padding: var(--section-v) 0;
}

.cta-panel-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3rem 2.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 169, 110, 0.2);
  background:
    radial-gradient(ellipse 55% 80% at 0% 50%, rgba(200, 169, 110, 0.09), transparent),
    rgba(255, 255, 255, 0.03);
}

.cta-panel .section-kicker { color: var(--gold-light); }
.cta-panel h2 { color: #ffffff; }

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}

.cta-contact > a:first-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.cta-contact > a:first-child:hover { color: #ffffff; }

/* ─── Contact Page ───────────────────────── */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.contact-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.07);
  box-shadow: var(--shadow-sm);
}

.contact-card h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  margin-bottom: 1.25rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.contact-list li {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(26, 40, 64, 0.07);
}

.contact-list li:last-child { border-bottom: 0; }

.contact-list strong {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.contact-list a,
.contact-list span { color: var(--muted); font-size: 0.94rem; }

.contact-list a:hover { color: var(--text); }

.map-frame {
  margin-top: 1.5rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(26, 40, 64, 0.08);
}

.map-frame iframe {
  width: 100%;
  min-height: 18rem;
  border: 0;
  display: block;
}

/* ─── Contact Form ───────────────────────── */
.contact-form { display: grid; gap: 1rem; }

.field-grid { display: grid; gap: 1rem; }

label { display: grid; gap: 0.38rem; }

label span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

input, textarea, select {
  width: 100%;
  padding: 0.82rem 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(26, 40, 64, 0.12);
  border-radius: var(--radius-sm);
  resize: vertical;
  transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--gold-border);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
}

input::placeholder, textarea::placeholder {
  color: rgba(107, 120, 137, 0.5);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-status { min-height: 1.5rem; font-size: 0.92rem; }

.checkbox-row { display: inline-flex; align-items: center; gap: 0.75rem; }
.checkbox-row input { width: 1rem; height: 1rem; }

/* ─── Flash Messages ─────────────────────── */
.flash-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.flash {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  font-size: 0.92rem;
}

.flash-success {
  color: #2a7a4c;
  background: rgba(106, 185, 135, 0.1);
  border-color: rgba(106, 185, 135, 0.28);
}

.flash-error {
  color: #a83030;
  background: rgba(201, 110, 110, 0.1);
  border-color: rgba(201, 110, 110, 0.28);
}

/* ─── Footer ─────────────────────────────── */
.site-footer {
  background: #111c2e;
  color: #ffffff;
  padding: 4.5rem 0 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-block .section-kicker { color: var(--gold-light); }

.footer-brand-block h2 {
  color: #ffffff;
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  max-width: 26rem;
  line-height: 1.32;
}

.footer-brand-block p {
  color: rgba(255, 255, 255, 0.42);
  margin-top: 0.85rem;
  font-size: 0.9rem;
  max-width: 24rem;
  line-height: 1.6;
}

.site-footer h3 {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-family: "Source Sans 3", Arial, sans-serif;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.footer-links li a,
.footer-links li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.93rem;
  transition: color var(--transition);
}

.footer-links li a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom p { color: rgba(255, 255, 255, 0.3); font-size: 0.87rem; }

.footer-meta { display: flex; gap: 1.25rem; }

.footer-meta a {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.87rem;
  transition: color var(--transition);
}

.footer-meta a:hover { color: rgba(255, 255, 255, 0.65); }

/* ─── About Page ─────────────────────────── */
.timeline {
  display: grid;
  gap: 1.5rem;
  max-width: 54rem;
  margin: 0 auto;
}

.timeline-item { display: grid; gap: 0.65rem; }

.timeline-year {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-dark);
  letter-spacing: 0.08em;
}

.timeline-card {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.07);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-slow), border-color var(--transition-slow);
}

.timeline-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gold-border);
}

.timeline-card h2 {
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  margin-bottom: 0.45rem;
}

.mission-grid-wrap {
  background: var(--bg-warm);
  border-block: 1px solid rgba(200, 169, 110, 0.09);
}

.mission-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.mission-card {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.07);
  box-shadow: var(--shadow-sm);
}

.mission-card .section-kicker { margin-bottom: 0.75rem; }

.mission-card h2 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.32;
}

/* ─── Admin ──────────────────────────────── */
.admin-body { min-height: 100vh; background: var(--bg); }
.admin-shell { min-height: 100vh; }
.admin-navbar-wrap { z-index: 30; }

.admin-login-section {
  min-height: calc(100vh - 8rem);
  display: grid;
  align-items: center;
}

.admin-login-panel { max-width: 32rem; margin: 0 auto; }

.admin-hero {
  display: grid;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-border);
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, var(--gold-soft), transparent),
    var(--bg-white);
  box-shadow: var(--shadow-sm);
  gap: 1.5rem;
}

.admin-panel {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-white);
  border: 1px solid rgba(26, 40, 64, 0.07);
  box-shadow: var(--shadow-sm);
}

.admin-form { display: grid; gap: 1rem; }
.admin-form small { color: var(--muted); font-size: 0.85rem; }

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.admin-select-sm { min-width: 13rem; padding: 0.65rem 0.9rem; }
.admin-contact-stack { display: grid; gap: 0.2rem; }
.message-cell { min-width: 18rem; color: var(--muted); white-space: pre-wrap; }

.table-note { margin-bottom: 1rem; color: var(--gold); font-size: 0.9rem; }
.table-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.table-actions form { display: inline; }

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid rgba(26, 40, 64, 0.12);
  background: var(--bg);
  color: var(--text);
  white-space: nowrap;
}

.status-badge.is-new {
  color: var(--gold-dark);
  border-color: var(--gold-border);
  background: var(--gold-soft);
}

.status-badge.is-contacted {
  color: #2a7a4c;
  border-color: rgba(106, 185, 135, 0.28);
  background: rgba(106, 185, 135, 0.1);
}

.admin-image-preview, .admin-gallery-preview { display: grid; gap: 1rem; }

.admin-image-preview {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid rgba(26, 40, 64, 0.1);
}

.admin-image-preview img { width: 100%; max-width: 22rem; border-radius: 12px; }
.admin-image-preview span { color: var(--muted); word-break: break-all; font-size: 0.88rem; }

.admin-table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; }

.admin-table th {
  padding: 0.75rem;
  border-bottom: 2px solid rgba(26, 40, 64, 0.08);
  text-align: left;
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid rgba(26, 40, 64, 0.06);
  text-align: left;
}

/* ─── Lightbox ───────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(17, 28, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 40;
}

.lightbox.is-active { display: grid; }

.lightbox-image {
  width: min(72rem, calc(100vw - 3rem));
  height: min(48rem, calc(100vh - 4rem));
  max-width: min(72rem, calc(100vw - 3rem));
  max-height: calc(100vh - 4rem);
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ─── Animations ─────────────────────────── */
.floating-badge { animation: float 4.5s ease-in-out infinite; }

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ─── Responsive: 576px ──────────────────── */
@media (min-width: 576px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }

  .stat-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2.25rem 2rem;
    border-right: 1px solid rgba(26, 40, 64, 0.07);
    border-bottom: none;
  }

  .stat-card:last-child { border-right: none; }

  .cert-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.25rem 2rem;
  }

  .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── Responsive: 768px ──────────────────── */
@media (min-width: 768px) {
  .section-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .masonry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .admin-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cta-panel-inner { grid-template-columns: 1fr auto; gap: 3rem; }

  .admin-gallery-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .category-flow-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .category-flow-card.is-reversed .category-flow-visual { order: 2; }
  .category-flow-card.is-reversed .category-flow-copy  { order: 1; }

  .category-flow-visual img {
    height: 100%;
    aspect-ratio: unset;
    min-height: 22rem;
  }

  .cta-contact {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

/* ─── Responsive: 992px ──────────────────── */
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }

  .split-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .masonry-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 3.5rem;
  }

  .category-flow-card {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

/* ─── Mobile nav ─────────────────────────── */
@media (max-width: 991.98px) {
  .menu-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(26, 40, 64, 0.08);
    gap: 0.2rem;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a:not(.button) { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }

  .nav-menu .button-gold { margin-left: 0; justify-content: center; }

  .hero-visual { min-height: 20rem; }

  .hero-card { inset: 1rem 0 0 1rem; }
}
