/* ======================================
   1. VARIABLES
   ====================================== */
:root {
  --header-bg: #009FAF;      /* Harley Teal */
  --header-text: #FFFFFF;    /* White */
  --header-hover: #E8DCC2;   /* Sand Pearl */
}

/* ======================================
   2. GLOBAL RESET
   ====================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  padding-bottom: 140px; /* prevents footer overlap */
}

/* Prevent content hiding under header */
body::before {
  content: "";
  display: block;
  height: 170px;
}

/* ======================================
   3. LAYOUT Header Navigation Footer
   ====================================== */

/* Fixed Header */
header {
  width: 100%;
  height: 170px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--header-bg);
  color: var(--header-text);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

/* Header left layout */
.header-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  height: 100%;
}

/* Portrait box inside header */
.portrait-box {
  background: var(--header-bg);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portrait-box img {
  height: 100%;
  width: auto;
  display: block;
}

/* Brand text */
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-tagline {
  color: var(--header-text);
  font-size: 17px;
  opacity: 0.9;
  margin-top: 4px;
}

/* NAVIGATION */
nav {
  display: flex;
  align-items: center;
}

nav a {
  color: var(--header-text);
  text-decoration: none;
  margin-left: 22px;
  font-size: 20px;
  transition: 0.3s;
}

nav a:hover {
  color: var(--header-hover);
}

/* MOBILE MENU toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 26px;
  background: var(--header-text);
  margin: 4px 0;
  transition: 0.4s;
}

/* Footer fixed */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 26px 20px;
  font-size: 0.85rem;
  border-top: 2px solid #E8DCC2;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.25);
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: 0.25s ease;
}

.footer-links a:hover {
  color: #E8DCC2;
}

/* ======================================
   4. HERO and GLOBAL SECTION STYLES
   ====================================== */

.hero {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
  margin-top: 170px;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #222;
  margin-bottom: 20px;
}

.hero-subtext {
  font-size: 20px;
  color: #444;
  max-width: 750px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.25s ease;
}

.btn-primary {
  background: #009FAF;
  color: #fff;
}

.btn-primary:hover {
  background: #007f8c;
  box-shadow: 0 0 12px rgba(0, 159, 175, 0.45);
}

.btn-secondary {
  background: transparent;
  border: 2px solid #E8DCC2;
  color: #009FAF;
}

.btn-secondary:hover {
  background: #E8DCC2;
  color: #000;
}

/* ======================================
   5. HOMEPAGE SECTIONS
   ====================================== */

/* Section B — What is Helpful Marketer */
.section-info {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
}

.section-text {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 50px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.info-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
}

.info-box h3 {
  font-size: 22px;
  color: #009FAF;
}

.info-box p {
  font-size: 16px;
  color: #444;
}

/* Section C — How it works */
.section-steps {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.step-box {
  background: #ffffff;
  border: 1px solid #eee;
  padding: 30px 25px;
  border-radius: 10px;
  text-align: left;
}

.step-number {
  width: 48px;
  height: 48px;
  background: #009FAF;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section D — Resources */
.section-resources {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.resource-box {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.resource-link {
  font-size: 16px;
  font-weight: 600;
  color: #009FAF;
  text-decoration: none;
}

.resource-link:hover {
  color: #007f8c;
}

.popular-cta {
  text-align: center;
  margin-top: 40px;
}

.btn-large {
  display: inline-block;
  padding: 18px 36px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Section E — About */
.section-about {
  background: #f9f9f9;
  padding: 80px 20px;
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  width: 260px;
  height: 260px;
  background: #009FAF;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text p {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

/* Section F — CTA */
.section-cta {
  background: linear-gradient(180deg, #009FAF 0%, #007f8c 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.cta-btn {
  background: #ffffff;
  color: #009FAF;
  padding: 14px 32px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.cta-btn:hover {
  background: #E8DCC2;
  color: #000;
}

/* Newsletter */
.section-newsletter {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.newsletter-inner {
  max-width: 700px;
  margin: 0 auto;
}

.newsletter-text {
  font-size: 18px;
  color: #444;
  margin-bottom: 30px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.newsletter-form input {
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.newsletter-form button {
  padding: 14px;
  font-size: 18px;
  border-radius: 6px;
  cursor: pointer;
}

/* Trust box */
.trust-box {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(232, 220, 194, 0.4);
  text-align: center;
  color: #E8DCC2;
}

.lock-icon svg {
  width: 18px;
  height: 18px;
  fill: #E8DCC2;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.lock-icon:hover svg {
  transform: scale(1.15);
}

.trust-line {
  font-size: 15px;
  margin: 4px 0;
  color: #E8DCC2;
}

.trust-gdpr {
  font-size: 13px;
  opacity: 0.85;
  margin: 2px 0;
  color: #E8DCC2;
}

.section-cta .cta-text {
  margin-bottom: 60px;
}

/* ======================================
   6. UTILITIES
   ====================================== */

/* Scroll to top button */
.scroll-top-btn {
  position: fixed;
  bottom: 110px; /* sits above your fixed footer */
  right: 25px;
  width: 48px;
  height: 48px;
  background: #009FAF;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.25s ease;
  z-index: 99999;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  background: #007f8c;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

/* Fade-in section utility */
.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   7. INTERIOR PAGES
   ====================================== */

/* Interior page container */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  line-height: 1.6;
}

/* Specific interior section spacing */
.about-section {
  margin-bottom: 60px;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 40px 0;
}

.contact-form label {
  font-size: 18px;
  font-weight: 600;
  color: #222;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

/* ======================================
   8. MOBILE MEDIA QUERIES
   All mobile rules merged here for clarity
   ====================================== */
@media (max-width: 768px) {

  /* Header / Nav adjustments */
  nav {
    position: absolute;
    top: 170px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: var(--header-bg);
    display: none;
    padding-bottom: 20px;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 15px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  /* Grid stacks */
  .info-grid,
  .steps-grid,
  .resources-grid {
    grid-template-columns: 1fr;
  }

  /* About section stack */
  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-image {
    width: 220px;
    height: 220px;
  }

  /* Newsletter form stack */
  .newsletter-form {
    flex-direction: column;
  }

  /* Interior page adjustments */
  .page-content {
    padding: 20px 15px;
    max-width: 100%;
  }
}
