/* Cloud ITS Business Email
   Palette: ink navy, Cloud ITS blue, sky (sparingly), mist, line, paper.
   Type: Bricolage Grotesque (display), Instrument Sans (body), IBM Plex Mono (addresses only). */

:root {
  --ink: #0B1426;
  --ink-soft: #3C4A61;
  --blue: #0F61A1;
  --blue-deep: #0A4A7A;
  --sky: #00C2FF;
  --mist: #EEF4FA;
  --line: #D3DEEA;
  --paper: #FFFFFF;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "Courier New", monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); font-weight: 700; max-width: 17ch; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; max-width: 20ch; }
h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap.narrow { max-width: 50rem; }

/* Masthead */
.masthead {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.55rem var(--gutter);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand img { height: 3rem; width: auto; display: block; }
.brand span { font-family: var(--display); font-weight: 500; font-size: 1.05rem; padding-left: 0.7rem; border-left: 1px solid var(--line); }
.masthead nav { display: flex; gap: 1.6rem; margin-left: auto; }
.masthead nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.97rem; }
.masthead nav a:hover { color: var(--blue); text-decoration: underline; }
.masthead-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }
.lede { margin-top: 1.6rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 40rem; color: var(--ink-soft); }

.builder { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 2.75rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 14rem; max-width: 20rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.field input, .field select {
  font: inherit; color: var(--ink);
  padding: 0.7rem 0.85rem;
  border: 1px solid #9FB1C6; border-radius: 6px;
  background: var(--paper);
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 0; border-color: var(--blue); }

.address-panel {
  margin-top: 1.75rem;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(2rem, 5vw, 3.75rem);
}
.address {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 4.6vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.address .at { color: var(--sky); padding-inline: 0.06em; }
.address .domain { color: var(--sky); }
.address-old { margin-top: 1rem; font-family: var(--mono); font-size: clamp(0.85rem, 1.4vw, 1.05rem); color: #8FA3BF; overflow-wrap: anywhere; }
.address-old s { text-decoration-thickness: 1px; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 2rem clamp(3rem, 6vw, 5rem); }

.button {
  display: inline-block;
  font: inherit; font-weight: 600;
  color: #fff; background: var(--blue);
  padding: 0.85rem 1.4rem;
  border: 0; border-radius: 6px;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--blue-deep); color: #fff; }
.link-quiet { font-weight: 500; }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-mist { background: var(--mist); }
.section-intro { margin-top: 1.2rem; max-width: 42rem; color: var(--ink-soft); font-size: 1.125rem; }
.footnote { margin-top: 1.25rem; font-size: 0.92rem; color: var(--ink-soft); max-width: 46rem; }
.vat-flag { color: var(--ink); font-weight: 700; }
.table-scroll + .footnote { max-width: none; }

/* Tables */
.table-scroll { margin-top: 2.5rem; overflow-x: auto; }
table { width: 100%; min-width: 44rem; border-collapse: collapse; text-align: left; }
th, td { padding: 0.9rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 500; width: 28%; }
thead th { font-family: var(--display); font-weight: 500; font-size: 1.05rem; line-height: 1.25; vertical-align: bottom; border-bottom: 2px solid var(--ink); }
thead td { border-bottom: 2px solid var(--ink); }
td { color: var(--ink-soft); }

.fit-table .ours { background: var(--mist); color: var(--ink); font-weight: 500; }
.fit-table thead .ours { color: var(--blue); font-weight: 700; border-top: 4px solid var(--blue); }

.plan-table th, .plan-table td { border-bottom-color: #C6D4E4; }
.plan-table .ours { background: var(--paper); color: var(--ink); }
.plan-table thead .ours { border-top: 4px solid var(--blue); }
.plan-table thead th { padding-block: 1.25rem; width: 24%; }
.plan-name, .plan-price, .plan-unit, .plan-total { display: block; }
.plan-name { font-size: 1.1rem; }
.plan-price { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; margin-top: 0.3rem; letter-spacing: -0.02em; }
.plan-unit { font-family: var(--body); font-size: 0.88rem; font-weight: 400; color: var(--ink-soft); }
.plan-total { font-family: var(--body); font-size: 0.95rem; font-weight: 600; color: var(--blue); margin-top: 0.8rem; }
.plan-table .group th { font-family: var(--display); font-weight: 700; font-size: 0.98rem; padding-top: 1.8rem; border-bottom-color: var(--ink); width: auto; }
.plan-table td.yes { color: var(--ink); }

.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; }
.calc label { font-weight: 500; }
.calc input { font: inherit; font-weight: 600; width: 6.5rem; padding: 0.6rem 0.75rem; border: 1px solid #9FB1C6; border-radius: 6px; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; margin: 3rem 0 0; padding: 0; display: grid; gap: 2.5rem; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--blue); margin-bottom: 0.9rem; }
.steps p { margin-top: 0.6rem; color: var(--ink-soft); }

/* Questions */
details { border-bottom: 1px solid #C6D4E4; }
details:first-of-type { margin-top: 2.25rem; border-top: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-family: var(--display); font-weight: 500; font-size: 1.2rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--blue); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); max-width: 44rem; }

/* Quote */
.quote { background: var(--ink); color: #fff; }
.quote h2 { color: #fff; }
.quote .section-intro { color: #B9C7DA; }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem clamp(2rem, 6vw, 6rem); align-items: start; }
.contact-lines { margin-top: 2rem; font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; }
.contact-lines a { color: var(--sky); text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.quote-form { display: grid; gap: 1.1rem; }
.quote-form .field { max-width: none; flex: none; }
.quote-form .field label { color: #B9C7DA; }
.quote-form input, .quote-form select { border-color: transparent; }
.field-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.1rem; }
.quote-form .button { background: var(--sky); color: var(--ink); justify-self: start; margin-top: 0.4rem; }
.quote-form .button:hover { background: #5AD8FF; color: var(--ink); }

/* Footer */
.footer { padding-block: 1.75rem; font-size: 0.92rem; color: var(--ink-soft); border-top: 1px solid var(--line); }

/* Small screens */
@media (max-width: 56rem) {
  .masthead nav { display: none; }
  .masthead-phone { margin-left: auto; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 30rem) {
  .brand span { display: none; }
  .brand img { height: 2.6rem; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
