/* =========================================================
   SouthernFinanceGuide — main stylesheet
   Color scheme: deep navy blue, eucalyptus green, white,
   light gray, subtle gold accents.
   ========================================================= */

:root {
  --navy: #0e2a47;
  --navy-dark: #081a2e;
  --eucalyptus: #4f8f78;
  --eucalyptus-dark: #3c6e5c;
  --white: #ffffff;
  --light-gray: #f2f4f6;
  --mid-gray: #c7ccd1;
  --text-gray: #4a4f55;
  --gold: #c7a052;
  --radius: 8px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text-gray);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3 {
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

.section-label {
  display: inline-block;
  color: var(--eucalyptus-dark);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

section {
  padding: 72px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--eucalyptus);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--eucalyptus-dark);
}

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: #b38f3f;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ---------- Real photos (16:9) ---------- */
.hero-media img,
.about-media img,
.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  background: var(--light-gray);
}

.hero-media img {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.about-media img,
.feature-media img {
  box-shadow: 0 12px 30px rgba(14, 42, 71, 0.15);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
#site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: relative;
}

.site-logo {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.site-logo span {
  color: var(--gold);
}

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

.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.nav-cta {
  background: var(--eucalyptus);
  color: var(--white) !important;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--eucalyptus-dark) !important;
  color: var(--white) !important;
}

/* Burger controls — hidden on desktop */
.burger-checkbox,
.burger-label {
  display: none;
}

/* =========================================================
   Hero
   ========================================================= */
#home {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 90px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--mid-gray);
  font-size: 1.1rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* =========================================================
   About
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-list {
  margin-top: 20px;
}

.about-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.about-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--eucalyptus);
  font-weight: 700;
}

#about {
  background: var(--light-gray);
}

/* =========================================================
   Content feature sections (Budgeting / Investing / Planning)
   ========================================================= */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--mid-gray);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse .feature-text {
  order: 2;
}

.feature-row.reverse .feature-media {
  order: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--eucalyptus);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-list {
  margin-top: 16px;
}

.feature-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  color: var(--text-gray);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* =========================================================
   Testimonials
   ========================================================= */
#testimonials {
  background: var(--navy);
  color: var(--white);
}

#testimonials .section-head h2 {
  color: var(--white);
}

#testimonials .section-head p {
  color: var(--mid-gray);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
}

.testimonial-stars {
  color: var(--gold);
  margin-bottom: 14px;
  font-size: 1rem;
}

.testimonial-text {
  color: var(--mid-gray);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-name {
  color: var(--white);
  font-weight: 700;
  margin: 0;
}

.testimonial-role {
  color: var(--gold);
  font-size: 0.85rem;
  margin: 2px 0 0;
}

/* =========================================================
   Contact form
   ========================================================= */
#contact {
  background: var(--light-gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.contact-info-card h3 {
  color: var(--white);
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item strong {
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-info-item a,
.contact-info-item span {
  color: var(--white);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mid-gray);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-gray);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--eucalyptus);
}

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

.form-hint {
  font-size: 0.78rem;
  color: #868d94;
  margin-top: 4px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.form-checkbox input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-checkbox label {
  font-size: 0.88rem;
  color: var(--text-gray);
}

.form-checkbox label a {
  color: var(--eucalyptus-dark);
  text-decoration: underline;
}

.field-error {
  color: #b3261e;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.field-error.visible {
  display: block;
}

/* =========================================================
   Success Modal
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 46, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 420px;
  width: 100%;
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--eucalyptus);
  color: var(--white);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-box h3 {
  margin-bottom: 10px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--text-gray);
  cursor: pointer;
  line-height: 1;
}

/* =========================================================
   Footer
   ========================================================= */
#site-footer {
  background: var(--navy-dark);
  color: var(--mid-gray);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-grid h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul li a:hover {
  color: var(--gold);
}

.footer-brand p {
  color: var(--mid-gray);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-logo {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: inline-block;
}

.footer-logo span {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
}

.footer-bottom a:hover {
  color: var(--gold);
}

.disclaimer {
  font-size: 0.78rem;
  color: #8792a0;
  margin-top: 18px;
  line-height: 1.5;
}

/* =========================================================
   Cookie Banner
   ========================================================= */
#cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  color: var(--mid-gray);
  padding: 22px 0;
  z-index: 3000;
  border-top: 2px solid var(--eucalyptus);
  display: none;
}

#cookie-banner.visible {
  display: block;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.88rem;
  margin: 0;
}

.cookie-text a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-small {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.btn-cookie-link {
  background: transparent;
  color: var(--white);
  border-color: var(--eucalyptus);
}

.btn-cookie-link:hover {
  background: var(--eucalyptus);
  color: var(--white);
}

/* =========================================================
   Legal pages (privacy / cookie / terms)
   ========================================================= */
.legal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0;
}

.legal-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.legal-hero p {
  color: var(--mid-gray);
  margin: 0;
}

.legal-content {
  padding: 56px 0 80px;
  max-width: 860px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 36px;
  font-size: 1.3rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--eucalyptus-dark);
  text-decoration: underline;
}

.legal-updated {
  font-size: 0.85rem;
  color: #868d94;
  margin-bottom: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 600;
  margin-top: 8px;
}

/* =========================================================
   Responsive — Tablet (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-grid .about-media {
    order: -1;
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   Responsive — Burger menu breakpoint (≤ 900px)
   ========================================================= */
@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav a {
    width: 100%;
    padding: 16px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .burger-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1100;
  }

  .burger-label span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--white);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .burger-checkbox:checked ~ .header-inner .main-nav {
    max-height: 420px;
  }

  .burger-checkbox:checked ~ .header-inner .burger-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger-checkbox:checked ~ .header-inner .burger-label span:nth-child(2) {
    opacity: 0;
  }

  .burger-checkbox:checked ~ .header-inner .burger-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-media {
    order: unset;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }
}

/* =========================================================
   Responsive — Mobile (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
  section {
    padding: 52px 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-actions {
    justify-content: center;
  }

  .site-logo {
    font-size: 1.2rem;
  }
}
