:root {
  --color-primary: #0B1F33;
  --color-action: #1677FF;
  --color-energy: #00B8A9;
  --color-solar: #FFB703;
  --color-bg: #F7F9FC;
  --color-card: #FFFFFF;
  --color-text: #17212B;
  --color-muted: #64748B;
  --color-border: #E2E8F0;
  --color-positive: #16A34A;
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow-soft: 0 18px 50px rgba(11, 31, 51, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

a {
  color: var(--color-action);
}

/* ——— Site chrome ——— */
.site-top {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.site-logo img {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(380px, 88vw);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.site-footer-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 2.75rem;
}

.site-footer-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0 0 0.85rem;
}

.site-footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer-links a:hover {
  color: var(--color-action);
}

.site-footer-copy {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

/* ——— Homepage hero (one composition) ——— */
.page-home {
  background: var(--color-primary);
}

.home-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(255, 183, 3, 0.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(0, 184, 169, 0.22), transparent 50%),
    linear-gradient(165deg, #061525 0%, var(--color-primary) 42%, #12324f 100%);
}

.home-hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.home-orb-sun {
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  top: -8%;
  right: -4%;
  background: radial-gradient(circle at 35% 35%, #ffe08a 0%, var(--color-solar) 38%, rgba(255, 183, 3, 0) 72%);
  animation: orb-drift 14s ease-in-out infinite alternate;
}

.home-orb-teal {
  width: min(36vw, 22rem);
  height: min(36vw, 22rem);
  left: -8%;
  bottom: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 184, 169, 0.55), rgba(0, 184, 169, 0));
  animation: orb-drift 18s ease-in-out infinite alternate-reverse;
}

.home-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: min(42vh, 26rem);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  width: min(40rem, 100%);
  padding: 2rem 1.35rem 3.25rem;
  margin: 0 auto 0 0;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 900px) {
  .home-hero {
    align-items: center;
  }

  .home-hero-inner {
    margin-left: clamp(2rem, 8vw, 7rem);
    padding: 3rem 1.5rem;
  }
}

.home-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.25rem;
  line-height: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(6, 21, 37, 0.22);
  text-decoration: none;
}

.home-brand img {
  height: clamp(52px, 8vw, 72px);
  width: auto;
  max-width: min(360px, 88vw);
  filter: none;
  opacity: 1;
}

.home-headline {
  margin: 0 0 0.7rem;
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  font-weight: 800;
  max-width: 14ch;
  color: #ffffff;
}

.home-lede {
  margin: 0 0 1.35rem;
  max-width: 34ch;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.5;
  color: rgba(247, 249, 252, 0.88);
}

.home-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: rgba(247, 249, 252, 0.92);
}

.home-form-row {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .home-form-row {
    grid-template-columns: 1fr auto;
    align-items: stretch;
  }
}

.home-form input[type="text"] {
  width: 100%;
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.02rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-form input[type="text"]:focus {
  border-color: var(--color-action);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.28);
}

.home-form button {
  padding: 0.95rem 1.35rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-action);
  color: #fff;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 28px rgba(22, 119, 255, 0.28);
}

.home-form button:hover {
  background: #0f6aef;
  transform: translateY(-1px);
}

.home-form button:active {
  transform: translateY(0);
}

.home-fine {
  margin: 0.75rem 0 0;
  color: rgba(247, 249, 252, 0.65);
  font-size: 0.92rem;
}

/* Secondary section — one job */
.home-next {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.home-next-inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.35rem;
  animation: rise-in 0.7s ease both;
  animation-delay: 0.15s;
}

.home-next h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--color-primary);
}

.home-next p {
  margin: 0 0 1rem;
  color: var(--color-muted);
  max-width: 36ch;
}

.home-next-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-action);
}

.home-next-link:hover {
  color: var(--color-primary);
}

.page-home .site-footer {
  background: #fff;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-12px, 18px, 0) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-inner,
  .home-next-inner,
  .home-orb-sun,
  .home-orb-teal {
    animation: none !important;
  }
}

/* ——— Shared address autocomplete ——— */
.addr-ac-wrap {
  position: relative;
  width: 100%;
}

.addr-ac-wrap input {
  margin-bottom: 0 !important;
}

.addr-ac-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  max-height: 16rem;
  overflow: auto;
  color: var(--color-text);
}

.addr-ac-item {
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  display: grid;
  gap: 0.1rem;
}

.addr-ac-item:hover,
.addr-ac-item.is-active {
  background: rgba(22, 119, 255, 0.08);
}

.addr-ac-main {
  font-weight: 600;
  color: var(--color-text);
}

.addr-ac-sec {
  font-size: 0.85rem;
  color: var(--color-muted);
}
