/* Clock Tower Lofts - shared stylesheet
   Palette: charcoal/black, warm brick/rust accent, cream/off-white.
   Type: elegant serif headings (Fraunces) + clean sans body (Inter). */

:root {
  --charcoal: #1c1a17;
  --ink: #2a2723;
  --brick: #9c4a2e;      /* warm brick / rust accent (the single action color) */
  --brick-dark: #7c3820;
  --cream: #f6f1e9;      /* primary off-white background */
  --cream-2: #efe7da;    /* alternating band */
  --paper: #fffdf9;      /* lightest card surface */
  --muted: #6f665b;      /* warm gray secondary text */
  --line: #e2d8c8;       /* hairline dividers on cream */
  --line-dark: #3a352e;  /* dividers on charcoal */
  --stone: #b9ac97;      /* subtle supporting accent (never an action color) */
  --maxw: 1180px;
  --shadow: 0 18px 50px rgba(28,26,23,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 0 0 .5em; }
h3 { font-size: 1.28rem; margin: 0 0 .4em; }
p { margin: 0 0 1.1em; }
a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

/* Eyebrow / small caps label */
.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--brick);
  margin: 0 0 1em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  padding: 15px 30px;
  border-radius: 2px;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1.5px solid var(--brick);
}
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-dark); border-color: var(--brick-dark); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-outline:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header / sticky nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(20,18,16,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: .01em;
  line-height: 1.15;
  white-space: nowrap;
}

nav.main { display: flex; align-items: center; gap: 4px; }
nav.main a.navlink,
nav.main .dropdown > button {
  font: inherit; font-size: .9rem; font-weight: 500;
  color: rgba(255,255,255,.86); background: none; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 3px; letter-spacing: .01em;
}
nav.main a.navlink:hover,
nav.main .dropdown > button:hover { color: #e8b9a3; }
nav.main a.navlink.is-active { color: #fff; }
nav.main .nav-cta { margin-left: 8px; padding: 11px 20px; color: #fff; }
nav.main .nav-cta:hover { color: #fff; }
.hamburger span { background: #f6f1e9; }

/* CSS-only dropdown (desktop) */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 224px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 4px; padding: 8px;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 3px; color: var(--ink); font-size: .9rem; }
.dropdown-menu a:hover { background: var(--cream-2); color: var(--brick); }

/* Hamburger (mobile only) */
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--charcoal); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,16,.82) 0%, rgba(20,18,16,.6) 42%, rgba(20,18,16,.28) 100%); }
.hero-inner { position: relative; z-index: 2; padding: clamp(90px,16vh,180px) 0 clamp(64px,10vh,120px); }
.hero-inner .wrap { max-width: var(--maxw); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .sub { font-size: 1.22rem; color: rgba(255,255,255,.86); max-width: 42ch; margin: .7em 0 1.8em; }
.hero .eyebrow { color: #e8b9a3; }

/* Page hero (interior pages, shorter) */
.page-hero { position: relative; background: var(--charcoal); color: #fff; overflow: hidden; }
.page-hero .hero-media img { object-position: center 40%; }
.page-hero .hero-inner { padding: clamp(70px,12vh,130px) 0 clamp(52px,8vh,90px); }
.page-hero h1 { color: #fff; }
.page-hero .sub { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 46ch; margin-top: .6em; }
.crumb { font-size: .78rem; letter-spacing: .04em; color: rgba(255,255,255,.7); margin-bottom: 1.1em; text-transform: uppercase; }
.crumb a { color: rgba(255,255,255,.85); }

/* ---------- Sections & bands ---------- */
section { padding: clamp(56px,8vw,104px) 0; }
.band-cream { background: var(--cream); }
.band-cream-2 { background: var(--cream-2); }
.band-paper { background: var(--paper); }
.band-charcoal { background: var(--charcoal); color: var(--cream); }
.band-charcoal h1, .band-charcoal h2, .band-charcoal h3 { color: #fff; }
.band-charcoal .muted { color: rgba(255,255,255,.72); }
.section-narrow { max-width: 760px; }
.section-narrow p { font-size: 1.12rem; color: var(--ink); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lede { font-size: 1.22rem; color: var(--ink); }

/* Credibility strip */
.credstrip { background: var(--charcoal); color: var(--cream); border-top: 1px solid var(--line-dark); }
.credstrip .wrap { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; }
.credstrip .cell { padding: 26px 18px; text-align: center; }
.credstrip .cell b { font-family: "Fraunces", serif; font-size: 1.25rem; display: block; color: #fff; font-weight: 500; }
.credstrip .cell span { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; color: rgba(255,255,255,.6); }

/* Split two-column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split .panel { padding: clamp(40px,5vw,70px); display: flex; flex-direction: column; justify-content: center; }
.split .panel.lead { background: var(--charcoal); color: var(--cream); }
.split .panel.lead h2, .split .panel.lead h3 { color: #fff; }
.split .panel.lead .muted { color: rgba(255,255,255,.72); }
.split .panel.alt { background: var(--cream-2); }
.tag { display: inline-block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
  color: var(--brick); background: rgba(156,74,46,.1); padding: 5px 12px; border-radius: 2px; margin-bottom: 14px; }
.split .panel.lead .tag { color: #f0c3ad; background: rgba(240,195,173,.14); }

/* Feature list w/ brick tick */
ul.ticks { list-style: none; padding: 0; margin: 0 0 1.6em; }
ul.ticks li { position: relative; padding: 7px 0 7px 30px; border-bottom: 1px solid var(--line); }
.split .panel.lead ul.ticks li { border-bottom: 1px solid var(--line-dark); }
ul.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 15px;
  width: 8px; height: 8px; border-right: 2px solid var(--brick); border-bottom: 2px solid var(--brick);
  transform: rotate(45deg);
}
.split .panel.lead ul.ticks li::before { border-color: #e8b9a3; }

/* Feature grid ("built for how you live") */
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px 26px; transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .ico { width: 40px; height: 40px; color: var(--brick); margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; }
.feature p { margin: 0; font-size: .96rem; color: var(--muted); }

/* Image feature blocks */
.imgrow { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; align-items: stretch; }
.imgrow.flip { grid-template-columns: 1fr 1.05fr; }
.imgrow .media { min-height: 420px; background: var(--stone); overflow: hidden; }
.imgrow .media img { width: 100%; height: 100%; object-fit: cover; }
.imgrow .body { padding: clamp(40px,5vw,72px); display: flex; flex-direction: column; justify-content: center; }
.imgrow.flip .media { order: 2; }
.imgrow.flip .body { order: 1; }

/* Full-width image band */
.showcase { position: relative; min-height: 460px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.showcase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase .scrim { position: absolute; inset: 0; background: rgba(20,18,16,.5); }
.showcase .inner { position: relative; z-index: 2; padding: 40px 24px; max-width: 720px; }
.showcase h2 { color: #fff; }

/* Cards (availability / units) */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 4/3; background: var(--cream-2); display: grid; place-items: center; color: var(--muted); font-size: .82rem; letter-spacing: .04em; text-align: center; padding: 16px; border-bottom: 1px solid var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .cbody { padding: 22px 22px 26px; }
.card .price { font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--charcoal); }
.card .price small { font-size: .8rem; color: var(--muted); font-family: "Inter",sans-serif; }
.pill { display: inline-block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--brick); border: 1px solid var(--brick); padding: 4px 10px; border-radius: 20px; }

/* Gallery */
.gallery-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.gallery-nav a { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 8px 16px; border-radius: 30px; }
.gallery-nav a:hover { color: var(--brick); border-color: var(--brick); }
.gcat { margin-bottom: 54px; }
.gcat h3 { border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 22px; }
.grid-masonry { columns: 3; column-gap: 16px; }
.grid-masonry figure { margin: 0 0 16px; break-inside: avoid; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 20px rgba(28,26,23,.08); }
.grid-masonry img { width: 100%; }
.gph { aspect-ratio: 4/3; background: var(--cream-2); display: grid; place-items: center; color: var(--muted); font-size: .78rem; text-align: center; padding: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative; font-family: "Fraunces",serif; font-size: 1.12rem; color: var(--charcoal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 1.4rem; color: var(--brick); transition: transform .2s; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); padding: 0 0 16px; margin: 0; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); font: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brick); border-color: var(--brick); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-detail { border-top: 3px solid var(--brick); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--brick); border-radius: 6px; padding: 30px; }
.contact-detail dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 18px; font-weight: 600; }
.contact-detail dd { margin: 3px 0 0; font-size: 1.06rem; color: var(--charcoal); }
.contact-detail dd a { color: var(--charcoal); }
.contact-detail dd a:hover { color: var(--brick); }
.map { width: 100%; height: 320px; border: 0; border-radius: 6px; margin-top: 26px; }
.note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Final CTA */
.cta-final { background: var(--charcoal); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,.8); max-width: 56ch; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { background: #14120f; color: rgba(255,255,255,.72); padding: 60px 0 30px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: "Fraunces",serif; color: #fff; font-size: 1.2rem; font-weight: 500; margin: 0 0 14px; }
.foot-logo { margin-bottom: 14px; }
.foot-logo img { width: 100%; max-width: 280px; height: auto; display: block; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }

/* Skip-to-content link (ADA/WCAG 2.4.1) */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
  background: var(--brick); color: #fff; padding: 12px 20px; font-weight: 600; font-size: 1rem; border-radius: 0 0 4px 4px; z-index: 9999; text-decoration: none;
}
.skip-link:focus { position: fixed; left: 50%; transform: translateX(-50%); top: 0; width: auto; height: auto; overflow: visible; outline: 3px solid #fff; }

/* Focus-visible styles (ADA/WCAG 2.4.7) */
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.site-footer ul li { padding: 5px 0; }
.foot-social { display: flex; gap: 14px; margin-top: 16px; }
.foot-social a { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; display: grid; place-items: center; }
.foot-social a:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.foot-social svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; font-size: .82rem; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hamburger { display: block; }
  nav.main {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 8px; display: none;
  }
  nav.main.open { display: flex; }
  nav.main a.navlink, nav.main .dropdown > button { padding: 13px 14px; width: 100%; text-align: left; color: var(--ink); }
  nav.main a.navlink:hover, nav.main .dropdown > button:hover { color: var(--brick); }
  nav.main a.navlink.is-active { color: var(--brick); }
  nav.main .nav-cta { margin: 8px 0 4px; text-align: center; color: #fff; }
  .dropdown { width: 100%; }
  .dropdown-menu { position: static; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 2px 0 6px 14px; padding: 2px 0; }
  .dropdown-menu a { padding: 9px 12px; }
  .split, .imgrow, .imgrow.flip, .contact-grid { grid-template-columns: 1fr; }
  .imgrow.flip .media { order: 0; }
  .imgrow.flip .body { order: 0; }
  .imgrow .media { min-height: 300px; }
  .feature-grid { grid-template-columns: 1fr; }
  .credstrip .wrap { grid-template-columns: 1fr 1fr; }
  .grid-masonry { columns: 2; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .hero-scrim { background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.78) 100%); }
}
@media (max-width: 480px) {
  .credstrip .wrap { grid-template-columns: 1fr; }
  .grid-masonry { columns: 1; }
  .btn { width: 100%; text-align: center; }
  .btn-row .btn { width: 100%; }
}
