/* ==========================================================================
   Halcyon of Newnan — site styles
   Hand-written. No framework, no build step, no dependencies.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --ink:        #1b2a33;
  --ink-soft:   #43575f;
  --ink-mute:   #6d7f87;

  --blue:       #6f9cbb;
  --blue-deep:  #4a7594;
  --blue-pale:  #d9e6ee;
  --blue-wash:  #eef4f8;

  --cream:      #faf8f4;
  --sand:       #efe9df;
  --line:       #e2ddd4;

  --white:      #ffffff;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 3rem);

  --r: 4px;
  --shadow: 0 1px 2px rgba(27, 42, 51, .04), 0 8px 24px rgba(27, 42, 51, .06);
  --shadow-lift: 0 2px 4px rgba(27, 42, 51, .06), 0 16px 40px rgba(27, 42, 51, .10);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, picture, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1.25em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Utilities ---------------------------------------------------------- */
.wrap { width: min(100% - (var(--gut) * 2), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - (var(--gut) * 2), 760px); margin-inline: auto; }

.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section--cream { background: var(--cream); }
.section--sand  { background: var(--sand); }
.section--wash  { background: var(--blue-wash); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 1rem;
}

.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.6; color: var(--ink-soft); }

.center { text-align: center; }
.center .lede, .center p { margin-inline: auto; max-width: 62ch; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white);
  padding: .9rem 1.4rem; font-size: .9rem;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue-deep); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }
.center .btn-row { justify-content: center; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--blue-deep); }

.nav { display: flex; align-items: center; gap: 1.75rem; }

.nav__list {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__list li { margin: 0; }

.nav__list a {
  font-size: .875rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: .35rem;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav__list a:hover { color: var(--ink); border-bottom-color: var(--blue); }
.nav__list a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue-deep); }

.nav__cta { padding: .7rem 1.35rem; font-size: .75rem; }

.nav__phone {
  font-size: .875rem; font-weight: 600; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.nav__phone:hover { color: var(--blue-deep); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--white); cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  margin: 4px auto; background: var(--ink);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gut) 2rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav[data-open="true"] { display: flex; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list a {
    display: block; padding: .95rem 0; font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__list a:hover, .nav__list a[aria-current="page"] { border-bottom-color: var(--line); }

  .nav__phone { padding: 1.1rem 0; font-size: 1.05rem; }
  .nav__cta { margin-top: .75rem; text-align: center; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(480px, 74vh, 720px);
  display: grid; place-items: center;
  padding-block: 5rem;
  /* The gradient is the fallback and paints instantly, so the hero is never
     blank while the photograph loads — the failure mode the old site had. */
  background-color: var(--ink);
  background-image: linear-gradient(160deg, #2c4250 0%, #40606f 55%, #6f9cbb 100%);
  background-size: cover;
  background-position: center 42%;
  overflow: hidden;
}

/* The original splash photograph. Small file first, larger one above 900px. */
.hero--home { background-image: url("/images/hero-sm.jpg"); }
@media (min-width: 900px) {
  .hero--home { background-image: url("/images/hero.jpg"); }
}

.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,40,.46) 0%, rgba(20,32,40,.20) 45%, rgba(20,32,40,.66) 100%);
}
.hero > * { position: relative; z-index: 1; }

.hero__inner { text-align: center; color: var(--white); }

.hero__wordmark {
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 .35em;
  text-indent: .22em; /* optical balance for letter-spacing */
}

.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  color: var(--white);
  margin: 0 0 1.5rem;
}

.hero__meta {
  font-size: .8125rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin: 0 0 2.5rem;
}
.hero__meta span { display: block; }

.hero--page {
  min-height: clamp(280px, 38vh, 400px);
  background-image: linear-gradient(150deg, #2c4250 0%, #4a7594 100%);
}
.hero--page .hero__inner { max-width: 46rem; }
.hero--page h1 { color: var(--white); margin-bottom: .35rem; }
.hero--page p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin: 0; }

/* --- Stat bar ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.stat { padding: 2rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
  line-height: 1.1;
}
.stat__label {
  display: block;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: .5rem;
}
@media (max-width: 640px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* --- Split ------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--wide { grid-template-columns: 1fr 1.15fr; }
@media (max-width: 880px) { .split--wide { grid-template-columns: 1fr; } }

/* --- Media frames (graceful without images) ----------------------------- */
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--blue-pale), var(--sand));
  border-radius: var(--r);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* An image file that isn't there yet — see the note in site.js.
   Hiding it lets the frame's gradient stand in cleanly. */
.frame img.is-missing,
.plan__media img.is-missing { visibility: hidden; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--square { aspect-ratio: 1 / 1; }

/* --- Cards -------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.card__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .35rem; }
.card__body p { color: var(--ink-soft); font-size: .975rem; }
.card__foot { margin-top: auto; padding-top: 1.25rem; }

/* Feature tiles (icon-free, typographic) */
.feature {
  padding: 2rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  border-top: 3px solid var(--blue);
}
.feature h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.feature p { margin: 0; font-size: .975rem; }

/* --- Floorplan cards ---------------------------------------------------- */
.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.plan__media {
  aspect-ratio: 4 / 3;
  /* The brand mark sits behind, so a plan whose drawing hasn't been added yet
     reads as a deliberate card rather than a hole. It's covered completely
     once a real floorplan image is dropped in. */
  background:
    url("/images/halcyon-mark.png") no-repeat center / 58% auto,
    linear-gradient(140deg, var(--blue-wash), var(--sand));
  position: relative;
}
.plan__media img { width: 100%; height: 100%; object-fit: cover; }

.plan__badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--white); color: var(--ink);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 2px;
  box-shadow: var(--shadow);
}
.plan__badge--soon { background: var(--ink); color: var(--white); }

.plan__body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.plan__name {
  font-family: var(--serif); font-size: 1.75rem; color: var(--ink);
  margin: 0 0 .15rem; letter-spacing: .04em;
}
.plan__style {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute); margin: 0 0 1.25rem;
}

.plan__specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .75rem; margin: 0 0 1.5rem;
  padding: 1rem 0; border-block: 1px solid var(--line);
}
.plan__specs div { text-align: center; }
.plan__specs dt {
  font-size: .65rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: .25rem;
}
.plan__specs dd {
  margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}

.plan__price {
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  margin: 0 0 .25rem;
}
.plan__price small {
  font-family: var(--sans); font-size: .8rem;
  color: var(--ink-mute); letter-spacing: .04em;
}
.plan__note { font-size: .85rem; color: var(--ink-mute); margin: 0 0 1.5rem; }
.plan__foot { margin-top: auto; }

/* --- Amenity columns ---------------------------------------------------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.amenities h3 {
  font-size: 1.05rem; font-family: var(--sans); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  padding-bottom: .75rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.amenities ul { list-style: none; margin: 0; padding: 0; }
.amenities li {
  position: relative; padding-left: 1.4rem; margin-bottom: .6rem;
  font-size: .975rem;
}
.amenities li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue);
}

/* --- Definition rows (fees, hours) -------------------------------------- */
.rows { border-top: 1px solid var(--line); margin: 0; }
.row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
}
.row dt { margin: 0; color: var(--ink); font-weight: 500; }
.row dd { margin: 0; color: var(--ink-soft); text-align: right; }
.row dd em { font-style: normal; color: var(--ink-mute); font-size: .9rem; }

/* --- Gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
}
.gallery figure { margin: 0; }
.gallery figcaption {
  font-size: .8rem; color: var(--ink-mute); margin-top: .6rem;
  letter-spacing: .06em;
}
.gallery .frame { aspect-ratio: 4 / 3; }
.gallery .frame--feature { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 700px) { .gallery .frame--feature { grid-column: span 1; aspect-ratio: 4 / 3; } }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field--split { grid-template-columns: 1fr 1fr; gap: 1.25rem; display: grid; }
@media (max-width: 560px) { .field--split { grid-template-columns: 1fr; } }

label {
  font-size: .8rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
}
label .req { color: var(--blue-deep); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  font-family: var(--sans); font-size: 1rem;
  color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: .8rem .9rem; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px var(--blue-wash);
}
textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: .82rem; color: var(--ink-mute); }

/* --- Contact strip ------------------------------------------------------ */
.contact-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 2rem;
}
.contact-strip h3 {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: .5rem;
}
.contact-strip p { font-size: 1.05rem; color: var(--ink); margin: 0; }
.contact-strip a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--blue); }
.contact-strip a:hover { color: var(--blue-deep); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(150deg, #2c4250 0%, #4a7594 100%);
  color: var(--white);
  text-align: center;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 54ch; margin-inline: auto; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .95rem;
}
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand {
  font-family: var(--serif); font-size: 1.5rem;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--white); margin: 0 0 .75rem;
}
.footer__tag { font-style: italic; font-family: var(--serif); font-size: 1.1rem; color: rgba(255,255,255,.8); }

.footer h4 {
  font-family: var(--sans); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer__bottom p { margin: 0; }

.eho {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: rgba(255,255,255,.6);
}
.eho svg { flex-shrink: 0; }

/* --- Notice ------------------------------------------------------------- */
.notice {
  background: var(--blue-wash);
  border-left: 3px solid var(--blue-deep);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: .975rem;
}
.notice p:last-child { margin-bottom: 0; }

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero { min-height: auto; background: none !important; color: #000; padding-block: 1rem; }
  .hero::after { display: none; }
  .hero__wordmark, .hero__tagline, .hero__meta, .hero--page h1, .hero--page p { color: #000 !important; }
}
