/* ============================================
   OCTAGON STUDIOS — Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --orange: #F26522;
  --orange-hover: #d4551a;
  --black: #111111;
  --off-black: #1A1A1A;
  --dark-grey: #2A2A2A;
  --mid-grey: #555555;
  --light-grey: #AAAAAA;
  --near-white: #F5F4F2;
  --white: #FFFFFF;
  --green: #29A65A;
  --cyan: #3DD6D0;
  --max-width: 1100px;
  --padding-x: 40px;
  --header-height: 70px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
}

section { padding: 80px 0; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.text-grey { color: var(--light-grey); }
.text-orange { color: var(--orange); }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--off-black);
  border-bottom: 3px solid var(--orange);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo svg {
  width: 40px;
  height: 40px;
}

.header-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-logo span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--light-grey);
  transition: color 0.2s;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.2s;
}

.header-cta:hover { background: var(--orange-hover); }

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

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

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--off-black);
  z-index: 999;
  padding: 40px;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-grey);
}

/* Body offset for fixed header */
body { padding-top: var(--header-height); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--orange-hover); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline-orange:hover { background: var(--orange); color: var(--white); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1da851; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-available { background: var(--green); color: var(--white); }
.badge-occupied { background: var(--dark-grey); color: var(--light-grey); }
.badge-coming-soon { background: var(--orange); color: var(--white); }
.badge-location {
  background: transparent;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 10px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(17,17,17,0.92) 0%, rgba(17,17,17,0.7) 60%, rgba(17,17,17,0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 { margin-bottom: 20px; }

.hero p {
  font-size: 18px;
  color: var(--light-grey);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* --- Centered hero variant (homepage) --- */
.hero-centered {
  justify-content: center;
  min-height: 80vh;
}

.hero-overlay-centered {
  background: radial-gradient(ellipse at center, rgba(17,17,17,0.75) 0%, rgba(17,17,17,0.88) 100%);
}

.hero-content-centered {
  text-align: center;
  max-width: 700px;
}

.hero-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 32px;
  opacity: 0.95;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--dark-grey);
  border-radius: 8px;
  padding: 32px;
  border-top: 3px solid var(--orange);
}

.feature-card h3 { margin-bottom: 12px; font-size: 20px; }
.feature-card p { color: var(--light-grey); font-size: 15px; }

/* ============================================
   LOCATION CARDS
   ============================================ */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--dark-grey);
  transition: transform 0.2s;
}

.location-card:hover { transform: translateY(-4px); }

.location-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.location-card-body { padding: 24px; }

.location-card-body h3 { margin-bottom: 4px; }

.location-card-body .location-area {
  color: var(--light-grey);
  font-size: 14px;
  margin-bottom: 8px;
}

.location-card-body .location-price {
  color: var(--orange);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ============================================
   ROOM CARDS (Studios Listing)
   ============================================ */
.studios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.room-card {
  background: var(--dark-grey);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.room-card.available { border-left: 4px solid var(--orange); }

.room-card.occupied { opacity: 0.7; }
.room-card.occupied:hover { opacity: 1; }

.room-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--mid-grey);
}

.room-card-body { padding: 20px; }

.room-card-body h4 { margin-bottom: 8px; }

.room-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.room-card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--orange);
}

.room-card-price .enquire {
  font-size: 14px;
  color: var(--light-grey);
  font-weight: 600;
}

.room-card-size {
  font-size: 13px;
  color: var(--light-grey);
}

/* ============================================
   FILTER BAR
   ============================================ */
.filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: var(--off-black);
  border-bottom: 1px solid var(--dark-grey);
  padding: 16px 0;
}

.filter-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-group select {
  background: var(--dark-grey);
  color: var(--white);
  border: 1px solid var(--mid-grey);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.filter-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
  cursor: pointer;
}

.filter-count {
  margin-left: auto;
  font-size: 13px;
  color: var(--light-grey);
}

/* ============================================
   ROOM DETAIL PAGE
   ============================================ */
.room-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--dark-grey);
}

.room-hero h1 { margin-bottom: 8px; }

.room-hero .room-address {
  font-size: 16px;
  color: var(--light-grey);
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--light-grey);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--light-grey); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { color: var(--mid-grey); }

.room-image-main {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: var(--dark-grey);
  margin-bottom: 32px;
}

.room-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 0;
}

.room-specs-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.room-spec {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dark-grey);
}

.room-spec-label {
  font-size: 14px;
  color: var(--light-grey);
  font-weight: 600;
}

.room-spec-value {
  font-size: 14px;
  font-weight: 700;
}

.room-floorplan {
  background: var(--near-white);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-floorplan img {
  max-height: 400px;
  object-fit: contain;
}

/* Included list */
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.included-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--light-grey);
}

.included-item .check {
  color: var(--green);
  font-weight: 700;
  font-size: 16px;
}

/* Map */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  height: 350px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA Section */
.cta-section {
  background: var(--off-black);
  border: 1px solid var(--dark-grey);
  border-radius: 12px;
  padding: 48px;
  text-align: center;
}

.cta-section h2 { margin-bottom: 12px; }
.cta-section p { color: var(--light-grey); margin-bottom: 24px; }

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Related rooms */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================
   AVAILABLE NOW (Homepage)
   ============================================ */
.available-scroll {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================
   WHAT'S INCLUDED (Homepage)
   ============================================ */
.included-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 48px;
}

.included-two-col li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--light-grey);
  padding: 12px 0;
  border-bottom: 1px solid var(--dark-grey);
}

.included-two-col li .check {
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--off-black);
  border-top: 1px solid var(--dark-grey);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--light-grey);
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--light-grey);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--dark-grey);
  padding-top: 24px;
  font-size: 13px;
  color: var(--mid-grey);
}

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}

.whatsapp-fab:hover { transform: scale(1.1); }

.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================
   CLAPHAM PAGE
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-grid img {
  border-radius: 8px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: start;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--dark-grey);
}

.faq-item summary {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--orange);
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 20px;
  color: var(--light-grey);
  line-height: 1.7;
  font-size: 15px;
}

/* ============================================
   NO RESULTS
   ============================================ */
.no-results {
  text-align: center;
  padding: 80px 40px;
  color: var(--light-grey);
}

.no-results h3 { color: var(--white); margin-bottom: 12px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  :root { --padding-x: 24px; }
}

@media (max-width: 768px) {
  :root { --padding-x: 20px; }

  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }

  section { padding: 48px 0; }

  /* Header */
  .header-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 50vh; }
  .hero p { font-size: 16px; }
  .hero-logo { width: 90px; height: 90px; margin-bottom: 24px; }

  /* Grids → 2 columns */
  .features-grid,
  .locations-grid,
  .studios-grid,
  .available-scroll,
  .related-grid { grid-template-columns: repeat(2, 1fr); }

  /* Room detail */
  .room-two-col { grid-template-columns: 1fr; gap: 32px; }
  .room-image-main { height: 280px; }

  /* Included */
  .included-grid,
  .included-two-col { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  /* Filter */
  .filter-inner { gap: 12px; }
  .filter-count { margin-left: 0; width: 100%; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Info grid */
  .info-grid { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 32px 24px; }
}

@media (max-width: 480px) {
  :root { --padding-x: 16px; }

  h1 { font-size: 28px; }

  /* Grids → 1 column */
  .features-grid,
  .locations-grid,
  .studios-grid,
  .available-scroll,
  .related-grid,
  .gallery-grid { grid-template-columns: 1fr; }

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

  .room-card-img { height: 180px; }
  .location-card-img { height: 160px; }

  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-fab svg { width: 24px; height: 24px; }
}
