/* ==========================================================================
   Ellsworth Unlimited — coastal Maine technology
   Palette: Atlantic slate, granite, pine, fog, buoy-orange, lighthouse gold
   ========================================================================== */

:root {
  --atlantic: #0d2233;   /* deep harbor night   */
  --slate:    #16344a;   /* cold water          */
  --pine:     #1f5c4d;   /* spruce              */
  --granite:  #59728a;   /* wet stone           */
  --fog:      #eef2f4;   /* sea fog             */
  --birch:    #f7f4ec;   /* driftwood paper     */
  --buoy:     #e8622a;   /* buoy / channel marker */
  --gold:     #f2b134;   /* lighthouse beam     */
  --ink:      #0a1620;

  --radius: 14px;
  --maxw: 1140px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ff-display: "Inter", system-ui, sans-serif;
  --shadow: 0 18px 50px -24px rgba(8, 22, 32, .55);
}

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap");

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--birch);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#tide {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .9;
}

main, .topbar, .foot { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
}
.brand { display: flex; align-items: center; gap: .8rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--slate), var(--atlantic));
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: inset 0 0 0 1.5px rgba(242,177,52,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; color: var(--atlantic); }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--granite); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--slate); transition: color .2s; }
.nav a:hover { color: var(--buoy); }
.nav-cta {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  background: var(--atlantic);
  color: var(--birch) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--buoy); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 2.5rem auto 4rem;
  padding: 3rem 1.4rem 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--buoy);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 900;
  color: var(--atlantic);
  margin-bottom: 1.6rem;
}
.hero h1 span { color: var(--pine); }
.lede {
  max-width: 640px;
  font-size: 1.12rem;
  color: #2c4152;
  margin-bottom: 2rem;
}
.lede strong { color: var(--atlantic); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3rem; }
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .96rem;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--buoy); color: #fff; box-shadow: 0 12px 30px -12px rgba(232,98,42,.7); }
.btn-primary:hover { transform: translateY(-2px); background: #d9531d; }
.btn-ghost { background: transparent; color: var(--atlantic); box-shadow: inset 0 0 0 1.6px rgba(13,34,51,.25); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.6px var(--atlantic); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.4rem;
  list-style: none;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(89,114,138,.28);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 1.4rem; font-weight: 800; color: var(--atlantic); letter-spacing: -.02em; }
.hero-stats span { font-size: .82rem; color: var(--granite); }

/* ---------- generic block ---------- */
.block {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.4rem;
}
.block-alt {
  max-width: none;
  background: linear-gradient(180deg, var(--atlantic), var(--slate));
  color: var(--fog);
}
.block-alt .block-head h2, .block-alt .steps h3 { color: #fff; }
.block-alt .block-head .sub { color: #b9cad6; }

.block-head { max-width: 720px; margin-bottom: 3rem; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  font-weight: 700;
  color: var(--buoy);
  margin-bottom: .8rem;
}
.block-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--atlantic);
  margin-bottom: .9rem;
}
.block-head .sub { font-size: 1.05rem; color: #43596b; }

/* inner wrapper so block-alt content stays centered */
.block-alt .block-head, .block-alt .steps { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.block-alt .block-head { margin-bottom: 3rem; }

/* ---------- work grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(89,114,138,.14);
  transition: transform .18s, box-shadow .25s;
  overflow: hidden;
}
.card::before {
  content: attr(data-ico);
  position: absolute;
  top: -6px; right: 2px;
  font-size: 3.4rem;
  opacity: .12;
  transform: rotate(-8deg);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 60px -26px rgba(8,22,32,.6); }
.card h3 { font-size: 1.12rem; color: var(--atlantic); margin-bottom: .55rem; letter-spacing: -.01em; }
.card p { font-size: .92rem; color: #46596a; margin-bottom: 1rem; }
.tag {
  display: inline-block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  color: var(--pine);
  background: rgba(31,92,77,.09);
  padding: .3rem .7rem;
  border-radius: 999px;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
}
.steps li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(242,177,52,.18);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  backdrop-filter: blur(2px);
}
.step-n {
  display: inline-block;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: .7rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.steps p { font-size: .9rem; color: #c2d2dd; }

/* ---------- area ---------- */
.area-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.area-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.area-copy p { color: #43596b; margin-bottom: 1.2rem; }
.area-list { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.2rem; }
.area-list li {
  padding-left: 1.6rem;
  position: relative;
  font-weight: 500;
  color: var(--slate);
}
.area-list li::before {
  content: "⬤";
  position: absolute; left: 0; top: .05rem;
  font-size: .6rem;
  color: var(--buoy);
}
.area-note { font-size: .95rem; font-style: italic; color: var(--granite); }

.area-card {
  background: linear-gradient(160deg, var(--pine), var(--slate));
  color: var(--fog);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.pin { font-size: 2.6rem; }
.area-place { font-size: 1.6rem; font-weight: 800; margin-top: .4rem; }
.area-coord { font-size: .85rem; color: #bfe0d5; font-variant-numeric: tabular-nums; }
.area-line { height: 1px; background: rgba(242,177,52,.4); margin: 1.2rem auto; width: 60%; }
.area-tag { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--gold); font-weight: 700; }

/* ---------- contact ---------- */
.block-contact { text-align: center; }
.block-contact .block-head { margin-left: auto; margin-right: auto; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto;
}
.contact-item {
  background: #fff;
  border: 1px solid rgba(89,114,138,.16);
  border-radius: var(--radius);
  padding: 1.6rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform .16s;
}
a.contact-item:hover { transform: translateY(-4px); }
.contact-item span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--granite); margin-bottom: .5rem; }
.contact-item b { font-size: 1.05rem; color: var(--atlantic); }

/* ---------- footer ---------- */
.foot {
  background: var(--ink);
  color: #9fb3c1;
  padding: 3rem 1.4rem 2.4rem;
}
.foot-brand, .foot-legal { max-width: var(--maxw); margin: 0 auto; }
.foot-brand { display: flex; flex-direction: column; margin-bottom: 1.4rem; }
.foot-brand strong { color: #fff; font-size: 1.2rem; letter-spacing: -.01em; }
.foot-brand span { font-size: .85rem; color: var(--granite); }
.foot-legal p { font-size: .82rem; margin-bottom: .3rem; }
.foot-copy { color: #6b8296 !important; margin-top: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav a:not(.nav-cta) { display: none; }
  .area-wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .hero-stats { gap: 1.4rem; }
}
