/* ==========================================================================
   Four Creeks Homeowners Association — site stylesheet
   Palette: deep teal / sage / sand / ink / brass
   Type: Fraunces (display) + Work Sans (body)
   ========================================================================== */

:root{
  --teal:#12494A;
  --teal-deep:#0C3536;
  --sage:#8FB09B;
  --sage-deep:#6E9480;
  --sand:#EEE7D6;
  --sand-bright:#FBF7EC;
  --ink:#20302E;
  --ink-soft:rgba(32,48,46,.72);
  --brass:#B98A3E;
  --line:rgba(32,48,46,.16);
  --line-soft:rgba(238,231,214,.22);
  --sand-soft:rgba(238,231,214,.78);
  --font-display:"Fraunces",Georgia,"Times New Roman",serif;
  --font-body:"Work Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --radius:14px;
  --wrap:1100px;
}

/* ---- base ---------------------------------------------------------------- */

*,*::before,*::after{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.65;
  color:var(--ink);
  background:var(--sand);
  border-top:4px solid var(--brass); /* civic letterhead keyline */
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.15;
  letter-spacing:-.01em;
  margin:0 0 .6em;
}

p{margin:0 0 1em}

a{color:var(--teal)}
a:hover{color:var(--teal-deep)}

svg{display:block}

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

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:100;
  background:var(--teal);color:var(--sand);
  padding:.7rem 1.2rem;border-radius:0 0 10px 0;text-decoration:none;
}
.skip-link:focus{left:0;color:var(--sand)}

.wrap{max-width:var(--wrap);margin-inline:auto;padding-inline:1.5rem}

.eyebrow{
  font-size:.76rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;
  color:var(--brass);margin:0 0 .8rem;
}

/* ---- buttons ------------------------------------------------------------- */

.btn{
  display:inline-block;
  background:var(--teal);color:var(--sand);
  font-weight:600;font-size:.98rem;text-decoration:none;
  padding:.78rem 1.5rem;border:1px solid var(--teal);border-radius:999px;
  transition:background .2s ease,transform .2s ease;
  cursor:pointer;font-family:var(--font-body);
}
.btn:hover{background:var(--teal-deep);color:var(--sand);transform:translateY(-1px)}

.btn-ghost{
  display:inline-block;
  background:transparent;color:var(--teal);
  font-weight:600;font-size:.98rem;text-decoration:none;
  padding:.78rem 1.5rem;border:1px solid var(--teal);border-radius:999px;
  transition:background .2s ease,transform .2s ease;
}
.btn-ghost:hover{background:rgba(18,73,74,.08);transform:translateY(-1px)}

.btn-sand{
  display:inline-block;
  background:var(--sand);color:var(--teal);
  font-weight:600;font-size:.98rem;text-decoration:none;
  padding:.78rem 1.5rem;border:1px solid var(--sand);border-radius:999px;
  transition:background .2s ease,transform .2s ease;
}
.btn-sand:hover{background:#fff;color:var(--teal-deep);transform:translateY(-1px)}

/* ---- header -------------------------------------------------------------- */

.site-header{background:var(--sand);border-bottom:1px solid var(--line)}
.header-bar{
  display:flex;align-items:center;justify-content:space-between;
  gap:1rem 2rem;flex-wrap:wrap;padding-block:1.05rem;
}
.brand{display:flex;align-items:center;gap:.85rem;text-decoration:none;color:var(--ink)}
.brand:hover{color:var(--ink)}
.brand-mark{width:44px;height:44px;flex:none;border-radius:10px}
.brand-name{font-family:var(--font-display);font-weight:600;font-size:1.32rem;line-height:1.05}
.brand-sub{
  display:block;font-family:var(--font-body);font-weight:600;
  font-size:.6rem;letter-spacing:.24em;text-transform:uppercase;
  color:var(--ink-soft);margin-top:.28rem;
}
.site-nav{display:flex;gap:.35rem;flex-wrap:wrap}
.site-nav a{
  padding:.48rem .9rem;border-radius:999px;text-decoration:none;
  color:var(--ink);font-weight:500;font-size:.95rem;transition:background .18s ease;
}
.site-nav a:hover{background:rgba(18,73,74,.09);color:var(--ink)}
.site-nav a[aria-current="page"]{background:var(--teal);color:var(--sand)}

/* ---- hero (home) --------------------------------------------------------- */

.hero{padding-block:4.2rem 3.8rem}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:3.2rem;align-items:center}
.hero h1{font-size:clamp(2.5rem,5.2vw,3.7rem);line-height:1.05;margin-bottom:1.1rem}
.hero h1 em{font-style:italic;color:var(--teal)}
.hero-lede{font-size:1.16rem;color:var(--ink-soft);max-width:34em;margin-bottom:1.8rem}
.hero-actions{display:flex;gap:.9rem;flex-wrap:wrap}
.hero-art{margin:0}
.hero-art figcaption{
  font-size:.8rem;color:var(--ink-soft);text-align:center;margin-top:.7rem;
  letter-spacing:.04em;
}

/* creek strokes shared by the illustrations */
.creek{fill:none;stroke-linecap:round}

@media (prefers-reduced-motion:no-preference){
  .creek-draw{
    stroke-dasharray:760;stroke-dashoffset:760;
    animation:creek-draw 1.7s cubic-bezier(.45,0,.2,1) both;
  }
  .creek-draw:nth-of-type(2){animation-delay:.12s}
  .creek-draw:nth-of-type(3){animation-delay:.24s}
  .creek-draw:nth-of-type(4){animation-delay:.36s}
  .creek-draw:nth-of-type(5){animation-delay:.52s}
}
@keyframes creek-draw{to{stroke-dashoffset:0}}

/* ---- signature: community at a glance ------------------------------------ */

.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.glance{background:var(--teal);color:var(--sand);padding-block:3.8rem}
.glance h2{color:#F6F1E4}
.glance-grid{display:grid;grid-template-columns:280px 1fr;gap:3.2rem;align-items:center}
.glance .eyebrow{color:var(--sage)}
.glance-motif{margin:0}
.glance-facts{display:grid}
.glance-fact{padding-block:1.35rem;border-top:1px solid var(--line-soft)}
.glance-fact:first-of-type{border-top:0;padding-top:0}
.glance-fact:last-of-type{padding-bottom:0}
.glance-fact h3{font-size:1.28rem;color:#F6F1E4;margin-bottom:.35rem}
.glance-fact p{color:var(--sand-soft);margin:0;max-width:56ch}

/* ---- sections & cards ---------------------------------------------------- */

.section{padding-block:3.9rem}
.section-head{max-width:46rem;margin-bottom:2.4rem}
.section-head h2{font-size:clamp(1.75rem,3.4vw,2.35rem)}
.section-lede{color:var(--ink-soft);font-size:1.08rem;margin:0}

.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:1.15rem}
.card{
  background:var(--sand-bright);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.7rem 1.6rem;
}
.card h3{font-size:1.28rem;margin-bottom:.45rem}
.card p{color:var(--ink-soft);margin:0;font-size:.98rem}
a.card{display:block;text-decoration:none;color:var(--ink);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
a.card:hover{border-color:var(--brass);transform:translateY(-3px);box-shadow:0 12px 26px rgba(18,73,74,.1)}
a.card .card-more{color:var(--teal);font-weight:600;font-size:.9rem;display:inline-block;margin-top:.9rem}
.card-icon{
  width:46px;height:46px;border-radius:12px;margin-bottom:1.05rem;
  background:rgba(143,176,155,.24);color:var(--teal);
  display:grid;place-items:center;
}
.card-icon svg{width:24px;height:24px}

/* ---- resident strip ------------------------------------------------------ */

.strip{background:rgba(143,176,155,.2);border-block:1px solid var(--line);padding-block:2.6rem}
.strip-grid{display:flex;align-items:center;justify-content:space-between;gap:1.5rem 2.5rem;flex-wrap:wrap}
.strip h2{font-size:1.6rem;margin-bottom:.35rem}
.strip p{color:var(--ink-soft);margin:0;max-width:52ch}

/* ---- inner page head ----------------------------------------------------- */

.page-head{padding-block:3.6rem 2.6rem;border-bottom:1px solid var(--line)}
.page-head h1{font-size:clamp(2.1rem,4.6vw,3rem);max-width:20em}
.page-lede{font-size:1.14rem;color:var(--ink-soft);max-width:44rem;margin:0}

/* ---- prose & duty rows --------------------------------------------------- */

.prose{max-width:70ch}
.prose h2{font-size:1.6rem;margin-top:2.2rem}
.prose ul{padding-left:1.2rem}
.prose li{margin-bottom:.5rem}
.prose li::marker{color:var(--brass)}

.duty-list{display:grid;margin:0;padding:0;list-style:none}
.duty{
  display:grid;grid-template-columns:56px 1fr;gap:1.5rem;align-items:start;
  padding-block:1.7rem;border-top:1px solid var(--line);
}
.duty:first-child{border-top:0;padding-top:.4rem}
.duty-icon{
  width:52px;height:52px;border-radius:13px;
  background:rgba(143,176,155,.24);color:var(--teal);
  display:grid;place-items:center;
}
.duty-icon svg{width:26px;height:26px}
.duty h3{font-size:1.32rem;margin-bottom:.35rem}
.duty p{color:var(--ink-soft);margin:0;max-width:62ch}

/* ---- process steps (a real sequence) ------------------------------------- */

.steps{list-style:none;margin:0;padding:0;counter-reset:step}
.step{
  counter-increment:step;
  display:grid;grid-template-columns:56px 1fr;gap:1.5rem;align-items:start;
  padding-block:1.6rem;border-top:1px solid var(--line);
}
.step:first-child{border-top:0;padding-top:.4rem}
.step::before{
  content:counter(step);
  font-family:var(--font-display);font-weight:600;font-size:1.5rem;
  width:52px;height:52px;border-radius:50%;
  border:1px solid var(--brass);color:var(--brass);
  display:grid;place-items:center;
}
.step h3{font-size:1.28rem;margin-bottom:.35rem}
.step p{color:var(--ink-soft);margin:0;max-width:62ch}

/* ---- FAQ ------------------------------------------------------------------ */

.faq{max-width:46rem}
.faq details{border-top:1px solid var(--line)}
.faq details:last-of-type{border-bottom:1px solid var(--line)}
.faq summary{
  cursor:pointer;list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:1.5rem;
  padding-block:1.15rem;font-weight:600;font-size:1.05rem;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:"+";flex:none;
  font-family:var(--font-display);font-size:1.5rem;font-weight:400;
  color:var(--brass);transition:transform .25s ease;
}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--ink-soft);margin:0 0 1.25rem;max-width:62ch}

/* ---- contact -------------------------------------------------------------- */

.contact-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:3rem;align-items:start}
.form-title{font-size:1.6rem}

.field{margin-bottom:1.15rem}
.field label{display:block;font-weight:600;font-size:.93rem;margin-bottom:.35rem}
.field input,.field select,.field textarea{
  width:100%;padding:.72rem .95rem;
  border:1px solid rgba(32,48,46,.3);border-radius:10px;
  background:#fff;color:var(--ink);font:inherit;
}
.field textarea{min-height:9.5rem;resize:vertical}
.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{
  outline:3px solid rgba(185,138,62,.5);outline-offset:0;border-color:var(--brass);
}
.field-hint{font-size:.85rem;color:var(--ink-soft);margin:.3rem 0 0}

.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.fine-print{font-size:.86rem;color:var(--ink-soft);margin-top:1.2rem;max-width:60ch}

.contact-card{
  background:var(--teal);color:var(--sand);
  border-radius:var(--radius);padding:2.1rem 2rem;
}
.contact-card h2{font-size:1.5rem;color:#F6F1E4}
.contact-card p{color:var(--sand-soft)}
.contact-card a{color:#F6F1E4}
.contact-card a:hover{color:#fff}
.contact-card .divider{border:0;border-top:1px solid var(--line-soft);margin:1.4rem 0}
.contact-line{display:flex;gap:.9rem;align-items:start;margin-bottom:1.1rem}
.contact-line svg{width:22px;height:22px;flex:none;margin-top:.2rem;color:var(--sage)}
.contact-line strong{display:block;color:#F6F1E4;font-size:.95rem}
.contact-line a,.contact-line span{font-size:1.02rem}

.contact-note{
  background:var(--sand-bright);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.4rem 1.5rem;margin-top:1.2rem;font-size:.92rem;color:var(--ink-soft);
}
.contact-note p{margin:0}

/* ---- legal pages ---------------------------------------------------------- */

.legal-updated{
  display:inline-block;font-size:.85rem;font-weight:600;color:var(--brass);
  letter-spacing:.06em;margin-top:.4rem;
}
.legal{max-width:46rem}
.legal h2{font-size:1.45rem;margin-top:2.4rem}
.legal p,.legal li{color:var(--ink-soft)}
.legal ul{padding-left:1.2rem}
.legal li{margin-bottom:.5rem}
.legal li::marker{color:var(--brass)}

/* ---- centred utility pages (404 / thanks) --------------------------------- */

.center-page{padding-block:5.5rem;text-align:center}
.center-page .wrap{max-width:38rem}
.center-page h1{font-size:clamp(2.1rem,4.6vw,2.9rem)}
.center-page p{color:var(--ink-soft)}
.center-mark{width:88px;height:88px;margin:0 auto 1.6rem;border-radius:22px}
.center-actions{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap;margin-top:1.8rem}
.center-links{margin-top:2rem;font-size:.95rem;color:var(--ink-soft)}
.center-links a{margin-inline:.55rem;white-space:nowrap}

/* ---- footer ---------------------------------------------------------------- */

.site-footer{background:var(--teal-deep);color:var(--sand-soft);margin-top:1rem}
.footer-grid{
  display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:2.5rem;
  padding-block:3.3rem 2.6rem;
}
.footer-brand{display:flex;align-items:center;gap:.85rem;text-decoration:none;color:#F6F1E4;margin-bottom:1rem}
.footer-brand:hover{color:#fff}
.footer-brand .brand-mark{width:40px;height:40px}
.footer-brand .brand-name{font-size:1.2rem}
.footer-brand .brand-sub{color:rgba(238,231,214,.6)}
.footer-blurb{font-size:.94rem;max-width:38ch;margin:0}
.footer-heading{
  font-family:var(--font-body);font-weight:600;font-size:.74rem;
  letter-spacing:.2em;text-transform:uppercase;color:var(--sage);margin:0 0 1rem;
}
.footer-nav{list-style:none;margin:0;padding:0}
.footer-nav li{margin-bottom:.55rem}
.footer-nav a{color:var(--sand-soft);text-decoration:none;font-size:.97rem}
.footer-nav a:hover{color:#F6F1E4;text-decoration:underline}
.footer-contact{list-style:none;margin:0;padding:0;font-size:.97rem}
.footer-contact li{margin-bottom:.55rem}
.footer-contact strong{color:#F6F1E4;font-weight:600}
.footer-contact a{color:var(--sand-soft)}
.footer-contact a:hover{color:#F6F1E4}
.footer-bottom{
  border-top:1px solid var(--line-soft);
  padding-block:1.25rem;display:flex;align-items:center;justify-content:space-between;
  gap:.6rem 1.5rem;flex-wrap:wrap;font-size:.85rem;color:rgba(238,231,214,.62);
}
.footer-bottom a{color:rgba(238,231,214,.78);text-decoration:none;margin-left:1.1rem}
.footer-bottom a:hover{color:#F6F1E4;text-decoration:underline}
.footer-bottom a:first-of-type{margin-left:0}
.footer-slim .footer-bottom{border-top:0}

/* ---- responsive ------------------------------------------------------------ */

@media (max-width:920px){
  .hero{padding-block:3.2rem}
  .hero-grid{grid-template-columns:1fr;gap:2.4rem}
  .hero-art{max-width:32rem}
  .glance-grid{grid-template-columns:1fr;gap:2.2rem}
  .glance-motif{max-width:240px}
  .contact-grid{grid-template-columns:1fr;gap:2.2rem}
  .footer-grid{grid-template-columns:1fr 1fr;gap:2rem}
}

@media (max-width:600px){
  body{font-size:1rem}
  .header-bar{justify-content:center;text-align:center}
  .site-nav{justify-content:center}
  .section{padding-block:2.9rem}
  .page-head{padding-block:2.8rem 2rem}
  .duty{grid-template-columns:1fr;gap:.8rem}
  .step{grid-template-columns:44px 1fr;gap:1rem}
  .step::before{width:40px;height:40px;font-size:1.2rem}
  .footer-grid{grid-template-columns:1fr}
  .footer-bottom{justify-content:center;text-align:center}
}

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