/* ==========================================================
   GLOBAL VARIABLES
   ========================================================== */
   :root {
    --brand: #2d4624;
    --accent: #4a5e34;
    --accent-soft: #f3e8c9;
    --accent-light: #f8f0d9;
  
    --text-main: #2b2b2b;
  
    --facebook-blue: #0866FF;
    --instagram-start: #F58529;
    --instagram-mid: #DD2A7B;
    --instagram-end: #515BD4;
    --threads-black: #000000;
    --youtube-red: #FF0000;
    --linkedin-blue: #0A66C2;
  }
  
  /* ==========================================================
     GLOBAL RESET / BASE
     ========================================================== */
  * {
    box-sizing: border-box;
  }
  
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #fff;
    overflow-x: hidden;
  }
  
  /* Backgrounds per page */
  body.home-page,
  body.login-page,
  body.help-page,
  body.form-page,
  body.connect-page {
    background: url('sunflower-family.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
  }
  
  body.about-page {
    background: url('sunflower-elders-wide.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
  }
  
  @media (max-width: 768px) {
    body.home-page,
    body.login-page,
    body.help-page,
    body.form-page,
    body.connect-page,
    body.about-page {
      background: url('sunflower-mobile.png') no-repeat center center fixed;
      background-size: cover;
    }
  }
  
  /* Generic headings */
  h1 {
    font-family: 'Garamond', serif;
  }
  
  /* Utility wrapper to push footer down */
  .page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  /* ==========================================================
     TOP NAVIGATION (shared across ALL pages)
     ========================================================== */
  .top-nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    z-index: 10;
    background: rgba(45, 70, 36, 0.65);
    backdrop-filter: blur(6px);
  }
  
  .top-nav-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .brand {
    font-family: 'Garamond', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
  }
  
  .nav-links {
    display: flex;
    gap: 26px;
    justify-content: center;
    white-space: nowrap;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
  }
  
  .nav-links a:hover {
    text-decoration: underline;
  }
  
  .nav-right {}
  
  .hamburger {
    display: none;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
  }
  
  .mobile-menu {
    display: none;
  }
  
  @media (max-width: 1200px) {
    .nav-links { display: none; }
  
    .hamburger {
      display: flex;
    }
  
    .mobile-menu {
      display: none;
      position: absolute;
      top: 56px;
      left: 12px;
      background: rgba(0,0,0,0.92);
      padding: 12px 16px;
      border-radius: 8px;
      min-width: 180px;
      z-index: 40;
    }
  
    .mobile-menu.open {
      display: block;
    }
  
    .mobile-menu a {
      display: block;
      padding: 6px 0;
      color: #fff;
      text-decoration: none;
      font-size: 1rem;
    }
  
    .mobile-menu a:hover {
      text-decoration: underline;
    }
  }
  
  /* ==========================================================
     SOCIAL ICONS (shared: footer + connect card)
     ========================================================== */
  .social-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
  }
  
  /* Facebook */
  .social-icon.facebook {
    background: var(--facebook-blue);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }
  .social-icon.facebook::before {
    content: "f";
    position: relative;
    top: 1px;
  }
  
  /* Instagram */
  .social-icon.instagram {
    background: radial-gradient(circle at 30% 20%,
      #fdf497 0%, #fdf497 30%, var(--instagram-start) 45%,
      var(--instagram-mid) 60%, var(--instagram-end) 90%);
  }
  .social-icon.instagram::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 2px solid #fff;
    box-sizing: border-box;
  }
  .social-icon.instagram::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    border: 2px solid #fff;
    top: 7px;
    right: 7px;
    box-sizing: border-box;
  }
  
  /* Threads */
  .social-icon.threads {
    background: var(--threads-black);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 1rem;
  }
  .social-icon.threads::before { content: "@"; }
  
  /* YouTube */
  .social-icon.youtube {
    background: var(--youtube-red);
  }
  .social-icon.youtube::before {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 9px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 1px;
  }
  
  /* LinkedIn */
  .social-icon.linkedin {
    background: var(--linkedin-blue);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
  }
  .social-icon.linkedin::before { content: "in"; position: relative; top: 0.5px; }
  
  /* ==========================================================
     FOOTER (unified layout: brand, text, copyright, icons below)
     ========================================================== */
  .site-footer {
    background-color: var(--accent-light);
    color: #000;
    padding: 16px 20px 14px;
    font-size: 0.9rem;
  }
  
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto 4px;
    text-align: center;
  }
  
  .footer-brand-title {
    margin: 0;
    font-family: 'Garamond', serif;
    font-size: 1.3rem;
    color: var(--brand);
  }
  
  .footer-brand-tagline {
    margin: 2px 0 0;
    color: #444;
    font-size: 0.85rem;
  }
  
  .footer-bottom {
    text-align: center;
    margin-top: 6px;
    color: #555;
    font-size: 0.78rem;
  }
  
  .footer-bottom a {
    color: #555;
    text-decoration: none;
  }
  
  .footer-bottom a:hover {
    text-decoration: underline;
  }
  
  .footer-social {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
  }
  
  .footer-social a {
    display: inline-flex;
    text-decoration: none;
  }
  
  /* ==========================================================
     INDEX (HOME) PAGE
     ========================================================== */
  body.home-page .overlay {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
  }
  
  body.home-page h1 {
    font-size: 3.2em;
    margin: 0 0 1em;
    color: #eee;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    font-weight: 400;
  }
  
  body.home-page .cta-buttons a button {
    background-color: #4a5e34;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 6px;
    font-size: 1.2em;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
    white-space: nowrap;
  }
  
  body.home-page .cta-buttons a button:hover {
    background-color: #3e512a;
  }
  
  @media (max-width: 768px) {
    body.home-page h1 {
      font-size: 1.9em;
    }
    body.home-page .cta-buttons a button {
      width: 100%;
      max-width: 300px;
    }
  }
  
  /* ==========================================================
     LOGIN PAGE
     ========================================================== */
  body.login-page .page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  body.login-page .overlay {
    background-color: rgba(255, 255, 255, 0.9);
    width: 95%;
    max-width: 900px;
    margin: 100px auto 40px;
    padding: 28px 24px 24px;
    border-radius: 16px;
    text-align: center;
    color: #333;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
  }
  
  body.login-page h1 {
    font-size: 2.4em;
    color: #2d4624;
    margin: 0 0 16px;
    line-height: 1.2;
  }
  
  body.login-page .login-subtext {
    font-size: 1.05em;
    line-height: 1.7;
    margin: 0 auto 20px;
    max-width: 60ch;
  }
  
  body.login-page .primary-btn {
    background-color: #4a5e34;
    color: white;
    border: none;
    padding: 16px 34px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    min-width: 220px;
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
  }
  
  body.login-page .primary-btn:hover {
    background-color: #3e512a;
  }
  
  body.login-page .switch-account {
    margin-top: 16px;
    font-size: 0.95em;
  }
  
  body.login-page .switch-account a {
    color: #2d4624;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
  }
  
  body.login-page .error {
    color: #b00020;
    margin-top: 16px;
    font-size: 0.95em;
  }
  
  @media (max-width: 768px) {
    body.login-page .overlay {
      margin: 90px auto 28px;
      padding: 22px 18px 20px;
    }
    body.login-page h1 {
      font-size: 2em;
    }
    body.login-page .primary-btn {
      width: 100%;
      max-width: 320px;
    }
  }
  
  /* ==========================================================
     HELP PAGE
     ========================================================== */
  body.help-page .overlay {
    background: rgba(255,255,255,0.95);
    width: 95%;
    max-width: 900px;
    margin: 100px auto 30px;
    padding: 28px 22px;
    border-radius: 12px;
    color: #333;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }
  
  body.help-page h1 {
    font-size: 2.3rem;
    color: var(--brand);
    margin: 0 0 18px;
    text-align: center;
    line-height: 1.3;
  }
  
  body.help-page h2.section-title {
    margin: 26px 0 14px;
    color: var(--brand);
    font-size: 1.6rem;
  }
  
  /* FAQ accordion */
  body.help-page details {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px 18px;
    margin: 14px 0;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
  }
  
  body.help-page summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--brand);
    list-style: none;
    font-size: 1.25rem;
    min-height: 44px;
  }
  
  body.help-page summary::-webkit-details-marker { display: none; }
  
  body.help-page .faq-content {
    margin-top: 10px;
    line-height: 1.75;
    font-size: 1.1rem;
    color: #333;
  }
  
  /* Troubleshooting tips */
  body.help-page .tips {
    background: #f6faf3;
    border: 1px solid #e3f0dd;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  body.help-page .tips ul { margin: 8px 0 0 22px; }
  
  /* Contact box */
  body.help-page .contact {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    padding: 18px;
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  body.help-page .contact p { margin: 10px 0; }
  
  body.help-page .btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    margin-right: 10px;
    margin-top: 8px;
    min-height: 44px;
  }
  
  body.help-page .btn-primary {
    background: var(--brand);
    color: #fff;
  }
  
  @media (max-width: 900px) {
    body.help-page .overlay {
      margin: 90px auto 24px;
      padding: 22px 18px;
    }
  }
  
  @media (max-width: 768px) {
    body.help-page h1 { font-size: 1.9rem; }
    body.help-page .btn { width: 100%; text-align: center; }
  }
  
  /* ==========================================================
     ABOUT PAGE
     ========================================================== */
  body.about-page .overlay {
    background-color: rgba(255, 255, 255, 0.85);
    width: 95%;
    max-width: 1100px;
    margin: 100px auto 40px;
    padding: 24px 18px;
    border-radius: 12px;
    text-align: center;
    color: #333;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
  }
  
  body.about-page h1 {
    font-size: 2.6em;
    color: #2d4624;
    margin: 0 0 16px;
    line-height: 1.2;
  }
  
  body.about-page p {
    font-size: 1.15em;
    line-height: 1.75;
    margin: 0 auto 14px;
    max-width: 78ch;
  }
  
  body.about-page .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 18px;
    text-align: left;
  }
  
  body.about-page .card {
    background:#fff;
    border:1px solid #eee;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
  }
  
  body.about-page .card h2 {
    margin: 0 0 10px;
    color: #2d4624;
    font-size: 1.6em;
  }
  
  body.about-page .card ul {
    margin: 8px 0 0 18px;
    padding: 0;
    font-size: 1.05em;
    line-height: 1.75;
  }
  
  body.about-page .card ul li { margin-bottom: 8px; }
  
  body.about-page .cta-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
  }
  
  body.about-page .btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid transparent;
    min-height: 44px;
  }
  
  body.about-page .btn-primary {
    background: #2d4624;
    color: #fff;
  }
  
  body.about-page .btn-secondary {
    background: #fff;
    color: #2d4624;
    border-color: #2d4624;
  }
  
  @media (max-width: 900px) {
    body.about-page .split { grid-template-columns: 1fr; }
  }
  
  @media (max-width: 768px) {
    body.about-page h1 { font-size: 2.2em; }
    body.about-page .overlay { margin: 90px auto 28px; }
  }
  
  /* ==========================================================
     FORM PAGE (Create My Legacy)
     ========================================================== */
  body.form-page .form-main {
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  
  body.form-page .form-container {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    color: #333;
  }
  
  body.form-page h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Garamond', serif;
    color: #333;
  }
  
  body.form-page label {
    display: block;
    margin-bottom: 5px;
    color: #333;
  }
  
  body.form-page input,
  body.form-page textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
  }
  
  body.form-page button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #4a5e34;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
  }
  
  body.form-page button[type="submit"]:hover {
    background-color: #3a4b29;
  }
  
  /* Back button */
  body.form-page .back-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: #4a5e34;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1em;
    margin-bottom: 20px;
  }
  
  body.form-page .back-button:hover {
    background-color: #3a4b29;
  }
  
  @media (max-width: 768px) {
    body.form-page .form-container {
      padding: 20px;
      max-width: 90%;
    }
  
    body.form-page h1 {
      font-size: 1.5em;
    }
  }
  
  /* ==========================================================
     CONNECT PAGE
     ========================================================== */
  body.connect-page .bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 220px); /* stops blur before footer */
    background: radial-gradient(circle at top left,
      rgba(255,255,255,0.35),
      rgba(0,0,0,0.35));
    pointer-events: none;
    z-index: 0;
  }
  
  body.connect-page .main-wrap {
    padding: 100px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    z-index: 1;
  }
  
  body.connect-page .card {
    width: 100%;
    max-width: 520px;
    padding: 32px 32px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow:
      0 18px 45px rgba(0,0,0,0.28),
      0 0 0 1px rgba(255,255,255,0.8);
    backdrop-filter: blur(14px);
    color: var(--text-main);
    animation: fadeUp 0.45s ease-out;
  }
  
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  body.connect-page .eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7c7c7c;
    margin-bottom: 6px;
  }
  
  body.connect-page h1 {
    margin: 0;
    font-family: 'Garamond', 'Times New Roman', serif;
    font-size: 2rem;
    color: var(--brand);
  }
  
  body.connect-page .subtext {
    margin: 10px 0 22px;
    color: var(--text-main);
    line-height: 1.6;
    font-size: 0.98rem;
  }
  
  body.connect-page .highlight {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--brand);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }
  
  body.connect-page .social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-bottom: 16px;
  }
  
  @media (max-width: 480px) {
    body.connect-page .social-grid {
      grid-template-columns: 1fr;
    }
  }
  
  body.connect-page .social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.06);
    background: #ffffff;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    transition: transform 0.15s ease,
                box-shadow 0.15s ease,
                background 0.15s ease;
  }
  
  body.connect-page .social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
    background: #fdf7ea;
  }
  
  body.connect-page .social-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
  }
  
  body.connect-page .social-name {
    font-weight: 600;
  }
  
  body.connect-page .social-handle {
    font-size: 0.78rem;
    color: #777;
  }
  
  body.connect-page .divider {
    margin: 18px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }
  
  body.connect-page .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(0,0,0,0.18),
      transparent
    );
  }
  
  body.connect-page .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 4px;
  }
  
  body.connect-page .btn-secondary,
  body.connect-page .btn-tertiary {
    flex: 1 1 130px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  
  body.connect-page .btn-secondary {
    background: var(--accent);
    color: #fff;
  }
  
  body.connect-page .btn-secondary:hover {
    background: #3a4b29;
    transform: translateY(-0.5px);
  }
  
  body.connect-page .btn-tertiary {
    background: #f0f0f0;
    color: #444;
  }
  
  body.connect-page .btn-tertiary:hover {
    background: #e0e0e0;
    transform: translateY(-0.5px);
  }
  