/* ==========================================================================
   Casablanca Holdings — site styles
   ========================================================================== */
:root {
  --bg: #faf8f4;
  --card: #ffffff;
  --ink: #29241d;
  --muted: #6f665a;
  --accent: #9e4732;
  --accent-dark: #7f3625;
  --green: #2f6b4f;
  --green-bg: #e6f1ea;
  --line: #e7e0d5;
  --shadow: 0 1px 2px rgba(41, 36, 29, .06), 0 8px 24px rgba(41, 36, 29, .07);
  --radius: 14px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5rem;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700; font-size: 1.05rem; font-style: italic;
}
.brand .name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; line-height: 1.15;
}
.brand .name small { display: block; font-family: "Inter", sans-serif; font-weight: 500; font-size: .68rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 8px;
}
.site-nav a:hover { background: #f3ede3; text-decoration: none; }
.site-nav a.active { color: var(--accent); font-weight: 600; }
.nav-phone {
  display: inline-block; margin-left: 8px;
  background: var(--accent); color: #fff !important; font-weight: 600 !important;
  padding: 9px 16px !important; border-radius: 999px;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--accent-dark); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 1.15rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 22px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 10px; }
  .nav-phone { margin: 8px 0 0; text-align: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff;
  background: #3a332b center / cover no-repeat;
  min-height: 440px;
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(24, 20, 15, .72) 0%, rgba(24, 20, 15, .35) 60%, rgba(24, 20, 15, .15) 100%);
}
.hero .wrap { position: relative; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 620px; }
.hero p { max-width: 520px; font-size: 1.1rem; color: rgba(255, 255, 255, .92); }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: none; cursor: pointer; transition: background .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: #f7ece8; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 1.6rem; }
.kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .74rem;
  font-weight: 600; color: var(--accent); margin-bottom: .4rem;
}

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.badge-available { background: var(--green-bg); color: var(--green); }
.badge-rented { background: #efe9df; color: #857a6a; }

/* ---------- featured ---------- */
.featured-card {
  display: grid; grid-template-columns: 1.15fr 1fr;
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.featured-card .photo { min-height: 340px; background: center / cover no-repeat #ddd; }
.featured-card .body { padding: 34px 36px; display: flex; flex-direction: column; }
.featured-card .body .btns { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 1.2rem; }
@media (max-width: 780px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card .photo { min-height: 240px; }
  .featured-card .body { padding: 24px; }
}
.no-vacancy {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 30px; box-shadow: var(--shadow);
}

/* ---------- property grid ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.prop-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
  color: var(--ink); text-decoration: none;
}
.prop-card:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 2px 4px rgba(41,36,29,.07), 0 14px 34px rgba(41,36,29,.12); }
.prop-card .photo { aspect-ratio: 4 / 3; background: center / cover no-repeat #ddd; position: relative; }
.prop-card .photo .badge { position: absolute; top: 12px; left: 12px; }
.prop-card .body { padding: 18px 20px 20px; }
.prop-card h3 { margin-bottom: .15rem; }
.prop-card .addr { color: var(--muted); font-size: .92rem; margin-bottom: .7rem; }
.specs { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink); font-size: .9rem; font-weight: 500; align-items: center; }
.specs .sep { color: #c9bfae; }

/* ---------- feature strip ---------- */
.strip { background: #f2ece1; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.strip-grid h3 { font-size: 1.05rem; }
.strip-grid p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- property detail page ---------- */
.prop-header { padding: 40px 0 8px; }
.prop-header .badge { margin-bottom: .8rem; }
.prop-header .addr { color: var(--muted); font-size: 1.05rem; }
.stats-row {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin: 26px 0 8px; overflow: hidden;
}
.stat { padding: 16px 26px; border-right: 1px solid var(--line); flex: 1 1 auto; min-width: 130px; }
.stat:last-child { border-right: none; }
.stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.stat .value { font-weight: 600; font-size: 1.05rem; }

.detail-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; margin-bottom: 24px;
}
.panel h2, .panel h3 { margin-bottom: .8rem; }
.panel ul { margin: 0; padding-left: 1.2rem; }
.panel li { margin-bottom: .35rem; }
.contact-panel { border-top: 4px solid var(--accent); }
.contact-panel .big-phone { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); display: block; margin: .2rem 0; }
.contact-panel .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 1rem; }
.contact-panel .btn { text-align: center; }
.doc-list { list-style: none; padding: 0 !important; margin: 0; }
.doc-list li { margin: 0 0 10px; }
.doc-list a {
  display: flex; align-items: center; gap: 10px;
  background: #f7f3ec; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-weight: 500; color: var(--ink); font-size: .95rem;
}
.doc-list a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
table.schools { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.schools td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.schools td:first-child { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; width: 42%; }
.fine { color: var(--muted); font-size: .85rem; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; position: relative; background: #ddd; }
.gallery a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 16, 12, .93);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 78vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { color: #e8e2d8; margin-top: 14px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.25rem; cursor: pointer; line-height: 1;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 22px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 4px 22px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 1.02rem;
  padding: 14px 0; list-style: none; position: relative; padding-right: 34px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin: 0 0 16px; }

/* ---------- forms page ---------- */
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 26px;
}
.form-card h3 { margin-bottom: .4rem; }
.form-card p { color: var(--muted); font-size: .93rem; }
.form-card .btn { margin-top: .4rem; }

/* ---------- contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-line .ico {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px;
  background: #f7ece8; color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-line .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contact-line .value { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer {
  background: #29241d; color: #cfc7ba; margin-top: 40px;
  padding: 46px 0 30px; font-size: .93rem;
}
.site-footer a { color: #f0e9dd; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-footer .brandline { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px;
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  color: #a89e8f; font-size: .84rem;
}
.eho { flex: 0 0 auto; }
