/* ============================================================
   Gallery Apartments Warrnambool — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --cream:      #FAF8F5;
  --cream-dark: #F0EDE8;
  --border:     #E5DFD6;
  --gold:       #B8956A;
  --gold-dark:  #9E7B52;
  --charcoal:   #2C2828;
  --text:       #3A3630;
  --text-light: #7A746C;
  --white:      #FFFFFF;
  --shadow:     0 4px 24px rgba(44,40,40,0.10);
  --shadow-sm:  0 2px 8px rgba(44,40,40,0.07);
  --radius:     4px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Lucide icons (inline SVG) --- */
.lucide-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--charcoal);
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section--alt { background: var(--cream-dark); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-light); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
}
.divider--left { margin-left: 0; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--white {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}
.btn--white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(44,40,40,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img { height: 52px; width: auto; }
.site-logo span {
  display: block;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--white); }
.site-nav a.active { color: var(--gold); }
.site-nav .nav-book {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 20px;
  margin-left: 8px;
}
.site-nav .nav-book:hover { background: var(--gold-dark); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: opacity 0.8s ease;
}

.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 0.5; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44,40,40,0.25) 0%, rgba(44,40,40,0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 120px 40px 80px;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 660px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  max-width: 520px;
  margin-bottom: 36px;
  font-weight: 300;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.hero-dot.active { background: var(--gold); transform: scale(1.2); }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: flex-end;
  background: var(--charcoal);
  overflow: hidden;
  margin-top: 80px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(44,40,40,0.75) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 40px 48px;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
}
.page-hero-content h1 { color: var(--white); margin-bottom: 8px; }
.page-hero-content p { color: rgba(255,255,255,0.8); margin: 0; font-size: 1.05rem; font-weight: 300; }

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.features-strip {
  background: var(--gold);
  padding: 0;
}
.features-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1160px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 36px 32px;
  border-right: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition);
}
.feature-item:last-child { border-right: none; }
.feature-item:hover { background: rgba(255,255,255,0.08); }
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   APARTMENT CARDS
   ============================================================ */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.apt-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.apt-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.apt-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.apt-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.apt-card-body h3 { margin-bottom: 10px; font-size: 1.15rem; }

.apt-meta {
  display: flex;
  gap: 16px;
  margin: 12px 0 18px;
}
.apt-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-light);
}
.apt-meta-item span.icon { display: inline-flex; align-items: center; }

.apt-card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.apt-card-actions { display: flex; gap: 10px; }
.apt-card-actions .btn { padding: 10px 20px; font-size: 0.8rem; flex: 1; text-align: center; }

/* ============================================================
   APARTMENT DETAIL PAGE
   ============================================================ */
.apt-detail { padding-top: 0; }

.apt-gallery-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.apt-thumbs {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--cream-dark);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
}
.apt-thumbs img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition);
  flex-shrink: 0;
  border: 2px solid transparent;
  border-radius: 2px;
}
.apt-thumbs img:hover, .apt-thumbs img.active { opacity: 1; border-color: var(--gold); }

.apt-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  padding: 64px 0;
  align-items: start;
}

.apt-info h1 { margin-bottom: 20px; }
.apt-description { font-size: 1.02rem; line-height: 1.8; margin-bottom: 32px; color: var(--text); }

.apt-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.apt-spec {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
}
.apt-spec .icon { display: inline-flex; align-items: center; }
.apt-spec strong { font-weight: 700; }

.amenities-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--charcoal);
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  margin-bottom: 32px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text);
  padding: 4px 0;
}
.amenity-item::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Booking sidebar */
.booking-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.booking-sidebar h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.booking-sidebar .tagline {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.booking-detail {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.booking-detail:last-of-type { border-bottom: none; margin-bottom: 24px; }
.booking-detail .label { color: var(--text-light); }
.booking-detail .value { font-weight: 700; }
.booking-sidebar .btn { width: 100%; text-align: center; margin-bottom: 12px; }
.booking-sidebar .contact-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.booking-sidebar .contact-link:hover { color: var(--gold); }

/* ============================================================
   ABOUT / WELCOME SECTION
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-images {
  position: relative;
}
.about-img-main {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.about-img-accent {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow);
}
.about-text { padding-right: 20px; }
.about-text .eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--text-light); font-size: 1rem; line-height: 1.8; }
.about-text .btn { margin-top: 28px; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-dark);
  position: relative;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,40,40,0.75));
  color: var(--white);
  padding: 24px 14px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.8;
  transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info-block { margin-bottom: 32px; }
.contact-info-block h3 {
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
}
.contact-info-block p, .contact-info-block a {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}
.contact-info-block a:hover { color: var(--gold); }

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { margin-bottom: 8px; }
.contact-card .intro { color: var(--text-light); margin-bottom: 32px; }

.contact-map {
  margin-top: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-dark);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.9rem;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--charcoal);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/Warrnambool-Holidays-Places-To-Stay-700x400.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-section .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1E1B1B;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.85); }
.footer-col h4 {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.85); transition: color var(--transition); }
.footer-col a:hover { color: var(--gold); }
.site-footer p { color: rgba(255,255,255,0.85); } .footer-col p { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-img-accent { display: none; }
  .about-images { order: -1; }
  .about-text { padding-right: 0; }
  .apt-detail-layout { grid-template-columns: 1fr; }
  .booking-sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero-content { padding: 100px 24px 60px; }
  .page-hero { height: 260px; }
  .page-hero-content { padding: 0 24px 36px; }
  .features-strip-inner { grid-template-columns: 1fr; }
  .feature-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
  .feature-item:last-child { border-bottom: none; }
  .apartments-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--charcoal);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .site-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav a { padding: 12px 16px; width: 100%; }
  .site-nav .nav-book { margin-left: 0; margin-top: 8px; text-align: center; }
  .apt-gallery-main { height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .amenities-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .apt-meta { flex-wrap: wrap; }
  .cta-section .cta-actions { flex-direction: column; align-items: center; }
}
