/* ===============================
   CHEEK FINANCIAL - STYLE SHEET
   Mobile-First, Responsive, Clean
   =============================== */

/* ---------- Root & Variables ---------- */
:root {
  --teal: #009688; /* Sampled from logo */
  --navy: #003049;
  --light-gray: #f9f9f9;
  --text-dark: #333;
  --white: #fff;

  --font-heading: 'Lato', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* ---------- Global Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--light-gray);
  scroll-behavior: smooth;
  line-height: 1.6;
}

/* ---------- Navbar ---------- */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* Even left/right, center logo */
  align-items: center;
  max-width: 1100px;
  margin: auto;
  padding: 1rem 1.5rem;
  position: relative;
}

.nav-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

.nav-left a,
.nav-right a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  transition: color 0.3s ease;
}

.nav-left a:hover {
  color: var(--teal);
}

.nav-logo {
  display: flex;
  justify-content: center;
}

.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Contact Button */
.contact-btn {
  background-color: var(--teal);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #00796b;
}

/* Dropdown stays centered below button */
.contact-menu {
  position: absolute;
  top: 3.4rem;
  right: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.contact-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-menu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.contact-menu a:hover {
  background-color: #f3f3f3;
}


/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(to bottom right, var(--teal), #005f56);
  color: var(--white);
  text-align: center;
  padding: 7rem 1.5rem 6rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-btn {
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.cta-btn:hover {
  background: #001f33;
}

/* ---------- Shared Section Styling ---------- */
section {
  padding: 4rem 1rem;
  text-align: center;
}

h2 {
  font-family: var(--font-heading);
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

/* ---------- About Section ---------- */
.about-section {
  background: var(--white);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
  gap: 2rem;
}

.about-photo img {
  border-radius: 12px;
  width: 260px;
  height: auto;
}

.about-text {
  flex: 1;
  text-align: left;
  min-width: 280px;
}

/* === Medicare Advantage Section === */
.plans-section {
  background-color: #f6f9fb; /* your teal-tinted light background */
  padding: 4rem 1.5rem;
  text-align: center;
}

.plans-container {
  max-width: 1100px;
  margin: 0 auto;
}

.plans-section h2 {
  color: var(--navy);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.plans-section p {
  color: #333;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.carrier-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.carrier-logos img {
  width: auto;
  height: auto;
  filter: none;
  transition: transform 0.3s ease;
}

.carrier-logos img:hover {
  transform: scale(1.05);
}

/* === Fade-Up Animation === */
.fade-up-section {
  opacity: 1;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up-section.visible {
  opacity: 1;
  transform: translateY(0);
}



/* === Medicare Supplement Section === */
.supplement-section {
  background: var(--white); /* clean contrast against adjacent sections */
  padding: 4rem 1.5rem;
}

.supplement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap-reverse; /* ensures image appears on the left on desktop */
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.supplement-content img {
  border-radius: 10px;
  width: 320px;
  height: auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.supplement-text {
  flex: 1;
  text-align: left;
  min-width: 280px;
}

.supplement-text h2 {
  color: var(--navy);
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

/* Teal divider line under heading */
.supplement-text h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--teal);
  margin: 12px 0 20px 0;
  border-radius: 3px;
}

.supplement-text p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .supplement-content {
    flex-direction: column;
    text-align: center;
  }

  .supplement-text {
    text-align: center;
  }

  .supplement-text h2::after {
    margin: 12px auto 20px auto;
  }

  .supplement-content img {
    width: 90%;
    max-width: 350px;
  }
}



/* === Retirement Planning Section === */
.retirement-section {
  background: #f4f7f8; /* same soft gray-blue as Medicare Advantage */
  padding: 4rem 1.5rem;
}

.retirement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.retirement-content img {
  border-radius: 10px;
  width: 320px;
  height: auto;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

.retirement-text {
  flex: 1;
  text-align: left;
  min-width: 280px;
}

.retirement-text h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.retirement-text p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Optional divider line for consistency */
.retirement-text h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--teal);
  margin: 12px 0 20px 0;
  border-radius: 3px;
}


/* ---------- Contact Section ---------- */
.contact {
  background: var(--light-gray);
}

.contact a {
  color: var(--teal);
  font-weight: bold;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* ---------- Lead Form ---------- */
.lead-section {
  background: var(--teal);
  color: var(--white);
  padding: 4rem 1.5rem;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.contact-form input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form .btn {
  background: var(--white);
  color: var(--teal);
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  background: var(--navy);
  color: var(--white);
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive (Mobile-First) ---------- */

/* Medium Screens */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .about-photo img {
    width: 300px;
  }

  .retirement-content img {
    width: 380px;
  }

  .carrier-logos img {
    height: 70px;
  }
}

/* Small Screens */
@media (max-width: 767px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-left,
  .nav-right {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .nav-logo img {
    height: 70px;
  }

  .hero {
    padding: 5rem 1rem;
  }

  .about-container,
  .retirement-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .retirement-text {
    text-align: center;
  }

  .carrier-logos img {
    height: 55px;
  }

  .contact-form input {
    flex: 1 1 100%;
  }

  .contact-btn {
    width: 100%;
  }
}

