/* ================================================================
   APPARTAMENTO GALLI — style.css
   Clean template-style layout. No element depends on JS to be visible.
   ================================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body.menu-open { overflow: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; line-height: 1.7; color: #2d3748; background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }
address { font-style: normal; }
svg { display: block; flex-shrink: 0; }
figure { margin: 0; }

/* ── CUSTOM PROPERTIES ── */
:root {
  --navy:   #0D2E45;
  --blue:   #1A5276;
  --gold:   #C9A96E;
  --sand:   #F4EFE6;
  --cream:  #FDFAF5;
  --dark:   #111827;
  --muted:  #6b7280;
  --border: rgba(0,0,0,0.09);
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
}

/* ── UTILITY ── */
.container { max-width: 1160px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }
.section    { padding-block: clamp(4rem, 8vw, 6rem); }
.bg-cream   { background: var(--cream); }
.bg-sand    { background: var(--sand); }
.bg-dark    { background: var(--navy); }
.color-white { color: #fff; }
.color-gold  { color: var(--gold); }
.color-light { color: rgba(255,255,255,0.65); }

/* ── FADE-UP (initial state set by JS; element stays visible if JS fails) ── */
.fade-up { transition: opacity 0.65s ease, transform 0.65s ease; }
.js-ready .fade-up { opacity: 0; transform: translateY(28px); }
.js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.8em 2em; border-radius: 100px;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 20px rgba(26,82,118,0.3); }
.btn-primary:hover { background: var(--navy); box-shadow: 0 8px 32px rgba(26,82,118,0.4); }

.btn-gold { background: var(--gold); color: var(--dark); box-shadow: 0 4px 20px rgba(201,169,110,0.35); }
.btn-gold:hover { background: #b8924f; box-shadow: 0 8px 28px rgba(201,169,110,0.45); }

.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.55); }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.9); }

.btn-lg { padding: 1em 2.6em; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-full svg { width: 18px; height: 18px; }

/* ── EYEBROW LABELS ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ''; display: block; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-gold { color: var(--gold); }

/* Section header */
.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.section-header h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; color: var(#ffffff); letter-spacing: -0.02em; }
.section-header h2 em { color: var(--blue); font-style: italic; }
.section-desc { font-size: 1.05rem; color: var(--muted); max-width: 52ch; }

/* ================================================================
   NAVIGATION
================================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#nav.scrolled {
  background: rgba(13,46,69,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  padding: 0.65rem 0;
}

.nav-inner {
  display: flex; align-items: center; gap: 2rem;
  max-width: 1160px; margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: #fff; letter-spacing: 0.01em;
  flex-shrink: 0; white-space: nowrap;
}
.logo em { color: var(--gold); font-style: italic; }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-block;
  background: var(--gold); color: var(--dark);
  font-size: 0.88rem; font-weight: 700;
  padding: 0.55em 1.5em; border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: #b8924f; transform: translateY(-1px); }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s ease; transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
================================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% 0;   /* extra space for parallax movement */
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13,46,69,0.6) 0%,
    rgba(13,46,69,0.45) 50%,
    rgba(13,46,69,0.72) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1.5rem;
  max-width: 1160px; margin-inline: auto; width: 100%;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  padding-bottom: 8rem; /* space for the stats bar */
}

.hero-eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.85); max-width: 48ch; line-height: 1.7;
}

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

/* Stats bar — bottom of hero, full-width */
.hero-stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  display: flex; align-items: center; justify-content: center;
  gap: 2.5rem; flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 5vw, 2.5rem);
  background: rgba(13,46,69,0.75);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat strong { display: block; font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; color: var(--gold); line-height: 1; }
.stat span   { font-size: 0.75rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-sep    { width: 1px; height: 36px; background: rgba(255,255,255,0.2); }

/* ================================================================
   ABOUT
================================================================ */
.about-header {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem); text-align: center;
}
.about-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.2; color: var(--dark); letter-spacing: -0.02em;
}
.about-header h2 em { color: var(--blue); font-style: italic; }

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.about-image img { width: 100%; height: auto; display: block; transition: transform 0.7s ease; }
.about-image:hover img { transform: scale(1.02); }



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

.about-text { display: flex; flex-direction: column; gap: 1.1rem; }
.about-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.about-floors { display: flex; flex-direction: column; gap: 1.25rem; }

.floors { display: flex; flex-direction: column; gap: 0.75rem; }
.floor {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--sand); border-radius: 10px;
  border-left: 3px solid var(--blue);
}
.floor-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.floor strong { display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark); }
.floor span   { font-size: 0.83rem; color: var(--muted); }

/* ================================================================
   FEATURES
================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--sand); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 22px; height: 22px; color: var(--blue); }

.feature h3 { font-size: 1rem; font-weight: 600; color: var(--dark); }
.feature p  { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }

/* ================================================================
   GALLERY
================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--sand);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(13,46,69,0.85), transparent);
  color: #fff;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover figcaption { opacity: 1; }

/* ================================================================
   PRICING
================================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.price-card {
  position: relative;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.price-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,0.15); border-radius: var(--radius) var(--radius) 0 0; transition: background 0.3s; }
.price-card:hover::before { background: var(--gold); }

.price-card--peak { border-color: rgba(201,169,110,0.35); box-shadow: 0 0 0 1px rgba(201,169,110,0.2); }
.price-card--peak::before { background: var(--gold); }

.peak-label {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 10px; border-radius: 100px; width: fit-content;
  margin-bottom: 0.25rem;
}

.price-card .month { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.price-card .amount { display: flex; align-items: baseline; gap: 4px; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-top: 0.25rem; }
.price-card .amount span { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 900; color: var(--gold); line-height: 1; }
.price-card .min-stay { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.price-card .dates    { font-size: 0.78rem; color: rgba(255,255,255,0.38); }

.pricing-notes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  margin-bottom: 2.5rem;
}
.pricing-notes span {
  font-size: 0.85rem; color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px; padding: 0.5em 1.2em;
}
.pricing-notes strong { color: rgba(255,255,255,0.9); }

.pricing-cta { text-align: center; }

/* ================================================================
   LOCATION
================================================================ */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.address-card {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: #fff; border-radius: var(--radius);
  border-left: 3px solid var(--blue);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.address-card svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.address-card strong { display: block; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.address-card div { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

.nearby-list { display: flex; flex-direction: column; gap: 0.65rem; }
.nearby-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: #fff; border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.nearby-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.nearby-icon { font-size: 1.3rem; flex-shrink: 0; }
.nearby-list strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.nearby-list span   { font-size: 0.82rem; color: var(--muted); }

.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 480px;
  position: sticky; top: 88px;
}
.map-wrap iframe { width: 100%; height: 100%; display: block; }

/* ================================================================
   CONTACT
================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex; flex-direction: column; gap: 1.25rem;
  position: sticky; top: 88px;
}
.contact-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700; line-height: 1.2; color: var(--dark);
}
.contact-info h2 em { color: var(--blue); font-style: italic; }
.contact-info > p  { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.95rem; font-weight: 500; color: var(--dark);
  transition: color 0.2s;
}
.contact-link svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }
.contact-link:hover { color: var(--blue); }

.cin { font-size: 0.78rem; color: var(--muted); padding-top: 0.5rem; border-top: 1px solid var(--border); }

/* Form */
.contact-form {
  background: #fff;
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 1.25rem;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.optional { font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  padding: 0.8em 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem; color: var(--dark);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8em center; background-size: 16px;
  padding-right: 2.5em;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
  background: #fff;
}
.field input::placeholder,
.field textarea::placeholder { color: #9ca3af; }
.field textarea { resize: vertical; min-height: 100px; }

.form-msg {
  padding: 0.9em 1.1em;
  border-radius: 10px;
  font-size: 0.9rem; font-weight: 500;
}
.form-msg.success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; }
.form-msg.error   { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ================================================================
   FAQ
================================================================ */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq-item:hover { box-shadow: var(--shadow-lg); }
.faq-item[open] { border-color: rgba(26,82,118,0.2); }

.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-size: 1rem; font-weight: 600; color: var(--dark);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sand); border-radius: 50%;
  color: var(--blue); font-size: 1.3rem; font-weight: 400; line-height: 1;
  transition: background 0.2s, transform 0.3s ease;
}
.faq-item[open] summary { color: var(--blue); }
.faq-item[open] summary::after {
  content: '−';
  background: var(--blue); color: #fff;
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--muted); font-size: 0.95rem; line-height: 1.8;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.faq-link { color: var(--blue); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.faq-link:hover { color: var(--navy); }

@media (max-width: 480px) {
  .faq-item summary { font-size: 0.93rem; }
}

/* ================================================================
   FOOTER
================================================================ */
#footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.75rem;
}

.footer-logo {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #fff; line-height: 1.3;
  margin-bottom: 0.85rem;
}
.footer-logo em { color: var(--gold); font-style: italic; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0.5rem; }
.footer-brand .cin { font-size: 0.72rem; color: rgba(255,255,255,0.3); padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.08); }

#footer nav h4,
.footer-contact h4 {
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.25rem;
}

#footer nav ul { display: flex; flex-direction: column; gap: 0.55rem; }
#footer nav a {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: color 0.2s, padding-left 0.2s;
}
#footer nav a:hover { color: #fff; padding-left: 4px; }

.footer-contact a,
.footer-contact address {
  display: block; font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.3);
}

/* ================================================================
   RESPONSIVE
================================================================ */

/* Tablet: 900px */
@media (max-width: 900px) {
  .about-body { grid-template-columns: 1fr; }
  .about-image { max-width: 100%; }

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

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

  .location-grid { grid-template-columns: 1fr; }
  .map-wrap { position: static; height: 340px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Nav hamburger: show at ≤ 860px so the nav links don't overflow on tablets */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 0;
    background: var(--navy);
    flex-direction: column; justify-content: center;
    gap: 2rem; z-index: 999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    margin-left: 0;
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 1.25rem; color: #fff; }
  .nav-cta { display: none; }
  .hamburger { display: flex; position: relative; z-index: 1001; margin-left: auto; }
}

/* Mid-range: 768px */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Mobile: 640px */
@media (max-width: 640px) {
  /* Hero */
  .hero-content { padding-bottom: 9rem; padding-top: 5rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { text-align: center; justify-content: center; }
  .hero-stats { gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 1.5rem); flex-wrap: wrap; }
  .stat-sep { display: none; }
  .stat strong { font-size: 1.5rem; }
  .stat span   { font-size: 0.7rem; }

  /* Sections */
  .features-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .contact-form { padding: 1.5rem; }
}

/* Small mobile: 480px */
@media (max-width: 480px) {
  .hero-stats { justify-content: space-around; }
}

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

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js-ready .fade-up { opacity: 1 !important; transform: none !important; }
}

/* ================================================================
   LIGHTBOX
================================================================ */
.gallery-item { cursor: zoom-in; }

#lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0, 0, 0, 0.93);
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; pointer-events: none;
  padding: 1rem;
}
#lightbox.lb-open { pointer-events: all; }

#lbStage {
  display: flex; flex-direction: column; align-items: center;
  max-width: min(92vw, 1200px);
}
#lbImg {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  will-change: transform, opacity;
}
#lbCaption {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1rem;
  text-align: center;
  min-height: 1.4em;
}

#lbClose {
  position: fixed; top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#lbClose svg { width: 20px; height: 20px; }
#lbClose:hover { background: rgba(255,255,255,0.22); transform: rotate(90deg); }

#lbPrev, #lbNext {
  flex-shrink: 0;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff; cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
#lbPrev svg, #lbNext svg { width: 24px; height: 24px; }
#lbPrev:hover { background: rgba(255,255,255,0.2); transform: translateX(-3px); }
#lbNext:hover { background: rgba(255,255,255,0.2); transform: translateX(3px); }

#lbCounter {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.45); font-size: 0.8rem; letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  #lbPrev, #lbNext { width: 40px; height: 40px; }
  #lbPrev svg, #lbNext svg { width: 20px; height: 20px; }
}
