
/* =====================================================
   JOYVILLE WESTERN HEIGHTS
   Main Stylesheet
===================================================== */

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =====================================================
   1. GLOBAL SETTINGS
===================================================== */

:root {
  --blue: #1265a5;
  --blue-dark: #084b80;
  --orange: #f58232;

  --ink: #202b36;
  --muted: #687582;

  --line: #e7ebef;
  --surface: #ffffff;
  --bg: #f3f5f7;

  --radius: 8px;
  --shadow: 0 8px 28px rgba(20, 42, 64, 0.09);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}


/* =====================================================
   2. HEADER
===================================================== */

.site-header {
  height: 72px;
  background: #ffffff;

  display: flex;
  align-items: center;
  gap: 24px;

  padding: 0 max(4vw, 24px);

  position: sticky;
  top: 0;
  z-index: 50;

  box-shadow: 0 2px 12px rgba(23, 44, 64, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 170px;
}

.brand-mark {
  width: 38px;
  height: 38px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: var(--orange);
  color: #ffffff;

  font-weight: 800;
  font-size: 24px;
}

.brand strong {
  display: block;
  color: var(--orange);
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: #687582;
  font-size: 9px;
  letter-spacing: 0.4px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(10px, 1.5vw, 24px);
  flex: 1;
}

.main-nav a {
  font-size: 12px;
  font-weight: 600;
  color: #4c5965;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--blue);
}

.header-call,
.btn {
  border: 0;
  background: var(--blue);
  color: #ffffff;

  border-radius: 4px;
  padding: 11px 18px;

  font-weight: 700;
  font-size: 12px;

  cursor: pointer;

  display: inline-flex;
  justify-content: center;
  align-items: center;

  transition: 0.2s ease;
}

.header-call:hover,
.btn:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
}


/* =====================================================
   3. MAIN TWO-COLUMN LAYOUT
===================================================== */

.page-shell {
  max-width: 1440px;
  margin: 0 auto;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    330px;

  gap: 18px;
  align-items: start;

  padding: 18px;
}

.main-column {
  min-width: 0;
}


/* =====================================================
   4. HERO SECTION / IMAGE SLIDER
===================================================== */

.hero {
  height: 510px;

  position: relative;
  overflow: hidden;

  border-radius: var(--radius);
  background: #253c50;

  color: #ffffff;
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  background-position: center;
  background-size: cover;

  opacity: 0;

  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      rgba(8, 25, 42, 0.78),
      rgba(8, 25, 42, 0.34) 58%,
      rgba(8, 25, 42, 0.08)
    );
}

.hero-content {
  position: absolute;

  left: clamp(24px, 5vw, 70px);
  top: 50%;

  transform: translateY(-50%);

  max-width: 680px;
}

.eyebrow {
  color: var(--orange);

  text-transform: uppercase;

  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(32px, 4.3vw, 56px);

  line-height: 1.1;

  margin: 14px 0;

  font-weight: 800;
  letter-spacing: -1.4px;
}

.hero-content p {
  font-size: 17px;
  max-width: 520px;
}

.hero-points {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;

  margin: 24px 0;
}

.hero-points span {
  border: 1px solid rgba(255, 255, 255, 0.44);

  background: rgba(255, 255, 255, 0.10);

  padding: 7px 11px;
  border-radius: 3px;

  font-size: 11px;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;

  display: flex;
  gap: 8px;

  transform: translateX(-50%);
}

.hero-dots button {
  width: 8px;
  height: 8px;

  border: 0;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.5);

  padding: 0;
  cursor: pointer;
}

.hero-dots button.active {
  background: #ffffff;

  width: 24px;
  border-radius: 5px;
}


/* =====================================================
   5. GENERAL CONTENT SECTIONS
===================================================== */

.section {
  background: #ffffff;

  margin-top: 16px;

  padding: 30px clamp(18px, 3vw, 38px);

  border-radius: var(--radius);

  box-shadow: 0 2px 10px rgba(23, 44, 64, 0.03);
}

.section-heading {
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(21px, 2.2vw, 28px);

  line-height: 1.25;

  margin: 5px 0 0;

  color: #17659d;
}

.section p {
  color: #586571;
}

.intro p {
  max-width: 950px;
  margin-bottom: 12px;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}

.text-link:hover {
  text-decoration: underline;
}


/* =====================================================
   6. PRICING TABLE
===================================================== */

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;

  width: 100%;
  min-width: 580px;

  text-align: left;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  color: #6b7782;
  background: #f7f9fb;
}

td {
  font-size: 13px;
}

td:first-child {
  font-weight: 700;
}

.btn-small {
  padding: 8px 12px;
  font-size: 11px;
}

.fine-print,
.form-note {
  font-size: 10px;
  color: #85909a !important;
}

.fine-print {
  margin-top: 12px;
}


/* =====================================================
   7. MASTER PLAN & FLOOR PLANS
===================================================== */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan-card {
  border: 1px solid var(--line);
  border-radius: 6px;

  padding: 12px;

  text-align: center;
}

.plan-card img {
  width: 100%;
  height: 180px;

  object-fit: contain;

  background: #f7f8fa;
}

.plan-card h3 {
  font-size: 12px;
  margin: 10px 0;
}


/* =====================================================
   8. AMENITIES
===================================================== */

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.amenity-grid article {
  position: relative;
  overflow: hidden;

  border-radius: 6px;
  background: #dfe7eb;

  min-height: 140px;
}

.amenity-grid img {
  width: 100%;
  height: 150px;

  object-fit: cover;

  transition: transform 0.4s ease;
}

.amenity-grid article:hover img {
  transform: scale(1.06);
}

.amenity-grid h3 {
  position: absolute;

  bottom: 0;
  left: 0;
  right: 0;

  margin: 0;

  padding: 24px 10px 9px;

  color: #ffffff;
  font-size: 12px;

  background:
    linear-gradient(
      transparent,
      rgba(7, 27, 45, 0.87)
    );
}


/* =====================================================
   9. PROJECT GALLERY
===================================================== */

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-controls {
  display: flex;
  gap: 7px;
}

.slider-controls button {
  width: 34px;
  height: 34px;

  border: 1px solid var(--line);
  background: #ffffff;

  color: var(--blue);
  font-size: 23px;

  border-radius: 4px;
  cursor: pointer;
}

.slider-controls button:hover {
  background: var(--blue);
  color: #ffffff;
}

.gallery-window {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 12px;

  transition: transform 0.4s ease;
}

.gallery-track img {
  width: calc((100% - 24px) / 3);

  height: 190px;

  object-fit: cover;

  border-radius: 5px;

  flex: 0 0 calc((100% - 24px) / 3);
}


/* =====================================================
   10. LOCATION SECTION
===================================================== */

.location-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 24px;
  align-items: center;
}

.location-grid > img {
  width: 100%;
  height: 250px;

  object-fit: cover;

  border: 1px solid var(--line);
}

.location-grid ul {
  padding-left: 18px;
  color: #586571;

  margin: 12px 0;
}

.location-grid li {
  margin-bottom: 8px;
}


/* =====================================================
   11. VIRTUAL TOUR
===================================================== */

.virtual-tour {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  background: #edf5fa;
}

.virtual-tour h2 {
  margin: 4px 0;
}


/* =====================================================
   12. DEVELOPER SECTION
===================================================== */

.developer {
  display: grid;

  grid-template-columns: 1fr 220px;

  gap: 25px;
  align-items: center;
}

.developer img {
  max-height: 100px;
  object-fit: contain;
}


/* =====================================================
   13. FAQ
===================================================== */

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;

  font-weight: 700;
  font-size: 13px;

  color: #344451;

  list-style: none;

  display: flex;
  justify-content: space-between;
  gap: 12px;
}

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

.faq summary:after {
  content: '+';

  color: var(--blue);
  font-size: 19px;
  line-height: 1;
}

.faq details[open] summary:after {
  content: '−';
}

.faq details p {
  margin-top: 10px;
  margin-bottom: 0;

  font-size: 12px;
}


/* =====================================================
   14. FOOTER
===================================================== */

.site-footer {
  padding: 28px 12px;

  text-align: center;

  color: #74808b;
  font-size: 10px;
}

.site-footer strong {
  color: #42515d;
  font-size: 13px;
}

.site-footer p {
  margin: 10px auto;
  max-width: 900px;
}


/* =====================================================
   15. STICKY RIGHT ENQUIRY SIDEBAR
===================================================== */

.sticky-sidebar {
  position: sticky;

  top: 90px;

  background: #ffffff;

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  padding: 23px 20px;

  max-height: calc(100vh - 110px);

  overflow-y: auto;
}

.sidebar-top h2 {
  margin: 5px 0;

  color: #17659d;
  font-size: 22px;
}

.sidebar-top p {
  font-size: 12px;

  color: var(--muted);

  margin: 0 0 18px;
}


/* Form layout */

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.enquiry-form label {
  font-size: 11px;
  font-weight: 700;

  color: #43515e;
}

.enquiry-form label span {
  font-weight: 400;
  color: #84909a;
}

.enquiry-form input:not([type="checkbox"]) {
  width: 100%;
  height: 42px;

  border: 1px solid #dce2e7;
  border-radius: 4px;

  padding: 0 11px;

  outline: none;

  font-size: 12px;
}

.enquiry-form input:focus {
  border-color: var(--blue);

  box-shadow: 0 0 0 3px rgba(18, 101, 165, 0.08);
}


/* Phone input */

.phone-field {
  display: flex;

  border: 1px solid #dce2e7;
  border-radius: 4px;

  align-items: center;
}

.phone-field span {
  padding: 0 10px;

  color: #5d6872;
  font-size: 12px;

  border-right: 1px solid #e3e7eb;
}

.phone-field input:not([type="checkbox"]) {
  border: 0 !important;
  box-shadow: none !important;
}


/* Consent checkbox */

.consent {
  display: flex;

  gap: 8px;
  align-items: flex-start;

  margin: 8px 0;

  color: #65717c !important;
  font-size: 10px !important;
  font-weight: 400 !important;
}

.consent input {
  margin-top: 3px;
  accent-color: var(--blue);
}


/* Submit button */

.submit-btn {
  width: 100%;

  margin-top: 5px;

  min-height: 43px;
}

.submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


/* Sidebar benefits */

.sidebar-benefits {
  border-top: 1px solid var(--line);

  margin-top: 18px;
  padding-top: 14px;

  display: grid;
  gap: 8px;

  font-size: 11px;
  color: #56636f;
}


/* =====================================================
   16. MOBILE FIXED ENQUIRY BAR
===================================================== */

.mobile-enquire {
  display: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--blue);

  border: 1px solid var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #ffffff;
}


/* =====================================================
   17. ENQUIRY POPUP
===================================================== */

.modal {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;

  inset: 0;

  background: rgba(7, 21, 34, 0.66);
}

.modal-panel {
  position: relative;

  width: min(100%, 430px);

  background: #ffffff;

  border-radius: 9px;

  padding: 28px;

  box-shadow: var(--shadow);

  max-height: 90vh;
  overflow-y: auto;
}

.modal-panel h2 {
  color: var(--blue);
  margin: 6px 0 20px;
}

.modal-close {
  position: absolute;

  right: 13px;
  top: 8px;

  border: 0;
  background: none;

  font-size: 28px;

  cursor: pointer;
  color: #64717c;
}

.modal-close:hover {
  color: #111111;
}


/* =====================================================
   18. TABLET RESPONSIVE
===================================================== */

@media (max-width: 1100px) {

  .site-header {
    gap: 12px;
  }

  .main-nav {
    gap: 10px;
  }

  .main-nav a {
    font-size: 10px;
  }

  .page-shell {
    grid-template-columns:
      minmax(0, 1fr)
      290px;

    gap: 12px;
    padding: 12px;
  }

  .hero {
    height: 440px;
  }

}


/* =====================================================
   19. MOBILE RESPONSIVE
===================================================== */

@media (max-width: 820px) {

  .site-header {
    height: 62px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header-call {
    padding: 9px 12px;
  }

  .main-nav {
    display: none;

    position: absolute;

    top: 62px;
    left: 0;
    right: 0;

    background: #ffffff;

    padding: 14px 20px;

    box-shadow: var(--shadow);

    align-items: stretch;
    flex-direction: column;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    font-size: 13px;
    padding: 7px;
  }

  .page-shell {
    display: flex;
    flex-direction: column;

    padding: 10px;
    gap: 0;
  }

  .main-column {
    width: 100%;
  }

  .sticky-sidebar {
    position: static;

    max-height: none;

    width: 100%;

    margin-top: 15px;

    order: 2;
  }

  .hero {
    height: 430px;
  }

  .hero-content {
    left: 25px;
    right: 20px;
  }

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

  .amenity-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-enquire {
    position: fixed;

    z-index: 60;

    bottom: 0;
    left: 0;
    right: 0;

    background: #ffffff;

    padding: 9px 12px;

    display: flex;
    gap: 8px;

    box-shadow: 0 -3px 15px rgba(16, 40, 60, 0.12);
  }

  .mobile-enquire .btn {
    flex: 1;
  }

  body {
    padding-bottom: 60px;
  }

}


/* =====================================================
   20. SMALL MOBILE SCREENS
===================================================== */

@media (max-width: 560px) {

  .hero {
    height: 390px;
    border-radius: 5px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-points {
    gap: 6px;
    margin: 17px 0;
  }

  .hero-points span {
    font-size: 9px;
    padding: 6px;
  }

  .section {
    padding: 23px 16px;
    margin-top: 10px;
  }

  .section h2 {
    font-size: 21px;
  }

  .plan-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .plan-card {
    padding: 7px;
  }

  .plan-card img {
    height: 120px;
  }

  .plan-card h3 {
    font-size: 10px;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .amenity-grid img {
    height: 125px;
  }

  .gallery-track img {
    width: 82%;
    flex-basis: 82%;
    height: 170px;
  }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .location-grid > img {
    height: 190px;
  }

  .virtual-tour {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .developer img {
    max-width: 170px;
  }

  .sticky-sidebar {
    padding: 20px 16px;
  }

  .header-call {
    font-size: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 17px;
  }

}


/* =====================================================
   END OF STYLESHEET
===================================================== */
