/* ==========================================================================
   Aquaco Advisors — site styles
   One stylesheet for every page. Colors and spacing live in the variables
   below, so changing a color here changes it everywhere.
   ========================================================================== */

:root {
  --navy: #0e2638;        /* deep charcoal-navy (bottom of the logo letters) — headings, footer */
  --ocean: #1a4d6b;       /* steel blue from the logo — links, gradients */
  --sky: #0a8cc4;         /* bright logo blue — small accents */
  --teal: #017a7e;        /* darkened logo teal — buttons (passes contrast with white text) */
  --teal-bright: #018f92; /* exact logo teal — highlights, borders */
  --teal-dark: #015d61;   /* button hover */
  --aqua: #6fd0dc;        /* light accent on dark backgrounds */
  --teal-tint: #e6f4f5;   /* soft section backgrounds */
  --mist: #f4f8fa;        /* alternate section background */
  --line: #d7e3ea;        /* borders */
  --text: #1b2a36;        /* body text */
  --muted: #4d6070;       /* secondary text */
  --white: #ffffff;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;

  --max: 1140px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(11, 42, 67, 0.08);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 10px; top: 10px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.6rem;
}
.lead { font-size: 1.2rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  border-radius: 6px;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--teal-tint); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }

/* Image logo (site/images/aquaco-advisors-llc-logo.png, 480x176, transparent). */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { display: block; height: 58px; width: auto; }
.site-footer .logo img { height: 84px; filter: brightness(0) invert(1); } /* all-white version on the dark footer */
@media (max-width: 560px) { .logo img { height: 48px; } }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line); border-radius: 6px;
  padding: 8px 10px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: block; padding: 8px 12px; text-decoration: none; color: var(--navy); font-weight: 600; border-radius: 6px; }
.site-nav a:hover { background: var(--mist); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--teal); }
.site-nav .nav-cta a { background: var(--teal); color: var(--white); margin-left: 8px; }
.site-nav .nav-cta a:hover { background: var(--teal-dark); color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--mist); }
.section-tint { background: var(--teal-tint); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(1, 143, 146, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #143a55 55%, var(--ocean) 100%);
  color: #e8f1f6;
  padding: clamp(64px, 10vw, 120px) 0;
}
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lead { color: #cfe0ea; max-width: 60ch; }
.hero .eyebrow { color: var(--aqua); }
.hero .btn-outline { color: var(--white); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.95rem; color: #cfe0ea; }
.hero-facts strong { color: var(--white); }

.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 100%); color: #dbe8f0; padding: clamp(48px, 8vw, 88px) 0; }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: #cfe0ea; max-width: 62ch; margin-bottom: 0; }
.page-hero .eyebrow { color: var(--aqua); }

.breadcrumb { font-size: 0.9rem; margin-bottom: 1rem; }
.breadcrumb a { color: #cfe0ea; }
.breadcrumb span[aria-current] { color: var(--white); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Photos, figures, and illustrations ---------- */
.media { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--mist); }
.media-cover { aspect-ratio: 4 / 3; object-fit: cover; }
.media-wide { aspect-ratio: 16 / 9; object-fit: cover; }
.media-portrait { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; max-width: 440px; margin: 0 auto; }
.hero .media { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
figure { margin: 0; }
figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.hero figcaption { color: #b9ccd9; }

/* Press / "As featured in" */
.press-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.press-grid img { width: 100%; height: auto; border-radius: 8px; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 700px) { .press-grid { grid-template-columns: 1fr; } }
.press-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 1.4rem; font-size: 0.95rem; color: var(--muted); }
.press-strip strong { color: var(--navy); font-family: var(--font-head); font-size: 1.05rem; }

/* ---------- Answer-first boxes & FAQs (for search and AI answers) ---------- */
.quick-answer { background: var(--teal-tint); border: 1px solid #bfe3e6; border-radius: var(--radius); padding: 20px 24px; margin: 0 0 2rem; }
.quick-answer h2 { font-family: var(--font-body); font-size: 0.8rem !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin: 0 0 0.5rem !important; }
.quick-answer p:last-child { margin-bottom: 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin: 0 0 2rem; background: var(--white); }
.toc h2 { font-size: 1.05rem !important; margin: 0 0 0.5rem !important; }
.toc ol { margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p:last-child { margin-bottom: 0; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.card li { margin-bottom: 0.3em; }
.card > :last-child { margin-bottom: 0; }

.phase-card { border-top: 5px solid var(--teal-bright); display: flex; flex-direction: column; }
.phase-card .phase-num { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.phase-card .more { margin-top: auto; font-weight: 700; }

.icon-badge {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--teal-tint); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 14px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 0.55em; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-weight: 600; color: var(--navy);
}

/* Timeline (origin story) */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--teal); }
.timeline li { position: relative; padding: 0 0 1.4em 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 0.35em;
  width: 15px; height: 15px; border-radius: 50%; background: var(--white); border: 3px solid var(--teal);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline strong { color: var(--navy); }

.stat-row { display: flex; flex-wrap: wrap; gap: 32px; margin: 1.5rem 0; }
.stat .num { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--teal); line-height: 1; }
.stat .label { font-size: 0.9rem; color: var(--muted); }

.callout {
  border-left: 5px solid var(--teal); background: var(--teal-tint);
  padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Services page ---------- */
.phase-section { scroll-margin-top: 90px; }
.phase-header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 2rem; }
.phase-header .phase-tag {
  flex: none; font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  background: var(--teal); color: var(--white); border-radius: 8px; padding: 10px 16px;
}
.service-item { scroll-margin-top: 90px; }
.service-item h3 { font-size: 1.2rem; }

.jump-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.jump-nav a {
  color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 999px;
  padding: 6px 16px; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.jump-nav a:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .media { aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 18px; box-shadow: none; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.post-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.page-hero .post-meta { color: #cfe0ea; margin: 1rem 0 0; }
.read-more { font-weight: 700; margin-top: auto; }

.post-list { display: grid; gap: 28px; }
.post-row { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.post-row .media { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: none; }
@media (max-width: 700px) { .post-row { grid-template-columns: 1fr; } }

.article { font-size: 1.1rem; }
.article h2 { margin-top: 2em; font-size: 1.7rem; }
.article h3 { margin-top: 1.6em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article li { margin-bottom: 0.5em; }
.article .media { margin: 0 0 2rem; }

.related { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field label, .field legend { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.field .req { color: #b3261e; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid #b8c8d4; border-radius: 6px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 143, 146, 0.2); }
.field textarea { min-height: 150px; resize: vertical; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); margin: 0; }
.radio-row input { width: auto; }
.form-note { font-size: 0.9rem; color: var(--muted); }
.hidden-field { display: none; }

.contact-card a { font-weight: 700; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-line .icon-badge { margin: 0; width: 42px; height: 42px; flex: none; }
.contact-line span { display: block; font-size: 0.85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--teal) 0%, var(--ocean) 100%); color: #e6f3f5; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.cta-band a:not(.btn) { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9ccd9; padding: 64px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #e2edf4; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--aqua); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.site-footer .logo { color: var(--white); margin-bottom: 1rem; }
.site-footer .logo-text span { color: var(--aqua); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.footer-bottom p { margin: 0; }
.h3 { font-size: 1.3rem; }

/* ---------- Links ----------
   Every text link inside page content is underlined so visitors can see it is clickable.
   (Buttons, the main menu, and the footer are styled separately.) */
main a:not(.btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
main a:not(.btn):hover { text-decoration-thickness: 2px; }
.jump-nav a { text-decoration: none !important; }
.site-footer a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); }
.page-hero .btn-outline { color: var(--white); }
.page-hero .btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Feasibility "bubbles" graphic (six study components around a center circle) ---------- */
.bubbles { display: grid; grid-template-columns: 1fr 230px 1fr; grid-template-rows: repeat(3, auto); gap: 18px 30px; align-items: center; max-width: 1020px; margin: 0 auto; }
.bubble-list { display: contents; list-style: none; margin: 0; padding: 0; }
.bubble { position: relative; background: var(--white); border: 2px solid #bfe3e6; border-radius: 28px; padding: 16px 20px 16px 62px; box-shadow: var(--shadow); }
.bubble h3 { font-size: 1.05rem; margin: 0 0 4px; }
.bubble p { font-size: 0.95rem; margin: 0; color: var(--text); }
.bubble-n { position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-bright); color: var(--white); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; }
.bubble:nth-child(1), .bubble:nth-child(2), .bubble:nth-child(3) { grid-column: 1; }
.bubble:nth-child(4), .bubble:nth-child(5), .bubble:nth-child(6) { grid-column: 3; }
.bubble:nth-child(1), .bubble:nth-child(4) { grid-row: 1; }
.bubble:nth-child(2), .bubble:nth-child(5) { grid-row: 2; }
.bubble:nth-child(3), .bubble:nth-child(6) { grid-row: 3; }
.bubble-core { grid-column: 2; grid-row: 1 / 4; width: 230px; height: 230px; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 35% 30%, var(--teal-bright), var(--ocean) 60%, var(--navy)); color: var(--white); font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; line-height: 1.25; box-shadow: 0 0 0 10px var(--teal-tint), 0 0 0 12px #bfe3e6, var(--shadow); }
@media (max-width: 900px) {
  .bubbles { grid-template-columns: 1fr 1fr; }
  .bubble-core { grid-column: 1 / -1; grid-row: auto; width: 180px; height: 180px; font-size: 1.15rem; margin: 0 auto 10px; }
  .bubble:nth-child(n) { grid-column: auto; grid-row: auto; }
}
@media (max-width: 560px) { .bubbles { grid-template-columns: 1fr; } }
