/* =============================================
   Villa Bea Calabria – Stylesheet
   Aesthetic: Mediterranean Luxury / Coastal Warmth
   ============================================= */

:root {
  /* Color Palette – warm coastal tones */
  --sand: #F5F0E8;
  --sand-light: #FAF7F2;
  --terracotta: #C4704B;
  --terracotta-dark: #A85A38;
  --sea-deep: #1B3A4B;
  --sea-mid: #2D5F74;
  --sea-light: #4A8FA8;
  --olive: #6B7F5E;
  --gold: #C9A96E;
  --white: #FFFFFF;
  --off-white: #FDFCFA;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --text-muted: #999;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1200px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--sea-deep);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--sea-deep);
}

/* ── Section ── */
.section {
  padding: var(--section-pad) 0;
}

.section-dark {
  background: var(--sea-deep);
  color: var(--sand);
}
.section-dark h2, .section-dark h3 { color: var(--sand); }
.section-dark .section-tag { color: var(--gold); }

.section-accent {
  background: var(--sand);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 112, 75, 0.3);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--sea-deep);
}

.btn-outline-dark {
  border-color: var(--sea-deep);
  color: var(--sea-deep);
  background: transparent;
}
.btn-outline-dark:hover {
  background: var(--sea-deep);
  color: var(--white);
}

.btn-secondary {
  background: var(--sea-deep);
  color: var(--white);
  border-color: var(--sea-deep);
}
.btn-secondary:hover {
  background: var(--sea-mid);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
  font-weight: 600;
}
.btn-whatsapp:hover {
  background: #1EBE5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-booking {
  background: #003580;
  color: var(--white);
  border-color: #003580;
}
.btn-booking:hover {
  background: #00264D;
  transform: translateY(-2px);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.75rem 0;
}

.nav.scrolled .nav-logo-villa,
.nav.scrolled .nav-logo-calabria,
.nav.scrolled .nav-links a { color: var(--sea-deep); }
.nav.scrolled .nav-cta { color: var(--white) !important; }
.nav.scrolled .nav-toggle span { background: var(--sea-deep); }

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.nav-logo-villa {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  transition: color 0.3s;
}

.nav-logo-calabria {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  transition: color 0.3s;
}

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

.nav-links a {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  transition: color 0.3s, opacity 0.3s;
}
.nav-links a:hover { opacity: 0.7; }

.nav-cta {
  background: var(--terracotta) !important;
  color: var(--white) !important;
  border-radius: 4px;
  padding: 0.5rem 1.25rem !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { opacity: 0.9 !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(27, 58, 75, 0.45) 0%,
    rgba(27, 58, 75, 0.25) 40%,
    rgba(27, 58, 75, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 700px;
  padding: 2rem;
  animation: heroFadeIn 1.2s var(--ease) both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: heroScrollPulse 2s infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white), transparent);
}

@keyframes heroScrollPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.2; }
}

/* ── Villa Intro ── */
.villa-intro {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}
.villa-intro p + p { margin-top: 1rem; }
.villa-intro strong { color: var(--sea-deep); font-weight: 500; }

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

.amenity {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  background: var(--sand-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.amenity:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}

.amenity-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--terracotta);
}
.amenity-icon svg { width: 100%; height: 100%; }

.amenity h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.amenity p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── Gallery ── */
.gallery-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-tab {
  background: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--sand);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
}
.gallery-tab:hover,
.gallery-tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--sea-deep);
}

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

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.gallery-item.hidden {
  display: none;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.5rem; font-size: 3rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ── Territorio ── */
.territorio-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

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

.territorio-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--sand-light);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.territorio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.territorio-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.territorio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.territorio-card:hover .territorio-card-img img {
  transform: scale(1.04);
}

.territorio-card-body {
  padding: 1.75rem;
}
.territorio-card-body h3 {
  margin-bottom: 0.75rem;
}
.territorio-card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.territorio-card-body strong { color: var(--sea-deep); font-weight: 500; }

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

.review-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  border: none;
  transition: transform 0.3s var(--ease);
}
.review-card:hover { transform: translateY(-3px); }

.review-stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.review-card footer strong {
  font-weight: 500;
  color: var(--sea-deep);
}
.review-card footer span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reviews-cta {
  text-align: center;
  margin-top: 2.5rem;
}
.reviews-cta a {
  color: var(--terracotta);
  font-weight: 500;
  transition: color 0.3s;
}
.reviews-cta a:hover { color: var(--terracotta-dark); }

/* ── Directions ── */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.direction-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.direction-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.direction-card h3 { margin-bottom: 0.75rem; }
.direction-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.direction-card strong { color: var(--sea-deep); font-weight: 500; }

.directions-map {
  text-align: center;
  padding: 2.5rem;
  background: var(--sand);
  border-radius: 8px;
}
.directions-address {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--sea-deep);
}
.directions-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.info-block h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
}

.info-list dt {
  font-weight: 500;
  color: var(--sand);
}
.info-list dd {
  color: rgba(245, 240, 232, 0.7);
}

.info-note {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.info-disclaimer {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.5);
  font-style: italic;
}

/* ── Contacts ── */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.contact-card {
  padding: 2rem;
  background: var(--sand-light);
  border-radius: 8px;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-role {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  vertical-align: middle;
}

.contact-card a {
  color: var(--sea-mid);
  font-weight: 400;
  transition: color 0.3s;
}
.contact-card a:hover { color: var(--terracotta); }

.contact-wa {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: #25D366;
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
}
.contact-wa:hover {
  background: #1EBE5A;
  color: var(--white) !important;
}

/* ── CTA section ── */
.section-cta {
  background: linear-gradient(135deg, var(--sea-deep) 0%, var(--sea-mid) 100%);
  color: var(--white);
  padding: var(--section-pad) 0;
}

.cta-inner {
  text-align: center;
  max-width: 650px;
  margin: 0 auto;
}
.cta-inner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.cta-inner strong { color: var(--gold); }

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ── */
.footer {
  background: #0F2530;
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
}

/* ── WhatsApp Float ── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; }

/* ── Cookie Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--sea-deep);
  color: var(--sand);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-actions button {
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: var(--gold);
  color: var(--sea-deep);
  transition: background 0.3s;
}
.cookie-actions button:hover { background: #D4B87D; }
.cookie-decline {
  background: transparent !important;
  color: var(--sand) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}

/* ── Scroll Animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--sea-deep);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.4s var(--ease);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
  }
  .nav-links.open { right: 0; }

  .nav-links a {
    color: var(--sand) !important;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 1rem;
    text-align: center;
    display: block;
  }

  .hero h1 { font-size: clamp(2.5rem, 9vw, 4rem); }

  .amenities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .territorio-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .directions-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .cookie-banner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .directions-links { flex-direction: column; }
  .directions-links .btn { width: 100%; justify-content: center; }
}
