/* ============================================================
   HINGA COFFEE – Main Stylesheet
   Brand: Espresso #3D1A00 | Gold #C8952A | Cream #F8F4ED | Green #4A7A3C
   ============================================================ */

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

:root {
  --espresso:   #3D1A00;
  --roasted:    #7B3F00;
  --gold:       #C8952A;
  --gold-light: #E4B55A;
  --cream:      #F8F4ED;
  --cream-dark: #EDE7DA;
  --green:      #4A7A3C;
  --green-light:#6BA05A;
  --dark:       #1A0A00;
  --text:       #2C1810;
  --text-muted: #6B4C3B;
  --white:      #FFFFFF;
  --shadow-sm:  0 2px 8px rgba(61,26,0,.12);
  --shadow-md:  0 6px 24px rgba(61,26,0,.18);
  --shadow-lg:  0 16px 48px rgba(61,26,0,.22);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: .3s ease;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; color: var(--espresso); }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); max-width: 68ch; }

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section   { padding: 6rem 0; }
.section--dark { background: var(--espresso); color: var(--cream); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--cream); }
.section--dark p { color: rgba(248,244,237,.75); }
.section--cream { background: var(--cream); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: var(--transition);
}
.btn-primary {
  background: var(--gold);
  color: var(--espresso);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--espresso); transform: translateY(-2px); }

.btn-white {
  background: var(--white);
  color: var(--espresso);
}
.btn-white:hover { background: var(--cream); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.4rem 0;
}
#navbar.scrolled {
  background: rgba(26,10,0,.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: .85rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 92%);
  margin-inline: auto;
}

.nav-logo { display: flex; align-items: center; gap: .9rem; }
.nav-logo img { height: 52px; width: auto; border-radius: 4px; }
.nav-logo-text { line-height: 1.15; }
.nav-logo-text span:first-child {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 700;
}
.nav-logo-text span:last-child {
  display: block;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(200,149,42,.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: rgba(248,244,237,.85);
  letter-spacing: .04em;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

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

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block; height: 2px; width: 26px;
  background: var(--cream);
  border-radius: 2px;
  transition: var(--transition);
}
.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-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,10,0,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--cream);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  color: var(--cream);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* overflow visible so buttons never get clipped */
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /* fallback bg while video loads */
  background: var(--dark);
}
/* Gradient overlay on top of video */
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,10,0,.88) 0%, rgba(61,26,0,.72) 50%, rgba(74,122,60,.35) 100%);
  z-index: 1;
}
/* The actual <video> tag sits inside .hero-video-bg */
.hero-video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, 92%);
  margin-inline: auto;
  /* reduced top/bottom padding so content is never clipped on desktop */
  padding: 7rem 0 4rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(200,149,42,.2);
  border: 1px solid rgba(200,149,42,.4);
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p {
  color: rgba(248,244,237,.82);
  font-size: 1.15rem;
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(248,244,237,.55);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; opacity: .6; }

@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--espresso);
  line-height: 1;
}
.stat-label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--roasted);
  margin-top: .4rem;
}

/* ── About Section (Home) ─────────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-split .img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-split .img-wrap img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform .6s ease;
}
.about-split .img-wrap:hover img { transform: scale(1.04); }
.about-split .img-wrap::before {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 160px; height: 160px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p  { margin-bottom: 1.25rem; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin: 1.5rem 0 2rem;
}
.feature-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
}
.feature-chip svg { color: var(--green); flex-shrink: 0; }

/* ── Values ───────────────────────────────────────────────── */
.value-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: var(--transition);
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.value-icon {
  width: 60px; height: 60px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.6rem;
  transition: var(--transition);
}
.value-card:hover .value-icon { background: var(--gold); }
.value-card h4 { margin-bottom: .5rem; }
.value-card p  { font-size: .9rem; max-width: 100%; }

/* ── Video Section ────────────────────────────────────────── */
.video-section { padding: 0; position: relative; }
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 80vh;
  overflow: hidden;
  background: var(--dark);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26,10,0,.5), rgba(26,10,0,.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  transition: var(--transition);
}
.video-wrapper.playing .video-overlay { opacity: 0; pointer-events: none; }
.video-overlay h2 { color: var(--white); margin-bottom: .75rem; }
.video-overlay p  { color: rgba(248,244,237,.8); margin-bottom: 2rem; }

.play-btn {
  width: 80px; height: 80px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 3px solid rgba(255,255,255,.3);
}
.play-btn:hover { transform: scale(1.1); background: var(--gold-light); }
.play-btn svg { width: 32px; color: var(--espresso); margin-left: 4px; }

/* ── Gallery Strip ────────────────────────────────────────── */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 0;
}
.strip-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.strip-item:hover img { transform: scale(1.08); }
.strip-item .strip-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,26,0,.5);
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.strip-item:hover .strip-overlay { opacity: 1; }
.strip-overlay svg { width: 40px; color: var(--white); }

/* ── Products ─────────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.product-img {
  height: 240px;
  overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-body { padding: 1.75rem; }
.product-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,149,42,.1);
  padding: .3rem .75rem;
  border-radius: 50px;
  margin-bottom: .85rem;
}
.product-body h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.product-body p  { font-size: .92rem; max-width: 100%; margin-bottom: 1.25rem; }

/* ── Gallery Page ─────────────────────────────────────────── */
.gallery-filter {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .55rem 1.35rem;
  border-radius: 50px;
  font-size: .86rem;
  font-weight: 600;
  border: 2px solid var(--cream-dark);
  color: var(--text-muted);
  background: var(--white);
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--gold);
  color: var(--espresso);
  background: var(--gold);
}

.gallery-masonry {
  columns: 3;
  column-gap: 1.25rem;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.masonry-item img { width: 100%; display: block; transition: transform .5s ease; }
.masonry-item:hover img { transform: scale(1.04); }
.masonry-overlay {
  position: absolute;
  inset: 0;
  background: rgba(61,26,0,.55);
  opacity: 0;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay svg { width: 36px; color: var(--white); }

/* ── Lightbox ─────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,4,0,.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow-lg);
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(200,149,42,.85);
  color: var(--espresso);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); }
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ── Sustainability ───────────────────────────────────────── */
.sustain-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(200,149,42,.25);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition);
}
.sustain-card:hover { background: rgba(200,149,42,.1); border-color: var(--gold); }
.sustain-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.sustain-card h3 { color: var(--gold); margin-bottom: .65rem; }
.sustain-card p  { color: rgba(248,244,237,.75); max-width: 100%; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; }
.info-icon {
  width: 48px; height: 48px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--espresso);
  font-size: 1.2rem;
}
.info-item h4 { margin-bottom: .25rem; font-size: 1rem; }
.info-item p  { font-size: .92rem; max-width: 100%; }

.contact-form { background: var(--cream); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-group { margin-bottom: 1.35rem; }
.form-group label {
  display: block;
  font-size: .87rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,149,42,.15); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  background: var(--espresso);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/action-05.jpg') center/cover no-repeat;
  opacity: .18;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p  { color: rgba(248,244,237,.75); font-size: 1.1rem; max-width: 55ch; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .83rem;
  color: rgba(200,149,42,.7);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb span { color: rgba(248,244,237,.45); }

/* ── About Page Specifics ─────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: .9rem; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--green));
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2.1rem;
  top: .3rem;
  width: 14px; height: 14px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { color: var(--gold); font-size: 1rem; margin-bottom: .3rem; }

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--espresso) 0%, var(--roasted) 60%, var(--green) 100%);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(248,244,237,.8); margin: 0 auto 2rem; }
.cta-banner .btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(248,244,237,.7);
  padding: 4.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(200,149,42,.2);
}
.footer-brand img { height: 56px; width: auto; border-radius: 4px; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; max-width: 30ch; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(200,149,42,.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 1rem;
  transition: var(--transition);
  border: 1px solid rgba(200,149,42,.2);
}
.social-link:hover { background: var(--gold); color: var(--espresso); }

.footer-col h5 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .65rem; }
.footer-links a {
  font-size: .9rem;
  color: rgba(248,244,237,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  margin-bottom: .85rem;
}
.footer-contact-item i { color: var(--gold); margin-top: .2rem; flex-shrink: 0; }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .83rem;
  color: rgba(248,244,237,.4);
}
.footer-bottom a { color: var(--gold); }

/* ── Scroll Animation ─────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left  { opacity: 0; transform: translateX(-32px); transition: opacity .65s ease, transform .65s ease; }
.fade-in-right { opacity: 0; transform: translateX(32px);  transition: opacity .65s ease, transform .65s ease; }
.fade-in-left.visible, .fade-in-right.visible { opacity: 1; transform: translateX(0); }

/* ── Back to Top ──────────────────────────────────────────── */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--gold);
  color: var(--espresso);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 500;
}
#back-top.show { opacity: 1; pointer-events: all; }
#back-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ── Page Transition ──────────────────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--espresso);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 52px; height: 52px;
  border: 4px solid rgba(200,149,42,.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-split { grid-template-columns: 1fr; }
  .about-split .img-wrap { order: -1; }
  .about-split .img-wrap img { height: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-masonry { columns: 2; }
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
  .gallery-strip { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
