:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #182433;
  --muted: #5c6b7c;
  --line: #d8e1ec;
  --brand: #1f6feb;
  --brand-2: #00a7c4;
  --shadow: 0 12px 30px rgba(16, 36, 64, 0.08);
  --radius: 18px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, var(--bg) 100%);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(216,225,236,0.9);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand span { display: inline-flex; flex-direction: column; }
.brand strong { font-size: 1.05rem; }
.brand small { color: var(--muted); margin-top: 2px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  display: inline-flex !important;
  font-size: 1.35rem;
  box-shadow: var(--shadow);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.main-site-link {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  padding: 42px 0 18px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}
.hero-copy,
.card {
  background: var(--surface);
  border: 1px solid rgba(216,225,236,0.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero-copy::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,111,235,0.12) 0%, rgba(31,111,235,0) 70%);
  right: -80px;
  top: -60px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}
.hero-text {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: var(--muted);
}

.search-form {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.05rem;
  outline: none;
}
.search-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(31,111,235,0.12);
}
.search-form button,
.button {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 16px 22px;
  font-weight: bold;
  font-size: 1rem;
}
.search-form button,
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
}
.button-secondary {
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.quick-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.quick-actions a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 600;
  color: #234;
}

.weather-card {
  padding: 24px;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.card-title-row h2,
.section-heading h2,
.info-strip h2,
.ad-strip h2 { margin: 0; }
.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.weather-status {
  color: var(--muted);
  min-height: 24px;
}
.weather-box.hidden { display: none; }
.weather-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.weather-city { font-size: 1.25rem; font-weight: bold; }
.weather-desc { color: var(--muted); margin-top: 4px; }
.weather-temp { font-size: 2.8rem; font-weight: bold; }
.weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  margin-bottom: 16px;
}
.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.forecast-day {
  padding: 12px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-align: center;
}
.forecast-day strong {
  display: block;
  margin-bottom: 6px;
}

.section {
  padding: 18px 0 18px;
}
.section-alt { background: rgba(255,255,255,0.35); }
.compact-section { padding-top: 0; }
.section-heading {
  margin-bottom: 18px;
}
.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.info-strip,
.ad-strip {
  padding: 24px;
}
.mini-list {
  margin: 14px 0 0;
  padding-left: 18px;
}
.mini-list li + li { margin-top: 10px; }
.mini-list a { color: var(--brand); }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.link-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 132px;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.link-card strong {
  font-size: 1.08rem;
  margin-bottom: 10px;
}
.link-card span {
  color: var(--muted);
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 36, 64, 0.12);
  border-color: rgba(31,111,235,0.35);
}

.site-footer {
  margin-top: 28px;
  background: #132235;
  color: #eaf2ff;
}
.site-footer p { color: rgba(234,242,255,0.78); margin: 8px 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: #fff;
  opacity: 0.92;
}

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

@media (max-width: 1150px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .hero-inner,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .grid-4,
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 24px; }
  .hero-copy,
  .weather-card,
  .info-strip,
  .ad-strip,
  .link-card { padding: 18px; }
  .search-form {
    flex-direction: column;
  }
  .grid-4,
  .grid-5,
  .forecast { grid-template-columns: 1fr; }
  .weather-main {
    align-items: flex-start;
    flex-direction: column;
  }
  .weather-temp { font-size: 2.3rem; }
  .quick-actions { gap: 8px; }
}
