/* Brand colors (same as Plus1SocialClub/src/constants/colors.js) */
:root {
  --forest: #192218;
  --forest-l: #2E3B2F; /* lighter forest: hover backgrounds on dark sections */
  --sage: #A4C199;
  --sage-d: #4A6B3C; /* use for sage text on light backgrounds */
  --mist: #DBE7E0;
  --cream: #F6F6E9;
  --white: #FFFEFE;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: var(--forest);
  color: var(--sage);
}



header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--forest);
  border-bottom: 1px solid rgba(164, 193, 153, 0.15);
}

#desktopNav {
  margin-left: auto;
}

#desktopNav a {
  text-decoration: none;
  color: var(--sage);
  margin-left: 10px;
  padding: 10px;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#desktopNav a:hover {
  background-color: var(--forest-l);
}

#desktopNav #signUpLink {
  border: 1px solid var(--sage);
  padding: 10px;
  border-radius: 20px;
}

#desktopNav #signUpLink:hover {
  background: var(--sage);
  color: var(--forest);
}

#desktopNav #loginLink {
  background: var(--sage);
  color: var(--forest);
  border-radius: 20px;
  padding: 10px;
}

#desktopNav #loginLink:hover {
  background: var(--forest-l);
  color: var(--sage);
}

#logo img {
  display: block;
  max-width: 30px;
  padding: 0.5rem 0;
}

#topSection {
  background: var(--forest);
  color: var(--sage);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  padding: 4rem 10rem 8rem;
}

#headerContent {
  flex: 1;
}

#headerContent h1{
  font-size: 60px;
  max-width: 400px;
  line-height: 1.4;
  letter-spacing: 8px;
  font-weight: 600;
  margin-bottom: 10px;
  

}

#signUp {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

#signUp p {
  margin: 0;
  color: var(--cream);
  max-width: 200px;
}

#signUp .btn {
  display: inline-block;
  background: var(--sage);
  color: var(--forest);
  border: 1px solid var(--sage);
  border-radius: 30px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#signUp .btn:hover {
  background: var(--forest);
  color: var(--sage);
}

#headerImage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sectionOne {
  background: var(--sage);
  display: flex;
  flex-direction: column;
  padding: 3rem 4rem;
}

#sectionOne h2 {
  color: var(--forest);
  font-size: 30px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 1.5rem;
  letter-spacing: 2px;
}

#sectionOne > a {
  align-self: center;
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1.5rem;
  padding: 10px 22px;
  border: 1px solid var(--forest);
  border-radius: 30px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#sectionOne > a:hover {
  background: var(--forest);
  color: var(--sage);
}

#works {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.workItem {
  background: var(--mist);
  color: var(--forest);
  padding: 4px 24px;
  border-radius: 15px;
  flex: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.workItem h3 {
  color: var(--forest);
}

.workItem p {
  color: var(--forest);
}

.workItem:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

footer {
  background: var(--forest);
  color: var(--sage);
  padding: 3rem 4rem 2rem;
  display: flex;
  flex-direction: column;
}

#footerContent {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid rgba(164, 193, 153, 0.3);
  margin-bottom: 1rem;
  padding-bottom: 2rem;
}

#footerContent h4 {
  color: var(--mist);
  font-size: 18px;
  margin-top: 0;
}

.footerBrand p {
  color: var(--mist);
  font-size: 13px;
  max-width: 260px;
}

.footerLinks {
  display: flex;
  flex-direction: column;
}

.footerLinksList{
  display: flex;
  flex-direction: column;
}

.footerLinks h5 {
  color: var(--mist);
  margin: 0 0 10px;
  font-size: 15px;
}

.footerLinksList a,
.footerLinksList span {
  color: var(--mist);
  text-decoration: none;
  margin: 5px 0;
  font-size: 13px;
}

.footerLinksList a:hover {
  color: var(--sage);
}

.footerLinksList span {
  opacity: 0.8;
}

footer p{
  font-size: 12px;
}

/* Smooth scrolling for the #section links */
html { scroll-behavior: smooth; }

/* ── Phone navigation (hidden on desktop) ── */
#mobileNav {
  display: none;
  align-items: center;
  gap: 8px;
}

#mobileJoin {
  background: var(--sage);
  color: var(--forest);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 20px;
}

#mobileMenu summary {
  list-style: none;              /* hides the default triangle */
  cursor: pointer;
  width: 44px;                   /* 44px = comfortable tap target */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
#mobileMenu summary::-webkit-details-marker { display: none; }
#mobileMenu summary:hover { background: var(--forest-l); }

/* Three-line menu icon that turns into an X when open */
.menuIcon,
.menuIcon::before,
.menuIcon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--sage);
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.menuIcon { position: relative; }
.menuIcon::before,
.menuIcon::after { content: ""; position: absolute; left: 0; }
.menuIcon::before { top: -7px; }
.menuIcon::after { top: 7px; }
#mobileMenu[open] .menuIcon { background: transparent; }
#mobileMenu[open] .menuIcon::before { transform: translateY(7px) rotate(45deg); }
#mobileMenu[open] .menuIcon::after { transform: translateY(-7px) rotate(-45deg); }

/* Drop-down panel under the header */
.mobileMenuPanel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 24px 1.5rem;
  background: var(--forest);
  border-bottom: 1px solid rgba(164, 193, 153, 0.25);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.mobileMenuPanel > a {
  color: var(--cream);
  text-decoration: none;
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(164, 193, 153, 0.15);
}

.mobileMenuActions {
  display: flex;
  gap: 12px;
  margin-top: 1.25rem;
}

.mobileMenuActions a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  padding: 12px;
  border-radius: 30px;
}

.menuBtnOutline { color: var(--sage); border: 1px solid var(--sage); }
.menuBtnFilled { background: var(--sage); color: var(--forest); }

/* ── Tablets and phones ── */
@media (max-width: 860px) {
  #desktopNav { display: none; }
  #mobileNav { display: flex; }
  header { padding-top: 0.25rem; padding-bottom: 0.25rem; }
  #logo img { max-width: 40px; }

  /* Hero: text first, left-aligned, full-width button */
  #topSection {
    flex-direction: column;
    align-items: stretch;
    padding-top: 3rem;
    padding-bottom: 4rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }
  #headerContent h1 {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
    letter-spacing: 3px;
    line-height: 1.2;
    max-width: none;
    margin: 0 0 1.25rem;
  }
  #signUp { flex-direction: column; align-items: stretch; gap: 14px; }
  #signUp p { max-width: none; font-size: 17px; }
  #signUp .btn { text-align: center; font-size: 16px; padding: 14px 20px; }

  /* Placeholder logo is hidden on small screens; show your real
     mockup here instead once you have it */
  #headerImage { display: none; }

  #cardGrid {
    margin: auto;
    justify-content: center;
    align-items: center;
  }

  /* How it works: cards stack */
  #sectionOne { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  #sectionOne h2 { font-size: 26px; }
  #works { flex-direction: column; gap: 14px; }
  .workItem { padding: 2px 20px; }
  .workItem:hover { transform: none; box-shadow: none; }
  #sectionOne > a { align-self: stretch; text-align: center; padding: 14px; }

  /* Footer: brand on top, link columns in a 2×2 grid */
  #footerContent {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .footerBrand { grid-column: 1 / -1; }
  .footerBrand p { max-width: none; }
  .footerLinksList a { padding: 4px 0; }   /* larger tap targets */
}

/* ══════════════════════════════════════════════════════════
   Shared building blocks for the inner pages
   (How it works, About, Safety, FAQ, Contact, 404)
   ══════════════════════════════════════════════════════════ */

/* Current page in the menus */
#desktopNav a[aria-current="page"]:not(#signUpLink):not(#loginLink) {
  background: var(--forest-l);
}
.mobileMenuPanel > a[aria-current="page"] { color: var(--sage); }

/* Buttons you can use anywhere */
.btn,
.btnOutline {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid var(--sage);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn { background: var(--sage); color: var(--forest); }
.btn:hover { background: var(--forest); color: var(--sage); }
.btnOutline { color: var(--sage); }
.btnOutline:hover { background: var(--sage); color: var(--forest); }

/* Page title band at the top of each inner page */
.pageHero {
  padding: 4rem 5rem 3.5rem;
  background: var(--forest);
}
.pageHero h1 {
  font-size: 48px;
  line-height: 1.2;
  letter-spacing: 4px;
  font-weight: 600;
  margin: 0 0 1rem;
}
.pageHero .lead {
  color: var(--cream);
  font-size: 18px;
  max-width: 640px;
  margin: 0;
}
.eyebrow {
  display: block;
  color: var(--sage);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Content sections: pick a background */
.section { padding: 4rem 5rem; }
.section h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.section .intro { max-width: 640px; margin: 0 0 2rem; }

.sectionDark  { background: var(--forest); color: var(--sage); }
.sectionDark .intro, .sectionDark p { color: var(--cream); }
.sectionSage  { background: var(--sage); color: var(--forest); }
.sectionLight { background: var(--cream); color: var(--forest); }
.sectionLight .eyebrow { color: var(--sage-d); }

/* Card grid: 3 across on desktop, stacks on phones */
.cardGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--mist);
  color: var(--forest);
  border-radius: 15px;
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 19px; }
.card p { margin: 0; color: var(--forest); }
.card p + p { margin-top: 0.75rem; }
.sectionLight .card { background: var(--white); border: 1px solid var(--mist); }

/* Numbered steps (How it works) */
.stepList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.stepList li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--mist);
  color: var(--forest);
  border-radius: 15px;
  padding: 1.25rem 1.5rem;
}
.stepList li::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--sage);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepList h3 { margin: 0.35rem 0 0.25rem; font-size: 19px; }
.stepList p { margin: 0; }

/* Two columns: text on one side, a list or card on the other */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Simple bulleted checklist */
.checkList { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checkList li { position: relative; padding-left: 28px; }
.checkList li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* FAQ accordions (no JavaScript) */
.faqGroup { max-width: 800px; }
.faqGroup + .faqGroup { margin-top: 2.5rem; }
.faqGroup h2 { font-size: 24px; }
.faqGroup details {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 12px;
  margin-bottom: 10px;
}
.faqGroup summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1rem 3rem 1rem 1.25rem;
  position: relative;
}
.faqGroup summary::-webkit-details-marker { display: none; }
.faqGroup summary::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--sage-d);
}
.faqGroup details[open] summary::after { content: "\2212"; }  /* minus sign */
.faqGroup details p { margin: 0; padding: 0 1.25rem 1.1rem; }

/* Closing call-to-action band */
.ctaBand {
  padding: 4rem 5rem;
  background: var(--sage);
  color: var(--forest);
  text-align: center;
}
.ctaBand h2 { font-size: 30px; font-weight: 500; letter-spacing: 2px; margin: 0 0 0.5rem; }
.ctaBand p { margin: 0 0 1.5rem; }
.ctaBand .btn { background: var(--forest); color: var(--sage); border-color: var(--forest); }
.ctaBand .btn:hover { background: transparent; color: var(--forest); }

/* Text you still need to write: shows as a dashed box so it's easy to spot.
   Remove the class once you've replaced the text. */
.placeholder {
  border: 1px dashed currentColor;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  opacity: 0.85;
}

/* Links inside body text */
.section p a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .pageHero { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .pageHero h1 { font-size: clamp(2rem, 10vw, 2.75rem); letter-spacing: 2px; }
  .pageHero .lead { font-size: 17px; }
  .section, .ctaBand { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .section h2, .ctaBand h2 { font-size: 24px; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .stepList li { grid-template-columns: 40px 1fr; gap: 12px; padding: 1rem 1.25rem; }
  .stepList li::before { width: 34px; height: 34px; }
  .ctaBand .btn { display: block; }
}


/* Small helpers used on the inner pages (inline styles are blocked by the page's security policy) */
.sectionSage .eyebrow { color: var(--forest); }
.pageHero .lead a { color: var(--sage); text-underline-offset: 3px; }
.pageHero.notFound { padding-bottom: 6rem; }
.heroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ── Homepage headline animation ──────────────────────────
   1. Each word rises in and comes into focus, one after another
   2. A light shine sweeps across each word
   3. A sage underline draws in under "Experience"
   4. The "Join / Try it now" row fades in last
   All CSS (no JavaScript), and switched off for "reduce motion". */
.heroWord {
  display: block;
  width: fit-content;
  position: relative;
  /* Shine: the text is filled with a gradient that slides across */
  background: linear-gradient(110deg, var(--sage) 42%, var(--cream) 50%, var(--sage) 58%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation:
    wordIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards,
    wordShine 1.2s ease-in-out forwards;
}
.heroWord:nth-child(1) { animation-delay: 0.15s, 1.3s; }
.heroWord:nth-child(2) { animation-delay: 0.45s, 1.5s; }
.heroWord:nth-child(3) { animation-delay: 0.75s, 1.7s; }

/* Underline that draws in under the last word */
.heroWordLast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.04em;   /* sits just below the "p" descender */
  height: 4px;
  border-radius: 4px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
}

#signUp {
  opacity: 0;
  animation: fadeUp 0.7s ease-out 1.1s forwards;
}

@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.5em); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes wordShine {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}
@keyframes underlineIn {
  to { transform: scaleX(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .heroWord, #signUp { opacity: 1; animation: none; }
  .heroWordLast::after { transform: none; animation: none; }
}

/* Respect the "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .workItem:hover { transform: none; }
}
