/* ---------------------------------------------------------------
   The Solar Shingle Co. — landing page
   Palette and type pulled from the Figma slide:
   gold #b29e61 · teal #7ac4b6 · ink #111 · gray #797979
   Albert Sans (display/body) · Barlow (eyebrows, stats)
--------------------------------------------------------------- */

:root {
  --gold: #b29e61;
  --gold-soft: #c8b67e;
  --teal: #7ac4b6;
  --teal-tint: rgba(122, 196, 182, 0.2);
  --ink: #111110;
  --gray: #797979;
  --paper: #ffffff;
  --font-sans: "Albert Sans", system-ui, -apple-system, sans-serif;
  --font-accent: "Barlow", var(--font-sans);
  --container: 1160px;
  --radius: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---- Buttons ------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8em 1.5em;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease,
    border-color 160ms ease;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #33322e;
}

.btn-ghost {
  border-color: #fff;
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ---- Header --------------------------------------------------- */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-block: 1.5rem;
}

.brand img {
  width: 167px;
  height: auto;
  /* Black logo art, inverted to white over the dark hero video */
  filter: invert(1);
}

.site-nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.site-nav a {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.site-nav a:hover {
  border-bottom-color: #fff;
}

/* ---- Hero ------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(85vh, 860px);
  background: var(--gold);
  padding-top: clamp(8rem, 16vh, 11rem);
}

/* Background video, dimmed by the ::before scrim so the copy stays
   readable; the gold background remains as a loading fallback. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 17, 16, 0.45) 0%, rgba(17, 17, 16, 0.05) 65%),
    linear-gradient(180deg, rgba(17, 17, 16, 0.5) 0%, rgba(17, 17, 16, 0.3) 55%, rgba(17, 17, 16, 0.45) 100%);
}

/* Teal glow roaming over the dimmed video, kept from the gradient hero */
.hero::after {
  content: "";
  position: absolute;
  top: -45%;
  left: -25%;
  z-index: 1;
  width: clamp(760px, 95vw, 1500px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.45;
  background: radial-gradient(closest-side, rgba(122, 196, 182, 0.85) 0%, rgba(122, 196, 182, 0) 70%);
  animation: glow-roam 26s ease-in-out infinite;
  will-change: transform;
}

@keyframes glow-roam {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(45%, 8%, 0) scale(1.12);
  }
  50% {
    transform: translate3d(70%, 30%, 0) scale(0.95);
  }
  75% {
    transform: translate3d(18%, 38%, 0) scale(1.08);
  }
}

.hero-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 7vh, 5rem);
}

.hero-copy {
  animation: rise-in 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  color: #fff;
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 5.2vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}

.hero-sub {
  color: #fff;
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

/* Teal band under the hero */
.hero-band {
  position: relative;
  z-index: 2;
  background: var(--teal);
}

.band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 1.1rem;
}

.band-title,
.band-sub {
  margin: 0;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.band-title {
  font-weight: 600;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
}

.band-sub {
  font-weight: 500;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

/* ---- Sections --------------------------------------------------- */

.section {
  padding-block: clamp(3.5rem, 9vh, 6rem);
}

.section-tint {
  background: var(--teal-tint);
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 28ch;
  text-wrap: balance;
}

.section-lede {
  margin: 0;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
  max-width: 62ch;
}

/* ---- Solution features ------------------------------------------ */

.feature-grid {
  --feature-gap: clamp(1.5rem, 3.5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--feature-gap);
  margin-top: 2.5rem;
}

.feature {
  position: relative;
}

.feature-head {
  display: flex;
  align-items: center;
  height: 64px;
  margin-bottom: 1.25rem;
}

.feature-icon {
  height: 56px;
  width: auto;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.feature h3 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---- Team -------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4.5rem);
  margin-top: 2.5rem;
}

.person {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
}

.person-photo {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.person-name {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.person-role {
  color: var(--gray);
  font-weight: 500;
}

.person-bio {
  margin: 0;
  font-weight: 400;
  font-size: 1.02rem;
  color: rgba(17, 17, 16, 0.8);
}

.linkedin {
  display: inline-flex;
  margin-left: 0.35rem;
  vertical-align: -2px;
  color: var(--gray);
  transition: color 160ms ease;
}

.linkedin svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.linkedin:hover,
.linkedin:focus-visible {
  color: var(--ink);
}

/* ---- Investor callout -------------------------------------------- */

.section-callout {
  padding-top: clamp(2.5rem, 6vh, 4.5rem);
  padding-bottom: clamp(6rem, 12vh, 8.5rem);
}

.callout {
  border: 1px solid var(--teal);
  background: var(--teal-tint);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.callout h2 {
  margin-bottom: 1rem;
}

.callout-intro p {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  max-width: 44ch;
}

.callout-note {
  font-weight: 600;
}

.callout-intro .callout-alt {
  font-size: 1rem;
  color: rgba(17, 17, 16, 0.75);
}

.callout-alt a {
  color: inherit;
}

/* Contact form */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(17, 17, 16, 0.35);
  border-radius: var(--radius);
  padding: 0.65em 0.75em;
  width: 100%;
}

/* Custom chevron in place of the native dropdown arrow */
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23111110' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  background-size: 12px 8px;
  padding-right: 2.6em;
  cursor: pointer;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

.contact-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
}

/* ---- Footer -------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 1.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.footer-inner p {
  margin: 0;
  font-size: 1rem;
}

.footer-inner a {
  color: inherit;
}

.footer-domain {
  font-weight: 600;
}

/* ---- Responsive: tablet ------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* ---- Responsive: mobile -------------------------------------------- */

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

  .header-inner {
    justify-content: space-between;
  }

  .brand img {
    width: 132px;
  }

  .hero {
    padding-top: 7.5rem;
  }

  .band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* ---- Motion preferences --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero::after,
  .hero-copy {
    animation: none;
  }
}
