/* ==========================================================================
   Components — buttons, header, footer, cards, gallery, lightbox, accordion
   ========================================================================== */

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-base);
  text-decoration: none;
  border: 0;
  border-radius: var(--r-pill);
  padding: 15px 34px;
  cursor: pointer;
  transition: background var(--dur) var(--ease),
              transform 0.18s var(--ease),
              box-shadow var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: var(--white);
  box-shadow: var(--sh-primary);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-lt) 0%, var(--primary) 100%);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgb(var(--primary-rgb) / 0.48);
}
.btn--primary:active {
  transform: translateY(-1px);
  box-shadow: var(--sh-primary);
}

.btn--light {
  background: var(--white);
  color: var(--primary-dk);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}
.btn--light:hover { color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid rgb(var(--ink-rgb) / 0.2);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary-dk); background: rgb(var(--primary-rgb) / 0.05); }

.btn--sm { padding: 10px 22px; font-size: var(--fs-sm); }

/* Text link with sliding arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--primary-dk);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform var(--dur) var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* Marks a link that leaves the site (registration system) */
.link-arrow--ext::after { content: "\2197"; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid #F4DDD7;
  backdrop-filter: blur(10px);
}
.site-header__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; flex-shrink: 0; }
.brand img { width: 104px; height: 104px; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand__name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav__list { display: flex; gap: var(--sp-6); align-items: center; }
.nav__list a {
  color: var(--ink-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav__list a:hover,
.nav__list a[aria-current="page"] { color: var(--primary-dk); }
.nav__list a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.nav__cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%); color: var(--white); padding: 10px 22px; font-size: 0.9rem; box-shadow: 0 4px 16px rgb(var(--primary-rgb) / 0.32); }
.nav__cta:hover { background: linear-gradient(135deg, var(--primary-lt) 0%, var(--primary) 100%); color: var(--white); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: var(--sp-2);
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 900px) {
  :root { --nav-h: 116px; }
  .brand img { width: 88px; height: 88px; }
  .brand__name { font-size: 1.5rem; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--surface-dk);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    box-shadow: var(--sh-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a { display: block; padding: var(--sp-4) 0; border-bottom: 1px solid var(--surface-dk); font-size: 1.05rem; }
  .nav__cta { margin-top: var(--sp-5); align-self: flex-start; }
}

@media (max-width: 560px) {
  :root { --nav-h: 104px; }
  .brand { gap: var(--sp-2); }
  .brand img { width: 76px; height: 76px; }
  .brand__name { font-size: 1.2rem; }
}

/* ----------------------------------------------------------- Offer cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--sh-sm);
  border: 1px solid rgb(var(--primary-rgb) / 0.07);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sh-lg); }
.card--onwhite { background: var(--white); }

.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-dk); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: var(--fs-h3); margin-bottom: var(--sp-3); }
.card__body p { color: var(--ink-md); line-height: 1.7; font-size: 0.95rem; }

.card__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.tag {
  background: rgb(var(--primary-rgb) / 0.10);
  color: var(--primary-dk);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.card__foot { margin-top: auto; padding-top: var(--sp-5); }

/* ---------------------------------------------------------- Photo gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-4);
}
.gallery-item {
  border: 0;
  padding: 0;
  background: var(--surface-dk);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: zoom-in;
  position: relative;
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-6);
}

@media (max-width: 560px) {
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 1; }
}

/* -------------------------------------------------------------- Lightbox */
.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}
.lightbox::backdrop { background: rgb(var(--ink-rgb) / 0.94); }
.lightbox__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: var(--sp-6);
}
.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: 80vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox__cap {
  color: var(--surface);
  text-align: center;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  max-width: 60ch;
}
.lightbox__close {
  position: fixed;
  top: var(--sp-5); right: var(--sp-5);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.15);
  color: var(--surface);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

/* ------------------------------------------------------------- Accordion */
.faq-item {
  background: var(--white);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.faq-item summary {
  cursor: pointer;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 var(--sp-6) var(--sp-6); color: var(--ink-md); line-height: 1.75; }
.faq-item__body p + p,
.faq-item__body ul { margin-top: var(--sp-4); }
.faq-item__body li { padding-left: var(--sp-5); position: relative; margin-bottom: var(--sp-2); }
.faq-item__body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.faq-item__body strong { color: var(--ink); }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--white); color: var(--ink-md); padding-block: var(--sp-8) var(--sp-6); border-top: 6px solid var(--accent-lt); }
.site-footer a { color: var(--primary-dk); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dk); }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-7);
}
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: var(--sp-6); } }

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  display: block;
  margin-bottom: var(--sp-4);
}
.footer-brand__name span { color: var(--accent-lt); }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 42ch; }

.footer-col h2 {
  font-family: var(--font-body);
  color: var(--accent-dk);
  font-size: var(--fs-xs);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  font-weight: 700;
}
.footer-col li { margin-bottom: var(--sp-3); font-size: 0.9rem; }

.footer-contact { margin-top: var(--sp-5); font-size: 0.9rem; line-height: 1.9; }
.footer-contact a { text-decoration: underline; text-underline-offset: 3px; }

.footer-social { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 19px; height: 19px; fill: currentColor; }

.footer-bottom {
  border-top: 1px solid #F1D7CE;
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: 0.82rem;
}

/* <picture> wrappers must fill their container like a bare <img> would */
.gallery-item picture,
.card__media picture,
.feature__media picture { display: block; width: 100%; height: 100%; }
