/* ===================================================
   STARLAND MOTEL — style.css
   =================================================== */

/* --- Variables & Reset --- */
:root {
  --navy:      #1c3d5a;
  --navy-dark: #122738;
  --gold:      #c9a84c;
  --gold-dark: #a8872e;
  --cream:     #f7f3ec;
  --light:     #f0ece4;
  --text:      #2c2c2c;
  --muted:     #666;
  --white:     #ffffff;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

ul { list-style: none; }

/* --- Utilities --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad { padding: 90px 0; }

.bg-light { background: var(--light); }

.label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28,61,90,0.3);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.4);
}

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

.full-width { width: 100%; justify-content: center; }

/* ===================================================
   NAVIGATION
   =================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-star { color: var(--gold); font-size: 1.2em; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.nav-link.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
}
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta:hover { background: var(--gold-dark); color: var(--white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--navy-dark); /* fallback if no image */
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,39,56,0.55) 0%,
    rgba(18,39,56,0.72) 60%,
    rgba(18,39,56,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 1rem;
  max-width: 740px;
}

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

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.2rem;
  line-height: 1.8;
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.7);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================================
   ABOUT
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .label { margin-bottom: 0.8rem; }

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.about-text .btn { margin-top: 0.8rem; }

.about-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}

.about-img {
  border-radius: var(--radius);
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.about-badge {
  position: absolute;
  bottom: -1.2rem;
  left: -1.2rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.9rem 1.3rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

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

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.room-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--navy);
}

.room-img-wrap img {
  transition: transform 0.5s ease;
}

.room-card:hover .room-img-wrap img { transform: scale(1.06); }

.img-placeholder {
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.img-placeholder::before {
  content: '\f030';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 2rem;
  color: #ccc;
  display: block;
}

.img-placeholder::after {
  content: 'Photo Coming Soon';
  font-family: 'Inter', sans-serif;
}

.room-tag {
  position: absolute;
  top: 0.9rem; left: 0.9rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.room-tag.weekly { background: var(--navy); }

.room-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.room-body > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.room-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.6rem;
  margin-bottom: 1.4rem;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.room-features li i {
  color: var(--gold);
  width: 14px;
  text-align: center;
}

.room-price {
  margin-top: auto;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.price-unit {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===================================================
   POLICIES
   =================================================== */
.policies {
  background: var(--navy);
  padding: 2.2rem 0;
}

.policies-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  divide: 1px solid rgba(255,255,255,0.1);
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.policy-item:last-child { border-right: none; }

.policy-item i {
  color: var(--gold);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

@media (max-width: 640px) {
  .policy-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    width: 100%;
    padding: 0.9rem 1rem;
  }
  .policy-item:last-child { border-bottom: none; }
}

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

.amenity-card {
  text-align: center;
  padding: 2.2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}

.amenity-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--gold);
}

.amenity-icon {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.5rem;
  color: var(--gold);
  transition: background var(--transition);
}

.amenity-card:hover .amenity-icon {
  background: var(--gold);
  color: var(--white);
}

.amenity-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.amenity-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--navy);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.75;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  color: var(--white);
  font-size: 1.6rem;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(18,39,56,0.82));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1.2rem 1rem 0.7rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

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

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  transition: color var(--transition);
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--gold); }

.lightbox-close { top: 1.2rem; right: 1.5rem; font-size: 2.4rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ===================================================
   CONTACT
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(28,61,90,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-item a:hover { color: var(--gold); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.map-wrap iframe { display: block; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.5rem;
}

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

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer-brand a {
  color: var(--gold);
  font-size: 0.95rem;
}

.footer-brand a:hover { color: var(--white); }

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

.footer-nav a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

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

/* Tablet */
@media (max-width: 900px) {
  .section-pad { padding: 70px 0; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-wrap { order: -1; }
  .about-img { height: 300px; }
  .about-badge { left: 1rem; bottom: -1rem; }

  .rooms-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .map-wrap { min-height: 300px; }
}

/* Mobile */
@media (max-width: 640px) {
  .section-pad { padding: 55px 0; }

  /* Nav mobile */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.4rem;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .nav-menu.open { right: 0; }

  .nav-link { font-size: 1.1rem; }

  .nav-link.nav-cta {
    padding: 0.6rem 1.4rem;
  }

  /* Hero */
  .hero-buttons { flex-direction: column; align-items: center; }

  /* Rooms */
  .rooms-grid { grid-template-columns: 1fr; }

  /* Amenities */
  .amenities-grid { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .footer-nav { justify-content: flex-start; }
}
