@charset "utf-8";

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

/* ===== Beginner Notes ===== */

.beginner-note {
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #f37c0c;
  background-color: rgba(255, 255, 255, 0.03);
  font-size: 1rem;
  line-height: 1.6;
  box-sizing: border-box;
}

.beginner-note p {
  margin: 0.25rem 0;
}

.beginner-note strong {
  font-weight: 600;
}


/* ================= DROPDOWN ACTIVE LINK ================= */
nav.main-nav .dropdown-content a.active {
  background-color: #f37c0c;  /* highlight color */
  color: white;                /* make text readable */
}

nav.main-nav .dropdown-content a.active:hover {
  background-color: #e66f0a;  /* slightly darker on hover */
  color: white;
}




/* ================= HEADER / NAV ================= */
header {
  padding: 1rem 0;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.top-nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #333;
}

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
}

nav.main-nav a {
  text-decoration: none;
  color: #222;
  padding: 0.4rem 0.6rem;
  transition: color 0.3s, transform 0.2s;
}

nav.main-nav a:hover {
  color: #f37c0c;
  transform: translateY(-2px);
}

nav.main-nav a.active {
  color: #f37c0c;
}

nav.main-nav .dropdown {
  position: relative;
}

nav.main-nav .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  padding: 0.5rem 0;
  z-index: 9999;
}

nav.main-nav .dropdown:hover .dropdown-content,
nav.main-nav .dropdown:focus-within .dropdown-content {
  display: block;
}

nav.main-nav .dropdown-content a {
  display: block;
  padding: 0.6rem 1rem;
  color: #222;
  text-decoration: none;
  white-space: nowrap;
}


a[href^="#"] { color: #f37c0c;
font-weight: bold; position: relative;
transition: color 0.3s, transform 0.3s;

}

a[href^="#"]:hover {
color: #e06600; transform: translateX(3px);


}
* ================= VIDEO ================= */

/* Keeps the video at the correct 16:9 shape */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #f0f0f0; /* Light grey background for 'Coming Soon' */
  border-radius: 8px;
  margin: 1.5rem 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2; /* Sits on top of the 'Coming Soon' text */
}

/* COMBINED VIDEO STYLES */
.video-container, .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 shape */
  margin: 1.5rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000; /* Dark background looks like a video player */
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.video-container iframe, .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 5; /* Sits above the 'Coming Soon' text */
}

.video-coming-soon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7); /* Slightly transparent black */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
  z-index: 2; /* Text sits behind the iframe once it's active */
}



.highlight-cta {
  background-color: #fff8e1; /* soft yellow background */
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
  margin: 2rem 0;
}

.highlight-cta h2 {
  color: #f57c00; /* matches hero accent */
  margin-bottom: 0.5rem;
}

.highlight-cta p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.highlight-cta .button-main {
  padding: 0.75rem 1.5rem;
  font-size: 1.05rem;
}	


/* ================= HERO ================= */
/* Desktop styles remain unchanged */
.hero {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 6rem 5% 6rem 40px !important;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 60vh;
  background: url('../images/howdoiwebsiteHeroImage.webp') center/cover no-repeat;
  color: #fff;
}

.hero-content {
  max-width: 445px;
  text-align: left;
  margin-left: 17%; /* Moves text slightly to the right */
}

.hero-title-orange {
  font-size: 3rem;
  font-weight: bold;
  color: #f37c0c;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.45);
}

.hero-title-orange span {
  display: block;
}

.hero-subtitle-orange {
  font-size: 1.2rem;
  color: #f37c0c;
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.45);
}

.hero .button {
  background: #f37c0c;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}

.hero .button:hover {
  background: #e66f0a;
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(243,124,12,0.4);
}

/* ================= MOBILE HERO ================= */
@media (max-width: 768px) {
  .hero {
    display: flex !important; 
    flex-direction: row !important; /* Keeps your side-by-side look */
    align-items: center !important; 
    padding: 2rem 0.5rem !important;
    min-height: 60vh !important;

    /* THE PERFORMANCE FIX */
    content: none !important; /* Stops the image from 'replacing' your text */
    background-image: url('../images/howdoiwebsiteHeroImageMobile.webp') !important;
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  /* Keeps your specific text positioning */
  .hero-content {
    margin-left: 2% !important; 
    max-width: 95% !important; 
    z-index: 2; /* Ensures text stays on top of the background */
  }

  .hero-title-orange {
    font-size: 1.8rem !important; 
  }

  .hero-subtitle-orange {
    font-size: 1rem !important; 
  }

  .button-main {
    margin-top: 1rem;
    padding: 0.6rem 1rem;
    font-size: 1rem;
  }
}


/* ================= INTRO ================= */
.intro {
  max-width: 700px;
  margin: 2.5rem auto;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

.intro p {
  margin-bottom: 1rem;
}

/* ================= GUIDES ================= */
.latest-guides {
  padding: 4rem 1rem;
}

.latest-guides h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}


.guides-grid .guide-card {
  display: flex;
  flex-direction: column;
  justify-content: center; /* centers content vertically */
  height: 100%;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem 1rem;
}

.guide-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.2rem;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.guide-card:hover {
  transform: translateY(-6px);
  border-color: #f37c0c;
  box-shadow: 0 10px 25px rgba(243,124,12,0.35);
}

.guide-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.guide-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.guide-card a {
  color: #f37c0c;
  font-weight: bold;
  text-decoration: none;
}

.guide-card a:hover {
  color: #e66f0a;
}

/* ================= PILLAR CONTENT ================= */
.pillar-section {
  padding: 3rem 1rem;
}

.pillar-section ul {
  margin: 1rem 0 2rem 1.5rem;
}

/* ================= BUTTONS ================= */
.button-main {
  display: inline-block;
  background: #f37c0c;
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.button-main:hover {
  background: #e66f0a;
  transform: translateY(-2px);
}

.button:hover {
  background-color: #c85d00;
}

/* ================= SOCIAL LINKS ================= */
.social-links {
  display: flex;
  gap: 12px;

  align-items: center;
}

.social-links a {
  color: #f37c0c;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

.social-links a:hover {
  color: #e66f0a;
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ================= ACCORDION ================= */
.accordion {
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 20px 0;
}

.accordion-button {
  cursor: pointer;
  background-color: #964909;
  color: white;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 5px;
  padding: 12px 18px;
  font-size: 16px;
  transition: background 0.3s;
}

.accordion-button:hover {
  background-color: #fc7200;
}

.accordion-button.active + .accordion-content {
  display: block;
  max-height: 500px;
}

.accordion-content {
  padding: 0 18px;
  background-color: #f9f9f9;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
	
		
	
}


/* ================= TIGHTHER CARD SPACING ================= */
.guide-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 1.2rem;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.guide-card:hover {
  transform: translateY(-6px);
  border-color: #f37c0c;
  box-shadow: 0 10px 25px rgba(243,124,12,0.35);
}

.guide-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.guide-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.guide-card a {
  color: #5089ff; /* blue links */
  font-weight: bold;
  text-decoration: none;
}

.guide-card a:hover {
  color: #fff; /* link hover color */
}

/* ================= STEP CARDS ================= */
.step-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= STEP HEADER / TITLE ================= */
.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}

/* ================= STEP NUMBER ================= */
.step-number {
  background: #f57c00;        /* default accent orange */
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
}

/* ================= STEP CONTENT ================= */
.step-content p {
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #333;
}

/* ================= STEP CARDS HOVER COLOR MATCH ================= */
/* Pillar 1 */
.step-card.pillar-1:hover {
  border-color: #1e90ff; /* blue number color */
}

.step-card.pillar-1:hover .step-title,
.step-card.pillar-1:hover .step-content p {
  color: #1e90ff;
}

/* Pillar 2 */
.step-card.pillar-2:hover {
  border-color: #32cd32; /* green number color */
}

.step-card.pillar-2:hover .step-title,
.step-card.pillar-2:hover .step-content p {
  color: #32cd32;
}

/* Pillar 3 */
.step-card.pillar-3:hover {
  border-color: #ff8c00; /* orange number color */
}

.step-card.pillar-3:hover .step-title,
.step-card.pillar-3:hover .step-content p {
  color: #ff8c00;
}

/* Pillar 4 */
.step-card.pillar-4:hover {
  border-color: #ff1493; /* pink number color */
}

.step-card.pillar-4:hover .step-title,
.step-card.pillar-4:hover .step-content p {
  color: #ff1493;
}

/* ================= LINKS INSIDE STEP CARDS ================= */
.step-card a {
  color: #f37c0c;             /* orange links */
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.step-card a:hover {
  color: #e66f0a;             /* darker orange on hover */
  transform: translateY(-1px); /* subtle lift */
}


/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #eee;
  color: #f37c0c;
  font-size: 0.9rem;
  margin-top: 3rem;
  text-shadow: 0 0 5px rgba(243, 124, 12, 0.5);
}

footer a.back-to-top {
  display: inline-block;
  margin-top: 0.5rem;
  color: #f37c0c;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(243,124,12,0.5);
  transition: color 0.3s, transform 0.2s, text-shadow 0.3s;
}

footer a.back-to-top:hover {
  color: #e66f0a;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(230,111,10,0.7);
}

.guides-grid .guide-card {
  min-height: 275px;
}

/* 1. THE GROUNDING RULE - Put this in your <style> block */
html, body {
  height: 100%;           /* Ground the page height */
  margin: 0;
  padding: 0;
  overflow-x: hidden;    /* Kill horizontal ghosting */
}

/* 2. THE CORRECTED MOBILE MENU */
#mobileMenu {
  display: none; 
  flex-direction: column; 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  
  /* FIXED VIEWPORT HEIGHT */
  height: 100vh;          /* Fallback for older browsers */
  height: 100dvh;         /* 🔑 The magic fix: Dynamic Viewport Height */
  
  background: rgba(255,255,255,0.98); 
  padding: 80px 25px; 
  z-index: 9998;
  overflow-y: auto;       /* Allows menu to scroll if links are long */
  font-family: sans-serif;
}

/* 3. THE FOOTER SNAP (Optional but recommended) */
main {
  min-height: 100%;       /* Ensures content fills the screen */
  display: block;
}


