/* ============================================
   Covamp Renewables — shared styles
   ============================================ */

:root {
  --navy: #051a2d;
  --green: #6a9732;
  --green-soft: #7fae42;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --border-soft: rgba(255, 255, 255, 0.12);
  --max-width: 1200px;
  --radius: 6px;

  --surface-card: rgba(255, 255, 255, 0.03);
  --surface-pill: rgba(255, 255, 255, 0.06);
  --divider-strong: rgba(255, 255, 255, 0.25);
  --green-tint-15: rgba(106, 151, 50, 0.15);
  --navy-scrim-90: rgba(5, 26, 45, 0.9);
  --navy-scrim-55: rgba(5, 26, 45, 0.55);
  --navy-scrim-15: rgba(5, 26, 45, 0.15);

  --font-display: "Sora", Verdana, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Work Sans", Verdana, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-logo {
  font-family: var(--font-display);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: linear-gradient(to bottom, var(--navy-scrim-90), transparent);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.nav-logo-icon {
  height: 22px;
  width: auto;
}

.nav-logo span {
  color: var(--green-soft);
}

.nav-links {
  display: flex;
  gap: 4px;
  background: var(--surface-pill);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a.active {
  background: var(--green);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--navy) 5%, var(--navy-scrim-15) 55%, var(--navy-scrim-55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 56px;
}

.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 560px;
}

.accent {
  color: var(--green-soft);
}

.hero-side {
  max-width: 260px;
  text-align: right;
}

.hero-side p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- Section labels ---------- */
.section {
  padding: 90px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 48px;
  max-width: 560px;
}

.page-header-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.card {
  background: var(--navy);
  padding: 32px;
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 24px;
  color: var(--green-soft);
}

.card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* ---------- Footer CTA ---------- */
.footer-cta {
  background: var(--green);
  padding: 40px 0 20px;
}

.footer-cta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-cta h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
}

.footer-contact {
  text-align: right;
  font-size: 13px;
}

.footer-contact a {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-contact a.btn {
  display: inline-flex;
  color: var(--white);
}

.footer-contact a.btn:hover {
  text-decoration: none;
}

.footer-contact a.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  background: var(--navy);
  border-radius: var(--radius);
  color: var(--white);
  transition: opacity 0.2s ease;
}

.footer-contact a.footer-social:hover {
  opacity: 0.85;
  text-decoration: none;
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--divider-strong);
  font-size: 12px;
  color: var(--navy);
}

.footer-bottom span a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom span a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a.active {
  text-decoration: underline;
  font-weight: 700;
}

/* ---------- Contact page ---------- */
.contact-header {
  padding: 160px 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas:
    "label   ."
    "top     sidebar"
    "bottom  .";
  gap: 12px 24px;
  padding-bottom: 80px;
}

#contact-form {
  display: contents;
}

#contact-form[hidden] {
  display: none;
}

.contact-grid .section-label {
  grid-area: label;
  margin-bottom: 0;
}

.contact-form-top {
  grid-area: top;
}

.contact-form-top > input.field {
  margin-bottom: 0;
}

.contact-form-bottom {
  grid-area: bottom;
}

.contact-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
}

.contact-success {
  grid-column: 1;
  grid-row: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  min-height: 360px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-card);
  padding: 48px 40px;
}

.contact-success[hidden] {
  display: none;
}

.success-check-ring {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
}

.success-check-mark {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-logo-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 10px 16px;
  display: inline-flex;
}

.success-logo {
  height: 26px;
  width: auto;
}

.success-message {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
  margin: 0;
}

.scale-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.scale-option {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  background: var(--surface-card);
  transition: all 0.15s ease;
}

.scale-option input {
  display: none;
}

.scale-option .label {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.scale-option .sub {
  font-size: 12px;
  color: var(--muted);
}

.scale-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-tint-15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 12px;
}

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

textarea.field {
  resize: vertical;
  min-height: 110px;
}

.field:focus,
.scale-option:focus-within {
  outline: 2px solid var(--green-soft);
  outline-offset: 1px;
}

.submit-btn {
  width: 100%;
  justify-content: center;
}

.info-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 11px;
  background: var(--surface-card);
}

.info-card .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.info-card .v {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- About page ---------- */
.about-header {
  padding: 160px 0 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 90px;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  height: 560px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-point {
  margin-bottom: 32px;
}

.about-point .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.about-point h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.about-point p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.about-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 90px;
}

.about-cta h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    padding: 18px 20px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border: 1px solid var(--border-soft);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 8px;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 15px;
    border-radius: var(--radius);
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .cards,
  .about-grid,
  .form-row,
  .scale-options {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "top"
      "bottom"
      "sidebar";
  }
  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-side {
    text-align: left;
  }
  .footer-cta-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    text-align: left;
  }
  .about-photo {
    height: 320px;
  }
  .contact-success {
    min-height: 0;
  }
}
