/* ============================================
   COS Consultants — Brand Stylesheet
   Palette pulled from logo: deep navy, sky blue,
   mint/teal gradient (the mountain range)
   ============================================ */

:root {
  --navy: #121C4E;
  --navy-deep: #0B1338;
  --sky: #4FA3E8;
  --teal: #3FD9B0;
  --ink: #1A1E2B;
  --slate: #5B6478;
  --offwhite: #F5F8FC;
  --white: #FFFFFF;
  --line: #E3E8F2;

  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--slate); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--teal), var(--sky));
  color: var(--navy-deep);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(63,217,176,0.35); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}

.nav-links a.active,
.nav-links a:hover { color: var(--sky); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; }
.nav-cta .btn { padding: 10px 22px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% 20%, #0A0FBE 0%, #0003B2 55%, #060246 100%);
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 32px 40px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo-wrap {
  width: min(92%, 660px);
  aspect-ratio: 16 / 10;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 30px 70px rgba(18,28,78,0.16);
  margin: 0 auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 62%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* ---- Snow covering the whole hero, wiped clean by the squeegee ---- */
.snow-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: rgba(255,255,255,0.94);
  pointer-events: none;
  animation: snowWipe 4s linear forwards;
}
.snow-overlay .snowflakes {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(120,140,180,0.18));
}

/* The notch that opens up is the band holding the logo and tagline */
@keyframes snowWipe {
  0%, 8% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 93%, 0% 93%, 0% 9%, 0% 9%);
  }
  88%, 100% {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 93%, 100% 93%, 100% 9%, 0% 9%);
  }
}

/* ---- The squeegee itself ---- */
.squeegee {
  position: absolute;
  top: -30%;
  height: 160%;
  width: 30px;
  left: -14%;
  z-index: 6;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: squeegeeSweep 4s linear forwards;
}
.squeegee-blade {
  position: absolute;
  top: 0; bottom: 0;
  left: -12px;
  width: 15px;
  background: linear-gradient(90deg, #0d1016, #2b313d);
  border-radius: 4px;
  box-shadow: -6px 0 18px rgba(0,0,0,0.25);
}
.squeegee-channel {
  position: absolute;
  top: -6px; bottom: -6px;
  left: 0;
  width: 22px;
  background: linear-gradient(90deg, #39404f, #9aa3b6 45%, #4a5162);
  border-radius: 7px;
  box-shadow: 0 0 22px rgba(0,0,0,0.3);
}
.squeegee-handle {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  width: 78px;
  height: 22px;
  border-radius: 11px;
  background: linear-gradient(180deg, #6b7488, #262c39);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

@keyframes squeegeeSweep {
  0%   { left: -14%;  transform: translateY(15%) rotate(-8deg); opacity: 0; }
  8%   { left: 0%;    transform: translateY(13%) rotate(-7deg); opacity: 1; }
  30%  { left: 27.5%; transform: translateY(2%)  rotate(-4deg); opacity: 1; }
  50%  { left: 52.5%; transform: translateY(-7%) rotate(0deg);  opacity: 1; }
  70%  { left: 77.5%; transform: translateY(2%)  rotate(4deg);  opacity: 1; }
  88%  { left: 100%;  transform: translateY(13%) rotate(7deg);  opacity: 1; }
  100% { left: 114%;  transform: translateY(15%) rotate(8deg);  opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .snow-overlay, .squeegee { animation: none; }
  .snow-overlay { clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 93%, 100% 93%, 100% 9%, 0% 9%); }
  .squeegee { opacity: 0; }
}

.hero-subline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  text-align: center;
  margin: 14px 0 0;
  padding: 0 16px;
}

.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.75rem, 2.25vw, 1.3rem);
  padding: 0 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-align: center;
  margin: 0;
}

.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Ridge divider (signature element) ---------- */
.ridge-divider {
  display: block;
  width: 100%;
  line-height: 0;
}
.ridge-divider svg { width: 100%; height: auto; display: block; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--offwhite); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head p { margin-top: 14px; }

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(18,28,78,0.08);
  border-color: var(--teal);
}
.card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.08em;
}
.card h3 { margin: 10px 0 10px; }
.card p { font-size: 0.95rem; }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 30px;
  text-align: center;
}
.stats .stat h2 { color: var(--white); margin-bottom: 4px; }
.stats .stat span { color: #C9D6EC; font-size: 0.9rem; }
.stats-band {
  background: var(--navy);
  padding: 56px 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy) 60%, #1B4E86);
  color: var(--white);
  text-align: center;
  border-radius: 24px;
  padding: 28px 40px;
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: #C9D6EC; max-width: 520px; margin: 14px auto 30px; }

/* ---------- Logo wall (past clients) ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 18px;
}

.logo-tile {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  transition: transform 0.2s ease;
}
.logo-tile:hover { transform: scale(1.06); }

.logo-tile img {
  max-height: 84px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.placeholder-note {
  background: #FFF8E8;
  border: 1px dashed #E3C67A;
  color: #7A5C15;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin: 0 0 40px;
}

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 26px;
}
.testi-card {
  background: #E8F7F4;
  border: 14px solid var(--sky);
  border-radius: 12px;
  padding: 32px 28px;
}
.testi-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  line-height: 1;
}
.testi-card p.quote-text { color: var(--ink); margin: 10px 0 20px; font-size: 1rem; }
.testi-name { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 0.92rem; }
.testi-role { font-size: 0.82rem; color: var(--slate); }

/* ---------- About page specifics ---------- */
.about-hero {
  background: var(--offwhite);
  padding: 72px 0 60px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.pillar-list { list-style: none; margin-top: 20px; }
.pillar-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--slate);
}
.pillar-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Contact / Let's Talk form ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: flex-start;
}
.contact-info h3 { margin-bottom: 6px; }
.contact-info p { margin-bottom: 26px; }
.contact-detail { margin-bottom: 22px; }
.contact-detail .label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}

form.talk-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(18,28,78,0.06);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--offwhite);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  background: var(--white);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 14px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: #AEBBDA;
  padding: 16px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-links a { font-size: 0.82rem; color: #AEBBDA; }
.footer-links a:hover { color: var(--teal); }
.footer-copy { font-size: 0.75rem; }

/* ---------- Page hero (non-home) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white);
  padding: 130px 0 70px;
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--teal); }
.page-hero p { color: #C9D6EC; max-width: 560px; margin: 14px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-outline-navy { display: none; }
  .nav-toggle { display: flex; }
  .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
