/* ========================================
   BEACHSIDE RESIDENCE — Landing Page CSS
   Redesigned to match reference mockup
   v2.1 — Mobile menu fixes
   ======================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --sand: #f5efe6;
  --sand-light: #faf7f2;
  --sand-mid: #ede5d8;
  --gold: #c9a96e;
  --gold-dark: #b08d4f;
  --gold-light: #e0cc9e;
  --navy: #2c3e50;
  --navy-light: #3d5166;
  --charcoal: #333333;
  --text-body: #555555;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
  --max-width: 1200px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--sand-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(201, 169, 110, 0.55);
}

.btn-beige {
  background: var(--sand-mid);
  color: var(--navy);
  border: 1px solid var(--gold-light);
  box-shadow: 0 2px 8px rgba(201, 169, 110, 0.2);
}

.btn-beige:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 169, 110, 0.35);
}

.btn-wide {
  width: 100%;
  max-width: 480px;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  letter-spacing: 1px;
}

.section-title-left {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 16px;
}

.section-title-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-light);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  min-width: 0;
}

.logo-text small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header .btn {
  padding: 10px 24px;
  font-size: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION — Split Layout
   ======================================== */
.hero {
  padding-top: var(--header-height);
  background: var(--sand-light);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  align-items: center;
}

.hero-content {
  padding: 60px 48px 60px 0;
  margin-top: -60px;
}

.hero-content h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  font-style: italic;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-image {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.hero-image img,
.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
  min-height: 500px;
}

.hero-video-mobile {
  display: none;
}

/* ========================================
   GALLERY CAROUSEL
   ======================================== */
.gallery {
  padding: 60px 0 0;
  background: var(--sand-light);
}

.gallery-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  position: relative;
  width: 100%;
  height: 500px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.gallery-arrow:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.gallery-prev {
  left: 20px;
}

.gallery-next {
  right: 20px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ========================================
   APARTMENTS / STYLE & COMFORT
   ========================================*/
.apartments {
  padding: 80px 0 0;
  background: var(--sand-light);
}

.apartments-header {
  margin-bottom: 16px;
}

.apartments-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 700px;
  margin-bottom: 48px;
}

.apt-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

@media (min-width: 992px) {
  .apt-card {
    flex-direction: row;
    align-items: center;
  }
}

.apt-image {
  flex: 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.apt-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 400px;
}

@media (min-width: 992px) {
  .apt-image img {
    max-height: 600px;
  }
}

.apt-content {
  flex: 1;
  padding: 40px;
}

@media (min-width: 992px) {
  .apt-content {
    padding: 60px;
  }
}

.apt-content h3 {
  font-size: 32px;
  font-family: var(--font-heading);
  color: var(--navy);
  margin-bottom: 20px;
}

.apt-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.6;
  color: var(--gold-dark);
}

.apt-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.apt-features li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 20px;
  line-height: 1.6;
}

.apt-features li::before {
  content: "•";
  color: var(--gold-dark);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.apt-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-top: 20px;
}

/* ========================================
   SERVICES / CARE FOR YOU
   ======================================== */
.services {
  padding: 80px 0;
  background: var(--sand);
}

.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.services-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 40px;
}

.services-grid-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.service-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-mini-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.service-mini span {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--navy);
  line-height: 1.4;
}

.services-image {
  overflow: hidden;
  border-radius: var(--radius);
}

.services-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}

.services-image:hover img {
  transform: scale(1.03);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  padding: 80px 0;
  background: var(--sand-light);
}

.contact-inline {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-fields .form-group {
  margin-bottom: 0;
}

.contact-fields input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
}

.contact-fields input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.contact-inline .btn-wide {
  max-width: 100%;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--white);
  border-top: 1px solid #e8e0d4;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto auto 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 32px;
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-brand .logo-text {
  font-size: 16px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-contact-item {
  font-size: 14px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: var(--navy);
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid #e8e0d4;
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #999;
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(44, 62, 80, 0.5);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  max-width: 520px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--charcoal);
}

.modal h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: #777;
  font-size: 14px;
  margin-bottom: 28px;
}

/* ---------- Form Styles (Modal) ---------- */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.modal .btn {
  width: 100%;
  margin-top: 8px;
}

/* ========================================
   RESIDENCE STORIES
   ======================================== */
.stories {
  padding: 80px 0;
  background: var(--white);
}

.stories .section-title {
  margin-bottom: 48px;
}

/* ---- Carousel wrapper ---- */
.stories-carousel {
  position: relative;
}

.stories-track {
  position: relative;
  min-height: 400px;
}

/* ---- Story row slides ---- */
.story-row {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 24px 0 48px;
}

.story-row.active {
  display: grid;
}

.story-row-reverse {
  direction: rtl;
}

.story-row-reverse > * {
  direction: ltr;
}

.story-row-centered {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.story-row-centered .quote-icon {
  display: block;
  margin: 0 auto 16px;
}

.story-row-centered .story-row-author {
  justify-content: center;
}

.story-row-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  aspect-ratio: 4/3;
}

.story-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.story-row-yt-img {
  aspect-ratio: auto;
  border: 2px solid var(--gold);
}

.story-row-yt-img a {
  display: block;
}

.story-row-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-row-body .quote-icon {
  margin-bottom: 4px;
  opacity: 0.7;
}

.story-row-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-body);
  margin: 0;
}

.story-row-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--sand-mid);
}

.story-row-author strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.story-row-author span {
  font-size: 12px;
  color: var(--gold-dark);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.stories-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 28px;
  background: #FF0000;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(255,0,0,0.25);
  align-self: flex-start;
}

.stories-yt-link:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,0,0,0.35);
}

.stories-yt-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---- Carousel Navigation ---- */
.stories-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.stories-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px; /* visually center the arrow */
}

.stories-arrow:hover {
  background: var(--gold);
  color: var(--white);
}

.stories-dots {
  display: flex;
  gap: 10px;
}

.stories-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sand-mid);
  cursor: pointer;
  transition: var(--transition);
}

.stories-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in,
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
  transform: translateY(30px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.fade-in.visible,
.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ========================================
   MOBILE OVERLAY
   ======================================== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* --- Hamburger kicks in early to prevent nav wrapping --- */
@media (max-width: 1100px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    flex-direction: column;
    background: var(--white);
    padding: 100px 24px 40px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: var(--transition);
    gap: 20px;
    align-items: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links .btn-beige {
    width: 100%;
    margin-top: 12px;
    text-align: center;
    justify-content: center;
    white-space: normal;
    word-break: break-word;
    padding: 12px 16px;
    font-size: 11px;
  }
}

/* --- Tablet: stacked hero, single-col services --- */
@media (max-width: 900px) {
  .gallery-track {
    height: 350px;
  }

  .hero-split {
    display: flex;
    flex-direction: column;
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
    max-width: 100vw;
  }

  .hero-content {
    padding: 48px 0 36px;
    padding-right: 0;
    order: 1;
  }

  .hero-content h1 {
    font-size: clamp(24px, 5vw, 36px);
  }

  .hero-image {
    order: 2;
    width: 100%;
    min-width: 0;
    aspect-ratio: auto; /* Removes forced container boundaries that cause forced scale+crop */
    overflow: hidden;
  }

  .hero-image img,
  .hero-image video {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    min-height: unset;
    aspect-ratio: 16 / 9;
  }

  .hero-video-desktop {
    display: none !important;
  }
  
  .hero-video-mobile {
    display: block !important;
  }

  .services-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-image {
    order: 2;
  }

  .story-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .story-row-reverse {
    direction: ltr;
  }

  .story-row-centered {
    max-width: 100%;
  }

  .apartments {
    padding: 60px 0 0;
  }

  .services {
    padding: 60px 0;
  }

  .contact {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .header .container {
    padding: 0 12px;
    gap: 8px;
  }

  .logo-text small {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo {
    gap: 8px;
  }

  .logo-text {
    font-size: 15px;
  }

  .gallery-track {
    height: 220px;
  }

  .gallery-arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .gallery-prev {
    left: 10px;
  }

  .gallery-next {
    right: 10px;
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    justify-content: center;
  }

  .footer-contacts {
    align-items: center;
  }

  .footer-col {
    align-items: center;
  }

  .services-grid-mini {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-content {
    padding: 32px 0 28px;
  }

  .hero-content h1 {
    font-size: 24px;
    margin-bottom: 14px;
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .hero-content .btn {
    padding: 12px 28px;
    font-size: 13px;
  }

  .section-title-left {
    font-size: 20px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
  }

  .apartments {
    padding: 48px 0 0;
  }

  .apartments-text {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .services {
    padding: 48px 0;
  }

  .services-content p {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .contact {
    padding: 48px 0;
  }

  .service-mini-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .service-mini span {
    font-size: 12px;
  }

  .modal {
    padding: 32px 24px;
  }

  .modal h3 {
    font-size: 22px;
  }

  .btn {
    padding: 12px 28px;
    font-size: 13px;
  }
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
  position: relative;
  margin-left: 12px;
  flex-shrink: 0;
  z-index: 1002;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(44, 62, 80, 0.15);
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  transition: var(--transition);
  white-space: nowrap;
}

.lang-current:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.06);
}

.lang-flag {
  font-size: 16px;
  line-height: 1;
}

.lang-code {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-chevron {
  transition: transform 0.25s ease;
  color: var(--navy);
  opacity: 0.5;
}

.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 160px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1003;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--navy);
  text-align: left;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.lang-dropdown button:hover {
  background: var(--sand-light);
}

.lang-dropdown button.active {
  background: var(--sand);
  font-weight: 600;
  color: var(--gold-dark);
}

/* ========================================
   RTL SUPPORT (Hebrew)
   ======================================== */
[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .header .container {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo-text {
  text-align: right;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-split {
  direction: rtl;
}

[dir="rtl"] .hero-content {
  padding: 60px 0 60px 48px;
  padding-right: 0;
  text-align: right;
}

[dir="rtl"] .apartments-header,
[dir="rtl"] .apartments-text {
  text-align: right;
}

[dir="rtl"] .section-title-left::after {
  left: auto;
  right: 0;
}

[dir="rtl"] .services-split {
  direction: rtl;
}

[dir="rtl"] .services-content {
  text-align: right;
}

[dir="rtl"] .service-mini {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .footer-grid {
  direction: rtl;
}

[dir="rtl"] .footer-contact-item {
  flex-direction: row-reverse;
}

[dir="rtl"] .footer-col {
  text-align: right;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-dropdown button {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .lang-switcher {
  margin-left: 0;
  margin-right: 12px;
}

/* --- RTL Responsive overrides --- */
@media (max-width: 1100px) {
  [dir="rtl"] .nav-links {
    right: auto;
    left: -300px;
    align-items: flex-end;
  }

  [dir="rtl"] .nav-links.open {
    left: 0;
  }
}

@media (max-width: 900px) {
  [dir="rtl"] .hero-content {
    padding: 60px 0 40px;
  }
}

/* --- Mobile lang switcher --- */
@media (max-width: 1100px) {
  .lang-switcher {
    order: -1;
    margin-left: 0;
    margin-right: auto;
  }

  .lang-dropdown {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: auto !important;
    min-width: 170px;
    max-width: calc(100vw - 24px);
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .lang-dropdown button {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  [dir="rtl"] .lang-switcher {
    margin-right: 0;
    margin-left: auto;
  }

  [dir="rtl"] .lang-dropdown {
    left: auto;
    right: 0;
  }
}

/* --- Extra small screens --- */
@media (max-width: 360px) {
  .header .container {
    padding: 0 8px;
    gap: 4px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
  }

  .logo-text {
    font-size: 13px;
  }

  .logo-text small {
    max-width: 100px;
    font-size: 6px;
    letter-spacing: 0.8px;
  }

  .lang-current {
    padding: 4px 8px;
    font-size: 11px;
  }

  .hamburger {
    padding: 6px;
  }

  .hamburger span {
    width: 22px;
  }

  .nav-links {
    width: 260px;
    padding: 90px 20px 32px;
  }

  .nav-links .btn-beige {
    font-size: 10px;
    padding: 10px 12px;
  }
}