/* ===== T&P Energy Advisors — Style ===== */
/* Brand: Primary #E63946, Secondary #1D3557, Accent #F4A261, Background #F1FAEE */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #F1FAEE;
  color: #1D3557;
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: #E63946;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #c42e3a;
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Header / Logo Bar --- */
.flappy-header {
  background: #1D3557;
  color: #F1FAEE;
  padding: 0.75rem 0;
  border-bottom: 4px solid #E63946;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.flappy-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.logo-text small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.04em;
}

.header-tagline {
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.85;
  display: none;
}
@media (min-width: 640px) {
  .header-tagline {
    display: inline;
  }
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #1D3557 0%, #284b7a 100%);
  color: #F1FAEE;
  padding: 4rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 60px;
  background: #F1FAEE;
  clip-path: ellipse(70% 100% at 50% 100%);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  color: #F4A261;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  opacity: 0.92;
  line-height: 1.5;
}

.hero-cta {
  display: inline-block;
  background: #E63946;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}
.hero-cta:hover,
.hero-cta:focus {
  background: #c42e3a;
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.hero-cta small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.hero-brand {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 2.75rem auto 0;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 0 4rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero-sub {
    font-size: 1rem;
  }
}

/* --- Section Shared --- */
.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #1D3557;
}
.section-sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #555;
  font-size: 1.05rem;
}

.section--light {
  background: #fff;
}

.section--accent-bg {
  background: linear-gradient(180deg, #F1FAEE 0%, #e2f0db 100%);
}

/* --- Service Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  border-top: 4px solid #F4A261;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card--featured {
  border-top-color: #E63946;
  transform: scale(1.03);
}
.card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #E63946;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.card__icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #1D3557;
}

.card__price {
  font-size: 2rem;
  font-weight: 800;
  color: #E63946;
  margin-bottom: 1rem;
}
.card__price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
}

.card__desc {
  font-size: 0.92rem;
  color: #444;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card__features {
  list-style: none;
  margin-bottom: 1.5rem;
}
.card__features li {
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.card__features li::before {
  content: "✔";
  color: #1D3557;
  font-weight: 700;
  font-size: 0.75rem;
}
.card__features li:last-child {
  border-bottom: none;
}

.card__btn {
  display: block;
  text-align: center;
  background: #1D3557;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
  margin-top: auto;
}
.card__btn:hover,
.card__btn:focus {
  background: #14273f;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 640px) {
  .card--featured {
    transform: none;
  }
  .card--featured:hover {
    transform: translateY(-4px);
  }
}

/* --- Lead Form --- */
.form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.urgency-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #1D3557;
  background: #F1FAEE;
  border-left: 4px solid #F4A261;
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  text-align: center;
}

.urgency-note strong {
  color: #E63946;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #1D3557;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: #F1FAEE;
  color: #1D3557;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #E63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: #E63946;
}

.form-group .field-error {
  font-size: 0.8rem;
  color: #E63946;
  margin-top: 0.2rem;
  display: none;
}
.form-group .field-error.visible {
  display: block;
}

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

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.9rem;
  background: #E63946;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-primary:hover {
  background: #c42e3a;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.form-success {
  display: none;
  text-align: center;
  padding: 1rem;
  color: #1D3557;
  font-weight: 600;
}
.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  text-align: center;
  padding: 1rem;
  margin-top: 1rem;
  color: #E63946;
  font-weight: 600;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.35);
  border-radius: 8px;
}
.form-error.visible {
  display: block;
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

details.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

details.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: #1D3557;
  user-select: none;
}
details.faq-item summary::-webkit-details-marker {
  display: none;
}
details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #E63946;
  transition: transform 0.2s ease;
  line-height: 1;
}
details.faq-item[open] summary::after {
  content: "−";
}

details.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-cta {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: linear-gradient(180deg, #152743 0%, #1D3557 100%);
  color: rgba(241, 250, 238, 0.82);
  padding: 3.5rem 0 0;
  font-size: 0.9rem;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #E63946, #F4A261) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem 3rem;
  text-align: left;
  padding-bottom: 2.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-tagline {
  margin: 1.1rem 0 0;
  line-height: 1.6;
  font-size: 0.9rem;
  max-width: 300px;
  color: rgba(241, 250, 238, 0.7);
}

.footer-heading {
  color: #F4A261;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0.3rem 0 1.1rem;
}

.footer-contact,
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li + li,
.footer-links li + li {
  margin-top: 0.8rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #F4A261;
}

.contact-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke: #F4A261;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links a {
  color: rgba(241, 250, 238, 0.82);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #F4A261;
  padding-left: 4px;
}

.footer-links .back-top {
  color: #F4A261;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(241, 250, 238, 0.12);
  padding: 1.5rem 0 2rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.site-footer .disclaimer {
  font-style: italic;
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 2.75rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-bottom: 2rem;
  }
  .footer-tagline {
    max-width: none;
  }
}
