/* ANSOL IT Experts — site styles (v2, "we've got your back")
   Colors and fonts live in the variables below. */
:root {
  --paper:  #FBFCFC;   /* page background */
  --white:  #FFFFFF;
  --mist:   #EAF2F3;   /* soft alternate sections, the "shade" */
  --line:   #CFDDE0;
  --slate:  #4C6170;   /* secondary text */
  --ink:    #12304A;   /* headings and body text */
  --canopy: #1E5F6F;   /* the umbrella: brand teal */
  --canopy-deep: #164B58;
  --sun:    #F5C24A;   /* buttons */
  --sun-hover: #F9D272;
  --ok:     #33A271;   /* "covered" dots */
  --font: "Bricolage Grotesque", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--canopy); }
:focus-visible { outline: 3px solid var(--canopy); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; font-weight: 640; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.022em; }
h3 { font-size: 1.22rem; font-weight: 620; }
p { margin: 0 0 1em; }
.lead { font-size: 1.22rem; color: var(--slate); max-width: 38rem; line-height: 1.55; }
.measure { max-width: 40rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-steel { background: var(--mist); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--sun); color: var(--ink); }
.btn-primary:hover { background: var(--sun-hover); color: var(--ink); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Utility bar + header */
.utility { background: var(--canopy-deep); color: #D4E6EA; font-size: .875rem; }
.utility-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.utility a { color: var(--white); font-weight: 600; text-decoration: none; }
.utility a:hover { color: var(--sun); }

.site-header { background: rgba(251,252,252,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo svg rect { fill: var(--ink); }
.logo-led { fill: var(--ok); }
.logo-word { font-size: 1.45rem; font-weight: 760; letter-spacing: .03em; }
.logo-sub { font-size: .9rem; color: var(--slate); font-weight: 500; padding-left: .55rem; border-left: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 520; font-size: .98rem; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn)[aria-current="page"] { border-bottom-color: var(--canopy); }
.nav-cta { padding: .55rem 1.1rem; }
.menu-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: .4rem .95rem; color: var(--ink); cursor: pointer; }

/* ---------- Home: hero with the umbrella ---------- */
.hero { padding-top: clamp(3rem, 7vw, 5.5rem); overflow: hidden; }
.hero-copy { text-align: center; }
.hero-copy h1 { max-width: 15ch; margin-inline: auto; }
.hero-copy .lead { margin-inline: auto; }
.hero-copy .btn-row { justify-content: center; }

.shelter { position: relative; max-width: 64rem; margin-top: clamp(1.5rem, 4vw, 3rem); }
.rain { position: relative; height: clamp(5.5rem, 12vw, 8.5rem); }
.rain span {
  position: absolute; top: 0;
  font-size: .9rem; font-weight: 500; color: var(--slate);
  white-space: nowrap; opacity: 0;
  animation: fall 9s linear infinite;
}
.rain span::before { content: ""; display: inline-block; width: 1px; height: .9em; margin-right: .45rem; vertical-align: -0.1em; background: currentColor; opacity: .5; }
.rain span:nth-child(1) { left: 6%;  animation-delay: 0s; }
.rain span:nth-child(2) { left: 20%; animation-delay: 1.6s; }
.rain span:nth-child(3) { left: 36%; animation-delay: 4.1s; }
.rain span:nth-child(4) { left: 51%; animation-delay: 2.7s; }
.rain span:nth-child(5) { left: 64%; animation-delay: 5.6s; }
.rain span:nth-child(6) { left: 78%; animation-delay: 7.0s; }
.rain span:nth-child(7) { left: 90%; animation-delay: 7.9s; }
@keyframes fall {
  0%   { transform: translateY(0);     opacity: 0; }
  12%  { opacity: .85; }
  70%  { opacity: .85; }
  88%  { transform: translateY(calc(clamp(5.5rem, 12vw, 8.5rem) - 1.4rem)); opacity: 0; }
  100% { transform: translateY(calc(clamp(5.5rem, 12vw, 8.5rem) - 1.4rem)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rain span { animation: none; opacity: .55; }
  .rain span:nth-child(odd) { top: 1rem; }
  .rain span:nth-child(even) { top: 3.2rem; }
}

.canopy { display: block; width: 100%; height: auto; }
.canopy .cloth { fill: var(--canopy); }
.canopy .rib { fill: none; stroke: var(--canopy-deep); stroke-width: 3; }
.canopy .tip { fill: var(--canopy-deep); }

.shade {
  position: relative;
  margin-top: -2px;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(.5rem, 3vw, 2.5rem) clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse 60% 100% at 50% 0%, var(--mist) 0%, var(--mist) 55%, rgba(234,242,243,0) 100%);
}
.covered { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem .6rem; }
.covered li {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem; font-size: .95rem; font-weight: 500;
}
.covered li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--ok); flex: none; }
.shade-note { text-align: center; margin: 1.5rem auto 0; color: var(--slate); max-width: 34rem; }

/* ---------- Home: worries ---------- */
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem; }
.section-head p { color: var(--slate); margin: 0; max-width: 34rem; }
.worries { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.worries li {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 1rem 3.5rem;
  padding-block: 1.75rem; border-bottom: 1px solid var(--line);
}
.worry { font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.012em; margin: 0; }
.relief p { color: var(--slate); margin-bottom: .5rem; }
.relief a { font-weight: 600; }

/* ---------- Home: specialist areas under one roof ---------- */
.roof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.75rem 2.5rem; margin-top: 2.5rem; }
.area { border-top: 3px solid var(--canopy); padding-top: 1.1rem; }
.area h3 { margin-bottom: .3rem; }
.area .who { color: var(--slate); font-size: .95rem; margin-bottom: .9rem; }
.area ul { list-style: none; margin: 0; padding: 0; }
.area li { padding-block: .28rem; }
.area a { text-decoration: none; border-bottom: 1px solid var(--line); }
.area a:hover { border-bottom-color: var(--canopy); }

/* ---------- Home: promise band ---------- */
.promise { background: var(--canopy); color: var(--white); }
.promise h2 { max-width: 20ch; }
.promise .lead { color: #D4E6EA; }
.promise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3.5rem; margin-top: 2.5rem; }
.promise-grid h3 { color: var(--white); }
.promise-grid p { color: #D4E6EA; margin: 0; max-width: 30rem; }
.promise-grid a { color: var(--white); font-weight: 600; }
.promise-grid a:hover { color: var(--sun); }

/* Partner names */
.vendors { list-style: none; margin: .75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .75rem 2.25rem; }
.vendors li { font-size: 1.12rem; font-weight: 600; color: var(--slate); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.cta-band h2 { margin-bottom: .3rem; max-width: 26ch; }
.cta-band p { color: #C9D6E2; margin: 0; }
.cta-band .btn-row { margin-top: 0; }
.cta-band .btn-secondary { border-color: var(--white); color: var(--white); }
.cta-band .btn-secondary:hover { background: var(--white); color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-intro { background: var(--mist); padding-block: clamp(3rem, 7vw, 5rem); }
.page-intro h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 18ch; }

.detail { display: grid; grid-template-columns: 1fr 1.6fr; gap: 1rem 3rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.detail:first-child { padding-top: 0; }
.detail:last-child { border-bottom: 0; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .62em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ok); }

.group { padding-block: 2.5rem; border-bottom: 1px solid var(--line); scroll-margin-top: 6rem; }
.group:first-child { padding-top: 0; }
.group:last-child { border-bottom: 0; }
.group > p { color: var(--slate); max-width: 40rem; }
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.75rem 2.25rem; margin-top: 1.25rem; }
.items > div { border-left: 3px solid var(--canopy); padding-left: 1rem; scroll-margin-top: 6rem; }
.items h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.items p { color: var(--slate); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem 2.5rem; }
.facts p { color: var(--slate); margin: 0; }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--canopy); }
.steps li::before { content: counter(step); display: block; font-size: 1.6rem; font-weight: 400; color: var(--canopy); margin-bottom: .4rem; }
.steps p { color: var(--slate); margin: 0; }

.vendor-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; }
.vendor-groups h2 { font-size: 1.3rem; border-top: 3px solid var(--canopy); padding-top: 1rem; }
.vendor-groups ul { list-style: none; margin: 0; padding: 0; }
.vendor-groups li { font-size: 1.1rem; font-weight: 500; padding-block: .3rem; color: var(--slate); }

/* Contact and support */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.panel { background: var(--mist); border-radius: 18px; padding: 1.75rem; }
.panel h2 { font-size: 1.4rem; }
.panel dl { margin: 0; }
.panel dt { font-size: .9rem; color: var(--slate); margin-top: 1rem; }
.panel dd { margin: 0; font-size: 1.15rem; font-weight: 600; }

.form { display: grid; gap: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.form .opt { font-weight: 400; color: var(--slate); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #A9BEC4; border-radius: 10px; padding: .7rem .85rem;
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--canopy); outline-offset: 0; border-color: var(--canopy); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.5rem; }
.notice-ok { background: #E3F4EB; border: 1px solid #9FD3B7; }
.notice-err { background: #FCEAEA; border: 1px solid #E6A9A9; }

/* Footer */
.site-footer { background: var(--canopy-deep); color: #D4E6EA; padding-top: 3.5rem; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-logo { font-size: 1.35rem; font-weight: 760; color: var(--white); letter-spacing: .03em; }
.footer-logo span { font-size: .9rem; font-weight: 500; letter-spacing: 0; color: #D4E6EA; }
.footer-h { font-size: 1rem; color: var(--white); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); margin-top: 2.5rem; padding-block: 1.25rem; font-size: .875rem; }
.footer-base p { margin: 0; }
.social a { margin-left: 1.25rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .roof { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem; }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 1rem; }
  .section-head, .worries li, .detail, .split, .contact-grid, .promise-grid { grid-template-columns: 1fr; }
  .worries li { gap: .75rem; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .roof, .row2, .footer-grid { grid-template-columns: 1fr; }
  .utility-row span { display: none; }
  .utility-row { justify-content: flex-end; }
  .covered li { font-size: .88rem; padding: .38rem .75rem; }
  .rain span { font-size: .78rem; }
  .rain span:nth-child(6), .rain span:nth-child(7) { display: none; }
  .rain span:nth-child(1) { left: 2%; }
  .rain span:nth-child(2) { left: 26%; }
  .rain span:nth-child(3) { left: 44%; }
  .rain span:nth-child(4) { left: 58%; }
  .rain span:nth-child(5) { left: 70%; }
  .canopy { width: 124%; max-width: none; margin-left: -12%; }
}
