:root {
  --bg: #faf8ff;
  --canvas: #f4f5ff;
  --panel: #ffffff;
  --panel-soft: #eaedff;
  --panel-mid: #e4e7f9;
  --navy: #1a1f3c;
  --ink: #171b28;
  --muted: #666a7a;
  --soft: #9aa0b7;
  --primary: #5b00df;
  --primary-deep: #26006e;
  --outline: rgba(119, 118, 126, 0.18);
  --shadow: 0 12px 32px -4px rgba(23, 27, 40, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: var(--bg);
}

body.cookie-lock {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea,
button {
  appearance: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-secondary {
  background: var(--panel-mid);
  color: var(--ink);
}

.site-shell {
  display: flex;
  min-height: 100vh;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  padding: 28px 0;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 30;
}

.brand-stack,
.sidebar-profile {
  padding: 0 24px;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-copy small,
.footer-kicker,
.section-heading__eyebrow,
.cookie-eyebrow,
.info-card__label,
.card-micro {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.6);
}

.site-sidebar__nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.56);
  transition: 0.2s ease;
}

.sidebar-link.is-active {
  margin-right: 12px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, #6606ff, var(--primary));
  color: #fff;
  font-weight: 700;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-profile {
  margin-top: auto;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd7a1, #ffb66d);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.sidebar-profile strong {
  display: block;
  font-size: 0.95rem;
}

.sidebar-profile small {
  color: rgba(255, 255, 255, 0.56);
}

.site-main {
  width: calc(100% - 220px);
  margin-left: 220px;
  padding: 0 30px 30px;
}

.mobile-topbar,
.mobile-nav {
  display: none;
}

.top-searchbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: rgba(250, 248, 255, 0.82);
  backdrop-filter: blur(12px);
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--panel-soft);
  min-width: 290px;
  color: var(--soft);
}

.top-searchbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}

.notify-dot {
  position: relative;
}

.notify-dot::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.mini-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffe2bf;
  color: var(--primary);
}

.weather-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 230px;
  gap: 24px;
  padding-top: 18px;
}

.weather-main,
.weather-side {
  display: grid;
  gap: 24px;
}

.hero-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) 180px;
  gap: 18px;
}

.weather-hero-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(6, 23, 58, 0.15), rgba(3, 7, 36, 0.68)),
    linear-gradient(135deg, #37a7bf, #235f8f);
  color: #fff;
  box-shadow: var(--shadow);
}

.weather-hero-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.3));
}

.weather-hero-card__bridge {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 34%, rgba(185, 73, 36, 0.95) 34% 38%, transparent 38% 40%, rgba(185, 73, 36, 0.95) 40% 44%, transparent 44%),
    linear-gradient(180deg, transparent 0 20%, rgba(185, 73, 36, 0.92) 20% 100%);
  clip-path: polygon(44% 0, 56% 0, 52% 100%, 48% 100%);
  opacity: 0.9;
}

.weather-hero-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  height: 100%;
  padding: 28px;
}

.weather-hero-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.weather-hero-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.weather-chip {
  justify-self: end;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.weather-hero-card__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.hero-temp-light {
  font-size: 5rem;
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 300;
}

.hero-temp-light span {
  font-size: 2rem;
  font-weight: 500;
  margin-left: 4px;
}

.hero-limits {
  text-align: right;
}

.hero-limits strong {
  display: block;
  margin-bottom: 6px;
}

.hero-limits span {
  color: rgba(255, 255, 255, 0.75);
}

.add-city-card,
.info-card,
.rain-card,
.outlook-card,
.forecast-side-card,
.details-card,
.page-hero-card,
.process-card,
.quote-card,
.faq-card,
.contact-summary,
.contact-form-card,
.site-footer {
  background: var(--panel);
  box-shadow: var(--shadow);
}

.add-city-card {
  border-radius: var(--radius-xl);
  background: var(--panel-soft);
  border: 2px dashed rgba(119, 118, 126, 0.24);
  display: grid;
  place-items: center;
  text-align: center;
}

.add-circle {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
  font-size: 2rem;
  font-weight: 300;
}

.add-city-card p {
  margin: 14px 0 0;
  font-weight: 700;
  color: var(--muted);
}

.info-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 240px;
  gap: 18px;
}

.info-card,
.rain-card,
.outlook-card,
.forecast-side-card,
.details-card,
.page-hero-card,
.process-card,
.quote-card,
.faq-card,
.contact-summary,
.contact-form-card {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.info-card__label,
.rain-card h3,
.outlook-card__head p,
.forecast-side-card h3,
.site-footer h3 {
  color: var(--muted);
}

.info-card strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.info-card strong span {
  font-size: 1rem;
  color: var(--muted);
}

.sun-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.line-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--panel-mid);
  overflow: hidden;
}

.line-progress span {
  display: block;
  height: 100%;
  background: var(--primary);
}

.rain-card__head,
.outlook-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.rain-columns {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  min-height: 140px;
  margin-top: 16px;
}

.rain-columns div {
  display: grid;
  justify-items: center;
  gap: 12px;
  flex: 1;
}

.rain-columns span {
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #9a63ff, var(--primary));
}

.rain-columns small,
.outlook-chart__times span {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--soft);
}

.rain-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--soft);
  font-size: 0.8rem;
}

.outlook-card__head h2,
.page-hero-card h1,
.page-hero-card h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: -0.05em;
}

.outlook-card__head p,
.page-intro,
.page-side-note p,
.process-card p,
.quote-card p,
.faq-card p,
.detail-list,
.contact-form-card,
.site-footer p,
.site-footer a {
  color: var(--muted);
  line-height: 1.7;
}

.outlook-chart {
  position: relative;
  min-height: 220px;
  margin-top: 18px;
  overflow: hidden;
}

.outlook-chart__line {
  position: absolute;
  inset: 10% 3% 28px;
}

.outlook-chart__line::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background: linear-gradient(180deg, rgba(91, 0, 223, 0.1), transparent);
  clip-path: polygon(0 88%, 12% 72%, 26% 58%, 41% 56%, 58% 70%, 74% 74%, 88% 67%, 100% 58%, 100% 100%, 0 100%);
}

.outlook-chart__line::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid var(--primary);
  clip-path: polygon(0 88%, 12% 72%, 26% 58%, 41% 56%, 58% 70%, 74% 74%, 88% 67%, 100% 58%, 100% 62%, 88% 71%, 74% 78%, 58% 74%, 41% 60%, 26% 62%, 12% 76%, 0 92%);
}

.outlook-chart__times {
  position: absolute;
  inset: auto 2% 0 2%;
  display: flex;
  justify-content: space-between;
}

.forecast-side-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.forecast-side-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.forecast-side-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--primary);
}

.forecast-side-item strong {
  display: block;
  font-size: 0.95rem;
}

.forecast-side-item small {
  color: var(--muted);
}

.details-card {
  min-height: 180px;
}

.mini-map {
  height: 100%;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(91, 0, 223, 0.8) 0 4%, transparent 5%),
    linear-gradient(90deg, rgba(91, 0, 223, 0.12) 0 2%, transparent 2% 25%, rgba(91, 0, 223, 0.12) 25% 27%, transparent 27% 50%, rgba(91, 0, 223, 0.12) 50% 52%, transparent 52% 75%, rgba(91, 0, 223, 0.12) 75% 77%, transparent 77%),
    linear-gradient(rgba(91, 0, 223, 0.12) 0 2%, transparent 2% 25%, rgba(91, 0, 223, 0.12) 25% 27%, transparent 27% 50%, rgba(91, 0, 223, 0.12) 50% 52%, transparent 52% 75%, rgba(91, 0, 223, 0.12) 75% 77%, transparent 77%),
    linear-gradient(135deg, #f5f0ff, #dfe2f4);
}

.details-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.inner-page {
  margin-top: 28px;
}

.page-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
}

.section-heading__eyebrow {
  color: var(--primary);
  text-transform: uppercase;
}

.page-side-note {
  padding: 18px;
  border-radius: 18px;
  background: var(--panel-soft);
}

.content-band {
  margin-top: 28px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.process-grid,
.testimonial-grid,
.faq-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

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

.contact-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.field,
.checkbox-field {
  display: grid;
  gap: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--panel-soft);
  color: var(--ink);
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.honeypot {
  display: none;
}

.checkbox-field {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
}

.checkbox-field input {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.notice {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 14px;
}

.notice--success {
  background: rgba(91, 0, 223, 0.08);
  color: var(--primary);
}

.notice--error {
  background: rgba(186, 26, 26, 0.08);
  color: #93000a;
}

.site-footer {
  margin-top: 30px;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.6fr));
  gap: 18px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--ink);
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(23, 27, 40, 0.32);
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 70;
  width: min(540px, calc(100% - 24px));
  padding: 28px;
  border-radius: var(--radius-lg);
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.cookie-modal h2 {
  margin: 8px 0 12px;
  font-size: 1.65rem;
}

.cookie-modal p {
  color: var(--muted);
  line-height: 1.7;
}

.cookie-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--ink);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 1200px) {
  .weather-layout,
  .hero-add-row,
  .info-row,
  .page-hero-card,
  .site-footer__grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .site-sidebar {
    display: none;
  }

  .site-main {
    width: 100%;
    margin-left: 0;
    padding: 0 16px 24px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
  }

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

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
    color: var(--muted);
  }

  .mobile-nav a.is-active {
    background: linear-gradient(90deg, #6606ff, var(--primary));
    color: #fff;
  }

  .top-searchbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-shell {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .process-grid,
  .testimonial-grid,
  .faq-grid,
  .form-grid,
  .mobile-nav {
    grid-template-columns: 1fr;
  }

  .weather-hero-card__bottom,
  .top-searchbar__right {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-temp-light {
    font-size: 4.2rem;
  }
}
