/* ==========================================================================
   First Coast Group, LLC — firstcoastgroup.org
   Refined coastal Northeast Florida. Warm, quiet, confident.
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #17262d;  /* deep Atlantic, near-black with blue in it */
  --ink-soft:   #2f444d;
  --muted:      #5f7078;
  --faint:      #8b9aa0;

  --bg:         #fcfaf6;  /* warm shell white */
  --bg-sand:    #f4eee4;  /* coquina sand */
  --bg-deep:    #142a33;  /* deep water, for inverted sections */

  --line:       #e5dccd;
  --line-soft:  #efe8db;

  --sea:        #1c6f6a;  /* weathered verdigris */
  --sea-dark:   #14544f;
  --sun:        #c47f3d;  /* late sun on the marsh */

  /* Type */
  --serif: 'Iowan Old Style', 'Charter', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;

  /* Space */
  --gut: clamp(1.15rem, 4vw, 2rem);
  --sec: clamp(3.5rem, 9vw, 6.5rem);
  --max: 1120px;
  --measure: 62ch;

  --shadow: 0 1px 2px rgba(20, 42, 51, .04), 0 8px 28px rgba(20, 42, 51, .06);
  --shadow-lift: 0 2px 4px rgba(20, 42, 51, .05), 0 18px 44px rgba(20, 42, 51, .10);
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* --------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}
.wrap--narrow { max-width: 780px; }

section { padding: var(--sec) 0; }
section.tight { padding: calc(var(--sec) * .62) 0; }

.band-sand { background: var(--bg-sand); }
.band-deep {
  background: var(--bg-deep);
  color: #e8eef0;
}
.band-deep h2, .band-deep h3 { color: #fff; }
.band-deep p { color: #c3d2d7; }
.band-deep a { color: #fff; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ------------------------------------------------------------ typography -- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 .7rem;
}

h1 { font-size: clamp(2.15rem, 6vw, 3.5rem); letter-spacing: -0.022em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 650; letter-spacing: 0; }

p { margin: 0 0 1.15rem; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.1rem, 2.1vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 1rem;
}
.band-deep .eyebrow { color: #7fc4bd; }

.small { font-size: .9rem; color: var(--muted); }
.tiny  { font-size: .8rem; color: var(--faint); }

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

strong { font-weight: 650; }

/* --------------------------------------------------------------- header -- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(252, 250, 246, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand svg { display: block; flex-shrink: 0; }
.brand .brand-text {
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -.005em;
  line-height: 1.05;
}
.brand .brand-text span {
  display: block;
  font-family: var(--sans);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}
.nav a {
  font-size: .87rem;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.here { color: var(--ink); border-bottom-color: var(--sea); }
.nav .btn { border-bottom: 0; }

.navtoggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .6rem;
  cursor: pointer;
  color: var(--ink);
  line-height: 0;
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--sans);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1;
  padding: .82rem 1.35rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--sea); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-primary:hover { background: var(--sea-dark); color: #fff; }

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

.band-deep .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.band-deep .btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.8rem; }

.arrowlink {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  color: var(--sea-dark);
}
.arrowlink:hover { gap: .65rem; }
.arrowlink::after { content: "\2192"; transition: none; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 46ch; margin-top: 1.3rem; }

.hero-figure { position: relative; }
.hero-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
figcaption {
  font-size: .8rem;
  color: var(--faint);
  margin-top: .65rem;
  line-height: 1.45;
  max-width: 44ch;
}

.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
}
.trustline span { display: inline-flex; align-items: center; gap: .42rem; }
.trustline span::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sea);
  flex-shrink: 0;
}

/* ----------------------------------------------------------- section head -- */
.sechead { max-width: 640px; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.sechead p { color: var(--muted); font-size: 1.04rem; }

/* ----------------------------------------------------------------- cards -- */
.grid { display: grid; gap: 1.15rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .95rem; color: var(--muted); max-width: none; }
.card .card-foot { margin-top: 1.1rem; }

a.card { text-decoration: none; color: inherit; display: block; transition: transform .14s ease, box-shadow .14s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.card-num {
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 600;
  color: var(--sea);
  letter-spacing: .04em;
  margin-bottom: .7rem;
}

/* ---------------------------------------------------------------- process -- */
.process { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--sea);
  line-height: 1;
  padding-top: .18rem;
}
.step h3 { margin-bottom: .35rem; font-size: 1.18rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

.band-deep .step { border-color: rgba(255,255,255,.14); }
.band-deep .step-n { color: #7fc4bd; }

/* ------------------------------------------------------------- case study -- */
.case {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.case-head {
  padding: 1.4rem 1.6rem;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--line);
}
.case-head h3 { margin: 0; font-size: 1.22rem; }
.case-head .who {
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: .4rem;
}
.case-body { padding: 1.5rem 1.6rem; display: grid; gap: 1.35rem; }
.case-body .blk h4 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .4rem;
}
.case-body .blk p { margin: 0; font-size: .96rem; color: var(--ink-soft); max-width: none; }
.case-body ul { margin: 0; padding-left: 1.1rem; font-size: .96rem; color: var(--ink-soft); }
.case-body ul li { margin-bottom: .35rem; }

.tagrow { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .76rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-sand);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .24rem .68rem;
}

.notice {
  border-left: 3px solid var(--sun);
  background: #fdf8f1;
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  font-size: .93rem;
  color: var(--ink-soft);
}
.notice p { max-width: none; }

/* ------------------------------------------------------------- services -- */
.svc {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc-side .eyebrow { margin-bottom: .5rem; }
.svc-side h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.svc-side p { font-size: .96rem; color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.checks li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .55rem;
  font-size: .94rem;
  color: var(--ink-soft);
  break-inside: avoid;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--sea);
  opacity: .5;
}

/* ------------------------------------------------------------------ about -- */
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
.photo-strip figure { margin: 0; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.factlist { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.factlist li {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: .95rem;
}
.factlist li span:first-child {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: .22rem;
}

/* ------------------------------------------------------------------ form -- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

form.fcg { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .84rem; font-weight: 650; color: var(--ink-soft); }
.field .hint { font-size: .78rem; color: var(--faint); font-weight: 400; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .72rem .85rem;
  width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(28, 111, 106, .13);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.formnote { font-size: .82rem; color: var(--faint); }
.formstatus {
  display: none;
  border-radius: 8px;
  padding: .85rem 1rem;
  font-size: .93rem;
}
.formstatus.show { display: block; }
.formstatus.ok { background: #edf6f4; border: 1px solid #bcdcd7; color: #14544f; }
.formstatus.err { background: #fdf1ec; border: 1px solid #f0cdbc; color: #8a3d1c; }

.contact-aside .box {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.15rem;
}
.contact-aside .box h3 { font-size: 1.1rem; }
.contact-aside .box p { font-size: .94rem; color: var(--muted); max-width: none; }

/* ------------------------------------------------------------------- CTA -- */
.cta {
  border-radius: 14px;
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  background-image: radial-gradient(120% 100% at 50% 0%, #1c3b46 0%, #142a33 62%);
}
.cta h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta p { color: #bdcdd3; max-width: 52ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* ---------------------------------------------------------------- footer -- */
.foot {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  background: var(--bg-sand);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.foot h4 {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 .8rem;
  font-weight: 700;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .5rem; }
.foot a { font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--sea-dark); text-decoration: underline; }
.foot p { font-size: .92rem; color: var(--muted); }
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--faint);
}

/* --------------------------------------------------------------- utility -- */
.center { text-align: center; }
.mt0 { margin-top: 0; }
.mt2 { margin-top: 2rem; }
.hide { display: none; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: .7rem 1rem; border-radius: 6px; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-figure { max-width: 440px; }
  .hero h1 { max-width: 18ch; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; gap: 1.4rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .navtoggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1rem;
  }
  .nav a.here { border-bottom-color: var(--line-soft); color: var(--sea-dark); }
  .nav .btn { margin-top: .9rem; border-bottom: 0; }
  .masthead .wrap { position: relative; }
}

@media (max-width: 620px) {
  html { font-size: 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .checks { columns: 1; }
  .photo-strip { grid-template-columns: 1fr; }
  .factlist li { grid-template-columns: 1fr; gap: .15rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .step { grid-template-columns: 2.2rem 1fr; gap: .9rem; }
  .btn-row .btn { width: 100%; }
  .case-head, .case-body { padding-left: 1.15rem; padding-right: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
