/* Zafir Apartments — luxury dark theme */
:root {
  --bg-deep: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1c1c1c;
  --gold: #c9a962;
  --gold-light: #dfc88a;
  --gold-dark: #9a7b3c;
  --text-primary: #f5f0e8;
  --text-muted: #a89f8f;
  --border: rgba(201, 169, 98, 0.2);
  --shadow-gold: 0 4px 30px rgba(201, 169, 98, 0.15);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Cormorant Garamond", "Georgia", serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: var(--shadow-gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}

.logo-link:hover {
  color: var(--gold-light);
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text .brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.logo-text .tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.lang-switcher select {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: var(--bg-deep);
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 0.45rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
  max-width: 130px;
}

.lang-switcher select:focus {
  outline: none;
  border-color: var(--gold);
}

.lang-notice {
  background: rgba(201, 169, 98, 0.1);
  border: 1px solid var(--gold-dark);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  font-family: var(--font-ui);
}

.lang-notice strong {
  display: block;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.lang-notice p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

body.rtl .nav-inner,
body.rtl .hero-cta,
body.rtl .footer-inner {
  direction: rtl;
}

body.rtl .contact-split,
body.rtl .form-row,
body.rtl .checkbox-group {
  direction: rtl;
}

body.rtl .notice-box li,
body.rtl .lang-notice {
  text-align: right;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.4) 0%, rgba(10, 10, 10, 0.85) 60%, var(--bg-deep) 100%),
    url("../assets/images/gallery/gallery-4.jpg") center / cover no-repeat;
  z-index: -1;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-deep) 100%);
}

.hero-content {
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(201, 169, 98, 0.3);
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.hero .location {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--bg-deep);
  font-weight: 600;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 169, 98, 0.1);
  color: var(--gold-light);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .overline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
}

.gold-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

/* About / Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Apartments preview */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.apartment-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.apartment-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.apartment-card:hover img {
  transform: scale(1.05);
}

.apartment-info {
  padding: 1.75rem;
}

.apartment-info h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.apartment-info p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Gallery page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(10, 10, 10, 0.8));
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-primary);
  z-index: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.instagram-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 85vh;
  max-width: 90vw;
  object-fit: contain;
  border: 1px solid var(--border);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.lightbox-close:hover {
  background: var(--gold);
  color: var(--bg-deep);
}

/* Contact / Booking page */
.contact-page {
  padding-top: calc(var(--nav-height) + 3rem);
  min-height: 100vh;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-height) - 6rem);
}

.contact-panel,
.booking-panel {
  padding: 3rem;
  display: flex;
  flex-direction: column;
}

.contact-panel {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
}

.booking-panel {
  background: var(--bg-elevated);
}

.panel-header {
  margin-bottom: 2rem;
}

.panel-header .overline {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.panel-header h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.panel-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

.notice-box {
  background: rgba(201, 169, 98, 0.08);
  border: 1px solid var(--gold-dark);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.notice-box strong {
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.notice-box ul {
  list-style: none;
  color: var(--text-muted);
}

.notice-box li {
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.notice-box li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.6rem;
  top: 0.45rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 0.95rem;
  border-radius: 2px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

.checkbox-group label {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}

.form-success {
  display: none;
  padding: 1.25rem;
  background: rgba(201, 169, 98, 0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: var(--font-ui);
  margin-top: 1rem;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  padding: 1.25rem;
  background: rgba(180, 60, 60, 0.12);
  border: 1px solid rgba(180, 60, 60, 0.5);
  color: #e8b4b4;
  font-family: var(--font-ui);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-error.visible {
  display: block;
}

.form-error a {
  color: var(--gold-light);
}

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.contact-info-item a {
  color: var(--gold-light);
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 4rem) 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto;
}

.page-hero .overline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: all var(--transition);
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
