/* ==========================================================================
   AGENTIC ATLANTIC — shared stylesheet for ALL pages
   (index.html, lp/*.html, 404.html)

   Sections in this file:
     1. Brand colors
     2. Base + typography
     3. Buttons
     4. Nav (main site)
     5. Hero header (main site)
     6. Content sections: cards, steps, why-list
     7. Contact box
     8. Footer
     9. Landing pages  (pages with <body class="lp">)
    10. 404 page
    11. Small screens (mobile tweaks)

   Rule of thumb: colors always come from the variables in section 1.
   ========================================================================== */


/* ==========================================================================
   1. BRAND COLORS — the whole palette lives here
   ========================================================================== */
:root {
  --navy:   #0b2545;   /* darkest blue — nav, footer, contact box */
  --ocean:  #13315c;   /* deep blue — gradients */
  --wave:   #1d4e89;   /* mid blue — kickers, gradient end */
  --foam:   #8da9c4;   /* light blue-grey — muted text on dark */
  --sand:   #f4f1ea;   /* warm off-white — alternating sections */
  --white:  #ffffff;
  --accent: #00b4d8;   /* cyan — buttons, highlights */
  --accent-light: #33c4e0;   /* cyan hover state */
  --text:   #22303f;   /* body text on light backgrounds */
  --text-soft: #4a5a6a;      /* secondary text on light backgrounds */
  --border: #e3e8ee;         /* card borders */
}


/* ==========================================================================
   2. BASE + TYPOGRAPHY
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 84px; }  /* anchor links land below the sticky nav */

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

section { padding: 76px 0; }
section.alt { background: var(--sand); }

h2 { font-size: 2rem; color: var(--navy); margin-bottom: 14px; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wave);
  margin-bottom: 10px;
}

.lede { font-size: 1.1rem; max-width: 700px; color: var(--text-soft); margin-bottom: 44px; }

/* Yellow "draft" note shown during team review — delete along with its HTML */
.placeholder-note {
  background: #fff8e1;
  border: 1px dashed #e0a800;
  color: #7a5c00;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 8px;
  max-width: 1100px;
  margin: 18px auto 0;
  text-align: center;
}


/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { background: var(--accent-light); transform: translateY(-2px); }

.btn.ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--foam);
  margin-left: 14px;
}
.btn.ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }


/* ==========================================================================
   4. NAV (main site only — landing pages have no nav on purpose)
   ========================================================================== */
nav { background: var(--navy); position: sticky; top: 0; z-index: 100; }

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
}
.logo img { height: 44px; width: auto; display: block; }
.logo span { color: var(--accent); }

.nav-links a {
  color: var(--foam);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.cta {
  background: var(--accent);
  color: var(--navy);
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--accent-light); }


/* ==========================================================================
   5. HERO HEADER (main site)
   ========================================================================== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--ocean) 55%, var(--wave) 100%);
  color: var(--white);
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
/* the white "wave" curve at the bottom of the hero */
.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero h1 { font-size: 2.9rem; line-height: 1.15; max-width: 720px; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--foam); max-width: 620px; margin-bottom: 36px; }


/* ==========================================================================
   6. CONTENT SECTIONS — cards, numbered steps, checkmark list
   ========================================================================== */

/* Service cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover { box-shadow: 0 8px 24px rgba(11, 37, 69, 0.10); transform: translateY(-3px); }
.card .icon { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.97rem; color: var(--text-soft); }

/* Numbered process steps (numbers are automatic — just add .step divs) */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.step {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 24px;
  background: var(--accent);
  color: var(--navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.step h3 { color: var(--navy); font-size: 1.05rem; margin: 8px 0 8px; }
.step p { font-size: 0.94rem; color: var(--text-soft); }

/* "Why us" checkmark list */
.why-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-item .check { color: var(--accent); font-size: 1.3rem; font-weight: 800; line-height: 1.4; }
.why-item p { font-size: 0.98rem; }
.why-item strong { color: var(--navy); }


/* ==========================================================================
   7. CONTACT BOX
   ========================================================================== */
.contact-box {
  background: var(--navy);
  border-radius: 16px;
  color: var(--white);
  padding: 56px 40px;
  text-align: center;
}
.contact-box h2 { color: var(--white); }
.contact-box p { color: var(--foam); max-width: 560px; margin: 0 auto 30px; }
.contact-box a.mail { color: var(--accent); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.contact-box .contact-alt { margin: 22px auto 0; }


/* ==========================================================================
   8. FOOTER
   ========================================================================== */
footer { background: var(--navy); color: var(--foam); padding: 34px 0; font-size: 0.88rem; }

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { height: 34px; width: auto; }
footer a { color: var(--foam); text-decoration: none; }
footer a:hover { color: var(--white); }


/* ==========================================================================
   9. LANDING PAGES — pages under /lp/ use <body class="lp">
      Narrower column, centered layout, no nav.
   ========================================================================== */
.lp .container { max-width: 760px; }
.lp section { padding: 56px 0; }
.lp h2 { font-size: 1.5rem; text-align: center; margin-bottom: 16px; }

/* Landing page hero (dark gradient, centered) */
.lp-hero {
  background: linear-gradient(160deg, var(--navy), var(--ocean));
  color: var(--white);
  padding: 56px 0 60px;
  text-align: center;
}
.lp-hero h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 18px; }
.lp-hero h1 em { font-style: normal; color: var(--accent); }
.lp-hero p { color: var(--foam); font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
.lp-hero .btn { padding: 15px 36px; font-size: 1.1rem; }

/* Logo + name block at the top of a landing page hero */
.lp-brand { margin-bottom: 24px; }
.lp-brand img { height: 64px; width: auto; }
.lp-brand-name { font-weight: 700; letter-spacing: 0.5px; color: var(--foam); font-size: 1rem; margin-top: 6px; }
.lp-brand-name span { color: var(--accent); }

/* Row of big-number stat boxes */
.stat-row { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 30px 0 10px; }
.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
  min-width: 190px;
}
.stat .big { font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat .small { font-size: 0.9rem; color: var(--text-soft); }

/* Checkmark bullet list */
ul.plain { list-style: none; max-width: 520px; margin: 0 auto; }
ul.plain li { padding: 10px 0 10px 34px; position: relative; font-size: 1.02rem; }
ul.plain li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}

/* Final call-to-action band at the bottom */
.cta-final { text-align: center; padding: 60px 24px; background: var(--navy); color: var(--white); }
.cta-final h2 { color: var(--white); }
.cta-final p { color: var(--foam); margin: 12px auto 26px; max-width: 480px; }

/* Landing page footer — simple centered line */
.lp footer {
  text-align: center;
  font-size: 0.85rem;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lp footer img { height: 28px; width: auto; display: block; margin: 0 auto 8px; }


/* ==========================================================================
   10. 404 PAGE
   ========================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--navy), var(--ocean));
  color: var(--white);
  text-align: center;
  padding: 24px;
}
.error-box img { height: 96px; width: auto; margin-bottom: 20px; }
.error-box .error-code { font-size: 1rem; font-weight: 700; letter-spacing: 3px; color: var(--accent); margin-bottom: 8px; }
.error-box h1 { font-size: 2rem; margin-bottom: 12px; }
.error-box p { color: var(--foam); max-width: 420px; margin: 0 auto 28px; }


/* ==========================================================================
   11. SMALL SCREENS
   ========================================================================== */

/* Tablets: compact the nav so logo + all links fit on one line */
@media (max-width: 900px) {
  .logo { font-size: 1.1rem; gap: 8px; }
  .logo img { height: 36px; }
  .nav-links a { margin-left: 16px; font-size: 0.88rem; }
  .nav-links a.cta { padding: 8px 14px; white-space: nowrap; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }

  .hero { padding: 72px 0 90px; }
  .hero h1 { font-size: 2.1rem; }
  .btn.ghost { margin-left: 0; margin-top: 12px; }

  /* on phones the nav shows only logo + CTA button */
  .nav-inner { padding: 10px 16px; }
  .nav-links a:not(.cta) { display: none; }
  .nav-links a.cta { margin-left: 12px; padding: 8px 12px; font-size: 0.85rem; white-space: nowrap; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo img { height: 32px; }

  .lp-hero h1 { font-size: 1.9rem; }
  .contact-box { padding: 44px 24px; }
  .foot-inner { justify-content: center; text-align: center; }
}
