/*
 * Kamadenu Goushala: public site layout and components.
 * Colours, fonts, corners and shadows come from theme.css (CSS variables). Do not put colour codes here.
 * Mobile first: base rules are for phones, wider screens are added with min-width media queries.
 */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brown-900); }
p { margin: 0 0 var(--space-4); }
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.015em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(1.9rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.icon { width: 1.2em; height: 1.2em; flex: 0 0 auto; vertical-align: -0.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-4); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.empty { text-align: center; color: var(--text-muted); padding: var(--space-6) 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip-link:focus { left: var(--space-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); gap: var(--space-3); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; min-width: 0; }
.brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: contain; background: var(--white); box-shadow: var(--shadow-sm); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; color: var(--brown-900); letter-spacing: 0.04em; }
.brand-sub { font-size: 0.68rem; font-weight: 700; color: var(--gold-700); letter-spacing: 0.22em; text-transform: uppercase; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font: 600 0.95rem var(--font-body); color: var(--brown-900);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4); min-height: 44px; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }
.site-nav { display: none; width: 100%; padding-bottom: var(--space-3); }
.site-nav.is-open { display: block; }
.no-js .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text-main); text-decoration: none;
}
.site-nav a:hover { background: var(--brown-50); }
.site-nav a.is-active { background: var(--gold-100); color: var(--brown-900); }
/* "More" opens its drop-down only; on small screens it is a plain group label. */
.site-nav .sub-toggle {
  display: flex; align-items: center; gap: var(--space-1); width: 100%; padding: var(--space-3) var(--space-4);
  font: 600 1rem var(--font-body); color: var(--text-main); text-align: left;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: default;
}
.site-nav .sub-toggle.is-active { background: var(--gold-100); color: var(--brown-900); }
.site-nav .sub-toggle .icon-chevron { display: none; }

/* "More" drop-down. On small screens it is simply an indented list. */
.site-nav .sub-nav { margin: 0 0 var(--space-2) var(--space-4); }
.site-nav .sub-nav a { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); }
.site-nav .sub-nav a.is-active { color: var(--brown-900); }

@media (min-width: 900px) {
  .header-inner { flex-wrap: nowrap; }
  .menu-toggle { display: none; }
  .site-nav { display: block; width: auto; padding: 0; }
  .site-nav ul { display: flex; gap: var(--space-1); }
  .site-nav a { padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); font-weight: 500; position: relative; }
  .site-nav a.is-active::after {
    content: ""; position: absolute; left: 25%; right: 25%; bottom: 3px; height: 3px;
    border-radius: var(--radius-pill); background: var(--grad-accent-line);
  }
  .site-nav .has-sub { position: relative; }
  .site-nav .sub-toggle {
    width: auto; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
    font-weight: 500; font-size: inherit; line-height: inherit; cursor: pointer;
  }
  .site-nav .sub-toggle:hover { background: var(--brown-50); }
  .site-nav .sub-toggle.is-active { background: var(--gold-100); }
  .site-nav .sub-toggle .icon-chevron { display: inline; width: 0.8em; height: 0.8em; vertical-align: 0; transition: var(--transition); }
  .site-nav .has-sub:hover .icon-chevron, .site-nav .has-sub.is-open .icon-chevron { transform: rotate(180deg); }
  /* The parent of a drop-down keeps its tint but no underline. */
  .site-nav .has-sub > a.is-active::after { content: none; }
  .site-nav .sub-nav {
    display: block; position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60;
    min-width: 186px; margin: 0; padding: var(--space-2);
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(-6px);
    transition: var(--transition);
  }
  /* Keeps the pointer inside the menu while it travels down to the panel. */
  .site-nav .sub-nav::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
  .site-nav .has-sub:hover > .sub-nav,
  .site-nav .has-sub.is-open > .sub-nav {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .site-nav .sub-nav a {
    padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
    white-space: nowrap; font-size: 0.95rem;
  }
  .site-nav .sub-nav a.is-active { background: var(--gold-100); }
  .site-nav .sub-nav a.is-active::after { content: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 46px; padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font: 700 0.95rem/1.2 var(--font-body); letter-spacing: 0.02em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 54px; padding: var(--space-3) var(--space-6); font-size: 1rem; }
.btn-gold { background: var(--grad-gold); color: var(--brown-950); box-shadow: var(--shadow-gold); }
.btn-gold:hover { background: var(--grad-gold-hover); color: var(--brown-950); }
.btn-brown { background: var(--grad-brown); color: var(--white); box-shadow: var(--shadow-md); }
.btn-brown:hover { background: var(--grad-brown-hover); color: var(--white); }
.btn-outline { background: transparent; color: var(--brown-700); border-color: var(--brown-600); }
.btn-outline:hover { background: var(--brown-600); color: var(--white); }
.btn-outline-light { background: var(--glass-light); color: var(--white); border-color: var(--outline-light); }
.btn-outline-light:hover { background: var(--white); color: var(--brown-900); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-md); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); color: var(--white); }
.btn-whatsapp.btn-gold { background: var(--grad-gold); color: var(--brown-950); box-shadow: var(--shadow-gold); }
.btn-whatsapp.btn-gold:hover { background: var(--grad-gold-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; padding: var(--space-1) var(--space-4); margin-bottom: var(--space-3);
  border-radius: var(--radius-pill); border: 1px solid var(--border-gold);
  background: var(--gold-100); color: var(--gold-800);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.badge-on-dark { background: var(--gold-tint); color: var(--gold-300); }
.badge-glass { background: var(--gold-tint-strong); color: var(--gold-200); border-color: var(--gold-400); backdrop-filter: blur(4px); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white); text-align: center;
  background: var(--grad-hero-overlay), var(--hero-image, none) center / cover no-repeat, var(--brown-900);
  padding: var(--space-8) 0 calc(var(--space-8) + 2rem);
  border-radius: 0 0 50% 50% / 0 0 2.5rem 2.5rem;
}
.hero-inner { max-width: 880px; }
.hero h1 { color: var(--white); text-shadow: var(--hero-text-shadow); font-size: clamp(2rem, 7vw, 3.6rem); }
.hero-text { font-size: 1.1rem; color: var(--text-light); max-width: 680px; margin: 0 auto var(--space-6); }
.hero .btn-row { justify-content: center; }
@media (min-width: 768px) { .hero { padding: 7rem 0 8rem; } }

/* ---------- Page heading band ---------- */
.page-head {
  position: relative; color: var(--text-light);
  background: var(--grad-page-head), var(--head-image, none) center / cover no-repeat, var(--brown-950);
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 4px solid var(--gold-500);
}
.page-head-tall { padding: var(--space-8) 0 var(--space-7); }
.page-head h1 { color: var(--white); margin-bottom: var(--space-3); }
.page-lead { color: var(--text-on-dark-muted); font-size: 1.08rem; max-width: 720px; }
.crumbs { font-size: 0.9rem; color: var(--text-on-dark-muted); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.crumbs a { color: var(--gold-300); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--gold-200); }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: var(--space-6); }
.section-head h2::after, .group-title::after {
  content: ""; display: block; width: 70px; height: 3px; margin: var(--space-3) auto 0;
  border-radius: var(--radius-pill); background: var(--grad-accent-line);
}
.group-title { text-align: center; margin-top: var(--space-7); }
@media (min-width: 768px) { .section { padding: var(--space-8) 0; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-5); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-5, .grid-members { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (min-width: 600px) { .grid-5, .grid-members { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid-5 { grid-template-columns: repeat(5, 1fr); } .grid-members { grid-template-columns: repeat(4, 1fr); } }
.stack { display: grid; gap: var(--space-4); }
.grid + .center { margin: var(--space-6) 0 0; }
@media (min-width: 768px) { .grid + .center { margin-top: var(--space-7); } }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--offwhite-200); }
/* A photo far from its box's shape is shown whole over a blurred copy of itself (set by site.js). */
.fit-whole { position: relative; overflow: hidden; }
.fit-bg {
  position: absolute; inset: -24px; background: center / cover no-repeat;
  filter: blur(18px) brightness(0.8); transform: scale(1.1);
}
.fit-whole > img { position: relative; object-fit: contain !important; }
.card-img img, .card-img video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
/* A video cover shows a play triangle so it is clear it can be played. */
.card-img.is-video, .photo-grid .is-video { position: relative; }
.card-img.is-video::after, .photo-grid .is-video::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: rgba(28, 17, 8, 0.55) no-repeat center/18px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Cpath fill='%23fff' d='M2 1l13 8-13 8z'/%3E%3C/svg%3E");
  border: 2px solid var(--outline-light); pointer-events: none;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); padding: var(--space-5); flex: 1; }
.card-body > .btn { margin-top: auto; }
.card-body p { color: var(--text-muted); margin-bottom: var(--space-3); }
.card-meta { font-size: 0.85rem; font-weight: 600; color: var(--gold-800) !important; margin-bottom: var(--space-1) !important; }
.card-title { margin-bottom: var(--space-2); }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--brown-600); }
.card-plan { border-top: 4px solid var(--gold-500); }
.card-plan .card-body { align-items: center; text-align: center; }
.price { font-family: var(--font-body); font-size: 1.5rem; font-weight: 800; color: var(--brown-700) !important; margin-bottom: var(--space-3) !important; }

/* ---------- Panels, split layouts, quote ---------- */
.panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: var(--space-5);
}
.panel h2 { font-size: 1.4rem; }
.panel > :last-child { margin-bottom: 0; }
.panel-gold { background: var(--grad-quote); border-color: var(--border-gold); margin-top: var(--space-6); }
.split { display: grid; gap: var(--space-6); align-items: center; }
.split-top { align-items: start; }
.split-img img { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: var(--radius-lg); border: 3px solid var(--gold-200); box-shadow: var(--shadow-lg); }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
/* A long link or word typed in the admin must wrap, not push the page sideways on a phone. */
.prose { font-size: 1.05rem; overflow-wrap: anywhere; word-break: break-word; }
.prose-lead p:first-child { font-size: 1.12rem; color: var(--brown-800); }
.quote {
  margin: 0; padding: var(--space-6) var(--space-5); text-align: center;
  background: var(--grad-quote); border: 1px solid var(--border-gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.quote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 3.5vw, 1.5rem); color: var(--brown-800); }
.quote footer { font-weight: 600; color: var(--gold-800); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--space-5); border-left: 3px solid var(--gold-300); }
.timeline li { position: relative; padding: 0 0 var(--space-5) var(--space-4); }
.timeline li::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-5) - 9px); top: 6px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--gold-500); border: 3px solid var(--bg-soft);
}
.timeline-year { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--brown-700); }
.timeline p { margin: var(--space-1) 0 0; }

/* ---------- Breed tiles, members, photos ---------- */
.breed-tile {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-md);
  aspect-ratio: 4 / 3; background: var(--brown-800); box-shadow: var(--shadow-md); text-decoration: none;
}
.breed-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.breed-tile:hover img { transform: scale(1.06); }
.breed-tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-6) var(--space-4) var(--space-3);
  background: var(--grad-photo-caption);
  color: var(--white); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem;
}
.breed-tile-sm { aspect-ratio: 1; }
.breed-tile-sm span { font-size: 1rem; }
.member { margin: 0; text-align: center; }
.member img, .member-blank {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--white); box-shadow: var(--shadow-md); background: var(--offwhite-200); display: block;
}
.member figcaption { margin-top: var(--space-3); font-weight: 600; color: var(--brown-900); }
.photo-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.photo-grid a, .photo-grid .photo-video { display: block; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; background: var(--offwhite-200); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.photo-grid video { width: 100%; height: 100%; object-fit: cover; background: var(--brown-950); }
.photo-grid .is-video:hover video { transform: scale(1.05); }
.photo-grid .is-video video { transition: transform 0.5s ease; }
/* Heading above the other pictures filed under the same caption. */
.group-heading { margin-top: var(--space-6); }
.detail-back { margin-top: var(--space-6); }
.photo-grid a:hover img { transform: scale(1.05); }
.gallery-group + .gallery-group { margin-top: var(--space-7); }
.gallery-group h2 { font-size: 1.5rem; }

/* ---------- Detail pages ---------- */
.detail-meta { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-weight: 600; color: var(--gold-800); }
.detail-action { margin-top: var(--space-6); }
.detail-img { width: auto; max-width: 100%; max-height: 80vh; margin-left: auto; margin-right: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-top: var(--space-4); margin-bottom: var(--space-5); }
video.detail-img { display: block; width: 100%; background: var(--brown-950); max-height: 70vh; }
.facts { margin: 0 0 var(--space-5); }
.facts dt { font-family: var(--font-heading); font-weight: 700; color: var(--brown-800); font-size: 1.1rem; margin-top: var(--space-4); }
.facts dd { margin: var(--space-1) 0 0; color: var(--text-muted); }
.facts dd p { margin-bottom: var(--space-2); }
.ticks { margin: var(--space-2) 0 var(--space-4); padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: var(--space-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.6rem; height: 0.6rem;
  border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 3px var(--gold-100);
}

/* ---------- Contact ---------- */
.contact-cards .panel { display: flex; flex-direction: column; align-items: center; }
.contact-cards .panel .btn { margin-top: auto; }
/* Extra contacts added in the admin, directly under the main contact cards. */
.contact-more { padding-top: 0; }
.contact-role { color: var(--text-muted); font-weight: 600; }
.round-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: var(--space-3);
  border-radius: 50%; background: var(--gold-100); color: var(--brown-700); border: 1px solid var(--border-gold);
}
.round-icon .icon { width: 26px; height: 26px; }
.round-icon-wa { background: var(--success-bg); color: var(--whatsapp); }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 3px solid var(--white); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Call to action band ---------- */
.cta { background: var(--grad-dark); color: var(--text-light); padding: var(--space-7) 0; border-top: 4px solid var(--gold-500); }
.cta h2 { color: var(--white); }
.cta p { color: var(--text-on-dark-muted); font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-dark); color: var(--text-on-dark-muted); border-top: 4px solid var(--gold-500); padding-top: var(--space-7); }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-title { color: var(--white); font-size: 1.5rem; }
.footer-heading { color: var(--white); font-size: 1.1rem; margin: 0 0 var(--space-4); }
.footer-heading::after { content: ""; display: block; width: 40px; height: 3px; margin-top: var(--space-2); background: var(--grad-accent-line); border-radius: var(--radius-pill); }
.footer-links + .footer-heading { margin-top: var(--space-5); }
.footer-links, .footer-contact, .social { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--space-2); }
.site-footer a { color: var(--text-light); text-decoration: none; }
.site-footer a:hover { color: var(--gold-300); }
.footer-links a { display: inline-block; padding: 2px 0; }
.footer-contact li { display: flex; gap: var(--space-3); margin-bottom: var(--space-3); align-items: flex-start; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--gold-400); margin-top: 0.25em; }
.social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.social a {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass-light); border: 1px solid var(--border-on-dark); color: var(--gold-300);
}
.social a:hover { background: var(--gold-500); color: var(--brown-950); }
.footer-bottom { margin-top: var(--space-7); padding: var(--space-4) 0 calc(var(--space-4) + 70px); border-top: 1px solid var(--border-on-dark); font-size: 0.9rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5); }
.footer-credits { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); opacity: 0.85; }
/* The two company names read as ordinary text; they still open the site when clicked. */
.footer-credits a { color: inherit; text-decoration: none; }
.footer-credits a:hover, .footer-credits a:focus-visible { color: var(--gold-300); text-decoration: underline; }
/* On phones the floating buttons sit over the bottom line, so its text keeps clear of them. */
@media (max-width: 767px) { .footer-bottom .container { padding-right: 76px; } }
@media (min-width: 768px) { .footer-bottom { padding-bottom: var(--space-4); } }

/* ---------- Floating buttons: social links (only when set) above WhatsApp ---------- */
.float-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.social-float {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  color: var(--white); box-shadow: var(--shadow-lg);
}
.social-float .icon { width: 24px; height: 24px; }
.social-float:hover { color: var(--white); transform: scale(1.06); }
.social-float-instagram { background: var(--instagram); }
.social-float-facebook { background: var(--facebook); }
.social-float-youtube { background: var(--youtube); }
.wa-float {
  display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-lg);
}
.wa-float .icon { width: 32px; height: 32px; }
.wa-float:hover { background: var(--whatsapp-dark); color: var(--white); transform: scale(1.06); }

/* ---------- Intro text over a photo (Havan) ---------- */
.intro-photo {
  padding: var(--space-8) 0; color: var(--white);
  background: var(--grad-intro-photo), var(--intro-image) center / cover no-repeat, var(--brown-950);
}
.intro-photo .prose { text-shadow: var(--hero-text-shadow); }
.intro-photo .prose p, .intro-photo .prose-lead p:first-child { color: var(--white); }
.intro-photo + .section > .container > .group-title:first-child { margin-top: 0; }
@media (min-width: 768px) { .intro-photo { padding: calc(var(--space-8) * 1.5) 0; } }

/* ---------- Photo cards on text pages (Havan): photos left, text right ---------- */
.section-features { overflow: hidden; overflow-x: clip; overflow-y: visible; }
.stack-features { gap: var(--space-6); }
.feature { display: grid; gap: var(--space-4); align-items: stretch; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-6); min-height: 340px; }
  .stack-features { gap: var(--space-7); }
}
.feature-body { display: flex; flex-direction: column; justify-content: center; }
.feature-body h3 { font-size: 1.5rem; }
.feature-body h3::after {
  content: ""; display: block; width: 56px; height: 3px; margin-top: var(--space-2);
  border-radius: var(--radius-pill); background: var(--grad-accent-line);
}
.feature-body p { font-size: 1.05rem; }
.slider {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3;
  background: var(--offwhite-200); border: 3px solid var(--gold-200); box-shadow: var(--shadow-lg);
}
@media (min-width: 860px) { .slider { aspect-ratio: auto; min-height: 340px; } }
.slider-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 3px solid var(--gold-500); outline-offset: -3px; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slider-btn {
  position: absolute; top: 50%; width: 42px; height: 42px; margin-top: -21px; padding: 0;
  border: 2px solid var(--outline-light); border-radius: 50%; cursor: pointer;
  background: var(--slider-button-bg); color: var(--white); font-size: 1.8rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: var(--transition);
}
.slider-btn[hidden], .slider-dots[hidden] { display: none; }
.slider-btn:hover, .slider-btn:focus-visible { background: var(--slider-button-bg-hover); }
.slider-prev { left: var(--space-3); }
.slider-next { right: var(--space-3); }
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: var(--space-3);
  display: flex; justify-content: center; gap: var(--space-2);
}
.slider-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--outline-light); background: var(--slider-button-bg); transition: var(--transition);
}
.slider-dots button[aria-current="true"] { background: var(--gold-500); width: 26px; border-radius: var(--radius-pill); }

/* A story with several photos (Blogs & News): one wide slider in place of the single cover photo. */
.slider.detail-slider { aspect-ratio: 16 / 10; min-height: 0; margin: var(--space-4) 0 var(--space-5); }

/* Scroll animation: the photo comes in from the left, the text from the right. Only when JavaScript runs. */
html:not(.no-js) .reveal .feature-media, html:not(.no-js) .reveal .feature-body, html:not(.no-js) .reveal-up {
  opacity: 0; transition: opacity var(--reveal-duration) var(--reveal-ease), transform var(--reveal-duration) var(--reveal-ease);
}
html:not(.no-js) .reveal .feature-media { transform: translateX(calc(-1 * var(--reveal-distance))); }
html:not(.no-js) .reveal .feature-body { transform: translateX(var(--reveal-distance)); transition-delay: 0.12s; }
html:not(.no-js) .reveal-up { transform: translateY(calc(var(--reveal-distance) / 2)); }
html:not(.no-js) .reveal.is-visible .feature-media, html:not(.no-js) .reveal.is-visible .feature-body,
html:not(.no-js) .reveal-up.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
