/* =========================================================
   True North Gutters — styles.css
   Palette: navy + steel + white
   ========================================================= */

:root {
  /* Colors */
  --navy:        #0B2545;
  --navy-2:      #173d6b;
  --navy-3:      #22487a;
  --steel:       #5C6B7A;
  --steel-light: #8a96a3;
  --line:        #d8dee6;
  --bg:          #ffffff;
  --bg-soft:     #f5f7fa;
  --bg-tint:     #eef2f6;
  --ink:         #0e1a2b;
  --ink-soft:    #4a5563;
  --accent:      #5fa8d3;     /* a clean blue used sparingly */
  --accent-2:    #c9d6e2;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max:    1180px;
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; font-family: var(--font-body); letter-spacing: -0.01em; }
p  { color: var(--ink-soft); margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              color .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn--lg { padding: 16px 26px; font-size: 1.02rem; }
.btn__icon { display: inline-flex; }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11,37,69,.25);
}
.btn--primary:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11,37,69,.3);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.92);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--navy);
}
.nav__logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.nav__logo--svg { height: 44px; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; }
.nav__brand-sub  { font-size: 0.7rem; letter-spacing: 4px; color: var(--steel); margin-top: 2px; text-transform: uppercase; }

.nav__links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.nav__links a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__toggle span {
  width: 18px; height: 2px;
  background: var(--navy);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
  border-radius: 2px;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(95,168,211,.18), transparent 60%),
    linear-gradient(180deg, #fbfcfd 0%, #eef2f6 100%);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,37,69,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,37,69,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero__glow {
  position: absolute;
  width: 600px; height: 600px;
  right: -150px; top: -200px;
  background: radial-gradient(circle, rgba(11,37,69,.18), transparent 70%);
  filter: blur(20px);
}

/* Animated rain */
.rain { position: absolute; inset: 0; overflow: hidden; }
.rain span {
  position: absolute;
  top: -10%;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(95,168,211,.5));
  animation: rain 2.5s linear infinite;
  opacity: .6;
}
.rain span:nth-child(1)  { left: 6%;  animation-delay: 0s; }
.rain span:nth-child(2)  { left: 14%; animation-delay: .4s; }
.rain span:nth-child(3)  { left: 22%; animation-delay: .9s; }
.rain span:nth-child(4)  { left: 31%; animation-delay: 1.3s; }
.rain span:nth-child(5)  { left: 38%; animation-delay: .2s; }
.rain span:nth-child(6)  { left: 45%; animation-delay: 1.7s; }
.rain span:nth-child(7)  { left: 53%; animation-delay: .6s; }
.rain span:nth-child(8)  { left: 61%; animation-delay: 1.1s; }
.rain span:nth-child(9)  { left: 69%; animation-delay: .3s; }
.rain span:nth-child(10) { left: 76%; animation-delay: 1.5s; }
.rain span:nth-child(11) { left: 83%; animation-delay: .8s; }
.rain span:nth-child(12) { left: 89%; animation-delay: 1.9s; }
.rain span:nth-child(13) { left: 95%; animation-delay: .5s; }
.rain span:nth-child(14) { left: 28%; animation-delay: 2.1s; }
.rain span:nth-child(15) { left: 66%; animation-delay: 2.3s; }
@keyframes rain {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: .8; }
  100% { transform: translateY(120vh); opacity: 0; }
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 18px;
}
.text-accent {
  background: linear-gradient(90deg, var(--navy), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
}

/* Eyebrow tag */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bbf65;
  box-shadow: 0 0 0 4px rgba(43,191,101,.18);
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.hero__bullets li { display: inline-flex; align-items: center; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Hero art */
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;          /* allow this grid item to shrink instead of overflowing */
  width: 100%;
  max-width: 100%;
  overflow: visible;
}
.compass {
  width: min(360px, 100%);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(11,37,69,.25));
  animation: float 8s ease-in-out infinite;
}
.compass__rose {
  transform-origin: center;     /* spin around the geometric center of the rose */
  transform-box: fill-box;      /* "center" is relative to the rose's own bounding box */
  animation: rose 18s linear infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes rose {
  to { transform: rotate(360deg); }
}

.gutter-art {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(70%, 280px);
  max-width: 100%;
  filter: drop-shadow(0 14px 22px rgba(11,37,69,.18));
}
.droplet {
  animation: drop 3s ease-in infinite;
}
.droplet--1 { animation-delay: 0s; }
.droplet--2 { animation-delay: 1s; }
.droplet--3 { animation-delay: 2s; }
@keyframes drop {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 2px solid var(--steel-light);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.hero__scroll span {
  width: 3px; height: 8px;
  background: var(--steel);
  border-radius: 2px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%   { transform: translateY(-6px); opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* ---------- Trust bar ---------- */
.trust {
  background: var(--navy);
  color: #fff;
  padding: 22px 0;
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trust__item {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  color: rgba(255,255,255,.78);
  flex: 1;
  min-width: 160px;
}
.trust__item strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2px;
}
.trust__divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.18);
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { margin-top: 8px; }
.section-head__lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0), rgba(11,37,69,.04));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(11,37,69,.12);
  border-color: var(--navy-3);
}
.service:hover::before { opacity: 1; }
.service__icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--bg-tint);
  color: var(--navy);
  display: grid; place-items: center;
  margin-bottom: 18px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.service:hover .service__icon {
  background: var(--navy);
  color: #fff;
  transform: rotate(-4deg) scale(1.05);
}
.service h3 { margin-bottom: 8px; }
.service p { font-size: .98rem; }
.service__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.service__list li {
  padding: 6px 0 6px 22px;
  position: relative;
}
.service__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 12px; height: 2px;
  background: var(--steel-light);
  border-radius: 1px;
}

/* ---------- Why us ---------- */
.why {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
  position: relative;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.why__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.why__card:hover {
  border-color: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(11,37,69,.08);
}
.why__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--steel-light);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.why__card h3 { margin-bottom: 6px; }
.why__card p  { font-size: .95rem; margin: 0; }

/* ---------- Process ---------- */
.process { padding: 100px 0; background: var(--bg); }
.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
  position: relative;
}
.process__step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.process__step:hover { transform: translateY(-4px); border-color: var(--navy-3); }
.process__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(11,37,69,.25);
}

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; background: var(--bg-soft); }
.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq__item[open] {
  border-color: var(--navy);
  box-shadow: 0 12px 24px rgba(11,37,69,.07);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  position: relative;
  padding-right: 36px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--steel);
  font-weight: 400;
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
  color: var(--navy);
}
.faq__item p {
  padding: 0 0 18px;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */
.cta { padding: 100px 0; background: var(--bg); }
.cta__card {
  background:
    radial-gradient(800px 300px at 80% 0%, rgba(95,168,211,.25), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 22px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.cta__card > * { position: relative; z-index: 1; }
.cta__card h2 { color: #fff; }
.cta__card p { color: rgba(255,255,255,.78); font-size: 1.1rem; margin-bottom: 28px; }
.cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta__card .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.cta__card .btn--ghost:hover {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  padding: 60px 0 30px;
}
.footer a { color: rgba(255,255,255,.78); display: block; padding: 4px 0; font-size: .95rem; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
}
.footer__brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer__brand strong { color: #fff; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.footer__brand p { color: rgba(255,255,255,.6); margin: 0; font-size: .92rem; }
.footer__logo { width: 48px; height: 48px; object-fit: contain; }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  color: rgba(255,255,255,.5);
  grid-column: 1 / -1;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.services__grid .service.reveal:nth-child(1) { transition-delay: 0s; }
.services__grid .service.reveal:nth-child(2) { transition-delay: .1s; }
.services__grid .service.reveal:nth-child(3) { transition-delay: .2s; }
.services__grid .service.reveal:nth-child(4) { transition-delay: .3s; }
.why__grid .why__card.reveal:nth-child(1) { transition-delay: 0s; }
.why__grid .why__card.reveal:nth-child(2) { transition-delay: .08s; }
.why__grid .why__card.reveal:nth-child(3) { transition-delay: .16s; }
.why__grid .why__card.reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { gap: 36px; }
  .compass { width: min(300px, 100%); }
}

@media (max-width: 960px) {
  .hero { padding: 60px 0 70px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__art { order: -1; }
  .compass { width: min(280px, 100%); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  /* mobile menu */
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .nav.is-open .nav__cta {
    display: inline-flex;
    margin: 0;
    align-self: stretch;
    justify-content: center;
  }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols  { grid-template-columns: 1fr 1fr; }
  .cta__card { padding: 48px 24px; }
  .trust__divider { display: none; }
}

@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
  .services, .why, .process, .faq, .cta { padding: 70px 0; }
  .hero__bullets { gap: 8px 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
