/* ── Reset & Variables ───────────────────────────────────── */
:root {
  --primary: #0ca5e8;
  --primary-dark: #0888c4;
  --secondary: #5fbae2;
  --bg: #f7f8fa;
  --white: #ffffff;
  --text: #1a1a2e;
  --muted: #5a6480;
  --border: #e2e8f0;
  --card-bg: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  /* System stack avoids Google Fonts network round-trips (biggest PageSpeed win) */
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

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

/* ── Utilities ───────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: background .2s, color .2s;
  letter-spacing: .02em;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

.section-label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: .6rem;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: normal;
  color: var(--primary);
}

.section-intro {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ── Header ──────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 2px 12px rgba(12,165,232,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

header img.logo { height: 42px; width: auto; }

/* Brand wordmark: "uther" sits flush against the "W" logo to read "Wuther" */
.brand { display: inline-flex; align-items: center; }
.brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: white;
  margin-top:12px;
  margin-left:-8px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: rgba(255,255,255,.88);
  font-size: .93rem;
  font-weight: 500;
  transition: color .2s;
}
nav a:hover, nav a.active { color: #fff; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #062d43 0%, #0a4d6e 55%, #0c6ea0 100%);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(12,165,232,.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.6rem;
}
.hero-eyebrow span { color: var(--secondary); }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.3rem;
  letter-spacing: -.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--secondary);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.store-badges { gap: 1.25rem; align-items: center; }

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 6px;
  transition: transform .2s ease, opacity .2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: .92;
}

.store-badge img {
  display: block;
  height: 50px;
  width: auto;
}

/* ── Modal ───────────────────────────────────────────────── */
body.modal-open { overflow: hidden; }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 42, .55);
}

.modal-panel {
  position: relative;
  width: min(100%, 400px);
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .18);
  text-align: center;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}

.modal-text {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

/* ── About strip ─────────────────────────────────────────── */
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-photo {
  margin: 0;
  border-radius: 18px;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

/* ── Services ────────────────────────────────────────────── */
.services {
  padding: 5rem 1.5rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(12,165,232,.12);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: #e0f4fd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.service-icon svg { width: 24px; height: 24px; fill: var(--primary); }

/* ── Glide app-mockup card (second service card) ─────────────
   Recreates the in-app "search a location" preview using the
   site's design tokens instead of a flat screenshot image. */
.glide-card { display: flex; flex-direction: column; gap: 1.1rem; }
.glide-head { display: flex; align-items: center; gap: .9rem; }
.glide-logo { width: 46px; height: 46px; border-radius: 13px; object-fit: cover; }
.glide-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 0;
}
.glide-title span { color: var(--primary); }
.glide-desc {
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

/* Dark search field with leading search icon and trailing send icon */
.glide-search {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #131a2c;
  border-radius: 14px;
  padding: .85rem 1rem;
}
.glide-search-icon, .glide-send-icon { width: 18px; height: 18px; flex-shrink: 0; color: #8b93a7; }
.glide-search-text { flex: 1; color: #fff; font-weight: 600; font-size: .95rem; }

/* Skill / Time selector pills, centred to align with the search field */
.glide-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.glide-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #131a2c;
  border-radius: 999px;
  padding: .55rem .95rem;
  font-size: .82rem;
  color: #aeb6c9;
}
.glide-pill strong { color: #fff; font-weight: 600; }
.glide-pill svg { width: 15px; height: 15px; color: var(--primary); }
.glide-pill .glide-chevron { color: #aeb6c9; }

/* Selected location result row */
.glide-result {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: .2rem;
}
.glide-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f4fd;
  flex-shrink: 0;
}
.glide-result-icon svg { width: 22px; height: 22px; color: var(--primary); }
.glide-result-text { display: flex; flex-direction: column; line-height: 1.3; }
.glide-result-text strong { font-size: 1.05rem; font-weight: 700; }
.glide-result-text span { color: var(--muted); font-size: .85rem; }

/* ── Results forecast card (third service card) ──────────────
   Recreates the scored day preview from results.png. */
.results-card { display: flex; flex-direction: column; gap: 1.25rem; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.results-date { display: flex; flex-direction: column; line-height: 1.25; }
.results-date strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.results-date span {
  margin-top: .2rem;
  color: var(--muted);
  font-size: .95rem;
}
.results-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.results-score-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(12, 165, 232, .14);
  border: 1px solid rgba(12, 165, 232, .45);
  box-shadow: 0 10px 24px rgba(12, 165, 232, .28);
  color: #1e3a8a;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  /* Nudge the number down so it sits optically centred within the circle */
  padding-top: .15rem;
}
.results-score-label {
  margin-top: .45rem;
  color: #1e3a8a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.results-card .results-copy {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.service-card p { color: var(--muted); font-size: .93rem; }
.service-list {
  list-style: none;
  margin-top: .9rem;
}
.service-list li {
  font-size: .88rem;
  color: var(--muted);
  padding: .25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.service-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ── CTA Band ────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #0888c4 0%, #0ca5e8 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
}
.cta-band .section-label { color: rgba(255,255,255,.7); }
.cta-band .section-title { color: #fff; font-size: 2.4rem; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: #0d1b2a;
  color: rgba(255,255,255,.65);
  padding: 4rem 1.5rem 2rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: .83rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ── Inner page hero ─────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #062d43 0%, #0a4d6e 100%);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
}
.page-hero h1 { font-size: 2.6rem; font-weight: 800; margin-bottom: .6rem; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; }

/* ── Content pages ───────────────────────────────────────── */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}
.page-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 .6rem;
}
.page-content p { color: var(--muted); margin-bottom: 1rem; }
.page-content a { color: var(--primary); }

/* ── Contact form ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  padding: 4rem 1.5rem 5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.2rem;
}
.contact-detail-icon {
  width: 40px; height: 40px;
  background: #e0f4fd;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: var(--primary); }
.contact-detail strong { display: block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.contact-detail span { font-size: .95rem; }

.contact-form-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { resize: vertical; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--primary); padding: 1.2rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: 1.7rem; }
  .cta-band .section-title { font-size: 1.8rem; }
}
