:root {
  --brand: #2c8b83;
  --brand-dark: #17645f;
  --brand-soft: #eaf6f4;
  --ink: #1c2d2b;
  --muted: #60716e;
  --paper: #ffffff;
  --soft: #f7fbfa;
  --line: #d6e8e5;
  --accent: #f0b94d;
  --accent-soft: #fff7e4;
  --shadow: 0 20px 60px rgba(20, 63, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(44, 139, 131, 0.16);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1160px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-word {
  color: var(--brand-dark);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.hero-logo {
  width: 318px;
  height: auto;
  margin: 0 auto 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-dark);
}

.hero {
  position: relative;
  min-height: 76svh;
  padding: 96px 20px 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.28)),
    linear-gradient(90deg, rgba(247, 251, 250, 0.12), rgba(247, 251, 250, 0) 50%, rgba(247, 251, 250, 0.1)),
    url("assets/brightnest-hero-background-visible.jpg") center center / cover no-repeat,
    var(--paper);
}

.hero-watermark {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-watermark img {
  width: min(880px, 96vw);
  opacity: 0.055;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(870px, 100%);
  padding: 24px 28px 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 22px 70px rgba(20, 63, 59, 0.16);
  backdrop-filter: blur(1px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 0 auto;
  color: var(--brand-dark);
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 1.08;
}

.hero-lead {
  max-width: 760px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 900;
  line-height: 1.2;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: var(--paper);
  box-shadow: 0 14px 34px rgba(44, 139, 131, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
}

.button-secondary {
  border-color: rgba(44, 139, 131, 0.28);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--brand);
  background: var(--paper);
}

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-item {
  position: relative;
  padding: 54px 42px;
  text-align: center;
}

.trust-item + .trust-item::before {
  position: absolute;
  top: 52px;
  bottom: 52px;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}

.trust-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  color: var(--brand);
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: var(--icon-stroke, 6);
  fill: none;
}

.trust-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trust-item h2,
.section-heading h2,
.promise-layout h2,
.contact-copy h2 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.12;
}

.trust-item h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
}

.trust-item p,
.section-heading p,
.promise-layout p,
.process-step p,
.service-card p,
.contact-copy p {
  color: var(--muted);
}

.services-section,
.process-section,
.contact-section {
  padding: 92px 0;
}

.services-section {
  background: var(--soft);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading p {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.process-step,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-card {
  min-height: 232px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.service-number {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: #986713;
  font-weight: 900;
}

.service-card h3,
.process-step h3 {
  margin: 24px 0 10px;
  font-size: 1.22rem;
  line-height: 1.25;
}

.service-card p,
.process-step p {
  margin: 0;
}

.promise-section {
  padding: 74px 0;
  background: var(--brand);
  color: var(--paper);
}

.promise-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 52px;
}

.promise-layout .eyebrow,
.promise-layout p {
  color: rgba(255, 255, 255, 0.88);
}

.promise-layout p {
  margin: 0;
  font-size: 1.08rem;
}

.process-section {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
}

.process-step {
  min-height: 260px;
  padding: 24px;
}

.process-step span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.contact-section {
  background:
    linear-gradient(180deg, rgba(247, 251, 250, 0.96), rgba(255, 255, 255, 1)),
    var(--paper);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-copy p {
  margin: 18px 0 0;
}

.contact-list {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  color: var(--brand-dark);
  font-weight: 900;
}

.contact-list a,
.contact-list span {
  width: fit-content;
  border-bottom: 2px solid rgba(44, 139, 131, 0.24);
}

.contact-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-form {
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-form label,
.calc-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.calc-form input,
.calc-form select,
.calc-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fbfefd;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.calc-form input:focus,
.calc-form select:focus,
.calc-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(44, 139, 131, 0.13);
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.form-page {
  background: var(--soft);
}

.calc-hero {
  padding: 92px 0 54px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 251, 250, 0.96)),
    url("assets/brightnest-hero-background-visible.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.calc-hero-inner {
  max-width: 880px;
}

.calc-hero h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 3.1rem;
  line-height: 1.08;
}

.calc-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.calc-section {
  padding: 62px 0 92px;
}

.calc-form {
  display: grid;
  gap: 22px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--paper);
  box-shadow: 0 14px 38px rgba(20, 63, 59, 0.07);
}

.form-section-muted {
  background: var(--brand-soft);
}

.form-section h2 {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1.22;
}

.form-section h3 {
  margin: 26px 0 14px;
  color: var(--brand-dark);
  font-size: 1rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.form-section p {
  margin: 0 0 12px;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wide-field {
  margin-top: 18px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.option-grid-compact {
  margin-top: 4px;
}

.option-grid label {
  min-height: 48px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfefd;
  font-weight: 700;
}

.option-grid input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.form-note {
  max-width: 760px;
  margin-bottom: 18px !important;
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.footer-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner img {
  width: 138px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 94px;
  }

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

  .trust-grid,
  .services-grid,
  .promise-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 42px 28px;
  }

  .trust-item + .trust-item::before {
    top: 0;
    right: 26px;
    bottom: auto;
    left: 26px;
    width: auto;
    height: 1px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-link {
    min-width: auto;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-word {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    padding: 76px 18px 56px;
  }

  .hero-logo {
    width: 232px;
  }

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

  .hero-lead {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 28px, 1120px);
  }

  .services-section,
  .process-section,
  .contact-section {
    padding: 68px 0;
  }

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

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

  .trust-item h2,
  .section-heading h2,
  .promise-layout h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .contact-form {
    padding: 22px;
  }

  .calc-hero {
    padding: 68px 0 44px;
  }

  .calc-hero h1 {
    font-size: 2.25rem;
  }

  .form-section {
    padding: 22px;
  }

  .form-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 28px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}
