:root {
  --ivory: #F7F3EE; --ivory-dark: #EDE8E0; --stone: #8B7355; --stone-light: #B5A48A;
  --terracotta: #C4714A; --sage: #7A8C72; --noir: #1C1C1A; --noir-soft: #3A3A38;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-arabic: 'Noto Sans Arabic', sans-serif;
  --font-chinese: 'Noto Sans SC', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--noir); font-family: var(--font-body); font-weight: 300; line-height: 1.6; overflow-x: hidden; }
body.lang-ar { font-family: var(--font-arabic); direction: rtl; }
body.lang-zh { font-family: var(--font-chinese); }

/* LANG BAR */
.lang-bar { background: var(--noir); padding: 8px 2.5rem; display: flex; justify-content: flex-end; gap: 0; position: relative; z-index: 200; }
.lang-btn { background: none; border: none; color: var(--stone-light); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 4px 12px; border-right: 0.5px solid #444; transition: color 0.2s; }
.lang-btn:last-child { border-right: none; }
.lang-btn:hover, .lang-btn.active { color: var(--ivory); }

/* NAV */
#mainNav { background: var(--ivory); border-bottom: 0.5px solid var(--ivory-dark); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 1.1rem 2.5rem; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--noir); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.nav-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { font-size: 13px; color: var(--noir-soft); text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; position: relative; }
.nav-link:hover { color: var(--terracotta); }
.nav-cta { background: var(--noir); color: var(--ivory); padding: 8px 20px; border-radius: 2px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: background 0.25s; }
.nav-cta:hover { background: var(--terracotta); }
.nav-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--noir); }

/* DROPDOWN */
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 0.5px solid var(--ivory-dark); min-width: 200px; z-index: 200; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.dropdown-menu a { display: block; padding: 10px 16px; font-size: 13px; color: var(--noir-soft); text-decoration: none; border-bottom: 0.5px solid var(--ivory-dark); transition: background 0.15s, color 0.15s; }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--ivory); color: var(--terracotta); }
.nav-dropdown:hover .dropdown-menu { display: block; }

/* BREADCRUMB */
.breadcrumb { font-size: 11px; color: var(--stone-light); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1rem; }
.breadcrumb a { color: var(--stone-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--terracotta); }
.breadcrumb span { color: var(--terracotta); }

/* PAGE HERO */
.page-hero { padding: 4rem 2.5rem 3rem; max-width: 1200px; margin: 0 auto; border-bottom: 0.5px solid var(--ivory-dark); }
.page-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.page-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--terracotta); display: inline-block; }
.page-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 48px); font-weight: 400; color: var(--noir); line-height: 1.2; margin-bottom: 1rem; }
.page-sub { font-size: 16px; font-weight: 300; color: var(--noir-soft); max-width: 580px; line-height: 1.7; margin-bottom: 1.25rem; }
.page-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.meta-item { font-size: 12px; color: var(--stone-light); display: flex; align-items: center; gap: 5px; }

/* CONTENT SECTIONS */
.content-section { padding: 3rem 2.5rem; max-width: 1200px; margin: 0 auto; border-bottom: 0.5px solid var(--ivory-dark); }
.section-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--stone); margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--stone); display: inline-block; }
.section-title { font-family: var(--font-display); font-size: clamp(22px, 2.5vw, 32px); font-weight: 400; color: var(--noir); margin-bottom: 0.75rem; line-height: 1.25; }
.section-body { font-size: 14px; color: var(--noir-soft); line-height: 1.8; }
.section-body p { margin-bottom: 0.85rem; }
.section-body p:last-child { margin-bottom: 0; }

/* GRID CARDS */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.5rem; }
.card { background: var(--ivory-dark); border-radius: 4px; padding: 1.25rem; }
.card-title { font-size: 14px; font-weight: 500; color: var(--noir); margin-bottom: 6px; }
.card-body { font-size: 13px; color: var(--stone); line-height: 1.65; }
.card-price { font-family: var(--font-display); font-size: 20px; color: var(--noir); margin-bottom: 4px; }
.card-unit { font-size: 11px; color: var(--stone-light); margin-bottom: 6px; }
.card-example { font-size: 12px; color: var(--stone-light); padding-top: 8px; border-top: 0.5px solid var(--stone-light); margin-top: 8px; opacity: 0.7; }

/* TIP BOX */
.tip-box { background: var(--ivory-dark); border-left: 3px solid var(--terracotta); padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.tip-label { font-size: 11px; font-weight: 500; color: var(--terracotta); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.tip-body { font-size: 13px; color: var(--noir-soft); line-height: 1.7; font-style: italic; }

/* TOWNS GRID */
.towns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.5rem; }
.town-card { background: var(--white); border: 0.5px solid var(--ivory-dark); border-radius: 4px; padding: 1rem; }
.town-name { font-size: 14px; font-weight: 500; color: var(--noir); margin-bottom: 3px; }
.town-vibe { font-size: 12px; color: var(--stone); font-style: italic; margin-bottom: 6px; }
.town-price { font-size: 12px; color: var(--terracotta); font-weight: 500; }
.badge { display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 99px; background: rgba(196,113,74,0.1); color: var(--terracotta); margin-left: 6px; }

/* PROCESS STEPS */
.steps-list { margin-top: 1.5rem; }
.step-item { display: flex; gap: 1.5rem; padding: 1.25rem 0; border-bottom: 0.5px solid var(--ivory-dark); }
.step-item:last-child { border-bottom: none; }
.step-num { font-family: var(--font-display); font-size: 32px; color: var(--ivory-dark); min-width: 48px; line-height: 1; }
.step-title { font-size: 14px; font-weight: 500; color: var(--noir); margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--stone); line-height: 1.65; }

/* FAQ */
.faq-list { margin-top: 1.5rem; }
.faq-item { border-bottom: 0.5px solid var(--ivory-dark); padding: 1.25rem 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 14px; font-weight: 500; color: var(--noir); margin-bottom: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.faq-q::after { content: '+'; font-size: 18px; color: var(--stone-light); font-weight: 300; flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { font-size: 13px; color: var(--stone); line-height: 1.75; display: none; }
.faq-item.open .faq-a { display: block; }

/* PAGE CTA */
.page-cta { background: var(--noir); padding: 4rem 2.5rem; text-align: center; }
.page-cta-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); font-weight: 400; color: var(--ivory); margin-bottom: 0.75rem; }
.page-cta-sub { font-size: 15px; color: var(--stone-light); margin-bottom: 2rem; }
.btn-primary { display: inline-block; background: var(--terracotta); color: var(--white); padding: 14px 32px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; text-decoration: none; transition: background 0.25s; }
.btn-primary:hover { background: #a85a37; }
.btn-ghost { display: inline-block; color: var(--stone-light); font-size: 13px; text-decoration: none; border-bottom: 1px solid #444; padding-bottom: 2px; margin-left: 1.5rem; transition: color 0.2s; }
.btn-ghost:hover { color: var(--ivory); }

/* FOOTER */
footer { background: var(--noir); padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; border-top: 0.5px solid #2a2a28; }
.footer-logo { font-family: var(--font-display); font-size: 18px; color: var(--ivory); font-weight: 400; text-decoration: none; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--stone-light); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ivory); }
.footer-copy { font-size: 11px; color: #555; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .card-grid, .towns-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ivory); border-bottom: 0.5px solid var(--ivory-dark); padding: 1rem 2rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; }
  .nav-dropdown:hover .dropdown-menu { display: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
}
@media (max-width: 600px) {
  .card-grid, .towns-grid { grid-template-columns: 1fr; }
  .lang-bar { padding: 8px 1rem; }
  .page-hero, .content-section { padding: 2rem 1.25rem; }
  .nav-inner { padding: 1rem 1.25rem; }
}

/* FEATURED PROPERTY PHOTO BLOCK — used on region pages */
.featured-photo { position: relative; height: 420px; overflow: hidden; background: var(--stone-light); }
.featured-photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; background-color: var(--stone-light); }
.featured-photo-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem 2.5rem; background: linear-gradient(to top, rgba(28,28,26,0.75) 0%, transparent 100%); }
.featured-photo-caption span { font-family: var(--font-display); font-size: 16px; color: var(--white); font-style: italic; }
.featured-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 420px; }
.featured-photo-grid .featured-photo-img { position: relative; height: 100%; }
@media (max-width: 700px) {
  .featured-photo, .featured-photo-grid { height: 260px; }
  .featured-photo-grid { grid-template-columns: 1fr; height: auto; }
  .featured-photo-grid .featured-photo-img { height: 220px; }
}

/* LEGAL FOOTER — licences, RC pro, ORIAS */
.legal-footer { background: var(--noir); border-top: 0.5px solid #2a2a28; padding: 2.5rem 2.5rem 1.5rem; }
.legal-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.legal-col p { font-size: 11px; color: var(--stone-light); line-height: 1.7; margin-bottom: 2px; }
.legal-col p.legal-label { color: var(--ivory); font-weight: 500; margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-col a { color: var(--stone-light); text-decoration: underline; }
.legal-col a:hover { color: var(--ivory); }
@media (max-width: 800px) {
  .legal-footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
