*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #040406;
  --bg-alt: #101018;
  --bg-soft: #15151f;
  --text: #f7f7fb;
  --muted: #a1a1b5;
  --gold: #d4af37;
  --gold-soft: #f5e6b3;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-soft: 0 25px 70px rgba(0, 0, 0, 0.7);
  --transition-fast: 180ms ease-out;
  --transition-med: 260ms ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(212, 175, 55, 0.16), transparent 50%),
    linear-gradient(145deg, #020203, #050508, #050509);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold-soft);
}

.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: background var(--transition-med), border-color var(--transition-med), transform 200ms ease-out;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff6d6, #b38a19);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #1b1305;
  text-transform: uppercase;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

/* Main brand title – strong gold gradient */
.brand-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #f5e6b3, #d4af37, #f8f1c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tagline – softer gold gradient */
.brand-subtitle {
  font-size: 0.75rem;
  background: linear-gradient(120deg, rgba(245, 230, 179, 0.9), rgba(212, 175, 55, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Full-width logo in header */
.brand-logo-full {
  display: block;
  height: 50px;          /* fits nicely with header height */
  width: auto;
  object-fit: contain;
}

/* On tighter screens, gently shrink the logo to keep nav comfortable */
@media (max-width: 768px) {
  .brand-logo-full {
    height: 32px;
  }
}

@media (max-width: 520px) {
  .brand-logo-full {
    height: 28px;
  }
}

/* Navigation */

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(to right, #f5e6b3, #d4af37);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.nav-cta::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 230, 179, 0.35);
  background: radial-gradient(circle at top left, rgba(245, 230, 179, 0.2), rgba(7, 7, 12, 0.8));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 18, 0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Sections */

.section {
  padding: 4rem 0;
}

.section-dark {
  background: radial-gradient(circle at top left, rgba(26, 26, 40, 0.9), rgba(4, 4, 9, 0.98));
}

.section-subtle {
  background: linear-gradient(to right, rgba(20, 20, 32, 0.96), rgba(4, 4, 10, 0.98));
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}

.section-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.97rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.section-grid--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

/* Cards and lists */

.feature-card,
.contact-form-card,
.error-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(8, 8, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.7rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.65rem;
}

.icon-list-compact {
  gap: 0.45rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: #e6e6f2;
}

.icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff6d6, #b38a19);
  margin-top: 0.3rem;
}

/* Pills */

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.pill {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 18, 0.9);
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.pill h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.pill p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Gallery */

.gallery-column {
  display: grid;
  gap: 1rem;
}

.gallery-card {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.gallery-card img {
  width: 100%;
  height: 300px; /* bigger images */
  object-fit: cover;
}

@media (max-width: 768px) {
  .gallery-card img {
    height: 220px;
  }
}

.gallery-card figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Gallery grid in portfolio */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 190px;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(7, 7, 12, 0.98));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8);
}

.gallery-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0)
  );
  pointer-events: none;
  z-index: 0;
}


.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-med);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  font-size: 0.78rem;
  color: #f5f5fa;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-tall {
  grid-row: span 2;
}

/* Review slider */

.section-header {
  margin-bottom: 1.4rem;
}

.section-reviews {
  background: radial-gradient(circle at top, rgba(19, 19, 30, 0.98), rgba(4, 4, 8, 0.99));
}

.review-slider {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}

.review-window {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem;
}

.review-track {
  display: inline-flex;
  gap: 1rem;
}

.review-card {
  scroll-snap-align: start;
  min-width: 260px;
  max-width: 320px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 16, 0.96);
  padding: 1rem 1.2rem 1.2rem;
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.8);
  font-size: 0.86rem;
}

.review-rating {
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.review-text {
  margin: 0 0 0.75rem;
  color: #f4f4fa;
}

.review-meta {
  margin: 0;
  color: var(--muted);
}

.review-date {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.slider-arrow {
  border-radius: 999px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(6, 6, 12, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
}

.slider-arrow:hover {
  background: rgba(245, 230, 179, 0.1);
  transform: translateY(-1px);
  border-color: rgba(245, 230, 179, 0.6);
}

.review-window {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.3rem;

  /* Hide scrollbar – Firefox */
  scrollbar-width: none;
}

/* Hide scrollbar – Chrome, Edge, Safari */
.review-window::-webkit-scrollbar {
  display: none;
}

/* CTA sections */

.section-cta {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Homes */

.homes-list {
  display: grid;
  gap: 2.2rem;
}

.home-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: stretch;
  padding: 1.7rem 1.7rem 1.9rem;
  border-radius: 24px;
  background: radial-gradient(circle at top left, rgba(245, 230, 179, 0.12), rgba(8, 8, 14, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.home-card-media {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.home-card-figure,
.home-card-figure-main {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(12, 12, 20, 0.98);
}

.home-card-figure-main img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.home-card-figure img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.home-card-figure-main {
  grid-row: span 2;
}

.home-card-figure-grid {
  display: grid;
  gap: 0.75rem;
}

.home-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.home-location {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0;
}

.home-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.5rem;
}

.home-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.home-card-footer {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* About timeline */

.about-timeline {
  display: grid;
  gap: 1.1rem;
}

.timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: flex-start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff6d6, #b38a19);
  box-shadow: 0 0 0 4px rgba(245, 230, 179, 0.25);
  margin-top: 0.3rem;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-block {
  margin-bottom: 1.3rem;
}

.contact-block h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.contact-block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form-card .section-title {
  margin-bottom: 0.4rem;
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  gap: 0.25rem;
}

.form-row label {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-row input,
.form-row textarea {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 7, 12, 0.95);
  padding: 0.6rem 0.8rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-row textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 1px rgba(245, 230, 179, 0.6);
  background: rgba(5, 5, 11, 0.98);
}

.form-message {
  border-radius: 14px;
  background: rgba(27, 104, 60, 0.18);
  border: 1px solid rgba(102, 217, 142, 0.5);
  padding: 0.65rem 0.8rem;
  font-size: 0.85rem;
  margin: 0 0 0.9rem;
}

.form-footnote {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.btn-full {
  width: 100%;
}

/* Error page */

.section-center {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}

.error-card .hero-kicker {
  margin-bottom: 0.6rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.3rem 0 0; /* bottom padding moved to credits band */
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  font-size: 0.86rem;
  align-items: flex-start;
}

.footer-col-brand .footer-text {
  max-width: 320px;
}

.footer-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.footer-text {
  margin: 0 0 0.4rem;
  color: var(--muted);
}

.footer-text a {
  color: #f5f5fb;
}

/* Footer logo block */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-logo-img {
  width: 150px;
  height: auto;
  object-fit: cover;
  background: radial-gradient(circle at 30% 20%, #fff6d6, #b38a19); /* fallback if no image */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.footer-logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Instagram link with favicon-style icon */
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-social-icon img {
  width: 18px;
  height: 18px;
  display: block;
  border-radius: 4px;
}

/* Bottom band */
.footer-credits {
  margin-top: 2rem;
  padding: 0.9rem 0 1.1rem;
  background: #2424245e;
  border-top: 1px solid #0f0f0f;
}

.credits-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center; /* centered horizontally */
  gap: 0.6rem 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
}

.footer-credits-text {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted); /* same type style as rest of footer */
}

.credits-link {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 500;
}

.credits-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  /* ...existing styles... */

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    justify-items: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-text {
    text-align: center;
  }

  .credits-inner {
    text-align: center;
    justify-content: center;
  }
}


/* Buttons and utilities */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #f5e6b3, #d4af37);
  color: #22150a;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.75);
}

.btn-ghost {
  border: 1px solid rgba(245, 230, 179, 0.45);
  background: rgba(5, 5, 10, 0.95);
  color: var(--gold-soft);
}

.btn-ghost:hover {
  background: rgba(245, 230, 179, 0.12);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(245, 230, 179, 0.7);
  background: rgba(245, 230, 179, 0.12);
}

.link-underlined {
  font-size: 0.85rem;
  color: var(--gold-soft);
  text-decoration: none;
  position: relative;
}

.link-underlined::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.05rem;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245, 230, 179, 0.9), transparent);
}

/* Hero orbits */

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(245, 230, 179, 0.4);
  opacity: 0.16;
  pointer-events: none;
}

.hero-orbit-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -160px;
}

.hero-orbit-2 {
  width: 340px;
  height: 340px;
  bottom: -140px;
  right: 40px;
}

.hero-orbit-3 {
  width: 260px;
  height: 260px;
  top: 50%;
  left: -120px;
}

/* Reveal on scroll */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* Hero-sub sections */

.hero-sub {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.hero-sub-inner {
  display: flex;
  align-items: center;
  min-height: 220px;
}

.hero-sub-copy {
  max-width: 640px;
}

.hero-sub-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

.hero-sub-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

  .hero-gallery {
    max-width: 520px;
    margin: 0 auto;
  }

  .section-grid,
  .home-card,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-card-media {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-card-figure-main img {
    height: 220px;
  }

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

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

@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 0.25rem;
  }

  .nav-main {
    position: fixed;
    inset: 60px 1.5rem auto;
    padding: 0.75rem 1rem;
    border-radius: 20px;
    background: rgba(4, 4, 10, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-med), transform var(--transition-med);
  }

  .nav-main.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .hero-floating-badge {
    display: none;
  }

  .pill-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 200px;
  }

  .home-card {
    padding: 1.4rem 1.3rem 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .review-slider {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }

  .review-window {
    order: 2;
  }

  .slider-arrow {
    order: 1;
    justify-self: flex-start;
  }

  .site-footer {
    margin-top: 2rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .container {
    width: min(100% - 2rem, 700px);
  }
}

@media (max-width: 520px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-badges {
    gap: 0.4rem;
  }

  .hero-badges li {
    font-size: 0.72rem;
  }

  .home-card-figure-main img {
    height: 200px;
  }

  .gallery-item,
  .gallery-item-large,
  .gallery-item-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}


/* Explore Hurghada section */
.section-explore {
  background: radial-gradient(circle at top left, rgba(24, 24, 38, 0.96), rgba(4, 4, 9, 0.98));
}

.things-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.8rem;
}

.thing-card {
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), rgba(7, 7, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
}

.thing-media {
  position: relative;
  overflow: hidden;
}

.thing-media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 220ms ease-out;
}

.thing-card:hover .thing-media img {
  transform: scale(1.08);
}

.thing-title {
  margin: 0.85rem 1rem 0.4rem;
  font-size: 0.98rem;
  font-weight: 500;
}

.thing-text {
  margin: 0 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.things-gallery-note {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Responsive layout for the grid */
@media (max-width: 1100px) {
  .things-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .things-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .things-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .thing-media img {
    height: 190px;
  }
}

.thing-card {
  border-radius: 20px;
  overflow: hidden; /* ensure image corners match the card */
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.04), rgba(7, 7, 12, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.thing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 230, 179, 0.8);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.95);
  background: radial-gradient(circle at top left, rgba(245, 230, 179, 0.12), rgba(7, 7, 12, 0.98));
}

.thing-media {
  position: relative;
  overflow: hidden;
  border-radius: inherit; /* inherits 20px from the card */
}

.thing-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: inherit; /* same rounding as card */
  transform: scale(1.03);
  transition: transform 260ms ease-out;
}

.thing-card:hover .thing-media img {
  transform: scale(1.1); /* grow image on hover */
}



