/* =========================================================
   FIST GYM — styles.css
   Fitness & Self-Defense Techniques | Quezon City, PH
   ========================================================= */

/* 1. FONTS
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Roboto:wght@300;400;500;700&display=swap');

/* 2. CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --dark:       #0d0d0d;
  --bg-alt:     #161616;
  --accent:     #2d7a2d;
  --highlight:  #c9a227;
  --cream:      #f0ece0;
  --cream-dim:  rgba(240, 236, 224, 0.65);
  --accent-dim: rgba(45, 122, 45, 0.14);
  --border:     rgba(45, 122, 45, 0.22);
  --ff-display: 'Teko', sans-serif;
  --ff-body:    'Roboto', sans-serif;

  /* layout */
  --max-w:      1240px;
  --nav-h:      72px;
  --radius:     4px;
  --trans:      0.25s ease;

  /* inner page hero */
  --page-hero-bg: var(--bg-alt);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--dark);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* 4. TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); }

p { font-size: 1rem; font-weight: 300; }

/* 5. UTILITIES
   ========================================================= */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
.text-center { text-align: center; }

.label {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  margin-bottom: 1.2rem;
  color: var(--cream);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--cream-dim);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.divider {
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 1rem 0 2.4rem;
}
.divider.center { margin: 1rem auto 2.4rem; }

/* 6. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.8rem;
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--trans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--dark);
}

.btn-gold {
  background: var(--highlight);
  color: var(--dark);
  border: 2px solid var(--highlight);
}
.btn-gold:hover {
  background: transparent;
  color: var(--highlight);
}

/* 7. NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--trans), box-shadow var(--trans);
}

.navbar.scrolled {
  background: var(--dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.nav-inner {
  width: 90%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color var(--trans);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--trans);
}
.nav-links a:hover,
.nav-links a.active { color: var(--cream); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { margin-left: 1.5rem; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--trans), opacity var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--dark);
  padding: 1.5rem 5%;
  border-top: 1px solid var(--border);
  z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--cream); }
.mobile-nav .btn { margin-top: 1.2rem; display: inline-flex; }

/* 8. HERO — INDEX
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/banner.jpg?v=1');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.65) 60%, rgba(13,13,13,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 1.2rem;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--highlight);
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.6rem;
}

.hero-subtitle {
  font-family: var(--ff-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-size: 1.05rem;
  color: rgba(240,236,224,0.8);
  max-width: 540px;
  margin-bottom: 2.4rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--cream-dim);
  border-radius: 11px;
  position: relative;
}
.scroll-mouse::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: var(--cream);
  border-radius: 2px;
  animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* 9. FEATURES STRIP
   ========================================================= */
.features-strip {
  background: var(--bg-alt);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.4rem 1.5rem;
  border-right: 1px solid var(--border);
  transition: background var(--trans);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: var(--accent-dim); }

.feature-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-item h4 {
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

/* 10. SERVICES GRID (index)
   ========================================================= */
.services-preview {
  background: var(--dark);
}

.services-grid-9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  transition: transform var(--trans);
}
.service-card:hover { transform: translateY(-4px); }

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover img { transform: scale(1.06); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
}

.service-card-label {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 0.3rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #fff;
}

/* text-only service cards */
.service-card.text-only {
  aspect-ratio: unset;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service-card.text-only .service-card-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* 11. BRAND TEASER
   ========================================================= */
.brand-teaser {
  background: var(--bg-alt);
}

.brand-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.brand-teaser-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.brand-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-teaser-img::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}

.brand-teaser-text .label { color: var(--highlight); }

.brand-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  color: var(--cream);
  border-left: 3px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.4rem 0;
  line-height: 1.35;
}

/* 12. STATS ROW
   ========================================================= */
.stats-row {
  background: var(--dark);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 3rem 2rem;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--highlight);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* 13. SOCIAL CTA
   ========================================================= */
.social-cta {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--cream);
  transition: all var(--trans);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.social-btn svg { width: 20px; height: 20px; }
.social-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* 14. SOCIAL FEED GRID
   ========================================================= */
.social-feed {
  background: var(--dark);
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.feed-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.feed-item:hover img { transform: scale(1.08); }

/* 15. PAGE HERO (inner pages)
   ========================================================= */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--page-hero-bg);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 0% 50%, rgba(45,122,45,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(201,162,39,0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-hero h1 { color: var(--cream); margin-bottom: 0.8rem; }
.page-hero p  {
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* 16. ABOUT PAGE
   ========================================================= */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.philosophy-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--trans), background var(--trans);
}
.philosophy-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.philosophy-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.philosophy-card h3 { font-size: 1.3rem; margin-bottom: 0.7rem; }

.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-item {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  transition: background var(--trans);
}
.value-item:hover { background: var(--accent-dim); }

.value-number {
  font-family: var(--ff-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--highlight);
  line-height: 1;
  min-width: 56px;
}

.value-item h4 { margin-bottom: 0.4rem; }
.value-item p  { font-size: 0.9rem; color: var(--cream-dim); }

/* timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.4rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
  font-family: var(--ff-display);
  font-size: 0.9rem;
  color: var(--highlight);
  letter-spacing: 0.12em;
  margin-bottom: 0.3rem;
}

.timeline-item h4 { margin-bottom: 0.5rem; }
.timeline-item p  { font-size: 0.92rem; color: var(--cream-dim); }

/* 17. SERVICES PAGE
   ========================================================= */
.disclaimer-bar {
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}
.disclaimer-bar svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.category-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3/2;
  cursor: pointer;
}
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-tile:hover img { transform: scale(1.07); }

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.category-tile h3 { font-size: 1.5rem; color: #fff; }
.cat-count {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--highlight);
  text-transform: uppercase;
  font-family: var(--ff-body);
  margin-bottom: 0.3rem;
}

.services-section {
  margin-bottom: 4rem;
}

.services-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.services-section-header svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color var(--trans), background var(--trans);
}
.service-item:hover {
  border-color: var(--border);
  background: var(--accent-dim);
}

.service-bullet {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.service-item h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.service-item p  { font-size: 0.85rem; color: var(--cream-dim); line-height: 1.5; }

/* 18. GALLERY PAGE
   ========================================================= */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--cream-dim);
  background: transparent;
  transition: all var(--trans);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-group { margin-bottom: 3rem; }
.gallery-group-title {
  font-family: var(--ff-display);
  font-size: 1.2rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.masonry {
  columns: 4;
  column-gap: 12px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}
.masonry-item:hover img { transform: scale(1.05); }

.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,13,13,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--trans);
}
.masonry-item:hover .masonry-overlay { opacity: 1; }

.masonry-overlay svg { width: 36px; height: 36px; color: #fff; }

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-inner img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(13,13,13,0.7);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); border-color: var(--accent); }

.lightbox-close { top: -1.5rem; right: -1.5rem; }
.lightbox-prev  { top: 50%; left: -3rem; transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: -3rem; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--cream-dim);
  white-space: nowrap;
}

/* 19. CONTACT PAGE
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-blocks { display: flex; flex-direction: column; gap: 2rem; }

.contact-block {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; color: var(--accent); }

.contact-block h4 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--highlight);
  margin-bottom: 0.3rem;
}
.contact-block p, .contact-block a {
  font-size: 0.95rem;
  color: var(--cream-dim);
  transition: color var(--trans);
}
.contact-block a:hover { color: var(--accent); }

/* form */
.inquiry-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--trans);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field select option { background: var(--dark); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.form-success.show { display: block; }

/* map placeholder */
.map-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--cream-dim);
  margin: 3rem 0;
}
.map-placeholder svg { width: 40px; height: 40px; color: var(--accent); }
.map-placeholder a { color: var(--accent); font-size: 0.9rem; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.3rem 0;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--trans);
}
.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: transform var(--trans);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding-bottom: 1.3rem;
  font-size: 0.95rem;
  color: var(--cream-dim);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* 20. FOOTER
   ========================================================= */
.footer {
  background: #080808;
  border-top: 3px solid var(--accent);
}

.footer-main {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.footer-brand-name {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}
.footer-tagline {
  font-size: 0.82rem;
  color: var(--cream-dim);
  line-height: 1.6;
}
.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.footer-social {
  width: 38px;
  height: 38px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans), border-color var(--trans);
}
.footer-social:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h5 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-nav a {
  font-size: 0.88rem;
  color: var(--cream-dim);
  transition: color var(--trans);
}
.footer-nav a:hover { color: var(--cream); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-contact-item span {
  font-size: 0.85rem;
  color: var(--cream-dim);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(240,236,224,0.4);
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.badge svg { width: 12px; height: 12px; }

/* 21. SCROLL TO TOP
   ========================================================= */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--trans), transform var(--trans);
  z-index: 500;
}
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top svg { width: 20px; height: 20px; color: #fff; }

/* 22. FADE-IN ANIMATIONS
   ========================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-main   { grid-template-columns: repeat(2, 1fr); }
  .masonry       { columns: 3; }
  .origin-grid,
  .brand-teaser-inner { gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .hero-btns { flex-direction: column; max-width: 240px; }

  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .services-grid-9   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid        { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid   { grid-template-columns: 1fr; }
  .origin-grid,
  .brand-teaser-inner { grid-template-columns: 1fr; }
  .category-tiles    { grid-template-columns: repeat(2, 1fr); }
  .services-list     { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .footer-main       { grid-template-columns: 1fr; }
  .masonry           { columns: 2; }
  .feed-grid         { grid-template-columns: repeat(3, 1fr); }
  .lightbox-prev     { left: -0.5rem; }
  .lightbox-next     { right: -0.5rem; }
  .footer-bottom     { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .features-grid   { grid-template-columns: 1fr; }
  .services-grid-9 { grid-template-columns: 1fr; }
  .stats-grid      { grid-template-columns: 1fr; }
  .stat-item       { border-right: none; border-bottom: 1px solid var(--border); }
  .masonry         { columns: 1; }
  .feed-grid       { grid-template-columns: repeat(2, 1fr); }
  .category-tiles  { grid-template-columns: 1fr; }
}
