/* Acworth Digital Marketing — site styles
   Palette: Lake Allatoona. Type: Schibsted Grotesk (headings, interface) and Source Serif 4 (reading text). */

:root {
  --deep: #0C2E3F;
  --deep-2: #0F3A4E;
  --lake: #1F6E7D;
  --shallows: #9CCAC8;
  --mist: #EEF3F2;
  --white: #FFFFFF;
  --burgee: #E8A33D;
  --burgee-hover: #F1B65A;
  --ink-soft: #3D5966;
  --rule: #D3E1E0;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  /* Type scale (1.25 ratio from 18px body) */
  --step--1: 0.875rem;
  --step-0: 1.125rem;
  --step-1: 1.3rem;
  --step-2: 1.65rem;
  --step-3: clamp(1.9rem, 3.2vw, 2.6rem);
  --step-4: clamp(2.6rem, 7vw, 5.6rem);
  /* Hero headline: limited by window height too, so short laptop screens keep the
     intro text and buttons in view */
  --hero-size: clamp(2.6rem, min(7vw, 8.5vh), 5.2rem);

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  color: var(--deep);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lake); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--burgee); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--burgee); color: var(--deep); padding: 10px 16px; border-radius: 6px; font: 700 1rem var(--sans);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none;
  border-radius: 8px; border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--burgee); color: var(--deep); }
.btn-primary:hover { background: var(--burgee-hover); color: var(--deep); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: var(--lake); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; font-family: var(--sans); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--shallows); }
.nav .btn { min-height: 42px; padding: 9px 18px; }
.menu-toggle { display: none; }

/* Light header variant for inner pages */
.site-header.is-light { position: static; border-bottom: 1px solid var(--rule); }
.site-header.is-light .nav a:not(.btn) { color: var(--deep); }
.site-header.is-light .nav a:not(.btn):hover { color: var(--lake); }

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 8px; cursor: pointer;
    background: transparent; border: 2px solid rgba(255,255,255,.35); color: var(--white);
  }
  .is-light .menu-toggle { border-color: var(--rule); color: var(--deep); }
  .menu-toggle svg { width: 22px; height: 22px; }
  .nav {
    display: none; position: absolute; top: 84px; left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--white); border-radius: 12px; padding: 14px;
    box-shadow: 0 18px 40px rgba(12,46,63,.28);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn), .site-header.is-light .nav a:not(.btn) { display: block; color: var(--deep); padding: 12px 10px; border-radius: 6px; }
  .nav a:not(.btn):hover { background: var(--mist); color: var(--deep); }
  .brand img { height: 40px; }
}

/* ---------- Hero: the lake ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: var(--deep);
  padding-top: clamp(112px, 16vh, 180px);
}
.shore { position: relative; z-index: 3; } /* headline sits in front of the passing boat */
.hero h1 {
  font-size: var(--hero-size); line-height: 1; letter-spacing: -0.04em; font-weight: 500;
  max-width: 12.5ch; padding-bottom: 0.14em;
}
.horizon { position: relative; z-index: 2; height: 2px; background: linear-gradient(90deg, rgba(156,202,200,.15), rgba(156,202,200,.6) 45%, rgba(246,196,120,.85) 80%, rgba(156,202,200,.3)); }

/* Dusk: the sun has just set behind where the boat comes to rest */
.horizon::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 760px; z-index: -1;
  background:
    radial-gradient(ellipse 34% 46% at 80% 100%, rgba(240,170,72,.42), rgba(232,140,72,.16) 45%, transparent 75%),
    radial-gradient(ellipse 80% 70% at 72% 100%, rgba(214,140,90,.09), transparent 70%),
    linear-gradient(to top, rgba(156,202,200,.10), transparent 55%);
  pointer-events: none;
}

/* Sailboat sits on the horizon */
.boat {
  position: absolute; bottom: 2px; left: 0;
  width: clamp(84px, 11vw, 160px);
  transform: translateX(var(--boat-x, 72vw));
}
.boat img, .boat-reflection img { width: 100%; height: auto; transform-origin: 50% 100%; scale: -1 1; /* bow faces the direction of travel */ }
.boat::before { /* short wake trailing behind the hull */
  content: ""; position: absolute; right: 72%; bottom: 0; width: 180%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5));
  opacity: 0; transition: opacity 2s ease;
}
.is-underway .boat::before { opacity: 1; }
.boat-reflection {
  position: absolute; top: 2px; left: 0; width: clamp(84px, 11vw, 160px);
  opacity: .22;
  transform: translateX(var(--boat-x, 72vw)) scaleY(-1); transform-origin: 50% 50%;
  filter: url(#ripple);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 70%);
          mask-image: linear-gradient(to top, #000, transparent 70%);
}
.boat, .boat-reflection { transition: opacity .9s ease; }
.is-waiting .boat, .is-waiting .boat-reflection { opacity: 0; }
.is-underway .boat, .is-underway .boat-reflection { transition: transform 12s cubic-bezier(.4,.1,.4,1), opacity .9s ease; }

.water {
  position: relative; isolation: isolate;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(156,202,200,.045) 22px 23px),
    linear-gradient(180deg, var(--deep-2), #13506A 120%);
  padding-bottom: clamp(56px, 9vw, 104px);
}
/* WebGL water (water.js): it paints the water, glitter and both reflections itself and
   ripples them, so the CSS versions are hidden while it runs */
.water > .wrap { position: relative; z-index: 1; }
.water-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.has-gl-water .water::before { display: none; }
.has-gl-water .reflection > div,
.has-gl-water:not(.gl-water-keep-boat) .boat-reflection { visibility: hidden; }

/* The afterglow reflected on the water as broken streaks */
.water::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 230px; z-index: -1;
  background: radial-gradient(ellipse 15% 100% at 80% 0, rgba(246,190,110,.5), rgba(240,170,72,.16) 55%, transparent 80%);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 6px);
          mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 6px);
  filter: url(#ripple);
  pointer-events: none;
}
.reflection {
  /* Mirror of the headline, rippled by the SVG filter */
  height: var(--reflect-h, 1.2em); overflow: hidden;
  font-family: var(--sans); font-size: var(--hero-size); line-height: 1; letter-spacing: -0.04em; font-weight: 500;
  user-select: none; pointer-events: none;
}
.reflection > div {
  max-width: 12.5ch; padding-bottom: 0.14em;
  transform: scaleY(-1); transform-origin: 50% 50%;
  color: rgba(255,255,255,.16);
  filter: url(#ripple);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 38%);
          mask-image: linear-gradient(to top, #000 0%, transparent 38%);
}
.hero-body { display: grid; gap: 30px; justify-items: start; }
.hero-lede { font-size: var(--step-1); line-height: 1.55; max-width: 42ch; color: #D9E8E7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 820px) {
  .water::before { height: 120px; background: radial-gradient(ellipse 30% 100% at 78% 0, rgba(246,190,110,.45), rgba(240,170,72,.14) 55%, transparent 80%); }
  .horizon::before {
    height: 420px;
    background:
      radial-gradient(ellipse 70% 38% at 78% 100%, rgba(240,170,72,.38), rgba(232,140,72,.14) 45%, transparent 75%),
      linear-gradient(to top, rgba(156,202,200,.10), transparent 55%);
  }
  .shore { padding-bottom: 122px; } /* room for the boat under the headline */
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-mist { background: var(--mist); }

/* Lake Allatoona contours (real USGS elevation data) run behind every section between the hero and the footer.
   The map sits above the section backgrounds and multiplies into them, so it shows on white, mist and lake alike,
   while the content stays on top. */
.charted { position: relative; isolation: isolate; }
.charted::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: url(/assets/lake-chart.svg) 50% 0 / cover no-repeat;
  opacity: .16; mix-blend-mode: multiply;
}
.charted .wrap { position: relative; z-index: 2; }
@media (max-width: 820px) {
  .charted::after { background-size: 1100px auto; background-repeat: repeat-y; }
}
.section-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 16px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }

/* Services: open two-column list, divided by the lake line */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 80px); }
.service { padding-block: 34px 38px; border-top: 2px solid var(--deep); display: grid; grid-template-columns: 52px 1fr; gap: 8px 20px; align-content: start; }
.service-icon { grid-row: span 3; width: 44px; height: 44px; color: var(--lake); }
.service h3 { font-size: var(--step-2); }
.service p { color: var(--ink-soft); max-width: 46ch; }
.service ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-family: var(--sans); font-size: var(--step--1); font-weight: 500; padding: 4px 12px; border-radius: 999px; background: var(--mist); color: var(--deep); }
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service-icon { grid-row: auto; margin-bottom: 6px; }
}

/* Process: a charted course with four waypoints */
.course { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; counter-reset: step; }
.course::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: 12%;
  border-top: 2px dashed var(--lake); opacity: .55;
}
.course li { position: relative; counter-increment: step; }
.course .waypoint {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--white); border: 2px solid var(--lake); color: var(--deep);
  font-family: var(--sans); font-weight: 600; margin-bottom: 22px;
}
.course li:last-child .waypoint { background: var(--burgee); border-color: var(--burgee); }
.course h3 { font-size: var(--step-1); margin-bottom: 8px; letter-spacing: -0.01em; }
.course p { color: var(--ink-soft); font-size: 1.0625rem; }
@media (max-width: 900px) {
  .course { grid-template-columns: 1fr; gap: 30px; }
  .course::before { display: none; }
  .course li { display: grid; grid-template-columns: 44px 1fr; gap: 0 20px; }
  .course li:not(:last-child)::after {
    content: ""; position: absolute; left: 21px; top: 44px; bottom: -30px;
    border-left: 2px dashed var(--lake); opacity: .55;
  }
  .course .waypoint { grid-row: span 2; margin: 0; }
}

/* About + company details */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.about-copy h2 { font-size: var(--step-3); margin-bottom: 24px; }
.about-copy p { max-width: 60ch; color: var(--ink-soft); }
.about-copy p + p { margin-top: 16px; }
.company {
  background: var(--deep); color: var(--white); border-radius: 16px;
  padding: clamp(28px, 4vw, 40px);
}
.company h3 { font-size: var(--step-1); letter-spacing: -0.01em; margin-bottom: 18px; }
.company dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
.company dt { font-family: var(--sans); color: var(--shallows); font-size: var(--step--1); padding-top: 3px; }
.company dd { margin: 0; overflow-wrap: anywhere; }
.company a { color: var(--white); }
.company a:hover { color: var(--burgee); }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .company dl { grid-template-columns: 1fr; gap: 2px; }
  .company dd + dt { margin-top: 12px; }
}

/* Contact band */
.contact { background: var(--lake); color: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.contact h2 { font-size: var(--step-3); }
.contact p { margin-top: 14px; font-size: var(--step-1); color: #E1EFEE; max-width: 44ch; }
.contact-lines { display: grid; gap: 12px; }
.contact-line {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: center;
  color: var(--white); text-decoration: none; font-family: var(--sans); font-size: var(--step-1); font-weight: 600;
  padding: 16px 22px; border-radius: 10px; background: rgba(12,46,63,.35);
  transition: background-color .15s ease;
}
.contact-line:hover { background: var(--deep); color: var(--white); }
.contact-line span { overflow-wrap: anywhere; }
.contact-line svg { width: 22px; height: 22px; color: var(--burgee); }
@media (max-width: 900px) {
  .contact .wrap { grid-template-columns: 1fr; }
  .contact-line { font-size: 1.1rem; }
}

/* Privacy summary */
.privacy-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); }
.privacy-summary h2 { font-size: var(--step-3); }
.privacy-summary .points { display: grid; gap: 18px; color: var(--ink-soft); max-width: 62ch; }
.privacy-summary strong { color: var(--deep); }
@media (max-width: 820px) { .privacy-summary { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: #C8DAD9; font-size: 0.95rem; padding-block: 64px 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer img { height: 44px; width: auto; margin-bottom: 18px; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #C8DAD9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .coords { margin-top: 10px; font-style: italic; color: #93AFB2; }
.legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(156,202,200,.2); display: grid; gap: 10px; font-size: var(--step--1); color: #93AFB2; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Legal / document pages ---------- */
.doc { padding-block: clamp(48px, 8vw, 96px); }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: var(--step-3); }
.doc .updated { margin-top: 12px; color: var(--ink-soft); }
.doc .intro { margin-top: 28px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); }
.doc h2 { font-size: var(--step-2); margin: 48px 0 14px; letter-spacing: -0.015em; }
.doc h3 { font-size: var(--step-1); margin: 28px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #2E4A57; max-width: 68ch; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 8px; }
.doc .toc { margin-top: 32px; padding: 22px 26px; background: var(--mist); border-radius: 12px; }
.doc .toc h2 { font-size: 1.0625rem; margin: 0 0 10px; letter-spacing: 0; }
.doc .toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.doc .toc li { margin-bottom: 4px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-content: center; }
.notfound h1 { font-size: var(--step-4); margin-bottom: 18px; }
.notfound p { font-size: var(--step-1); color: var(--ink-soft); margin-bottom: 28px; max-width: 40ch; }

/* ---------- Motion ---------- */
@keyframes bob {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50% { transform: rotate(1.2deg) translateY(2px); }
}
.boat.is-sailing img { animation: bob 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boat.is-sailing img { animation: none; }
  .reflection > div, .boat-reflection, .water::before { filter: none; }
}
