/* 
  WELCOME TO YOUR CSS! 
  CSS (Cascading Style Sheets) is what makes your website look beautiful.
*/

:root {
  /* These are CSS Variables. They let you store a value (like a color) and reuse it. */
  --ink: #0b2a3d;
  /* navy */
  --ink2: #10384f;
  --accent: #d9741b;
  /* orange */
  --bg: #ffffff;
  --bg2: #f6f8fa;
  --muted: #5b6b76;
  --line: rgba(11, 42, 61, .14);
  --radius: 18px;
  --shadow: 0 12px 30px rgba(11, 42, 61, .10);
  --max: 1160px;
}

/* The '*' selector targets EVERY single element on the page */
* {
  box-sizing: border-box;
  /* Ensures padding doesn't make elements wider than expected */
}

html {
  scroll-behavior: smooth;
  /* Makes the page slide nicely when clicking internal links */
}

body {
  margin: 0;
  /* font-family tells the browser which fonts to use in order of preference */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  /* Uses our variable from above */
  background: var(--bg2);
  line-height: 1.55;
  /* Space between lines of text */
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  transition: all 0.2s ease;
}

a:hover {
  filter: brightness(1.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

img {
  max-width: 100%;
  height: auto
}

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

/* '.container' targets elements with class="container" */
.container {
  max-width: var(--max);
  /* Limits the width so text isn't too long on big screens */
  margin: 0 auto;
  /* Centers the container on the page */
  padding: 0 18px;
}

.topbar {
  background: #0b1a24;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  /* Smaller font for secondary info */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar .container {
  /* Flexbox! This is a powerful layout tool to align items in a row or column */
  display: flex;
  justify-content: space-between;
  /* Puts space between the left and right items */
  align-items: center;
  /* Centers items vertically */
  padding: 8px 18px;
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .12);
  text-decoration: none;
  color: inherit;
}

.pill:hover {
  background: rgba(255, 255, 255, .16);
  color: white;
}

/* Media Queries: These let you change styles for different screen sizes (like mobile) */
@media (max-width: 820px) {
  .topbar .container {
    padding: 8px 14px
  }

  .topbar .container .pills:first-child {
    display: none;
    /* Hides this part on small screens to save space */
  }
}

header.site-header {
  /* 'sticky' keeps the header at the top even when you scroll */
  position: sticky;
  top: 0;
  z-index: 50;
  /* Ensures the header stays on top of other content */
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(140%) blur(10px);
  /* Creates a glassy/blurry effect */
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: -13px 0;
}

.brand .name {
  font-weight: 900;
  letter-spacing: .02em
}

.brand .tag {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center
}

nav a {
  font-weight: 750;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
}

nav a:hover {
  background: var(--bg2);
  color: var(--ink)
}

nav a:hover,
nav a:focus {
  background: var(--bg2);
  outline: none
}

.ctas {
  display: flex;
  gap: 10px;
  align-items: center
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-weight: 900;
  border: 1px solid var(--line);
  background: var(--bg2);
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink) !important;
  transition: all 0.2s ease;
}

.btn:not(.primary) {
  background: white;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.btn.primary:hover {
  filter: brightness(.98)
}

.btn:hover {
  transform: translateY(-1px)
}

.btn:active {
  transform: translateY(0)
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(217, 116, 27, .10);
  color: var(--ink2);
  border: 1px solid rgba(217, 116, 27, .18);
  font-weight: 800;
  font-size: 13px;
}

.hero {
  position: relative;
  background-color: #0b2a3d;
  background-image: url('../img/hero-boiler.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  padding: 100px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 42, 61, 0.8) 0%, rgba(11, 42, 61, 0.4) 50%, rgba(11, 42, 61, 0.1) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

/* Area-specific Hero adjustments */
.area-hero::before {
  background: linear-gradient(165deg, rgba(11, 42, 61, 0.95) 0%, rgba(11, 42, 61, 0.75) 50%, rgba(11, 42, 61, 0.45) 100%);
}

.area-hero .hero-content {
  border-left: 4px solid var(--accent);
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

/* Inner Page Hero */
.page-hero {
  position: relative;
  background-color: #0b2a3d;
  background-image: url('../img/hero-boiler.webp');
  background-position: center;
  background-size: cover;
  padding: 80px 0;
  color: white;
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 42, 61, 0.9) 0%, rgba(11, 42, 61, 0.6) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 3.5rem;
  margin: 10px 0 0;
  line-height: 1;
  letter-spacing: -0.02em;
}

.breadcrumbs {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.breadcrumbs a {
  color: white;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* HERO + FORM polish */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}

.hero-content {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
  color: white;
}

.hero-content h1 {
  margin-top: 14px;
  font-size: 3.2rem;
  line-height: 1.1;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.lede {
  margin-top: 20px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.kpis-wrap {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.kpi {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 18px;
  flex: 1;
  min-width: 180px;
}

.kpi strong {
  display: block;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kpi span {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin-top: 2px;
}

/* Standard Card */
.card {
  background: white;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(11, 42, 61, 0.08);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Glass Card (Used in Heros) */
.hero .hero-content,
.hero .card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.hero .hero-content h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .lede {
  color: rgba(255, 255, 255, 0.9);
}

.form-card h3 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  color: inherit;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

.hero .small {
  color: rgba(255, 255, 255, 0.8);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  margin: 12px 0 6px;
  color: var(--ink);
}

.hero label {
  color: white;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero input,
.hero select,
.hero textarea {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

::placeholder {
  color: var(--muted);
}

.hero ::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

select option {
  background: var(--ink);
  color: white;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(217, 116, 27, 0.1);
}

.form-card .btn.primary {
  width: 100%;
  margin-top: 20px;
  height: 48px;
  font-size: 1rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content {
    padding: 30px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 0;
  }

  .hero-grid {
    gap: 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.9);
  }
}




/* CTA hierarchy */
.btn.link {
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  font-weight: 900;
}

.btn.link:hover {
  opacity: .85
}

/* Clean trust list */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.trust-list li::before {
  content: "✓";
  font-weight: 900;
  color: var(--accent);
}

.form-trust {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--ink2);
}

/* Mobile: don't float form */
@media (max-width: 520px) {}




@media (max-width: 980px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
  }
}

section {
  padding: 100px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-head h2 {
  font-size: 2.8rem;
  margin: 0 0 10px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.tile {
  background: white;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tile:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--accent);
}

.tile h3 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  color: var(--ink);
}

.tile p {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Split Section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
}

.item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.check {
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 4px;
}

.quote {
  font-size: 1.8rem;
  line-height: 1.3;
  color: var(--ink);
  font-style: italic;
  position: relative;
  padding-left: 40px;
  background: rgba(11, 42, 61, 0.05);
  padding: 40px 40px 40px 60px;
  border-radius: 24px;
  border-left: 4px solid var(--accent);
}

.quote::before {
  content: "“";
  position: absolute;
  left: 20px;
  top: 10px;
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.3;
}

/* FAQ Section */
.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq summary {
  padding: 24px 30px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 30px 24px;
  margin: 0;
  color: var(--muted);
}

/* Footer */
footer {
  background: var(--ink);
  color: white;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 80px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

@media (max-width: 1024px) {
  .tiles {
    grid-template-columns: 1fr 1fr;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .tiles {
    grid-template-columns: 1fr;
  }

  .section-head h2 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.trust-card {
  background: white;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  color: var(--ink);
}

.trust-card h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.trust-card .small {
  color: var(--muted);
}

.trust-actions {
  margin-top: 30px;
}

.trust-actions .btn {
  color: var(--ink) !important;
}

.trust-actions .btn.primary {
  color: white !important;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}