:root {
  --yellow: #d4a012;
  --yellow-deep: #b8860b;
  --yellow-soft: #f5e6b8;
  --yellow-pale: #fdf8ee;
  --ink: #1c1c1c;
  --ink-muted: #5a5a5a;
  --ink-faint: #8a8a8a;
  --surface: #ffffff;
  --surface-alt: #faf7f2;
  --border: #e8e2d8;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(28, 28, 28, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--yellow-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-deep);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
}

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

p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.btn-primary:hover {
  background: var(--yellow-deep);
  border-color: var(--yellow-deep);
  color: var(--surface);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-full {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.nav-brand img {
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand abbr {
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1.1rem !important;
  background: var(--yellow);
  color: var(--ink) !important;
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--yellow-deep);
  color: var(--surface) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--yellow-pale) 0%, var(--surface) 55%);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
}

.hero-rays {
  position: absolute;
  top: -10%;
  right: -5%;
  width: min(55vw, 520px);
  aspect-ratio: 1;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg 12deg,
      var(--yellow-soft) 12deg 20deg,
      transparent 20deg 42deg,
      var(--yellow-soft) 42deg 50deg,
      transparent 50deg 72deg,
      var(--yellow-soft) 72deg 80deg,
      transparent 80deg 102deg,
      var(--yellow-soft) 102deg 110deg,
      transparent 110deg 132deg,
      var(--yellow-soft) 132deg 140deg,
      transparent 140deg 162deg,
      var(--yellow-soft) 162deg 170deg,
      transparent 170deg 192deg,
      var(--yellow-soft) 192deg 200deg,
      transparent 200deg 222deg,
      var(--yellow-soft) 222deg 230deg,
      transparent 230deg 252deg,
      var(--yellow-soft) 252deg 260deg,
      transparent 260deg 282deg,
      var(--yellow-soft) 282deg 290deg,
      transparent 290deg 312deg,
      var(--yellow-soft) 312deg 320deg,
      transparent 320deg 342deg,
      var(--yellow-soft) 342deg 350deg,
      transparent 350deg 360deg
    );
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy h1 {
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.125rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

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

.hero-visual {
  margin: 0;
  display: flex;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 380px);
  border-radius: 25%;
  box-shadow: var(--shadow);
}

/* Stats */

.stats {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.stats-grid article {
  background: var(--surface);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.stats-grid p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.quote-card blockquote {
  margin: 0 0 1rem;
}

.quote-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--ink);
  margin: 0;
}

.quote-caption {
  font-size: 0.95rem;
}

/* Cards */

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--yellow-deep);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--ink);
}

/* Donate */

.donate-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.donate-intro h3 {
  margin-bottom: 1rem;
  color: var(--ink);
}

.dropoff-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.dropoff-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.dropoff-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateY(-50%);
}

.dropoff-list li:last-child {
  border-bottom: none;
}

.banking-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.banking-panel h3 {
  margin: 0 0 1rem;
  color: var(--ink);
}

.banking-details {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.banking-details div {
  display: grid;
  gap: 0.15rem;
}

.banking-details dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.banking-details dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
}

.item-groups {
  display: grid;
  gap: 1.25rem;
}

.item-group {
  padding: 1.5rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.item-group h4 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow-deep);
}

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

.item-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow-deep);
}

/* Ways to help */

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

.ways-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.ways-card h3 {
  margin-bottom: 0.65rem;
  color: var(--ink);
}

.ways-detail {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ways-detail li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.ways-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow-deep);
}

.ways-detail li:last-child {
  margin-bottom: 0;
}

/* Help */

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

.help-card {
  padding: 2rem 0 0;
  border-top: 3px solid var(--yellow);
}

.help-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--yellow-soft);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.help-card h3 {
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-lg);
}

.cta-panel h3 {
  color: var(--surface);
  margin-bottom: 0.5rem;
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.cta-panel .btn-primary:hover {
  color: var(--ink);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.contact-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.contact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.contact-list li.contact-social {
  gap: 0.65rem;
}

.phone-links {
  display: grid;
  gap: 0.65rem;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-alt);
}

.phone-row-info {
  display: grid;
  gap: 0.15rem;
}

.phone-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.phone-row-number {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.phone-row-number:hover {
  color: var(--yellow-deep);
}

.phone-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.5rem 0.9rem 0.5rem 0.65rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--surface);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-whatsapp-btn:hover {
  transform: scale(1.05);
  color: var(--surface);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.phone-whatsapp-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-links {
  display: flex;
  gap: 0.65rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  background: var(--surface);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link--facebook:hover {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.35);
}

.social-link--instagram:hover {
  color: #c13584;
  border-color: rgba(193, 53, 132, 0.35);
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
}

.contact-form label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--surface-alt);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(212, 160, 18, 0.2);
}

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

.form-status {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
  color: var(--ink-faint);
}

.form-status.is-success {
  color: #2f6b3a;
}

.form-status.is-error {
  color: #9b2c2c;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  border-radius: 50%;
  opacity: 0.9;
}

.footer-brand strong {
  display: block;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-content: start;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--yellow);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Mobile nav */

@media (max-width: 900px) {
  .hero-inner,
  .split,
  .card-grid,
  .help-grid,
  .donate-layout,
  .ways-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(70vw, 280px);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0.5rem;
  }

  .nav-cta {
    margin: 0.5rem;
    text-align: center;
  }

  body.nav-open .nav-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  body.nav-open .nav-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .ways-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating contact buttons */

.contact-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-fab-expanded {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.75rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.contact-fab-expanded:not(.is-open) .contact-bubble {
  pointer-events: none;
}

.contact-fab-expanded.is-open {
  max-height: 220px;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

.contact-fab-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--surface);
  border: none;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab-trigger:hover {
  transform: scale(1.04);
}

.contact-fab-trigger svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}

.contact-fab-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.contact-bubble {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-bubble:hover {
  transform: scale(1.08);
  color: var(--surface);
}

.contact-bubble svg {
  width: 28px;
  height: 28px;
}

.contact-bubble--email {
  background: var(--yellow-deep);
}

.contact-bubble--whatsapp {
  background: #25d366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.contact-bubble--labeled {
  width: auto;
  height: 42px;
  padding: 0 0.9rem 0 0.65rem;
  gap: 0.35rem;
  border-radius: 999px;
}

.contact-bubble--whatsapp.contact-bubble--labeled:hover,
.contact-bubble--email.contact-bubble--labeled:hover {
  transform: none;
}

.contact-bubble--labeled svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-bubble-label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.contact-bubble-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 0.75rem;
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0.5rem;
  color: var(--surface);
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-bubble--email .contact-bubble-tooltip {
  background: var(--yellow-deep);
}

.contact-bubble--whatsapp .contact-bubble-tooltip {
  background: #25d366;
}

.contact-bubble:hover .contact-bubble-tooltip {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.contact-bubble-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
}

.contact-bubble--email .contact-bubble-tooltip::after {
  border-left-color: var(--yellow-deep);
}

.contact-bubble--whatsapp .contact-bubble-tooltip::after {
  border-left-color: #25d366;
}

.gallery-hero {
  padding-top: clamp(3rem, 8vw, 5rem);
}

.gallery-intro {
  max-width: 40rem;
  font-size: 1.05rem;
}

.gallery-meta {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

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

.gallery-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.gallery-card img,
.gallery-card-title {
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gallery-card-title {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.gallery-empty {
  text-align: center;
  color: var(--ink-muted);
}

.gallery-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.gallery-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-page-btn:hover:not(:disabled) {
  border-color: var(--ink-faint);
  color: var(--ink);
}

.gallery-page-btn.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.gallery-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-lightbox {
  position: relative;
  width: min(92vw, 960px);
  max-height: 92vh;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: visible;
}

.gallery-lightbox::backdrop {
  background: rgba(28, 28, 28, 0.72);
}

.gallery-lightbox-figure {
  margin: 0;
}

.gallery-lightbox-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
  background: var(--surface-alt);
}

.gallery-lightbox-figure figcaption,
.gallery-lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
}

.gallery-lightbox-caption {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.75);
  color: var(--surface);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(28, 28, 28, 0.9);
}

.gallery-lightbox-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-shrink: 0;
  height: 38px;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.gallery-lightbox-share svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--yellow-deep);
}

.gallery-lightbox-share:hover {
  border-color: var(--yellow-deep);
  background: var(--yellow-pale);
  color: var(--ink);
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.75);
  color: var(--surface);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.gallery-lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.gallery-lightbox-nav:hover:not(:disabled) {
  background: rgba(28, 28, 28, 0.9);
}

.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-lightbox-nav--prev {
  left: 0.75rem;
}

.gallery-lightbox-nav--next {
  right: 0.75rem;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .contact-fab {
    bottom: 1rem;
    right: 1rem;
  }

  .contact-bubble-tooltip {
    display: none;
  }
}
