/* ==========================================================
   J.E.D. Consulting — Teal & Peach (consolidated build)
   ----------------------------------------------------------
   Sections:
   1) Fonts & Design Tokens
   2) Base / Reset
   3) Layout Helpers
   4) Header / Nav
   5) Buttons
   6) Hero
   7) Marquee
   8) Sections / Typography
   9) Cards / Features / Grids / Quick Facts
   10) Footer (full-width teal)
   11) Reveal-on-scroll
   12) Responsive tweaks / Quick Facts override
   ========================================================== */


/* =================== 1) Fonts =================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Playfair+Display:wght@500;700&display=swap");


/* =================== 2) Design tokens =================== */
:root{
  /* Colors */
  --bg:#FFF; --surface:#FFF; --surface-2:#FAFAFA; --border:#E4E7E9;
  --text:#0A3D3F; --muted:#4A4E52;
  --accent:#0A3D3F; --accent-dark:#052E30; --accent-light:#6FD1C7; --peach:#F9C5A2;

  /* Type */
  --font-sans:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  --font-display:"Playfair Display",serif;

  --fs-xs:clamp(12px,1.1vw,13px);
  --fs-sm:clamp(14px,1.2vw,15px);
  --fs-md:clamp(16px,1.4vw,18px);
  --fs-lg:clamp(20px,2vw,26px);
  --fs-xl:clamp(28px,3.5vw,44px);
  --fs-xxl:clamp(36px,5vw,64px);

  --leading-tight:1.15; --leading-normal:1.55;

  /* Layout */
  --radius:14px; --radius-lg:20px; --pad:clamp(16px,3vw,28px); --container:1120px;

  /* Shadows */
  --shadow-sm:0 2px 6px rgba(0,0,0,.05);
  --shadow-md:0 8px 20px rgba(0,0,0,.08);

  /* Motion */
  --fast:160ms ease;
}


/* =================== 3) Base / reset =================== */
*,
*::before,
*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:var(--font-sans); font-size:var(--fs-md); line-height:var(--leading-normal);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
  overflow-x:hidden; /* prevent horizontal scroll from full-width footer/marquee */
}

img,svg,video,canvas{ display:block; max-width:100%; height:auto; }

/* Links: no underlines anywhere + inherit color */
a{ color:inherit; text-decoration:none; }

/* Focus ring (accessible but subtle) */
:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px rgba(111,209,199,.35), 0 0 0 6px rgba(10,61,63,.25);
  border-radius:10px;
}


/* =================== 4) Layout helpers =================== */
.container{ width:min(calc(100% - 2*var(--pad)), var(--container)); margin-inline:auto; }
.spacer-xs{height:8px;} .spacer-sm{height:16px;}
.spacer-md{height:14px;} .spacer-lg{height:26px;} .spacer-xl{height:64px;}
.center{text-align:center;} .muted{color:var(--muted);}


/* =================== 5) Header / Nav =================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:linear-gradient(180deg,#0A3D3F 0%,#0B474A 100%);
  box-shadow:0 2px 10px rgba(0,0,0,.12), inset 0 -1px 0 rgba(255,255,255,.12);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px var(--pad); }
.logo{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--font-display); font-weight:700; font-size:20px; color:#fff; letter-spacing:.2px;
}
.logo-dot{ width:10px; height:10px; border-radius:999px; background:#fff; box-shadow:0 0 12px rgba(255,255,255,.7),0 0 0 3px rgba(255,255,255,.18); }
.nav-links{ display:flex; gap:18px; align-items:center; }
.nav-links a{
  color:#fff; opacity:.95; padding:8px 10px; border-radius:10px;
  transition:background .18s ease, opacity .18s ease, color .18s ease;
  text-decoration:none; /* explicit: remove underline in header */
}
.nav-links a:hover{ background:rgba(255,255,255,.12); opacity:1; }
.nav-links a[aria-current="page"]{
  background:rgba(255,255,255,.18); color:#fff; opacity:1;
  box-shadow:0 0 0 1px rgba(255,255,255,.22) inset;
}
.site-header.is-sticky .nav{ padding:8px var(--pad); }
.site-header.is-sticky .logo{ transform:translateY(-1px); }


/* =================== 6) Buttons =================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 20px; border:none; border-radius:999px; cursor:pointer;
  font-weight:600; letter-spacing:.02em;
  background:var(--accent); color:#fff;
  box-shadow:0 4px 14px rgba(10,61,63,.28);
  transition:transform var(--fast), background var(--fast), box-shadow var(--fast);
}
.btn:hover{ background:var(--accent-dark); transform:translateY(-1px); }
.btn:active{ transform:translateY(0); }

.btn.btn-outline{
  border:2px solid var(--accent-dark); background:transparent; color:var(--accent-dark); box-shadow:none;
}
.btn.btn-outline:hover{ background:rgba(10,61,63,0.07); color:var(--accent-dark); }

/* Outline button variant in header stays white */
.site-header .btn.btn-outline{ border-color:rgba(255,255,255,.92); color:#fff; padding:10px 16px; font-weight:700; }
.site-header .btn.btn-outline:hover{ background:rgba(255,255,255,.14); color:#fff; }


/* =================== 7) Hero (compact) =================== */
.hero{
  background:linear-gradient(120deg,var(--accent-light) 0%, var(--peach) 100%);
  color:var(--accent-dark);
  padding:clamp(56px,10vw,88px) 0 clamp(40px,6vw,64px);
  text-align:center;
}
.kicker,.pill{ display:inline-block; padding:5px 10px; border-radius:999px; font-size:.72rem; }
.kicker{ background:rgba(255,255,255,.55); color:var(--accent-dark); letter-spacing:.08em; text-transform:uppercase; }
.kickercard{
  display:inline-block; padding:6px 10px; border-radius:999px; border:1px solid var(--text);
  color:var(--accent-dark); letter-spacing:.08em; text-transform:uppercase;
}
.hero-title{
  font-family:var(--font-display);
  font-size:clamp(30px,4vw,54px);
  line-height:var(--leading-tight);
  margin:10px 0 0;
}
.hero-sub{ margin-top:16px; color:var(--text); font-size:clamp(17px,2vw,21px); max-width:70ch; margin-inline:auto; }
.hero-actions{ margin-top:20px; display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }


/* =================== 8) Marquee =================== */
.marquee-wrap{
  position:relative; overflow:hidden; white-space:nowrap;
  background:linear-gradient(180deg,#fbfbfb,#fff);
  border-block:1px solid var(--border); padding:.6rem 0;
}
.marquee-loop{ display:inline-flex; gap:1.2rem; align-items:center; animation:marquee 60s linear infinite; will-change:transform; }
.marquee-wrap:hover .marquee-loop{ animation-play-state:paused; }
.logo-chip{ border:1px solid var(--border); background:#fff; border-radius:999px; padding:.5rem 1rem; font-size:.95rem; color:var(--muted); }
@keyframes marquee{ from{transform:translateX(0)} to{transform:translateX(-50%)} }


/* =================== 9) Sections & Typography =================== */
.section{ padding:clamp(28px,5vw,48px) 0; background:var(--surface); }
.section-title{
  font-family:var(--font-display);
  font-size:clamp(24px,2.4vw,34px);
  text-align:center; margin:0 0 6px; color:var(--text);
}
.section-sub{ color:var(--muted); text-align:center; max-width:70ch; margin:6px auto 18px; }


/* =================== 10) Cards / Features =================== */
.card{
  background:#fff;
  border:1.5px solid rgba(10,61,63,0.25);           /* visible teal edge */
  border-radius:16px;
  padding:clamp(28px,3vw,36px);
  box-shadow:0 6px 18px rgba(10,61,63,0.08);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 10px 26px rgba(10,61,63,0.16); border-color:rgba(10,61,63,0.35); }
.card h3{ font-family:var(--font-display); font-size:clamp(20px,1.8vw,24px); margin:6px 0 8px; color:var(--accent-dark); }
.card p{ color:var(--muted); font-size:1rem; line-height:1.6; }

/* Process step pill number */
.process-step .num{
  width:28px; height:28px; border-radius:999px; background:var(--accent);
  color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700;
  box-shadow:0 0 10px rgba(10,61,63,.35);
}
/* Process-step card variant */
.process-step.card{ background:#FDFDFD; border:1.5px solid rgba(10,61,63,0.3); box-shadow:0 6px 18px rgba(10,61,63,0.08); }

/* Generic features list */
.features{ display:grid; gap:10px; margin-top:12px; }
.feature{ display:grid; grid-template-columns:22px 1fr; gap:10px; align-items:start; }
.feature .dot{ width:10px; height:10px; border-radius:999px; background:#0B474A; margin-top:6px; box-shadow:0 0 8px rgba(11,71,74,.35); }

/* QUICK FACTS (use .quick-facts on that card) */
.quick-facts .features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px; margin-top:18px;
}
.quick-facts .feature{
  display:flex; align-items:center; justify-content:center;
  gap:10px; padding:18px 20px;
  background:rgba(186,242,241,0.674);
  border:1px solid var(--accent);
  border-radius:999px;
  box-shadow:0 4px 14px rgba(10,61,63,0.08);
  font-weight:500; color:var(--accent-dark); text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.quick-facts .feature:hover{ transform:translateY(-3px); box-shadow:0 8px 20px rgba(10,61,63,0.12); }
.quick-facts .feature .dot{ width:8px; height:8px; border-radius:50%; background:var(--accent-dark); box-shadow:none; }


/* =================== 11) Grids =================== */
.grid-3,.grid-2{ display:grid; gap:clamp(18px,2vw,28px); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width:900px){ .grid-3{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid-3,.grid-2{ grid-template-columns:1fr; } }


/* ==========================================================
   12) Footer — full-width teal, edge-to-edge background
   Uses the classic 100vw + negative margin trick to escape
   the centered container while keeping content centered.
   ========================================================== */

/* ===== FORCE full-width teal footer (color visible edge-to-edge) ===== */
.site-footer {
  position: relative;
  width: 100vw;                /* take full viewport width */
  left: 50%;                   /* center to counteract parent container limits */
  right: 50%;
  margin-left: -50vw;          /* pull out of page container */
  margin-right: -50vw;
  
  background: linear-gradient(180deg, #117B7D 0%, #0A3D3F 100%);
  color: #fff;
  padding: 48px clamp(20px, 6vw, 60px) 28px; /* responsive side padding */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06),
              0 -2px 8px rgba(0,0,0,.08);     /* very soft glow */
  border: none;
  z-index: 5;
}

/* grid layout inside */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}

/* logo + tagline */
.site-footer .logo { color: #fff; margin-bottom: 8px; }
.site-footer .logo + p {
  color: rgba(255,255,255,0.88);
  max-width: 46ch;
  margin: 0 0 14px;
  line-height: 1.5;

}

/* footer links */
.footer-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: .88rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 6px;
}
.footer-links a {
  color: #E4FAFA;
  font-size: 0.94rem;
  transition: color .15s ease, background .15s ease, padding .15s ease;
  padding: 2px 0;
  border-radius: 6px;
}
.footer-links a:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
  padding-left: 6px;
}

/* bottom line */
.footer-bottom {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1280px;
  margin-inline: auto;
}

/* responsive tidy */
@media (max-width: 800px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ensure footer has no extra gap */
.site-footer { margin-bottom: 0; }

/* safety: footer content stays transparent over the gradient */
.site-footer .container { background: transparent; }

/* --- Remove any trailing space below the footer --- */

/* Ensure the footer is treated as the last visual block without gap */
.site-footer,
.site-footer * {
  margin-bottom: 0 !important;
}

/* Nuke padding/margin on common outer wrappers (Next/CRA/etc.) */
#root, #__next, .page, main {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: transparent !important; /* avoid a white layer below */
}

/* If a spacer or utility sneaks in at the very end, hide it */
*[class*="spacer"]:last-child,
body > *:last-child.spacer-xs,
body > *:last-child.spacer-sm,
body > *:last-child.spacer-md,
body > *:last-child.spacer-lg,
body > *:last-child.spacer-xl {
  display: none !important;
}

/* Force the very last element on the page to have no bottom margin */
body > *:last-child {
  margin-bottom: 0 !important;
}

/* Optional: soften footer glow so it doesn't look like a light edge */
.site-footer {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 -2px 8px rgba(0,0,0,.08);
}



/* =================== 13) Reveal-on-scroll =================== */
.reveal{ opacity:0; transform:translateY(12px); }
.reveal.is-visible{ opacity:1; transform:none; transition:opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
}


/* =================== 14) Responsive tweaks =================== */
@media (max-width:800px){
  .quick-facts .features{ grid-template-columns:1fr; }
}


/* --- Quick Facts: 3 oval teal cards (smaller text)
     This overrides the earlier .quick-facts styles above
     with slightly different spacing / sizing. --- */
.quick-facts .features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

.quick-facts .feature {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(111, 209, 199, 0.25); /* soft teal tint */
  border: 1.5px solid rgba(10, 61, 63, 0.35);
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 0.85rem;       /* smaller text size */
  letter-spacing: 0.02em;
  text-align: center;
  box-shadow: 0 4px 12px rgba(10, 61, 63, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-facts .feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(10, 61, 63, 0.12);
}

/* mobile: stack neatly */
@media (max-width: 800px) {
  .quick-facts .features {
    grid-template-columns: 1fr;
  }
}
  
/* =================== 15) Mobile nav / header tweaks =================== */
/* On small screens, let the header content wrap and center nicely */
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;                    /* allow items to move to new lines */
    row-gap: 10px;                      /* breathing room between rows */
  }

  .logo {
    flex: 1 1 100%;                     /* logo on its own row */
    justify-content: flex-start;
  }

  .nav-links {
    flex: 1 1 100%;                     /* nav links take full width */
    justify-content: center;            /* center the links */
    flex-wrap: wrap;                    /* allow links to wrap onto 2 rows */
    gap: 10px 14px;                     /* row/column gaps */
  }

  .nav-links a {
    padding: 6px 10px;                  /* slightly smaller hit area */
    font-size: var(--fs-sm);            /* keep nav from feeling huge */
  }

  .nav-cta {
    flex: 1 1 100%;                     /* Login button on its own row */
    display: flex;
    justify-content: center;
  }

  .site-header .btn.btn-outline {
    width: auto;                        /* keep natural width */
    padding-inline: 18px;
  }
}

/* Extra-small phones: tighten padding so hero + sections feel comfy */
@media (max-width: 480px) {
  .nav {
    padding-inline: 12px;               /* slightly less side padding */
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .section {
    padding: 24px 0;                    /* tighten vertical spacing a bit */
  }
}
/* =================== Mobile Nav =================== */

/* Wrapper for nav links + CTA so we can slide as a block on mobile */
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Screen reader only text (for "Toggle navigation") */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hamburger button - hidden by default (desktop) */
.nav-toggle {
  display: none; /* we show it inside the @media rule */
  background: transparent;
  border: none;
  padding: 6px;
  margin-left: auto;
  cursor: pointer;
}

/* The three bars of the hamburger */
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* When nav is open, animate bars into an “X” */
/* When nav is open, animate bars into an X */
.site-header.nav-open .nav-toggle .bar:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .nav-toggle .bar:nth-of-type(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle .bar:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* --- Mobile behaviour --- */
@media (max-width: 800px) {

  /* Show hamburger on small screens */
  .nav-toggle {
    display: inline-flex;
  }

  /* Turn right side into a dropdown panel */
  .nav-right {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 10px var(--pad) 16px;
    background: linear-gradient(180deg, #0A3D3F 0%, #0B474A 100%);
    border-top: 1px solid rgba(255,255,255,.18);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
  }

  /* Open state: slide panel down */
  .site-header.nav-open .nav-right {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Stack links vertically on mobile */
  .nav-links {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
  }

  /* Make Login button full-width too */
  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =================== Contact page layout =================== */

/* Wider form column, comfy spacing */
/* Contact page: single-column stack, centered */
.contact-layout {
  max-width: 780px;                    /* narrower than full container */
  margin-inline: auto;                 /* center the column */
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 28px);
}


/* Let the card breathe a bit more on contact page */
.contact-card {
  padding: clamp(26px, 3vw, 34px);
}

/* Modern form styling */
.contact-form {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}

/* Focus state: soft teal glow */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 1px rgba(111, 209, 199, 0.45);
  background: #fdfefe;
}

/* Placeholder style a bit softer */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(74, 78, 82, 0.7);
}

/* Make submit button span full width on mobile if you want */
@media (max-width: 640px) {
  .contact-form .btn {
    width: 100%;
    justify-content: center;
  }
}
