/* =========================================================
   AURELIA BAY — CORE STYLESHEET
   ========================================================= */

:root {
  --primary: #111111;
  --secondary: #f1f8ff;
  --accent: #0077fd;
  --accent-dark: #8f7042;
  --white: #ffffff;
  --text: #333333;
  --muted: #777777;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-w: 1240px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 2px 10px rgba(17,17,17,.06);
  --shadow-md: 0 12px 32px rgba(17,17,17,.10);
  --shadow-lg: 0 24px 60px rgba(17,17,17,.16);

  --header-h: 84px;
  --ease: cubic-bezier(.22,.68,0,1);
}

/* -------------------- RESET -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

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

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* -------------------- TYPOGRAPHY -------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; color: var(--primary); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 10px;
}
.eyebrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 36px; height: 1px;
  background: var(--accent);
}

.section-heading {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 20px;
}

.body-copy {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 18px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .eyebrow::after { left: 50%; transform: translateX(-50%); }

section { padding: 110px 0; position: relative; }

/* -------------------- BUTTONS -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: transform .35s var(--ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { background: #003891; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  border: 1px solid rgba(255,255,255,.6);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

.btn-sm { padding: 11px 22px; font-size: 12px; }
.btn-block { width: 100%; }

/* -------------------- HEADER -------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 500;
  display: flex;
  align-items: center;
  transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.header-inner {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  transition: color .35s ease;
}
.site-header.is-scrolled .logo,
.site-footer .logo { color: var(--primary); }
.logo-mark { display: inline-flex; color: var(--accent); }

.primary-nav .nav-list { display: flex; gap: 34px; }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 6px 0;
  transition: color .35s ease;
}
.site-header.is-scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .3s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--accent); }
.site-header.is-scrolled .nav-link.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.is-scrolled .menu-toggle span { background: var(--primary); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open .menu-toggle span { background: var(--primary); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(84vw, 360px);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  z-index: 499;
  padding: calc(var(--header-h) + 24px) 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-nav-list { display: flex; flex-direction: column; gap: 22px; }
.mobile-nav-list a { font-family: var(--font-display); font-size: 22px; color: var(--primary); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.45);
  z-index: 498;
  opacity: 0;
  transition: opacity .35s ease;
}
.menu-backdrop.is-visible { opacity: 1; }

/* -------------------- HERO -------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.35) 45%, rgba(17,17,17,.75) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 950px; }
.hero-heading {
  font-size: clamp(40px, 6.2vw, 76px);
  color: var(--white);
  margin-bottom: 22px;
}
.hero-copy { font-size: 18px; color: rgba(255,255,255,.86); max-width: 52ch; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--white);
  z-index: 1;
}
.scroll-indicator-line {
  width: 1px; height: 44px;
  background: rgba(255,255,255,.5);
  position: relative;
  overflow: hidden;
}
.scroll-indicator-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--white);
  animation: scrollLine 2.2s ease-in-out infinite;
}
.scroll-indicator-text { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* -------------------- BOOKING WIDGET -------------------- */
.booking-wrap { margin-top: -64px; position: relative; z-index: 20; padding: 0 24px; }
.booking-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 20px;
  align-items: end;
}
.booking-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.booking-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.booking-field input, .booking-field select {
  border: 1px solid #e3ddd0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--white);
  transition: border-color .25s ease;
}
.booking-field input:focus, .booking-field select:focus { border-color: var(--accent); }
.booking-field.has-error input { border-color: #c0392b; }
.field-error {
  font-size: 12.5px;
  color: #c0392b;
  min-height: 1em;
}
.booking-submit { height: 48px; }

.booking-summary {
  margin-top: 18px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}
.summary-item { display: flex; flex-direction: column; gap: 4px; }
.summary-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.summary-value { font-size: 16px; font-weight: 500; }
.summary-nights { margin-left: auto; text-align: right; }
.summary-nights .summary-value { font-family: var(--font-display); font-size: 30px; color: var(--accent); }

/* -------------------- HORIZON DIVIDER (signature element) -------------------- */
.horizon-divider {
  height: 1px;
  max-width: 240px;
  margin: 90px auto 0;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.1s var(--ease);
}
.horizon-divider.is-drawn { transform: scaleX(1); }

/* -------------------- ABOUT -------------------- */
.about { padding-top: 60px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 76px; align-items: center; }
.about-media { position: relative; }
.about-img-main { border-radius: var(--radius-lg); width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.about-img-overlap {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 44%;
  border: 6px solid var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.about-copy { padding-top: 30px; }

.counters {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid #ece6d9;
  padding-top: 34px;
}
.counter-item { display: flex; flex-direction: column; gap: 6px; }
.counter-number { font-family: var(--font-display); font-size: 38px; color: var(--accent); font-weight: 600; }
.counter-label { font-size: 13px; color: var(--muted); }

/* -------------------- ROOMS -------------------- */
.rooms { background: var(--secondary); }
.room-slider-wrap { position: relative; }
.room-slider { overflow: hidden; }
.room-track { display: flex; gap: 26px; will-change: transform; transition: transform .55s var(--ease); }
.room-card {
  flex: 0 0 calc((100% - 26px*2) / 3);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.room-img { overflow: hidden; aspect-ratio: 7/5; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room-card:hover .room-img img { transform: scale(1.06); }
.room-body { padding: 26px; }
.room-body h3 { font-size: 24px; margin-bottom: 12px; }
.room-meta { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.room-desc { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.room-price { font-family: var(--font-display); font-size: 22px; color: var(--primary); margin-bottom: 18px; }
.room-price span { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.room-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.slider-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid #d9d0bd;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.slider-arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.slider-dots { display: flex; gap: 9px; }
.slider-dots button {
  width: 5px; height: 5px;
  border-radius: 50px;
  background: #d9d0bd;
  transition: background .3s ease, transform .3s ease;
}
.slider-dots button.is-active { background: var(--accent); transform: scale(1.25); }

/* -------------------- EXPERIENCE -------------------- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.experience-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
}
.experience-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.experience-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17,17,17,.75) 100%);
}
.experience-card:hover img { transform: scale(1.08); }
.experience-label {
  position: absolute; left: 22px; bottom: 20px; z-index: 1;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 22px;
}

/* -------------------- AMENITIES -------------------- */
.amenities { background: var(--secondary); }
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 20px 22px;
  border-radius: var(--radius-md);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.amenity-item:hover { transform: translateY(-4px); }
.amenity-icon { font-size: 22px; }

/* -------------------- DINING -------------------- */
.dining-grid, .location-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.dining-media img { border-radius: var(--radius-lg); aspect-ratio: 9/7; object-fit: cover; }
.dining-facts { margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.dining-facts li { display: flex; justify-content: space-between; max-width: 340px; border-bottom: 1px dashed #e3ddd0; padding-bottom: 10px; font-size: 14.5px; }
.dining-facts strong { color: var(--primary); }
.dining-facts span { color: var(--muted); }
.dining-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------- SPA -------------------- */
.spa { color: var(--white); padding: 150px 0; }
.spa-media { position: absolute; inset: 0; z-index: 0; }
.spa-media img { width: 100%; height: 100%; object-fit: cover; }
.spa-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,.55), rgba(17,17,17,.72)); }
.spa-content { position: relative; z-index: 1; max-width: 620px; text-align: center; margin: 0 auto; }
.spa-heading { color: var(--white); }
.spa-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px;
  margin: 28px 0 36px;
  font-size: 15px;
}
.spa-list li { position: relative; padding-left: 18px; }
.spa-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* -------------------- OFFERS -------------------- */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offer-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.offer-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.offer-card img { aspect-ratio: 3/2; object-fit: cover; }
.offer-body { padding: 26px; }
.offer-body h3 { font-size: 21px; margin-bottom: 10px; }
.offer-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.offer-valid { font-size: 12.5px; color: var(--accent) !important; font-weight: 600; margin-bottom: 18px !important; }

/* -------------------- GALLERY -------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filter-btn {
  padding: 10px 20px;
  border: 1px solid #e3ddd0;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.is-active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.gallery-grid {
  columns: 4;
  column-gap: 16px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item img { width: 100%; display: block; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item.is-hidden { display: none; }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(17,17,17,0);
  transition: background .3s ease;
}
.gallery-item:hover::after { background: rgba(17,17,17,.15); }

/* -------------------- TESTIMONIALS -------------------- */
.testimonials { background: var(--primary); color: var(--white); }
.testimonials .eyebrow { color: var(--accent); }
.testimonials .section-heading { color: var(--white); }
.testimonial-slider { max-width: 860px; margin: 0 auto; }
.testimonial-track { position: relative; min-height: 220px; }
.testimonial-card {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease;
  text-align: center;
}
.testimonial-card.is-active { opacity: 1; visibility: visible; position: relative; }
.stars { color: var(--accent); letter-spacing: 3px; font-size: 16px; display: block; margin-bottom: 20px; }
.testimonial-card p { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); font-style: italic; line-height: 1.5; margin-bottom: 26px; }
.testimonial-card footer { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-card footer img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-card footer div { text-align: left; }
.testimonial-card cite { display: block; font-style: normal; font-weight: 600; }
.testimonial-card footer span { font-size: 13px; color: rgba(255,255,255,.6); }
.testimonials .slider-controls .slider-arrow { border-color: rgba(255,255,255,.25); color: var(--white); }
.testimonials .slider-dots button { background: rgba(255,255,255,.25); }
.testimonials .slider-dots button.is-active { background: var(--accent); }

/* -------------------- LOCATION -------------------- */
.location {background: var(--secondary);}
.location-list { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; max-width: 380px; }
.location-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed #e3ddd0; padding-bottom: 12px; }
.location-list strong { color: var(--accent); }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.location-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.15) contrast(1.02); }

/* -------------------- NEWSLETTER -------------------- */
.newsletter { background: var(--secondary); }
.newsletter-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.newsletter-form { display: flex; gap: 14px; margin-top: 22px; }
.newsletter-field { flex: 1; text-align: left; }
.newsletter-form input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #ddd4c0;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.form-success { margin-top: 16px; color: #1c7a4b; font-weight: 500; }

/* -------------------- CONTACT -------------------- */
/* .contact { background: var(--secondary);} */
.contact-details { display: flex; flex-direction: column; gap: 18px; margin-top: 24px; }
.contact-details li { display: flex; flex-direction: column; gap: 4px; }
.contact-details strong { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.contact-details a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.form-field input, .form-field textarea {
  border: 1px solid #e3ddd0;
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  background: var(--white);
  resize: vertical;
  transition: border-color .25s ease;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field.has-error input, .form-field.has-error textarea { border-color: #c0392b; }

/* -------------------- FOOTER -------------------- */
.site-footer { background: var(--secondary); padding-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid #e3ddd0;
}
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 32ch; }
.footer-col h3 { font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; color: var(--primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--muted); }
.footer-col ul a:hover { color: var(--accent); }
.footer-newsletter form { display: flex; flex-direction: column; gap: 10px; }
.footer-newsletter input {
  padding: 12px 14px;
  border: 1px solid #ddd4c0;
  border-radius: var(--radius-sm);
  background: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e0efff;
  padding: 26px 24px;
  font-size: 15px;
  color: #343434;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: var(--accent); }

/* -------------------- FLOATING ELEMENTS -------------------- */
.floating-book {
  position: fixed;
  right: 28px; bottom: 28px;
  z-index: 400;
  background: var(--primary);
  color: var(--white);
  padding: 15px 26px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease), background .3s ease;
}
.floating-book:hover { background: var(--accent); transform: translateY(-3px); }

.back-to-top {
  position: fixed;
  right: 28px; bottom: 96px;
  z-index: 400;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: transform .3s var(--ease), background .3s ease, color .3s ease;
}
.back-to-top:hover { background: var(--primary); color: var(--white); }

/* -------------------- MODALS -------------------- */
.modal {
  position: fixed; inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.modal.is-open { visibility: visible; opacity: 1; }
.modal-overlay { position: absolute; inset: 0; background: rgba(17,17,17,.6); }
.modal-panel {
  position: relative;
  background: var(--white);
  max-width: 520px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: var(--radius-md);
  padding: 44px 38px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.98);
  transition: transform .35s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-panel h3 { font-size: 26px; margin-bottom: 16px; }
.modal-panel p { color: var(--muted); margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease;
}
.modal-close:hover { background: var(--secondary); }

.modal-lightbox .modal-panel,
.lightbox-panel {
  background: transparent;
  box-shadow: none;
  max-width: 90vw;
  padding: 0;
}
.lightbox-panel { position: relative; display: flex; align-items: center; justify-content: center; }
.lightbox-panel img { max-height: 82vh; max-width: 84vw; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-panel .modal-close { top: -46px; right: -6px; color: var(--white); }
.lightbox-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: background .3s ease;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-counter {
  position: absolute;
  bottom: -40px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: 13px;
}

body.modal-open { overflow: hidden; }
