/* Coastal Grid Energy Partners — site styles */

:root {
  --ocean: #0369A1;
  --ocean-deep: #024e79;
  --aqua: #06B6D4;
  --paper: #F8FAFC;
  --ink: #0C1B2A;
  --ink-soft: #35485c;
  --line: rgba(12, 27, 42, 0.12);
  --radius: 12px;
  --font-head: "Zilla Slab", serif;
  --font-body: "Raleway", arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

img, svg { max-width: 100%; }

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 4px;
}

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

.narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(100deg, var(--ocean) 10%, var(--aqua) 95%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(3, 105, 161, 0.28);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(3, 105, 161, 0.34); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(248, 250, 252, 0.55);
}

.btn-ghost:hover { background: rgba(248, 250, 252, 0.12); }

.btn-nav {
  background: linear-gradient(100deg, var(--ocean) 10%, var(--aqua) 95%);
  color: #fff;
  padding: 0.5rem 1.2rem;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.logo-accent { color: var(--ocean); font-weight: 500; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-menu a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-menu a:not(.btn):hover { color: var(--ocean); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero — full-bleed photo under ocean gradient scrim */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 76vh;
  background:
    radial-gradient(80rem 40rem at 110% -20%, rgba(6, 182, 212, 0.35), transparent 60%),
    linear-gradient(150deg, rgba(2, 42, 64, 0.92) 0%, rgba(2, 78, 121, 0.82) 45%, rgba(3, 105, 161, 0.62) 100%),
    url("https://images.unsplash.com/photo-1497435334941-8c899ee9e8e9?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: 7.5rem 8rem;
  max-width: 44rem;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .hero-inner { margin-left: max(calc((100% - 1120px) / 2 + 1.5rem), 1.5rem); }
}

.hero-kicker {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(248, 250, 252, 0.92);
  max-width: 38rem;
  margin-bottom: 2rem;
}

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

/* Sections */
.section { padding-block: 6rem; }

/* About — side-by-side text + photo */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 36px rgba(3, 105, 161, 0.18);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(3, 105, 161, 0.18), rgba(6, 182, 212, 0.06));
  pointer-events: none;
}

.about-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-photo img { aspect-ratio: 16 / 10; }
}

/* Wide photo bands */
.photo-band {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.photo-band img {
  display: block;
  width: 100%;
  height: clamp(240px, 38vw, 420px);
  object-fit: cover;
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(2, 78, 121, 0.35), rgba(6, 182, 212, 0.12));
  pointer-events: none;
}

.photo-band-thin img { height: clamp(180px, 24vw, 280px); }

.section-kicker {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.8rem;
}

.section-kicker-light { color: #67e8f9; }

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1.1rem;
}

.section p + p { margin-top: 1rem; }

.section-intro {
  color: var(--ink-soft);
  max-width: 44rem;
  margin-bottom: 2.6rem;
}

/* Services — glassy cards on tinted band */
.section-tinted {
  background:
    radial-gradient(50rem 26rem at 85% 0%, rgba(6, 182, 212, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(3, 105, 161, 0.12), rgba(6, 182, 212, 0.10));
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.4rem;
}

.card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(3, 105, 161, 0.14);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--ocean);
  background: linear-gradient(140deg, rgba(3, 105, 161, 0.14), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(3, 105, 161, 0.18);
  margin-bottom: 1.1rem;
}

.card-icon svg { width: 26px; height: 26px; }

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.6rem;
}

.card p { font-size: 0.95rem; color: var(--ink-soft); }

/* Engagement model — stepped band */
.engagement {
  color: #fff;
  background:
    radial-gradient(60rem 30rem at 0% 0%, rgba(6, 182, 212, 0.28), transparent 55%),
    linear-gradient(135deg, #062a40 0%, var(--ocean-deep) 55%, var(--ocean) 100%);
}

.engagement h2.light, .engagement .light { color: #fff; }
.engagement .section-intro.light { color: rgba(248, 250, 252, 0.85); }

.engagement-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.6rem;
  align-items: center;
  margin-bottom: 2.8rem;
}

.engagement-head .section-intro { margin-bottom: 0; }

.engagement-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(248, 250, 252, 0.28);
  box-shadow: 0 14px 36px rgba(2, 20, 32, 0.4);
}

.engagement-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (max-width: 820px) {
  .engagement-head { grid-template-columns: 1fr; gap: 2rem; }
}

.phases {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: phase;
  align-items: start;
}

.phase {
  position: relative;
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  background: rgba(248, 250, 252, 0.08);
  border: 1px solid rgba(248, 250, 252, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.phase-2 { margin-top: 2.2rem; }
.phase-3 { margin-top: 4.4rem; }

.phase-num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(100deg, #67e8f9, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.7rem;
}

.phase h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.phase p { font-size: 0.95rem; color: rgba(248, 250, 252, 0.85); }

@media (max-width: 820px) {
  .phases { grid-template-columns: 1fr; }
  .phase-2, .phase-3 { margin-top: 0; margin-left: 1.6rem; }
  .phase-3 { margin-left: 3.2rem; }
}

@media (max-width: 540px) {
  .phase-2, .phase-3 { margin-left: 0; }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.6rem;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: 0 8px 24px rgba(12, 27, 42, 0.06);
}

.field { margin-bottom: 1.2rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ocean);
}

.field input[type="file"] { font-size: 0.9rem; }

.field-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.field-check input { margin-top: 0.3rem; flex-shrink: 0; }

.field-check label { font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }

.form-status {
  margin-top: 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-status.ok { color: #047857; }
.form-status.err { color: #b91c1c; }

.contact-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.12);
  margin-bottom: 1.4rem;
}

.contact-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact-info h3 { font-size: 1.2rem; margin-bottom: 0.9rem; }

.contact-info address { font-style: normal; margin-bottom: 1.4rem; }

.contact-info address p + p { margin-top: 0.8rem; }

.contact-info h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ocean);
  margin-bottom: 0.6rem;
}

.hours { border-collapse: collapse; width: 100%; max-width: 22rem; font-size: 0.95rem; }

.hours th, .hours td {
  text-align: left;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}

.hours th { font-weight: 600; padding-right: 1.5rem; }

/* Newsletter */
.newsletter {
  color: #fff;
  background: linear-gradient(110deg, var(--ocean) 0%, var(--aqua) 100%);
  padding-block: 3.6rem;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 820px) {
  .newsletter-inner { grid-template-columns: 1fr; }
}

.newsletter h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }

.newsletter p { color: rgba(248, 250, 252, 0.92); }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.newsletter-form input[type="email"] {
  flex: 1 1 14rem;
  font: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
}

.newsletter-form .btn-primary {
  background: var(--ink);
  box-shadow: none;
}

.newsletter-form .form-status { flex-basis: 100%; margin-top: 0; }
.newsletter-form .form-status.ok { color: #d1fae5; }
.newsletter-form .form-status.err { color: #fecdd3; }

.microcopy {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.8) !important;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(248, 250, 252, 0.8);
  padding-block: 2.8rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
}

.footer-loc { font-size: 0.88rem; }

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
}

.footer-links a {
  color: rgba(248, 250, 252, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { color: #67e8f9; }

.footer-copy { font-size: 0.85rem; flex-basis: 100%; }

/* Legal pages */
.legal-main { padding-block: 4rem 5rem; }

.legal-main .container { max-width: 46rem; }

.legal-main h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.4rem; }

.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2.2rem; }

.legal-main h2 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }

.legal-main p + p { margin-top: 0.9rem; }

.legal-main ul { margin: 0.7rem 0 0.7rem 1.3rem; }

.legal-main li + li { margin-top: 0.35rem; }

/* Mobile nav */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.5rem 1.2rem;
    box-shadow: 0 12px 24px rgba(12, 27, 42, 0.1);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 0.7rem 0;
    font-size: 1.05rem;
  }

  .nav-menu .btn-nav { margin-top: 0.6rem; display: inline-block; }

  .hero { min-height: 62vh; }

  .hero-inner { padding-block: 5rem 5.5rem; }

  .section { padding-block: 3.8rem; }
}
