/* Al-Kausar Properties - public site styles */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --gold: oklch(0.74 0.135 82);
  --gold-hover: oklch(0.8 0.13 82);
  --ink: oklch(0.2 0.015 75);
  --ink-hover: oklch(0.28 0.02 75);
  --ink-darker: oklch(0.14 0.014 75);
  --ink-darkest: oklch(0.11 0.012 75);
  --bg: oklch(0.97 0.012 85);
  --text: oklch(0.18 0.015 75);
  --muted: oklch(0.42 0.015 75);
  --muted-light: oklch(0.5 0.015 75);
  --card-border: oklch(0.9 0.015 85);
  --card-border-soft: oklch(0.92 0.01 85);
  --nav-base: oklch(0.88 0.01 85);
  --nav-hover: oklch(0.8 0.1 82);
  --foot-base: oklch(0.65 0.015 85);
  --foot-hover: oklch(0.78 0.1 82);
  --rent-badge: oklch(0.4 0.06 230);
  --sale-badge: oklch(0.4 0.09 80);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', sans-serif;
}

a { text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 28px;
  background: var(--ink-darker);
  border-bottom: 1px solid oklch(0.3 0.03 78 / 0.4);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 22px; color: var(--gold); letter-spacing: 0.02em; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.28em; color: oklch(0.7 0.02 85); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.main-nav a { color: var(--nav-base); font-size: 14.5px; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active { font-weight: 700; }

.header-cta {
  background: var(--gold); color: oklch(0.15 0.02 75); font-weight: 600; font-size: 13.5px;
  padding: 11px 18px; border-radius: 2px; letter-spacing: 0.01em; white-space: nowrap; flex-shrink: 0;
}
.header-cta:hover { background: var(--gold-hover); }

.nav-toggle { display: none; background: none; border: none; color: var(--nav-base); font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--ink-darker);
    flex-direction: column; align-items: flex-start; padding: 16px 28px; gap: 16px;
    border-bottom: 1px solid oklch(0.3 0.03 78 / 0.4); display: none; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta.desktop-only { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink-darker);
  padding: 96px 48px 110px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-emblem { position: absolute; pointer-events: none; }
.hero-emblem.tr { top: -140px; right: -140px; width: 520px; height: 520px; opacity: 0.07; }
.hero-emblem.bl { bottom: -180px; left: -160px; width: 460px; height: 460px; opacity: 0.05; }
.hero-eyebrow { position: relative; color: var(--gold); letter-spacing: 0.3em; font-size: 12px; text-transform: uppercase; margin-bottom: 22px; font-weight: 600; }
.hero h1 { position: relative; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 58px; line-height: 1.12; color: oklch(0.97 0.01 85); max-width: 820px; margin: 0 0 20px; }
.hero p { position: relative; font-size: 17px; color: oklch(0.72 0.02 85); max-width: 560px; margin: 0 0 44px; line-height: 1.6; }

@media (max-width: 700px) {
  .hero { padding: 64px 20px 70px; }
  .hero h1 { font-size: 36px; }
}

/* ---------- Search card ---------- */
.search-card {
  position: relative; width: 100%; max-width: 980px; background: oklch(0.985 0.008 85);
  border-radius: 6px; padding: 22px; box-shadow: 0 24px 60px -20px oklch(0.1 0.02 75 / 0.6);
}
.tab-row { display: flex; gap: 8px; margin-bottom: 18px; }
.tab-btn { flex: 1; padding: 11px; border-radius: 4px; font-weight: 600; font-size: 14.5px; cursor: pointer; border: 1px solid var(--card-border); background: transparent; color: var(--muted); font-family: inherit; }
.tab-btn.active { border-color: transparent; background: var(--gold); color: oklch(0.15 0.02 75); }

.search-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 10px; }
@media (max-width: 900px) { .search-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr; } }

input, select, textarea, button {
  font-family: inherit;
}
.field {
  padding: 12px 14px; border: 1px solid oklch(0.85 0.02 85); border-radius: 4px; font-size: 14px; color: var(--text); width: 100%; background: #fff;
}
.btn-primary {
  padding: 12px 26px; border: none; border-radius: 4px; background: var(--ink); color: oklch(0.95 0.01 85); font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-primary:hover { background: var(--ink-hover); }
.btn-gold {
  display: inline-block; padding: 13px 30px; background: var(--gold); color: oklch(0.15 0.02 75); font-weight: 600; font-size: 14px; border-radius: 3px; border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-outline {
  padding: 14px 36px; border: 1.5px solid var(--ink); border-radius: 3px; color: var(--ink); background: transparent; font-weight: 600; font-size: 14.5px; display: inline-block; cursor: pointer;
}
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); background: oklch(0.94 0.014 82); border-bottom: 1px solid oklch(0.86 0.02 85); }
.stat-item { text-align: center; padding: 30px 12px; border-right: 1px solid oklch(0.86 0.02 85); }
.stat-item:last-child { border-right: none; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 36px; color: var(--sale-badge); }
.stat-label { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2,1fr); } .stat-item:nth-child(2) { border-right: none; } }

/* ---------- Section headings ---------- */
.section { padding: 80px 48px 90px; }
@media (max-width: 700px) { .section { padding: 48px 20px 56px; } }
.eyebrow { color: oklch(0.55 0.12 80); letter-spacing: 0.25em; font-size: 11.5px; text-transform: uppercase; font-weight: 600; }
.eyebrow.on-dark { color: oklch(0.7 0.12 82); }
h2.section-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 38px; margin: 8px 0 0; color: var(--text); }
h2.section-title.on-dark { color: oklch(0.96 0.01 85); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; flex-wrap: wrap; gap: 20px; }

/* ---------- Listing cards ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.listing-card { background: #fff; border: 1px solid var(--card-border); border-radius: 6px; overflow: hidden; color: inherit; display: block; }
.listing-photo {
  position: relative; height: 180px;
  background: repeating-linear-gradient(135deg, oklch(0.88 0.015 82), oklch(0.88 0.015 82) 10px, oklch(0.92 0.012 82) 10px, oklch(0.92 0.012 82) 20px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo .placeholder-label { font-family: monospace; font-size: 11px; color: oklch(0.5 0.01 82); letter-spacing: 0.05em; }
.badge { position: absolute; top: 10px; left: 10px; color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 3px; }
.badge.sale { background: var(--sale-badge); }
.badge.rent { background: var(--rent-badge); }
.badge-featured { position: absolute; top: 10px; right: 10px; background: var(--gold); color: oklch(0.15 0.02 75); font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 3px; letter-spacing: 0.05em; }
.badge-photos { position: absolute; bottom: 10px; right: 10px; background: oklch(0.15 0.02 75 / 0.65); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 3px; display: flex; align-items: center; gap: 4px; }
.listing-body { padding: 16px 18px 20px; }
.listing-price { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 22px; color: var(--sale-badge); margin-bottom: 6px; }
.listing-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-location { font-size: 13px; color: var(--muted-light); margin-bottom: 14px; display: flex; align-items: center; gap: 4px; }
.listing-meta { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--card-border-soft); font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.listing-meta span { display: flex; align-items: center; gap: 5px; }

/* ---------- Filter pills ---------- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { padding: 9px 18px; border-radius: 20px; font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--card-border); background: transparent; color: var(--muted); font-family: inherit; }
.pill.active { border-color: transparent; background: var(--ink); color: oklch(0.95 0.01 85); }
.pill:hover:not(.active) { border-color: oklch(0.7 0.02 85); }

/* ---------- Construction section ---------- */
.construction-grid { background: var(--ink-darker); padding: 90px 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .construction-grid { grid-template-columns: 1fr; padding: 56px 20px; gap: 32px; } }
.construction-photo { height: 380px; border-radius: 6px; background: repeating-linear-gradient(135deg, oklch(0.22 0.02 75), oklch(0.22 0.02 75) 12px, oklch(0.19 0.016 75) 12px, oklch(0.19 0.016 75) 24px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.construction-photo img { width: 100%; height: 100%; object-fit: cover; }
.construction-photo .placeholder-label { font-family: monospace; font-size: 12px; color: oklch(0.6 0.03 82); letter-spacing: 0.05em; }
.service-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.service-item { display: flex; align-items: center; gap: 12px; color: oklch(0.88 0.01 85); font-size: 14.5px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* ---------- Forms (contact / submit-property / inquiry) ---------- */
.form-card { background: #fff; border: 1px solid oklch(0.87 0.015 85); border-radius: 6px; padding: 32px; }
@media (max-width: 700px) { .form-card { padding: 22px; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 560px) { .form-grid .span-2 { grid-column: span 1; } }
.form-grid textarea { resize: vertical; }
.upload-dropzone { grid-column: span 2; padding: 20px; border: 1.5px dashed oklch(0.8 0.02 85); border-radius: 4px; text-align: center; color: var(--muted-light); font-size: 13px; cursor: pointer; }
@media (max-width: 560px) { .upload-dropzone { grid-column: span 1; } }
.upload-dropzone input[type=file] { display: none; }
.file-list { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: left; }

.alert { padding: 14px 18px; border-radius: 4px; font-size: 14px; margin-bottom: 20px; }
.alert-success { background: oklch(0.93 0.06 150); color: oklch(0.3 0.08 150); }
.alert-error { background: oklch(0.93 0.06 25); color: oklch(0.35 0.1 25); }
.field-errors { list-style: none; padding: 0; margin: 0 0 16px; }
.field-errors li { color: oklch(0.5 0.15 25); font-size: 13.5px; margin-bottom: 4px; }

/* ---------- About / plain content sections ---------- */
.prose { max-width: 1100px; margin: 0 auto; text-align: center; }
.prose p { font-size: 15.5px; line-height: 1.8; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-darkest); padding: 64px 48px 30px; color: var(--foot-base); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; max-width: 1360px; margin: 0 auto 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; padding: 0 20px 0 0;} .site-footer { padding: 48px 20px 24px; } }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-brand span { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 19px; color: var(--gold); }
.footer-col-title { color: oklch(0.85 0.01 85); font-weight: 600; font-size: 13.5px; margin-bottom: 14px; letter-spacing: 0.05em; }
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-links a { color: var(--foot-base); }
.footer-links a:hover { color: var(--foot-hover); }
.footer-bottom { max-width: 1360px; margin: 0 auto; padding-top: 24px; border-top: 1px solid oklch(0.25 0.015 75); font-size: 12.5px; color: oklch(0.5 0.015 85); text-align: center; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { max-width: 1240px; margin: 0 auto; padding: 22px 48px 0; font-size: 13px; color: var(--muted-light); }
.breadcrumb a { color: var(--sale-badge); }

/* ---------- Property detail ---------- */
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; height: 420px; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr; height: auto; } }
.gallery-main { position: relative; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, oklch(0.88 0.015 82), oklch(0.88 0.015 82) 12px, oklch(0.92 0.012 82) 12px, oklch(0.92 0.012 82) 24px); display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gallery-main { height: 260px; } }
.gallery-thumbs { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
@media (max-width: 700px) { .gallery-thumbs { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: 120px; } }
.gallery-thumb { border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(135deg, oklch(0.9 0.012 82), oklch(0.9 0.012 82) 10px, oklch(0.94 0.01 82) 10px, oklch(0.94 0.01 82) 20px); display: flex; align-items: center; justify-content: center; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.property-main { max-width: 1240px; margin: 0 auto; padding: 44px 48px 90px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .property-main { grid-template-columns: 1fr; padding: 32px 20px 56px; } }
.property-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; background: #fff; border: 1px solid var(--card-border); border-radius: 6px; padding: 22px; margin-bottom: 32px; }
@media (max-width: 560px) { .property-facts { grid-template-columns: repeat(2,1fr); row-gap: 20px; } }
.fact { text-align: center; border-left: 1px solid var(--card-border-soft); }
.fact:first-child { border-left: none; }
@media (max-width: 560px) { .fact:nth-child(3) { border-left: none; } }
.fact-value { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 22px; color: var(--text); }
.fact-label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-light); margin-top: 2px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: oklch(0.32 0.015 75); }
.sidebar-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.contact-info-list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-icon { color: oklch(0.5 0.1 80); flex-shrink: 0; margin-top: 2px; }
.contact-info-title { font-weight: 600; font-size: 14.5px; margin-bottom: 3px; }
.contact-info-value { font-size: 14px; color: var(--muted); line-height: 1.6; }
.map-placeholder { height: 200px; border-radius: 6px; background: repeating-linear-gradient(135deg, oklch(0.9 0.012 82), oklch(0.9 0.012 82) 10px, oklch(0.94 0.01 82) 10px, oklch(0.94 0.01 82) 20px); display: flex; align-items: center; justify-content: center; }
.map-placeholder span { font-family: monospace; font-size: 11px; color: oklch(0.55 0.01 82); }

.no-results { text-align: center; padding: 60px 0; color: var(--muted-light); font-size: 15px; }

.submit-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: flex-start; }
@media (max-width: 800px) { .submit-grid { grid-template-columns: 1fr; gap: 32px; } }

.construction-services-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .construction-services-grid { grid-template-columns: 1fr !important; } }
