/* ============================================================
   CAMISO HOLDINGS LLC — Shared Stylesheet
   Brand: Professional real estate management. Navy + white.
   Mobile-first. Edit color/spacing variables below in one place.
   ============================================================ */

/* ---------- 1. Design Tokens (edit here) ---------- */
:root {
  /* Brand colors */
  --navy-900: #0c2138;   /* darkest — footer, headings on light */
  --navy-800: #10294a;   /* primary navy — header, hero */
  --navy-700: #163a64;
  --blue-600: #1f5fa6;   /* primary action blue */
  --blue-500: #2b73c4;   /* hover blue */
  --blue-100: #e7eff8;   /* light tint backgrounds */
  --blue-50:  #f3f7fc;   /* lightest tint */

  --ink:      #18222e;   /* body text */
  --ink-soft: #4a5b6e;   /* secondary text */
  --line:     #d9e2ec;   /* borders / dividers */
  --white:    #ffffff;
  --off:      #f7f9fc;   /* page background */

  --ok:       #1f7a52;
  --ok-bg:    #e6f4ec;
  --warn:     #9a5b00;
  --warn-bg:  #fdf2e0;

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2rem;
  --s6: 3rem;
  --s7: 4.5rem;
  --s8: 6.5rem;

  --maxw: 1140px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(12,33,56,.06), 0 8px 24px rgba(12,33,56,.07);
  --shadow-lg: 0 12px 40px rgba(12,33,56,.14);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; font-weight: 600; margin: 0 0 var(--s3); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 var(--s3); }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 3px; }

/* ---------- 3. Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.section { padding: var(--s7) 0; }
.section--tint { background: var(--blue-50); }
.section--navy { background: var(--navy-800); color: #dfe8f2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue-600); margin-bottom: var(--s2);
}
.section--navy .eyebrow { color: #7fb0e6; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-500); text-decoration: none; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.btn--outline { background: transparent; color: var(--blue-600); border-color: var(--blue-600); }
.btn--outline:hover { background: var(--blue-600); color: #fff; text-decoration: none; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 6px;
  background: linear-gradient(145deg, var(--blue-500), var(--blue-600));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.brand__name { color: #fff; font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: .01em; }
/* Header logo text at 2x (1.18rem -> 2.36rem), scaled down on small screens to avoid overflow */
.site-header .brand__name { font-size: clamp(1.5rem, 4.8vw, 2.36rem); }
.brand__name span { color: #8fb6e3; }
.nav__links { display: flex; align-items: center; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav__links a { color: #c9d7e7; font-weight: 600; font-size: .96rem; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; text-decoration: none; }
.nav__cta { margin-left: var(--s2); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-800); flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--s2) var(--s4) var(--s4);
    border-bottom: 1px solid rgba(255,255,255,.1);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; padding-top: 0; padding-bottom: 0;
  }
  .nav__links.is-open { max-height: 420px; padding-top: var(--s2); padding-bottom: var(--s4); }
  .nav__links li { border-top: 1px solid rgba(255,255,255,.08); }
  .nav__links a { display: block; padding: .9rem 0; }
  .nav__cta { margin: var(--s2) 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- 6. Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, rgba(12,33,56,.62), rgba(12,33,56,.82)),
    var(--navy-800);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 10%, rgba(43,115,196,.35), transparent 45%),
    radial-gradient(circle at 0% 90%, rgba(31,95,166,.3), transparent 40%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; padding: var(--s8) 0; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: var(--s4); }
.hero p { color: #d8e3f0; font-size: 1.2rem; max-width: 56ch; margin-bottom: var(--s5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- 7. Cards / grids ---------- */
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 46px; height: 46px; border-radius: 10px; background: var(--blue-100);
  color: var(--blue-600); display: grid; place-items: center; margin-bottom: var(--s3);
  font-size: 1.4rem;
}
.card h3 { margin-bottom: var(--s2); }
.card p { color: var(--ink-soft); margin-bottom: var(--s3); }
.card p:last-child { margin-bottom: 0; }

/* Action tiles (home) */
.action-tile {
  display: flex; flex-direction: column; height: 100%;
}
.action-tile .btn { margin-top: auto; align-self: flex-start; }

/* ---------- 8. Stat / split sections ---------- */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s7); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: var(--s5); } }
.media-placeholder {
  background: repeating-linear-gradient(45deg, var(--blue-100), var(--blue-100) 14px, #dde9f6 14px, #dde9f6 28px);
  border: 1px dashed var(--blue-600); border-radius: var(--radius);
  min-height: 320px; display: grid; place-items: center; color: var(--blue-600);
  font-weight: 700; text-align: center; padding: var(--s4);
}

/* ---------- 9. Placeholder flag ---------- */
.ph {
  background: var(--warn-bg); color: var(--warn); border: 1px dashed var(--warn);
  padding: .1em .45em; border-radius: 4px; font-size: .9em; font-weight: 700;
  font-family: var(--font-body);
}

/* ---------- 10. Forms ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6); box-shadow: var(--shadow); max-width: 760px; margin: 0 auto;
}
.form-row { margin-bottom: var(--s4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; color: var(--navy-900); }
label .req { color: #b3261e; }
input, select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(31,95,166,.15); outline: none;
}
textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .85rem; color: var(--ink-soft); margin-top: .35rem; }
.field-error { color: #b3261e; font-size: .85rem; margin-top: .35rem; display: none; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e; background: #fef6f5; }
.has-error .field-error { display: block; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); margin: 0 0 var(--s4); }
legend { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; padding: 0 .5rem; color: var(--navy-900); }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; }
.checkbox-row input { width: auto; margin-top: .25rem; }
.checkbox-row label { font-weight: 500; margin: 0; }
.form-note { font-size: .9rem; color: var(--ink-soft); }

/* Form status banner */
.form-status { display: none; padding: var(--s3) var(--s4); border-radius: var(--radius-sm); margin-bottom: var(--s4); font-weight: 600; }
.form-status--ok { display: block; background: var(--ok-bg); color: var(--ok); border: 1px solid #b7dcc6; }
.form-status--info { display: block; background: var(--blue-50); color: var(--navy-800); border: 1px dashed var(--blue-600); }

/* ---------- 11. FAQ accordion ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy-900);
  padding: var(--s4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
}
.faq__q::after { content: "+"; font-size: 1.6rem; color: var(--blue-600); transition: transform .2s; line-height: 1; }
.faq__q[aria-expanded="true"]::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq__a p { padding-bottom: var(--s4); color: var(--ink-soft); margin: 0; }

/* ---------- 12. CTA band ---------- */
.cta-band { background: var(--navy-800); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdd9e8; max-width: 50ch; margin: 0 auto var(--s5); }
.cta-band .hero__actions { justify-content: center; }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--navy-900); color: #9fb2c9; padding: var(--s7) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s5); margin-bottom: var(--s6); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: #9fb2c9; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .92rem; max-width: 34ch; margin-top: var(--s3); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: var(--s4);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: .85rem; color: #7e93ab;
}
.footer-bottom a { color: #7e93ab; }

/* ---------- 14. Misc ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: .8rem; margin-bottom: var(--s4); align-items: flex-start; }
.contact-list strong { color: var(--navy-900); display: block; font-family: var(--font-display); }
.badge-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.badge { background: var(--blue-100); color: var(--navy-700); font-size: .82rem; font-weight: 700; padding: .35rem .7rem; border-radius: 100px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy-800); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: var(--s4); }

/* ---------- 15. Property gallery + lightbox ---------- */
.gallery-hero {
  width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius);
  display: block; margin-bottom: var(--s3); cursor: zoom-in;
}
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3);
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid img {
  width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius-sm);
  cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-grid img:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.spec-row { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; margin: var(--s3) 0 var(--s5); }
.spec-row .price { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy-900); }
.spec-row .spec { color: var(--ink-soft); font-weight: 600; }

.lightbox {
  position: fixed; inset: 0; background: rgba(8,20,34,.92); z-index: 200;
  display: none; align-items: center; justify-content: center; padding: var(--s4);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.lightbox__btn:hover { background: rgba(255,255,255,.28); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #cdd9e8; font-size: .9rem; font-weight: 600; }
@media (max-width: 560px) { .lightbox__btn { width: 44px; height: 44px; } }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 15. Property detail: gallery + lightbox ---------- */
.listing-head { display:flex; flex-wrap:wrap; gap:var(--s3) var(--s5); align-items:baseline; justify-content:space-between; margin-bottom:var(--s4); }
.listing-price { font-family:var(--font-display); font-size:1.9rem; color:var(--navy-900); white-space:nowrap; }
.listing-specs { display:flex; flex-wrap:wrap; gap:var(--s2); margin:var(--s3) 0 var(--s5); }
.spec { background:var(--blue-100); color:var(--navy-700); font-weight:700; font-size:.95rem; padding:.45rem .9rem; border-radius:100px; }

.gallery { display:grid; grid-template-columns:2fr 1fr 1fr; grid-auto-rows:1fr; gap:10px; }
.gallery button { padding:0; border:0; background:none; cursor:pointer; border-radius:var(--radius-sm); overflow:hidden; aspect-ratio:3/2; }
.gallery button:first-child { grid-row:span 2; grid-column:1; aspect-ratio:auto; }
.gallery img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .3s ease; }
.gallery button:hover img { transform:scale(1.04); }
@media (max-width:720px){ .gallery { grid-template-columns:1fr 1fr; } .gallery button:first-child { grid-row:auto; grid-column:span 2; aspect-ratio:3/2; } }

.lightbox { position:fixed; inset:0; background:rgba(8,18,30,.94); z-index:200; display:none; align-items:center; justify-content:center; }
.lightbox.is-open { display:flex; }
.lightbox img { max-width:92vw; max-height:82vh; border-radius:var(--radius-sm); box-shadow:var(--shadow-lg); }
.lightbox__btn { position:absolute; background:rgba(255,255,255,.12); color:#fff; border:0; width:52px; height:52px; border-radius:50%; font-size:1.6rem; cursor:pointer; display:grid; place-items:center; transition:background .15s; }
.lightbox__btn:hover { background:rgba(255,255,255,.25); }
.lightbox__close { top:20px; right:20px; }
.lightbox__prev { left:16px; top:50%; transform:translateY(-50%); }
.lightbox__next { right:16px; top:50%; transform:translateY(-50%); }
.lightbox__count { position:absolute; bottom:22px; left:50%; transform:translateX(-50%); color:#cdd9e8; font-size:.9rem; font-weight:600; }
@media (max-width:600px){ .lightbox__btn { width:44px; height:44px; } }
