/* ═══════════════════════════════════════════════════════════════
   MAGNUS MEMORY MAKERS — STYLESHEET  (bright & pleasant theme)
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:          #FFFFFF;
  --bg-2:        #FBF8F4;   /* warm ivory */
  --bg-card:     #F5EFE8;   /* card surfaces */
  --bg-input:    #F8F4EF;
  --border:      #EDE5DB;
  --border-light:#F3EDE6;
  --text:        #1E1A16;
  --text-mid:    #4A3F38;
  --text-muted:  #8C7D74;
  --accent:      #C4714A;   /* warm terracotta */
  --accent-light:#D98B68;
  --accent-dark: #9E5535;
  --accent-pale: #F5E8DF;   /* tint for backgrounds */
  --radius:      5px;
  --radius-lg:   10px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h:    72px;
  --container:   1720px;
  --shadow:      0 8px 40px rgba(0,0,0,0.09);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.07);
  --shadow-sm:   0 2px 8px  rgba(0,0,0,0.06);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  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; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 3rem);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  font-weight: 600;
}

.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-inline: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btn-gold {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
.btn-gold:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196,113,74,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196,113,74,0.18);
}

.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   HEADER & NAV
   ═══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  background: rgba(255,255,255,0.98);
  box-shadow: 0 1px 0 var(--border);
  /* NO backdrop-filter here — it breaks position:fixed children (mega menu) */
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  transition: opacity var(--transition);
  text-decoration: none;
}
.nav-logo:hover { opacity: 0.8; }

/* ── First nav logo (Magnus) — change height/margin to resize/move ── */
.nav-logo-img {
  height: 60px;           /* resize: change this value */
  margin-left: 0;         /* move right: increase this value (e.g. 10px) */
  width: auto;
  display: block;
  filter: invert(1);
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  margin-left: 0.85rem;
}

/* ── Pipe separator — change margin to adjust gap ── */
.nav-logo-sep {
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-inline: 0.5rem;  /* gap around the | character */
  user-select: none;
  line-height: 1;
}

/* ── Second nav logo (BM Events) — change height/margin to resize/move ── */
.nav-logo-img-2 {
  height: 50px;           /* resize: change this value */
  margin-left: 0;         /* move right: increase this value (e.g. 10px) */
  margin-bottom: 5px;         /* move up: increase this value (e.g. 10px) */
}

/* Hide mobile panel logo on desktop */
.mobile-panel-logo {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent) !important;
}

.nav-cta {
  margin-left: 0.75rem;
  padding: 0.6rem 1.4rem;
  font-size: 0.8rem;
  /* always visible regardless of scroll state */
  color: #fff !important;
  border-color: var(--accent) !important;
  background: var(--accent) !important;
}
.nav-cta:hover {
  background: var(--accent-light) !important;
  border-color: var(--accent-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(196,113,74,0.3);
}

.chevron {
  font-size: 0.65rem;
  transition: transform var(--transition);
}
.has-mega:hover .chevron { transform: rotate(180deg); }

/* ── Mega Menu ──
   Opened/closed via JS (.mega-open class) — more reliable than CSS :hover alone.
   position:fixed so it spans viewport width. Parent must NOT have backdrop-filter. */
.has-mega { position: static; }

.mega-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.10);
  padding: 2rem 0 2.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  z-index: 850;
  pointer-events: none;
}

.has-mega.mega-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Decorative label above the grid */
.mega-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}


.mega-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.mega-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 0.9rem;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.mega-item:hover {
  background: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(196,113,74,0.18);
}

.mega-icon { font-size: 1.5rem; }
.mega-label {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}
.mega-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  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; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,26,22,0.5);
  z-index: 800;
  opacity: 0;
  transition: opacity var(--transition);
}

/* ═══════════════════════════════════════════════════════════════
   HERO — split layout (text left · carousel right)
   ═══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 4rem;
  align-items: center;
  padding-block: calc(var(--header-h) + 2.5rem) 3rem;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 460px;
  line-height: 1.8;
}

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

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-mid);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.btn-outline-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(196,113,74,0.18);
}

/* Right carousel panel */
.hero-right {
  position: relative;
  height: min(860px, 80vh);
  flex-shrink: 0;
  background: transparent;
}

.hero-reel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-reel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}

.hero-reel-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-reel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}

.hero-reel-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  z-index: 2;
}

.hero-reel-dots {
  display: none;
}

.hero-reel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: var(--transition);
}
.hero-reel-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-reel-dot {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about-section { background: var(--bg-2); overflow: hidden; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2rem;
}

.about-story {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.value-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.value-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.value-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.value-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-visual { position: relative; }

.about-img-stack {
  position: relative;
  height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.about-img {
  position: absolute;
  width: 70%;
  height: 88%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-img-1 {
  top: 0; left: 0;
  border: 4px solid #fff;
}
.about-img-2 {
  bottom: 0; right: 0;
  width: 60%;
  height: 75%;
  border: 4px solid #fff;
  box-shadow: 0 12px 50px rgba(0,0,0,0.12);
}

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

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.team-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.team-info { padding: 1.5rem; }

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════════════════════ */
.gallery-section { background: var(--bg); }

/* ── Category card grid ── */
.gallery-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.gallery-cat-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}

.gallery-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.gallery-cat-card:hover img {
  transform: scale(1.06);
}

.gallery-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.75rem;
}

.gallery-cat-icon {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.gallery-cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.gallery-cat-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-cat-cta {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.gallery-cat-card:hover .gallery-cat-cta {
  color: #fff;
  border-color: #fff;
}

/* Each narrow column holds 3 stacked photos */
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 255px;
  flex-shrink: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  width: 255px;
  height: 195px;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(30,22,16,0.78) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.gallery-caption-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: #fff;
  font-style: italic;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services-section {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.services-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(196,113,74,0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* Service category cards — mirrors gallery-cat-card pattern */
.service-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service-cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.service-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.service-cat-card:hover img {
  transform: scale(1.06);
}

.service-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,15,10,0.85) 0%, rgba(20,15,10,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.1rem 1rem;
  transition: background var(--transition);
}
.service-cat-card:hover .service-cat-overlay {
  background: linear-gradient(to top, rgba(20,15,10,0.92) 0%, rgba(20,15,10,0.45) 60%, transparent 100%);
}

.service-cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.service-cat-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
  margin-bottom: 0.55rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-cat-cta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light, #e8956d);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service-cat-card:hover .service-cat-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Service detail page: photo grid ─────────────────────────── */
.svc-photos-section {
  background: var(--bg);
  padding-block: 3.5rem 5rem;
}

.svc-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.svc-photo-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.svc-photo-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.svc-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.svc-photo-item:hover img {
  transform: scale(1.05);
}

.svc-photo-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(20,15,10,0.8) 0%, transparent 100%);
  color: #fff;
  font-size: 0.82rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.svc-photo-item:hover .svc-photo-caption {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   GOOGLE REVIEWS
   ═══════════════════════════════════════════════════════════════ */
.reviews-section {
  background: var(--bg);
  overflow: hidden;
}

.reviews-carousel {
  margin-top: 2rem;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 1rem 0;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.review-stars {
  font-size: 1.1rem;
  color: #FBBC04;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.review-text {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.review-author {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.review-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact-section { background: var(--bg); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: start;
}

/* Info */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item-icon {
  width: 38px; height: 38px;
  background: var(--accent-pale);
  border: 1px solid rgba(196,113,74,0.25);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-item-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.contact-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  background: var(--bg-2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-pale);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,113,74,0.15);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-icon svg {
  flex-shrink: 0;
}
.social-link--instagram .social-icon svg { fill: #E4405F; }
.social-link--facebook .social-icon svg { fill: #1877F2; }
.social-link--whatsapp .social-icon svg { fill: #25D366; }
.social-link--youtube .social-icon svg { fill: #FF0000; }

.map-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-placeholder svg { display: block; width: 100%; height: auto; }

/* Form */
.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7A72' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #C5B8B0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,113,74,0.12);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #D94F4F;
  box-shadow: 0 0 0 3px rgba(217,79,79,0.1);
}

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

.form-error {
  font-size: 0.78rem;
  color: #C43A3A;
  min-height: 1em;
}

.form-success {
  text-align: center;
  padding: 3rem 2rem;
}
.form-success.hidden { display: none; }
.contact-form.hidden { display: none; }

.success-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.form-success h3 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.form-success p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--text);   /* deep dark footer for contrast */
  border-top: 3px solid var(--accent);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-sep {
  display: none;
}

/* ── First footer logo (Magnus) — change height here to resize ── */
.footer-logo-img {
  height: 105px;
  width: auto;
  display: block;
  opacity: 0.92;
}

/* ── Second footer logo (BM Events) — change height here to resize ── */
.footer-logo-img-2 {
  height: 52px;
  margin-left: 8px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 0.85rem;
  margin-top: 1rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.footer-social-link:hover {
  color: var(--accent-light, #e8956d);
  border-color: var(--accent-light, #e8956d);
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(196,113,74,0.25);
}

.footer-bottom {
  padding-block: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.25);
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,16,12,0.93);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.lightbox-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  pointer-events: none;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox-caption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.08);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
  z-index: 1002;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(196,113,74,0.5);
  box-shadow: 0 6px 20px rgba(196,113,74,0.3);
  transform: scale(1.08);
}

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

/* Hide mobile-only mega list on desktop — shown only inside @media block below */
.mega-toggle-list { display: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-photo-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-img-stack { height: 360px; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    gap: 0.25rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 850;
    overflow-y: auto;
    box-shadow: -4px 0 40px rgba(0,0,0,0.12);
  }
  .nav-links.open { transform: translateX(0); }
  .mobile-nav-overlay.open { display: block; opacity: 1; }

  .nav-links .nav-link { color: var(--text-muted) !important; width: 100%; padding: 0.9rem 1rem; font-size: 1rem; }
  .nav-links .nav-link:hover { color: var(--accent) !important; }
  .nav-cta { display: none; }

  .has-mega .mega-menu { display: none; }

  .has-mega .mega-toggle-list {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-pale);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .has-mega.mega-open .mega-toggle-list {
    display: flex !important;
  }

  .has-mega.mega-open > .mega-trigger .chevron {
    display: inline-block;
    transform: rotate(180deg);
    transition: transform 0.2s ease;
  }
  .mega-trigger .chevron {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .mobile-panel-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem 1rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--accent-pale);
    text-decoration: none;
    width: 100%;
  }
  .mobile-panel-logo img {
    height: 38px;
    filter: invert(1);
  }
  .mobile-panel-logo span {
    display: none;
  }

  /* ── Mobile nav logos — change height/margin to resize/move ── */
  .nav-logo-img {
    height: 40px;           /* resize: change this value */
    margin-left: 0;         /* move right: increase this value */
  }
  .nav-logo-img-2 {
    height: 30px;           /* resize: change this value */
    margin-top: 5px;         /* move right: increase this value */
  }
  .nav-logo-text { display: none; }
  .nav-logo-sep { font-size: 1rem; margin-inline: 0.3rem; }

  .gallery-cat-grid { grid-template-columns: 1fr; }
  .gallery-cat-title { font-size: 1.2rem; }
  .gallery-cat-desc { font-size: 0.8rem; }
  .gallery-cat-cta { font-size: 0.72rem; }

  .service-cat-grid { grid-template-columns: 1fr; }
  .service-cat-title { font-size: 1rem; }

  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .section-subtitle { font-size: 0.9rem; }

  .review-card { flex: 0 0 260px; padding: 1.25rem 1rem; }

  .team-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }

  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ── Fix contact section overflow on mobile ── */
  .contact-grid { gap: 2rem; }
  .contact-info,
  .contact-form-wrap { width: 100%; max-width: 100%; overflow: hidden; }
  .contact-item-value { word-break: break-word; overflow-wrap: break-word; }
  .contact-social { flex-wrap: wrap; gap: 0.5rem; }
  .social-link { font-size: 0.75rem; padding: 0.5rem 0.9rem; }
  .map-placeholder iframe { width: 100%; }

  /* ── Fix footer overflow on mobile ── */
  .footer-contact p { word-break: break-word; overflow-wrap: break-word; }
  .footer-logos { align-items: flex-start; }
  /* ── Mobile footer logos (≤768px) — change height to resize ── */
  .footer-logo-img { height: 55px; }       /* First logo (Magnus) — resize here */
  .footer-logo-img-2 { height: 40px; }     /* Second logo (BM Events) — resize here */
  .footer-social { flex-wrap: wrap; }

  .hero-container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-right { height: min(340px, 50vh); order: -1; }
  .hero-headline { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn,
  .hero-actions .btn-outline-dark { width: 100%; justify-content: center; }

  /* Prevent any horizontal overflow */
  .container { max-width: 100%; overflow-x: hidden; }
}

@media (max-width: 480px) {
  .svc-photo-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1rem; }

  /* ── Small mobile nav logos — change height to resize ── */
  .nav-logo-img { height: 28px; }
  .nav-logo-img-2 { height: 20px; }

  .hero-sub { font-size: 0.9rem; }
  /* ── Small mobile footer logos (≤480px) — change height to resize ── */
  .footer-logo-img { height: 50px; }       /* First logo (Magnus) — resize here */
  .footer-logo-img-2 { height: 35px; }     /* Second logo (BM Events) — resize here */
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY PAGE — Client grid & detail panel
   ═══════════════════════════════════════════════════════════════ */

/* ── Dark category hero ── */
.gp-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 2.5rem;
  margin-bottom: 0;
  background: #111;
}

.gp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.35);
  transform: scale(1.08);
}

.gp-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 1.5rem);
}

.gp-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
  transition: color 0.25s;
}
.gp-back:hover { color: #fff; }

.gp-hero-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.gp-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.gp-hero-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.gp-hero-stat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

/* ── Client grid ── */
.gp-clients {
  background: var(--bg);
  padding-block: 3.5rem 5rem;
}

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

/* Make 1st and 4th cards wide */
.client-card:nth-child(3n+1) {
  grid-column: span 2;
}

.client-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: 0 6px 30px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s ease;
}
.client-card:nth-child(3n+1) { aspect-ratio: 16/8; }

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
}

.client-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.client-card:hover .client-card-cover { transform: scale(1.06); }

.client-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,8,6,0.88) 0%,
    rgba(10,8,6,0.35) 45%,
    transparent 100%
  );
}

.client-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem 1.1rem;
}

.client-card-location {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}

.client-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.client-card:nth-child(3n+1) .client-card-name { font-size: 1.5rem; }

.client-card-cta {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.client-card:hover .client-card-cta {
  opacity: 1;
}

.client-card-btn {
  display: inline-block;
  padding: 0.55rem 1.4rem;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

/* ── Client detail full-screen panel ── */
.client-detail {
  position: fixed;
  inset: 0;
  z-index: 950; /* above site-header (900) and mega-menu (850) */
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}
.client-detail.open {
  transform: translateY(0);
}

.cd-header {
  background: #111;
  padding-block: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cd-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.cd-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cd-back:hover { color: #fff; }

.cd-meta { flex: 1; }

.cd-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.cd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  color: #fff;
  line-height: 1.15;
}

.cd-info {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.15rem;
}

.cd-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Photo masonry grid */
.cd-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-block: 2.5rem 4rem;
}

.cd-photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--bg-card);
}
.cd-photo-item:nth-child(4n+1) {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.cd-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.cd-photo-item:hover img { transform: scale(1.05); }

.cd-photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.82rem;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cd-photo-item:hover .cd-photo-caption { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .client-card:nth-child(3n+1) { grid-column: span 2; }
  .cd-photos { grid-template-columns: repeat(2, 1fr); }
  .cd-photo-item:nth-child(4n+1) { grid-column: span 2; aspect-ratio: 16/9; }
  .gp-hero-title { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .cd-header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .cd-count { display: none; }
}

@media (max-width: 480px) {
  .client-grid { grid-template-columns: 1fr; }
  .client-card:nth-child(3n+1) { grid-column: span 1; aspect-ratio: 4/3; }
  .cd-photos { grid-template-columns: 1fr; }
  .cd-photo-item:nth-child(4n+1) { grid-column: span 1; aspect-ratio: 4/3; }
}
