/* Panhandle Solar Group — site styles */

:root {
  --navy: #1b2a4a;
  --navy-dark: #131f38;
  --gold: #e8c144;
  --gold-dark: #d4ac2b;
  --sky-blue: #5b8fc7;
  --text: #2b2b2b;
  --text-light: #5a5a5a;
  --bg: #ffffff;
  --border: #dcdcdc;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a {
  color: var(--sky-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Header / Nav */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: relative;
  z-index: 10;
}

.brand img {
  height: 56px;
  width: auto;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.main-nav a {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 500;
}

nav.main-nav a.current {
  border-bottom: 2px solid var(--navy);
  padding-bottom: 4px;
}

nav.main-nav a.faq-link {
  border: 1px solid var(--navy);
  padding: 6px 14px;
  border-radius: 2px;
}

nav.main-nav a.faq-link:hover {
  text-decoration: none;
  background: var(--navy);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy);
  cursor: pointer;
}

@media (max-width: 780px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  nav.main-nav.open {
    display: flex;
  }
  nav.main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }
  nav.main-nav a.faq-link {
    padding: 14px 24px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  .nav-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(19, 31, 56, 0.72), rgba(19, 31, 56, 0.4));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 820px;
  margin: 0;
}

.hero.hero-sm {
  min-height: 220px;
}

/* Sections */
section {
  padding: 64px 0;
}

section.alt {
  background: #f7f8fa;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-image {
    order: -1;
  }
}

.split-image img {
  border-radius: 4px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split-text h2 {
  color: var(--navy);
  font-size: 1.8rem;
  margin-top: 0;
}

.split-text ul {
  padding-left: 20px;
}

.split-text li {
  margin-bottom: 10px;
}

.split-text a {
  color: var(--sky-blue);
}

/* Contact section */
.contact-section {
  background: var(--gold);
  color: var(--navy-dark);
}

.contact-section .split {
  align-items: stretch;
}

.contact-intro h2 {
  color: #fff;
  font-size: 2rem;
}

.contact-intro p {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.contact-section .split-image img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.field label .req {
  font-weight: 400;
  font-style: italic;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--navy-dark);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: #fdfdf5;
}

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

button.submit-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  align-self: flex-start;
}

button.submit-btn:hover {
  background: var(--navy-dark);
}

button.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  font-weight: 600;
  min-height: 1.4em;
}

.form-status.success {
  color: #1b5e20;
}

.form-status.error {
  color: #8a1c1c;
}

/* Team */
.team-grid {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

.team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.team-member:last-child {
  border-bottom: none;
}

@media (max-width: 640px) {
  .team-member {
    grid-template-columns: 120px 1fr;
  }
}

.team-member img {
  border-radius: 6px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-member h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.3rem;
}

.team-member .title {
  color: var(--sky-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-member ul {
  padding-left: 18px;
  margin: 0 0 12px;
}

/* Press */
.press-list {
  margin-top: 24px;
}

.press-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.press-item .date {
  font-weight: 700;
  color: var(--navy);
}

.press-item ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #cfd6e4;
  padding: 40px 0;
  text-align: center;
}

footer.site-footer img {
  height: 40px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

footer.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}
