/* ==========================================================================
   Royal Haveala Apartments — Osu, Accra
   Base palette: royal purple + gold
   ========================================================================== */

:root {
  color-scheme: light;       /* stop Android/browser auto-dark from inverting this light-only site */
  --purple-deep:  #3d1359;   /* header / footer / hero base */
  --purple:       #6d2f83;   /* primary brand purple */
  --purple-mid:   #8f48a6;   /* mid accent */
  --purple-soft:  #c093d1;   /* soft accent, borders */
  --purple-tint:  #f6eef9;   /* very light purple tint for section bg */
  --gold:         #dba521;   /* primary gold accent — bold, saturated */
  --gold-light:   #ffce46;   /* hover / highlight gold — vivid pop */
  --gold-deep:    #a2760f;   /* text-on-light gold, shadows */
  --cream:        #faf7f1;   /* page background */
  --ink:          #241b2e;   /* body text */
  --ink-soft:     #5a4f66;   /* secondary text */
  --white:        #ffffff;
  --shadow:       0 10px 30px rgba(61, 19, 89, 0.12);
  --radius:       14px;
  --font-head:    'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; background: #ffffff; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple-deep);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-lead { color: var(--ink-soft); max-width: 620px; font-size: 1.02rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.gold-rule {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 16px 0 22px;
  border-radius: 2px;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--purple-deep);
  box-shadow: 0 8px 20px rgba(219, 165, 33, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 26px rgba(219, 165, 33, 0.45); }

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}
.btn-outline:hover { background: var(--purple-tint); }

/* the CTA band keeps a solid purple fill, so its outline button needs the light-on-dark variant */
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-purple {
  background: var(--purple);
  color: var(--white);
}
.btn-purple:hover { background: var(--purple-deep); }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid rgba(219,165,33,0.3);
  box-shadow: 0 2px 14px rgba(61,19,89,0.06);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple-deep);
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--purple-deep);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-text span {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--purple-deep); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--purple-deep);
  border-radius: 2px;
}

@media (max-width: 1050px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(219,165,33,0.3);
    box-shadow: 0 8px 20px rgba(61,19,89,0.08);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a { width: 100%; padding: 14px 24px; border-top: 1px solid rgba(61,19,89,0.08); }
  .nav-links a::after { display: none; }
  .nav-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 12% -15%, rgba(219,165,33,0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(109,47,131,0.08), transparent 60%),
    var(--white);
  color: var(--ink);
  padding: 110px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(219,165,33,0.05) 0 2px, transparent 2px 40px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero .eyebrow { color: var(--gold-deep); }
.hero h1 {
  color: var(--purple-deep);
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-deep);
}
.hero p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-strip {
  position: relative;
  z-index: 1;
  margin-top: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 44px;
}
.hero-strip .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--purple);
}
.hero-strip .stat span {
  font-size: 0.78rem;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

/* smaller page hero (inner pages) */
.page-hero {
  background: var(--purple-tint);
  color: var(--ink);
  padding: 70px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(219,165,33,0.3);
}
.page-hero .eyebrow { color: var(--gold-deep); }
.page-hero h1 { color: var(--purple-deep); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { color: var(--ink-soft); max-width: 560px; margin: 14px auto 0; }
.breadcrumb {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--gold-deep); }

/* ---------- Cards: Rooms ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 44px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-top: 44px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(61,19,89,0.18); }

.photo-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--purple-tint), #efe3d8);
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.tall { aspect-ratio: 3 / 4; }
.photo-frame.wide { aspect-ratio: 16 / 9; }

.img-fallback img { display: none; }
.img-fallback::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(109,47,131,0.92), rgba(61,19,89,0.92)),
    repeating-linear-gradient(45deg, rgba(219,165,33,0.15) 0 2px, transparent 2px 26px);
}
.img-fallback::after {
  content: attr(data-label);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 18px;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.room-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(61,19,89,0.85);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
}

.room-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room-body h3 { font-size: 1.3rem; }
.room-body p { color: var(--ink-soft); font-size: 0.94rem; }
.room-price {
  font-family: var(--font-head);
  color: var(--purple);
  font-size: 1.05rem;
  font-weight: 700;
}
.room-price small { font-family: var(--font-body); font-weight: 400; color: var(--ink-soft); font-size: 0.78rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.chip {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-tint);
  border: 1px solid rgba(109,47,131,0.15);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---------- Amenity cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .grid-4 { grid-template-columns: 1fr; } }

.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.amenity-card:hover { transform: translateY(-4px); }
.amenity-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--gold-light);
}
.amenity-icon svg { width: 26px; height: 26px; }
.amenity-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.amenity-card p { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Section variants ---------- */
.section-tint { background: var(--purple-tint); }
.section-deep {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid rgba(219,165,33,0.25);
  border-bottom: 1px solid rgba(219,165,33,0.25);
}
.section-deep h2, .section-deep h3 { color: var(--purple-deep); }
.section-deep p { color: var(--ink-soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.feature-list { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.feature-list li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.9rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---------- Locale / nearby list ---------- */
.locale-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}
@media (max-width: 780px) { .locale-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .locale-grid { grid-template-columns: 1fr; } }

.locale-item {
  background: var(--purple-tint);
  border: 1px solid rgba(219,165,33,0.35);
  border-radius: 12px;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.locale-item .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.locale-item span { font-size: 0.9rem; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery-grid {
  columns: 3 260px;
  column-gap: 20px;
  margin-top: 44px;
}
.gallery-grid figure {
  break-inside: avoid;
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  cursor: pointer;
}
.gallery-grid .photo-frame { aspect-ratio: auto; }
.gallery-grid img { transition: transform 0.35s ease; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(61,19,89,0.85), transparent);
  color: var(--white);
  font-size: 0.78rem;
  padding: 24px 14px 10px;
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20, 6, 32, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  /* Source photos are ~1100-1700px native. Cap the enlarged size per
     display density so the browser doesn't have to upscale them past
     their real resolution (which reads as pixelation on HiDPI/Retina
     laptop screens). Swap for higher-res source photos when available
     and these caps can be relaxed back toward 90vw/82vh. */
  max-width: min(90vw, 1600px);
  max-height: min(82vh, 900px);
  border-radius: 10px;
}
@media (min-resolution: 1.5dppx), (-webkit-min-device-pixel-ratio: 1.5) {
  .lightbox img { max-width: min(70vw, 1100px); max-height: min(66vh, 700px); }
}
@media (min-resolution: 2dppx), (-webkit-min-device-pixel-ratio: 2) {
  .lightbox img { max-width: min(55vw, 820px); max-height: min(52vh, 560px); }
}
.lightbox-cap { position: absolute; bottom: 28px; color: var(--gold-light); font-size: 0.9rem; text-align: center; width: 100%; left: 0; }
.lightbox-close {
  position: absolute; top: 24px; right: 30px;
  color: var(--white); font-size: 2rem; cursor: pointer;
  background: none; border: none; line-height: 1;
}

/* ---------- Testimonials / quote ---------- */
.quote-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.quote-card p { font-style: italic; color: var(--ink-soft); margin-bottom: 14px; }
.quote-card strong { color: var(--purple); font-family: var(--font-head); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--purple); }
.field input,
.field select,
.field textarea {
  border: 1.5px solid #e2d9ea;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }

.contact-info-card {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--purple-tint);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--purple-deep); margin-bottom: 18px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; font-size: 0.94rem; color: var(--ink); }
.contact-line .ic {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(219,165,33,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
  flex-shrink: 0;
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple) 60%, #3a1450);
  color: var(--white);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  margin: 0 24px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.8); margin: 12px auto 26px; max-width: 520px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  color: var(--ink-soft);
  padding-top: 64px;
  border-top: 3px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(109,47,131,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--purple-deep); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-grid a:hover { color: var(--gold-deep); }
.footer-brand p { margin-top: 14px; font-size: 0.88rem; max-width: 280px; }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(219,165,33,0.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-deep);
}
.social-row a:hover { background: var(--gold); color: var(--white); }
.footer-bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  z-index: 300;
  color: var(--white);
  transition: transform 0.2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Notice banner (placeholder-data warning) ---------- */
.notice {
  background: #3a2410;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 0.82rem;
  text-align: center;
  padding: 10px 16px;
}
.notice strong { color: var(--white); }

/* ---------- misc ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
