@import "./variables.css";
@import "./base.css";
@import "./components.css";

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

/* Hero */

.hero {
  position: relative;
  padding: 1.5rem 0 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(216, 168, 16, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(0, 40, 104, 0.045) 1px, transparent 1px),
    var(--off-white);
  background-size: 56px 56px, 56px 56px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), transparent 70%);
  pointer-events: none;
}


.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.hero-copy {
  max-width: 36rem;
  padding: 1.25rem 0 1.5rem 1.15rem;
  border-left: 1px solid var(--gold);
}

.hero-kicker {
  font-family: var(--font-display);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: var(--fs-hero);
}

.hero h1 span {
  display: block;
}

.hero-lead {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: var(--fs-lead);
  max-width: 34rem;
}

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

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 5px;
  isolation: isolate;
  background: var(--navy-deep);
  padding: 5px;
  border-left: 3px solid var(--gold);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  min-height: 0;
  background: var(--navy-deep);
}

.hero-frame--main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}

.hero-frame--side {
  aspect-ratio: 4 / 3;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.85s var(--ease);
}

.hero-slides img.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-frame--solar .hero-slides img {
  object-position: center 32%;
}

.hero-frame figcaption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  background: rgba(0, 18, 48, 0.82);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-left: 2px solid var(--gold);
}

.hero-frame figcaption svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gold);
}

@media (min-width: 900px) {
  .hero {
    padding: 1.75rem 0 0;
  }

  .hero-grid {
    grid-template-columns: minmax(18rem, 28rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }

  .hero-copy {
    display: block;
    padding: 0.35rem 0.25rem 2rem 1.1rem;
  }

  .hero-visual {
    grid-template-columns: 1.45fr 0.9fr;
    grid-template-rows: 1fr 1fr;
    height: 36rem;
    min-height: 36rem;
    margin-right: calc(-1 * var(--gutter));
  }

  .hero-frame--main {
    grid-column: 1;
    grid-row: 1 / 3;
    aspect-ratio: auto;
    height: 100%;
  }

  .hero-frame--side {
    aspect-ratio: auto;
    height: 100%;
  }
}

@media (min-width: 1200px) {
  .hero-visual {
    height: 40rem;
    min-height: 40rem;
  }
}

/* Trust strip */

.trust {
  background: var(--navy);
  color: var(--text-on-dark);
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.trust-item {
  padding: 1.4rem 1.15rem 1.5rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.trust-item:nth-child(odd) {
  padding-right: 1.1rem;
  border-right: 1px solid var(--border-dark);
}

.trust-item:nth-child(even) {
  padding-left: 1.1rem;
}

.trust-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.trust-item svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.trust-item p {
  color: rgba(232, 236, 242, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-item,
  .trust-item:nth-child(odd),
  .trust-item:nth-child(even) {
    padding: 1.85rem 1.6rem 1.95rem 0;
    border-right: 1px solid var(--border-dark);
    border-bottom: 0;
  }

  .trust-item:last-child {
    border-right: 0;
  }
}

/* Services */

.services {
  padding: var(--section-y) 0;
}

.service-layout {
  display: grid;
  gap: 1.75rem;
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.service-btn {
  width: 100%;
  text-align: left;
  padding: 1.35rem 0 1.4rem;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.6rem 0.9rem;
  position: relative;
}

.service-btn::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--gold);
  transition: height var(--dur) var(--ease);
}

.service-btn.is-active::after,
.service-btn:hover::after {
  height: 100%;
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--gold-muted);
  padding-top: 0.2rem;
}

.service-btn h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.service-btn p {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

.service-points {
  grid-column: 2;
  display: none;
  margin-top: 0.35rem;
  columns: 1;
}

.service-btn.is-active .service-points {
  display: grid;
  gap: 0.35rem;
}

.service-points li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.9rem;
  color: var(--navy);
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 1px;
  background: var(--gold);
}

.service-stage {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
  background: var(--navy-deep);
}

.service-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}

.service-stage img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.service-stage-label {
  position: absolute;
  z-index: 2;
  left: 1rem;
  bottom: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 960px) {
  .service-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: stretch;
  }

  .service-stage {
    min-height: 100%;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    height: calc(100svh - var(--header-h) - 2.5rem);
    max-height: 38rem;
  }
}

/* About */

.about {
  padding: 0 0 var(--section-y);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}

.about-copy {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 2px solid var(--gold);
}

.about-copy h2,
.contact h2 {
  margin-top: 0.7rem;
  margin-bottom: 1.1rem;
}

.about-copy p + p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.about-visual {
  min-height: 18rem;
  overflow: hidden;
  position: relative;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 18rem;
}

.about-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gold);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .about-visual img {
    min-height: 28rem;
  }
}

/* Why */

.why {
  background: var(--navy-deep);
  color: var(--text-on-dark);
  padding: var(--section-y) 0;
}

.why .eyebrow {
  color: var(--gold);
}

.why h2 {
  color: var(--white);
  font-size: var(--fs-h2);
  max-width: 18ch;
  margin-top: 0.7rem;
  margin-bottom: 2.5rem;
}

.why-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(216, 168, 16, 0.35);
}

.why-item {
  padding: 1.5rem 0 1.6rem;
  border-bottom: 1px solid rgba(216, 168, 16, 0.28);
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
}

.why-item svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--gold);
  margin-top: 0.15rem;
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.why-item p {
  color: rgba(232, 236, 242, 0.7);
  max-width: 28rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
  }
}

/* Process */

.process {
  padding: var(--section-y) 0;
}

.process-steps {
  display: grid;
  gap: 0;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.8rem;
  padding: 0 0 1.6rem;
  position: relative;
}

.process-step::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 1.7rem;
  bottom: 0;
  width: 1px;
  background: var(--gold);
}

.process-step:last-child::before {
  display: none;
}

.step-index {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  background: var(--off-white);
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.process-step p {
  color: var(--text-muted);
  max-width: 28rem;
}

@media (min-width: 860px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .process-steps::before {
    content: "";
    position: absolute;
    left: 1.05rem;
    right: 1.05rem;
    top: 1.05rem;
    height: 1px;
    background: var(--gold);
  }

  .process-step {
    display: block;
    padding: 0;
  }

  .process-step::before {
    display: none;
  }

  .step-index {
    margin-bottom: 1rem;
  }
}

/* Industries */

.industries {
  padding: 0 0 var(--section-y);
}

.industry-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.industry-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.industry-list li {
  padding: 0.95rem 0.85rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--navy);
}

.industry-list li:nth-child(2n) {
  border-right: 0;
}

@media (min-width: 800px) {
  .industry-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .industry-list li:nth-child(2n) {
    border-right: 1px solid var(--border);
  }

  .industry-list li:nth-child(4n) {
    border-right: 0;
  }
}

/* CTA */

.cta-band {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(216, 168, 16, 0.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(216, 168, 16, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.cta-band h2 {
  color: var(--white);
  font-size: var(--fs-display);
  max-width: 12ch;
}

.cta-band p {
  max-width: 32rem;
  color: rgba(232, 236, 242, 0.78);
}

.cta-band .gold-rule {
  width: 3rem;
  height: 2px;
  background: var(--gold);
}

@media (min-width: 800px) {
  .cta-inner {
    grid-template-columns: 1.3fr auto;
    align-items: end;
  }
}

/* Contact */

.contact {
  padding: var(--section-y) 0;
}

.contact-grid {
  display: grid;
  gap: 2.25rem;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-line {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-line svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--navy);
  margin-top: 0.15rem;
}

.contact-line small {
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 0.15rem;
}

.contact-line a,
.contact-line span {
  color: var(--navy);
  font-weight: 550;
  overflow-wrap: anywhere;
}

.contact-line a:hover {
  color: var(--gold-muted);
}

.contact-form-wrap {
  background: var(--white);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 3.5rem;
    align-items: start;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    display: grid;
  }

  .hero-actions .btn,
  .form .btn,
  .cta-inner .btn {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-slides img {
    transition: none;
  }
}
