@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E2C47A;
  --gold-dim:    rgba(201,168,76,0.15);
  --charcoal:    #111111;
  --surface:     #1A1A1A;
  --surface-2:   #222222;
  --surface-3:   #2C2C2C;
  --text:        #E8E2D9;
  --text-muted:  #8C8680;
  --white:       #FFFFFF;
  --radius:      4px;
  --radius-lg:   10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background-color: var(--charcoal);
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

/* grain overlay on the whole page */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
}

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ─── HEADER ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 0 32px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#logo {
  height: 44px;
  width: auto;
  margin-right: 12px;
  vertical-align: middle;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.3));
}

.brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 10px;
}

/* ─── NAV ────────────────────────────────────────── */
.menu-toggle {
  display: block;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--gold);
  user-select: none;
  line-height: 1;
  transition: opacity 0.2s;
}
.menu-toggle:hover { opacity: 0.7; }

nav {
  max-height: 0;
  overflow: hidden;
  background-color: rgba(17,17,17,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  position: absolute;
  top: 72px;
  right: 0;
  width: 100%;
  text-align: center;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
}

nav.show { max-height: 480px; }

nav a {
  display: block;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: color 0.25s ease, letter-spacing 0.25s ease;
}

nav a:first-child { border-top: none; }

nav a:hover {
  color: var(--gold);
  letter-spacing: 0.28em;
}

/* ─── HERO (index.html) ──────────────────────────── */
#hero {
  position: relative;
  text-align: center;
  color: var(--white);
  background-size: cover;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 60%,
    rgba(17,17,17,0.85) 100%
  );
  z-index: 1;
}

#hero #logohero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.06;
  width: 70%;
  max-width: 560px;
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: sepia(1) saturate(0);
}

#hero h2,
#hero p {
  position: relative;
  z-index: 2;
}

#hero h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  animation: fadeUp 1s ease both;
}

#hero p {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  animation: fadeUp 1s 0.2s ease both;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--charcoal));
  z-index: 2;
  pointer-events: none;
}

/* ─── SECTION COMMON ─────────────────────────────── */
section {
  padding: 80px 24px;
}

/* ─── ABOUT ──────────────────────────────────────── */
#about {
  position: relative;
  background-color: var(--surface);
  background-image: url('../img/bravarija/bravarija3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  padding: 120px 24px;
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(17,17,17,0.78) 100%);
}

.about-eyebrow {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.about-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(30,28,24,0.92) 0%, rgba(22,20,17,0.88) 100%);
  border: 1px solid rgba(201,168,76,0.18);
  border-top: 2px solid rgba(201,168,76,0.5);
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  text-align: center;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(201,168,76,0.1);
}

.about-header h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-header p {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(232,226,217,0.75);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-content strong { color: var(--gold-light); font-weight: 500; }

/* ─── STATS ROW ─── */
.about-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 52px;
  padding: 32px 0;
  border-top: 1px solid rgba(201,168,76,0.12);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.about-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
}

.about-stat-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.35), transparent);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── FEATURES LIST ─── */
.about-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  text-align: left;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(201,168,76,0.05);
  border: 1px solid rgba(201,168,76,0.15);
  border-left: 2px solid rgba(201,168,76,0.5);
  padding: 14px 18px;
  border-radius: 3px;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
  cursor: default;
}

.feature-icon {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.8;
}

/* ─── SERVICES ───────────────────────────────────── */
#services {
  position: relative;
  background-color: var(--surface);
  background-image: url('../img/bravarija/bravarija3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: overlay;
  padding: 100px 24px;
}

#services::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(17,17,17,0.78) 100%);
}

.services-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

#services h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold-light);
  margin-bottom: 12px;
  font-weight: 400;
}

.services-content > p:not(:first-child) {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 40px;
}

.services-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  padding: 0;
  list-style: none;
}

.services-list li {
  flex: 1 1 260px;
  max-width: 280px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 24px;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.5s ease;
}

.services-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.7), 0 0 0 1px rgba(201,168,76,0.3);
}

/* card background image */
.services-list li::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  z-index: 0;
  transition: transform 1s cubic-bezier(0.25,0.46,0.45,0.94), filter 0.5s ease;
}

.services-list li:hover::before {
  transform: scale(1.06);
  filter: brightness(0.35);
}

/* gradient fade over image */
.services-list li::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 1;
}

.services-list li:nth-child(1)::before { background-image: url('../img/bravarija/bravarija25.jpg'); }
.services-list li:nth-child(2)::before { background-image: url('../img/kio/kio1.png'); }
.services-list li:nth-child(3)::before { background-image: url('../img/hala/hala5.jpg'); }
.services-list li:nth-child(4)::before { background-image: url('../img/resetka/resetka1.jpg'); }

.services-list li h3,
.services-list li p,
.services-list li a {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.services-list h3 {
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--gold-light) !important;
}

.services-list p {
  font-size: 0.88rem !important;
  line-height: 1.7;
  color: rgba(232,226,217,0.75) !important;
  margin-bottom: 20px;
}

#services ul { list-style: none; padding: 0; margin: 0; }

/* ─── SERVICE BTN ────────────────────────────────── */
.service-btn {
  display: inline-block;
  position: relative;
  z-index: 2;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.service-btn:hover {
  background-color: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* ─── FOOTER ─────────────────────────────────────── */
#footer {
  position: relative;
  background-color: var(--surface);
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: 72px 24px 48px;
  overflow: hidden;
}

#footer #logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(14);
  width: auto;
  opacity: 0.025;
  z-index: 0;
  pointer-events: none;
  filter: sepia(1);
}

.footer-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
}

.footer-left { flex: 1; min-width: 300px; }

.footer-left h2 {
  margin-bottom: 24px;
  color: var(--gold-light);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--surface-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(201,168,76,0.5);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  background-color: var(--gold);
  color: var(--charcoal);
  border: none;
  padding: 14px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.form-message {
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 8px 0;
}

.form-message.success { color: #6fcf97; }
.form-message.error   { color: #eb5757; }

/* footer right */
.footer-right { flex: 0 0 auto; min-width: 220px; }

.footer-right h2 {
  margin-bottom: 24px;
  color: var(--gold-light);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.footer-right p {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-right a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s;
}

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

/* ─── LIGHTBOX ───────────────────────────────────── */
#lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
  backdrop-filter: blur(6px);
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 88%;
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,168,76,0.15);
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--gold-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.25s ease;
  z-index: 10002;
}

#lightbox-prev { left: 28px; }
#lightbox-next { right: 28px; }

#lightbox-prev:hover,
#lightbox-next:hover {
  background-color: rgba(201,168,76,0.25);
  transform: translateY(-50%) scale(1.1);
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10001;
  transition: color 0.2s;
  line-height: 1;
}
#lightbox-close:hover { color: var(--gold-light); }

/* ─── SERVICE PAGES ──────────────────────────────── */
.service-hero {
  position: relative;
  height: 62vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.6) 100%
  );
  backdrop-filter: blur(2px);
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
}

.service-hero h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 12px;
}

.service-hero p {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.9;
}

/* grid layout */
.service-detail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 200px);
  gap: 16px;
  max-width: 1100px;
  margin: 64px auto;
  padding: 0 24px;
  align-items: stretch;
}

.service-gallery { display: contents; }

.service-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease;
  cursor: pointer;
  filter: brightness(0.88) saturate(0.9);
}

.service-gallery img:hover {
  transform: scale(1.03);
  filter: brightness(1) saturate(1);
  box-shadow: 0 12px 36px rgba(0,0,0,0.65), 0 0 0 1px rgba(201,168,76,0.25);
}

.service-gallery img:nth-child(1) { grid-column: 1; grid-row: 1; }
.service-gallery img:nth-child(2) { grid-column: 1; grid-row: 2; }
.service-gallery img:nth-child(3) { grid-column: 1; grid-row: 3; }
.service-gallery img:nth-child(4) { grid-column: 1; grid-row: 4; }
.service-gallery img:nth-child(5) { grid-column: 2; grid-row: 4; }
.service-gallery img:nth-child(6) { grid-column: 3; grid-row: 4; }

.service-text {
  grid-column: 2 / 4;
  grid-row: 1 / 4;
  background-color: var(--surface);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.service-text h3 {
  font-size: 1.9rem;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.service-text p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.9;
  margin-bottom: 24px;
}

.service-points {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgba(201,168,76,0.15);
  margin-top: 4px;
  padding-top: 20px;
}

.service-points li {
  font-size: 0.9rem;
  color: rgba(232,226,217,0.8);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  padding-left: 4px;
}

.back-btn {
  display: inline-block;
  margin-top: 24px;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.back-btn:hover {
  background-color: var(--gold);
  color: var(--charcoal);
  box-shadow: 0 0 20px rgba(201,168,76,0.35);
  text-decoration: none;
}

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {

  header {
    padding: 0 20px;
    height: 64px;
  }

  header h1 { font-size: 1.1rem; }
  #logo { height: 36px; }

  nav { top: 64px; }

  .menu-toggle { font-size: 1.5rem; }

  #hero {
    min-height: 80vh;
    padding: 0 24px;
  }

  #hero #logohero { width: 90%; opacity: 0.06; }

  /* about */
  .about-content { padding: 36px 24px; }
  .about-stats { flex-direction: column; gap: 24px; padding: 24px 0; }
  .about-stat-divider { width: 48px; height: 1px; }
  .about-features { grid-template-columns: 1fr; }

  /* services */
  .services-list li { max-width: 100%; min-height: 280px; }

  /* footer */
  .footer-container { flex-direction: column; gap: 40px; }
  .footer-left, .footer-right { width: 100%; }
  .contact-form button { width: 100%; }

  /* service detail pages */
  .service-hero { height: 48vh; }

  .service-detail {
    display: flex;
    flex-direction: column;
  }

  .service-text { order: -1; margin-bottom: 8px; }

  .service-gallery {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 12px;
    padding: 8px 0;
    scrollbar-width: none;
  }

  .service-gallery::-webkit-scrollbar { display: none; }

  .service-gallery img {
    flex: 0 0 auto;
    width: 82%;
    height: 200px;
    border-radius: var(--radius);
  }

  #lightbox-prev, #lightbox-next { display: none; }

  .services-list li.active {
    transform: translateY(-5px) scale(1.02);
  }

  .services-list li.active::before { transform: scale(1.06); }
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */

/* ─── Page load: header slides down ─── */
@keyframes headerSlideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
header { animation: headerSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ─── Hero shimmer sweep on title ─── */
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

#hero h2 {
  background: linear-gradient(
    90deg,
    var(--white) 0%,
    var(--white) 35%,
    var(--gold-light) 50%,
    var(--white) 65%,
    var(--white) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 1s ease both, shimmer 4s 1.2s ease-in-out infinite;
}

/* ─── Gold line pulse under hero ─── */
@keyframes goldLinePulse {
  0%, 100% { opacity: 0.4; transform: scaleX(0.6); }
  50%       { opacity: 1;   transform: scaleX(1); }
}

#hero::before {
  /* keep existing gradient, add pseudo separator */
}

.service-hero-content::after,
#hero .hero-line {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 0;
  animation: goldLinePulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

/* ─── Nav link gold underline draw ─── */
nav a {
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center;
}
nav a:hover::after { transform: translateX(-50%) scaleX(1); }

/* ─── Scroll reveal base state ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; opacity: 1; transform: none; }

/* ─── Service hero: subtle zoom-in on load ─── */
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.service-hero {
  animation: heroZoom 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Gold border glow on service-text on hover ─── */
.service-text {
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.service-text:hover {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 0 32px rgba(201,168,76,0.08);
}

/* ─── Footer form input focus animation ─── */
.contact-form input,
.contact-form textarea {
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  transform: translateY(-1px);
}

/* ─── About features: stagger on scroll ─── */
.about-features.reveal-stagger > * {
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.about-features.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: none; }
.about-features.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
.about-features.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
.about-features.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
.about-features.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }

/* ─── Service cards: cascade on scroll ─── */
.services-list.reveal-stagger > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.services-list.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.00s; opacity: 1; transform: none; }
.services-list.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.services-list.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; opacity: 1; transform: none; }
.services-list.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.36s; opacity: 1; transform: none; }

/* ─── Gold line divider animation ─── */
@keyframes lineGrow {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 1; }
}
.gold-divider {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
  transform-origin: center;
  animation: lineGrow 0.8s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── Service gallery images: stagger fade-in ─── */
.service-gallery img {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.4s ease, box-shadow 0.4s ease;
}
.service-gallery img.img-visible {
  opacity: 1;
  transform: scale(1);
}
/* keep hover effects working */
.service-gallery img.img-visible:hover {
  transform: scale(1.03);
  filter: brightness(1) saturate(1);
  box-shadow: 0 12px 36px rgba(0,0,0,0.65), 0 0 0 1px rgba(201,168,76,0.25);
}

/* ─── Back button reveal ─── */
.back-btn {
  position: relative;
  overflow: hidden;
}
.back-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}
.back-btn:hover::before { transform: translateX(0); }
.back-btn span, .back-btn { position: relative; z-index: 1; }
.back-btn:hover { color: var(--charcoal); }