/* =========================
   Peak Aquatics Consulting
   Core Stylesheet
   ========================= */

:root{
  --slate: #23323d;
  --stone: #f5f7f8;
  --mist: #e6ebef;
  --ink: #2b2e30;
  --muted: #6b7280;
  --steel: #3a4a57;
  --steelHover: #465a6a;
  --maxw: 1100px;
}

/* ---- Reset / Base ---- */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--stone);
  line-height: 1.55;
}

a{ color: var(--steel); text-decoration:none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }

/* ---- Layout ---- */
.container{
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

/* ---- Header / Nav ---- */
.site-header{
  background: var(--slate);
  color: #fff;
}

/*
  Desktop: logo left, nav right.
  To support a larger logo, allow wrapping safely.
*/
.navbar{
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px;
  gap: 18px;
  flex-wrap: wrap;
}

/* ---- Brand / Logo ---- */
.brand{
  display:inline-flex;
  align-items:center;
  flex: 0 0 auto;
}

.brand a{
  display:inline-flex;
  align-items:center;
}

/*
  BIGGER LOGO (safe ceiling):
  - Desktop: 210px (large, “pops”, still keeps nav workable on most screens)
  - Tablet: 175px
  - Mobile: 120–140px range
*/
.brand img{
  height: 210px;
  width: auto;
  display:block;
}

/* ---- Navigation Links ---- */
.nav-links{
  display:flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  flex: 1 1 520px; /* gives nav room; wraps cleanly when needed */
}

.nav-links a{
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}

.nav-links a.active{
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ---- Responsive header behavior ---- */
@media (max-width: 1100px){
  .brand img{ height: 190px; }
}

@media (max-width: 980px){
  .brand img{ height: 175px; }
}

@media (max-width: 760px){
  .container{ width: min(var(--maxw), calc(100% - 28px)); }

  .navbar{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align:center;
    padding: 18px 0 10px;
    gap: 10px;
  }

  .nav-links{
    justify-content: center;
    gap: 16px;
    flex: 0 0 auto;
  }

  .brand img{ height: 140px; }
}

@media (max-width: 520px){
  .brand img{ height: 120px; }
  .nav-links a{ font-size: 12px; letter-spacing: 0.05em; }
}

/* ---- Hero ---- */
/*
  Because the logo is larger, reduce top padding slightly
  so the headline still appears quickly above the fold.
*/
.hero{
  padding: 46px 0 52px;
}

.hero h1{
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero .lede{
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 860px;
  color: rgba(255,255,255,0.92);
}

.hero .support{
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
}

/* ---- Buttons ---- */
.cta-row{
  margin-top: 22px;
  display:flex;
  gap:12px;
  flex-wrap: wrap;
}

.btn{
  display:inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid transparent;
}

.btn-primary{
  background: var(--steel);
  color:#fff;
}

.btn-primary:hover{
  background: var(--steelHover);
  text-decoration:none;
}

.btn-secondary{
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color:#fff;
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.09);
  text-decoration:none;
}

/* ---- Sections ---- */
.section{ padding: 68px 0; }
.section.mist{ background: var(--mist); }

.section h2{
  font-size: clamp(24px, 2.3vw, 34px);
  margin-bottom: 10px;
}

.section .intro{
  color: var(--muted);
  max-width: 900px;
  margin-bottom: 22px;
}

/* ---- Grids ---- */
.grid-2{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

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

/* ---- Lists ---- */
.list{ padding-left: 18px; }
.list li{ margin: 8px 0; }

/* ---- Cards ---- */
.cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

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

.card{
  background:#fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
}

.card h3{ margin-top:0; }

/* ---- Notes ---- */
.pill-note{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(31,42,51,0.05);
  color: var(--muted);
}

/* ---- Process Steps ---- */
.process{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

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

.step{
  background:#fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,0.08);
}

.step .num{
  font-weight: 900;
  color: var(--steel);
}

/* ---- Forms ---- */
form{
  background:#fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.08);
}

label{
  font-weight: 800;
  display:block;
  margin-top: 12px;
}

input, textarea{
  width:100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.20);
  font-family: inherit;
}

textarea{ min-height: 140px; }

.form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 760px){
  .form-row{ grid-template-columns: 1fr; }
}

.form-actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.helper{ font-size: 14px; color: var(--muted); }

/* ---- Headshot ---- */
.headshot-card{ text-align:center; }

.headshot{
  width:100%;
  max-width: 340px;
  height:auto;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
}

/* ---- Footer ---- */
.footer{
  background: var(--slate);
  color: rgba(255,255,255,0.82);
  padding: 44px 0 34px;
}

.footer a{ color: rgba(255,255,255,0.92); }

.footer-top{
  display:flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.small{ font-size: 14px; }
/* Diagnostic form visual framing */
.diagnostic-form-wrap {
  margin-top: 28px;
  padding: 26px 24px;
  background: #f0f3f6;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
}
/* ================================
   Button contrast fixes (global)
   Fixes "almost invisible" text on light cards/sections
   ================================ */

/* Secondary buttons should inherit text color from the section/card they live in */
.btn.btn-secondary,
a.btn.btn-secondary,
button.btn.btn-secondary {
  color: inherit !important;
  opacity: 1 !important;

  /* Neutral styling that works on both dark and light backgrounds */
  background: rgba(127, 127, 127, 0.12) !important;
  border: 1px solid rgba(127, 127, 127, 0.28) !important;
}

/* Keep hover readable on both themes */
.btn.btn-secondary:hover,
a.btn.btn-secondary:hover,
button.btn.btn-secondary:hover {
  background: rgba(127, 127, 127, 0.18) !important;
  border-color: rgba(127, 127, 127, 0.36) !important;
}

/* Ensure primary buttons always stay high-contrast */
.btn.btn-primary,
a.btn.btn-primary,
button.btn.btn-primary {
  color: #ffffff !important;
}
