/* ============================================================
   EVERYONE NEEDS A GRANDMA — custom styles
   NOTE: the Singapore theme sets html { font-size: 62.5% } so
   1rem = 10px. All sizes below are written for that 10px base.
   Loads AFTER the theme CSS so these rules win. Fully responsive.
   ============================================================ */

:root {
    --g-navy:     #1c4a5b;
    --g-blue:     #2f5c9e;
    --g-burgundy: #8d2b54;
    --g-gold:     #c89a3b;
    --g-darkblue: #2c4a6e;
    --g-cream:    #fcfbfa;   /* lighter, less pink */
    --g-ink:      #2b2b2b;
    --g-font:     'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ---------- layout helpers ---------- */
.grandma-home,
.grandma-subscribe,
.grandma-contact {
    font-family: var(--g-font);
    color: var(--g-ink);
    line-height: 1.75;
}
.g-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.g-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.g-center { text-align: center; }
.g-muted  { color: #6b6b6b; }

.grandma-home section,
.grandma-subscribe section,
.grandma-contact section { padding: 78px 0; }

/* ---------- headings & text ---------- */
.g-h2 {
    font-family: var(--g-font);
    color: var(--g-blue);
    font-size: 3.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 20px;
}
.g-h3 {
    color: var(--g-burgundy);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 10px;
}
.grandma-home p,
.grandma-subscribe p,
.grandma-contact p { font-size: 1.8rem; line-height: 1.75; margin: 0 0 18px; }

.g-muted { font-size: 1.9rem; }
.g-emphasis { color: var(--g-blue); font-weight: 600; font-size: 2rem; }
.g-invest   { color: var(--g-burgundy); font-weight: 700; font-size: 2.4rem; margin-top: 26px; }

/* ---------- buttons ---------- */
.g-btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.8rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform .15s ease, opacity .15s ease;
    line-height: 1.2;
}
.g-btn:hover { opacity: .9; transform: translateY(-1px); }
.g-btn-primary { background: var(--g-burgundy); color: #fff; }
.g-btn-gold    { background: var(--g-gold); color: #fff; }
.g-btn-lg      { padding: 18px 44px; font-size: 2rem; }
.g-btn-block   { display: block; width: 100%; text-align: center; }

/* make the THEME header/portal Subscribe button match the brand */
.gh-btn.gh-primary-btn,
.gh-head-btn { background-color: var(--g-burgundy) !important; color: #fff !important; border-color: var(--g-burgundy) !important; }

/* ---------- check lists ---------- */
.g-check-list { list-style: none; padding: 0; margin: 22px 0; }
.g-check-list li {
    position: relative;
    padding: 7px 0 7px 36px;
    font-size: 1.8rem;
    line-height: 1.6;
}
.g-check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0; top: 8px;
    color: #2e9e5b;
    font-weight: 700;
    font-size: 1.8rem;
}
.g-two-col { columns: 2; column-gap: 44px; }
.g-two-col li { break-inside: avoid; }

/* =====================================================
   1. HERO
   ===================================================== */
.g-hero { background: var(--g-cream); padding-top: 56px; overflow: hidden; }
/* let the hero stretch full width so the image can run to the right screen edge,
   while the text stays aligned with the rest of the site */
.g-hero .g-container {
    max-width: none;
    margin: 0;
    padding-left: max(24px, calc((100vw - 1140px) / 2 + 24px));
    padding-right: 0;
}
.g-hero-inner { display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 50px; align-items: center; }
.g-hero-logo { max-width: 360px; width: 100%; height: auto; margin-bottom: 26px; }
.g-hero-lead { font-size: 2.6rem !important; color: var(--g-navy); font-weight: 500; line-height: 1.4 !important; }
.g-hero-sub  { font-size: 2.1rem !important; white-space: nowrap; }
.g-hero-when { font-size: 2rem !important; color: var(--g-navy); }
.g-hero-fine { font-size: 1.4rem !important; color: #8a8a8a; margin-top: 16px; }
.g-hero-image img { width: 100%; height: auto; border-radius: 14px 0 0 14px; display: block; }

/* homepage only: hide the small header logo (client wants the big hero logo to be the only one) */
.home-template .gh-head-logo { display: none; }

/* =====================================================
   2 & 3. WELCOME / FOR YOU
   ===================================================== */
.g-welcome { background: #fff; }
.g-foryou  { background: var(--g-cream); }
.g-receive-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.g-link-sample { color: var(--g-burgundy); font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 1.7rem; }
.g-link-sample:hover { text-decoration: underline; }

/* Welcome section — text left, sample letter on the right */
.g-welcome-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 54px; align-items: start; }
.g-welcome-sample { text-align: center; position: sticky; top: 110px; }
.g-sample-label { font-size: 1.7rem; font-weight: 600; color: var(--g-navy); margin: 0 0 12px; }
.g-welcome-sample img { width: 100%; max-width: 440px; height: auto; border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.14); }
.g-welcome-sample .g-link-sample { display: inline-block; margin-top: 16px; }

/* =====================================================
   4. IMAGINE
   ===================================================== */
.g-imagine { background: #fff; }
.g-imagine-block { margin: 30px 0; }
.g-imagine .g-btn { margin-top: 26px; }

/* =====================================================
   5. TESTIMONIALS
   ===================================================== */
.g-testimonials { background: var(--g-darkblue); color: #fff; }
.g-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.g-testi { margin: 0; text-align: center; color: #fff; }
.g-testi blockquote { margin: 14px 0; font-size: 1.9rem; line-height: 1.6; color: #fff; border: none; padding: 0; font-style: normal; }
.g-stars { color: #f4c430; font-size: 2.2rem; letter-spacing: 3px; }
.g-testi figcaption { font-style: italic; opacity: .9; font-size: 1.6rem; color: #fff; }

/* =====================================================
   6. SIX MONTHS
   ===================================================== */
.g-sixmonths { background: var(--g-cream); }
.g-sixmonths-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.g-sixmonths-image img { width: 100%; height: auto; border-radius: 12px; display: block; }
.g-sixmonths-copy p { margin-bottom: 15px; }

/* =====================================================
   7. CORNER (band)
   ===================================================== */
.g-corner { background: var(--g-darkblue); color: #fff; }
.g-corner p { color: #fff; }
.g-corner .g-h2, .g-corner-title { color: #fff; }
.g-corner .g-btn { margin-top: 18px; }
.g-corner .g-hero-fine { color: rgba(255,255,255,.75) !important; }

/* =====================================================
   8. WHO IS GRANDMA
   ===================================================== */
.g-who { background: #fff; }
.g-who-image { margin: 26px 0 34px; }
.g-who-image img { width: 100%; height: auto; border-radius: 12px; display: block; }
.g-signoff { margin-top: 26px; margin-bottom: 4px; }
.g-signature { max-width: 240px; height: auto; }

/* =====================================================
   9. FINAL CTA
   ===================================================== */
.g-finalcta { background: var(--g-cream); }
.g-finalcta .g-btn { margin-top: 14px; }

/* =====================================================
   SUBSCRIPTION / PRICING
   ===================================================== */
.g-pricing { background: var(--g-cream); }
.g-pricing-icon { width: 100px; height: auto; margin: 0 auto 14px; display: block; mix-blend-mode: darken; }
.g-pricing-head { margin-bottom: 44px; }
.g-plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 900px; margin: 0 auto; }
.g-plans-3 { grid-template-columns: repeat(3, 1fr); max-width: 1140px; }
.g-plan {
    position: relative; background: #fff; border: 1px solid #e6ddd6;
    border-radius: 14px; padding: 40px 32px; box-shadow: 0 6px 24px rgba(0,0,0,.05);
}
.g-plan-featured { border-color: var(--g-gold); }
.g-badge {
    position: absolute; top: -15px; right: 26px; background: #c0392b; color: #fff;
    font-size: 1.3rem; font-weight: 700; padding: 6px 15px; border-radius: 6px;
}
.g-plan-name { color: var(--g-blue); font-size: 2.6rem; margin: 0 0 10px; }
.g-plan-price { margin: 10px 0; }
.g-amount { font-size: 4.2rem; font-weight: 700; color: var(--g-navy); }
.g-per    { font-size: 1.7rem; color: #777; }
.g-plan-save { color: #2e9e5b; font-weight: 600; font-size: 1.6rem; }
.g-plan-save s { color: #999; font-weight: 400; }
.g-signin-line { margin-top: 32px; font-size: 1.7rem; }
.g-signin-line a { color: var(--g-burgundy); font-weight: 600; }

/* =====================================================
   QUOTE BANNER (About page end) — real text so it stays
   readable & responsive on every screen
   ===================================================== */
.g-quote-banner {
    background: var(--g-darkblue);
    color: #fff;
    font-family: var(--font-serif, 'Libre Baskerville', serif);
    text-align: center;
    padding: 56px 48px;
    border-radius: 14px;
    margin: 16px 0;
}
.g-quote-banner p { color: #fff; font-size: 2rem; line-height: 1.75; margin: 0; }
.g-quote-banner em { font-style: italic; }
@media (max-width: 600px) {
    .g-quote-banner { padding: 34px 22px; border-radius: 10px; }
    .g-quote-banner p { font-size: 1.7rem; line-height: 1.7; }
}

/* =====================================================
   CONTACT FORM
   ===================================================== */
.g-contact { background: #fff; }
.g-form { margin-top: 30px; max-width: 620px; }
.g-field { display: block; margin-bottom: 22px; }
.g-field > span { display: block; font-weight: 600; font-size: 1.7rem; margin-bottom: 8px; color: var(--g-navy); }
.g-field i { color: var(--g-burgundy); font-style: normal; }
.g-field input, .g-field textarea {
    width: 100%; padding: 14px 16px; border: 1px solid #ccc; border-radius: 8px;
    font-family: var(--g-font); font-size: 1.7rem;
}
.g-field input:focus, .g-field textarea:focus { outline: 2px solid var(--g-burgundy); border-color: transparent; }
.g-form-success { background: #eaf6ee; border: 1px solid #b6e0c4; border-radius: 10px; padding: 22px 24px; margin-bottom: 8px; }
.g-form-success p { color: #1f7a44; font-size: 1.8rem; font-weight: 600; margin: 0; }

/* =====================================================
   FREE SIGNUP POPUP
   ===================================================== */
.g-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.g-popup[hidden] { display: none; }
.g-popup-overlay { position: absolute; inset: 0; background: rgba(28,42,54,.6); }
.g-popup-box {
    position: relative; z-index: 1; width: 100%; max-width: 560px; border-radius: 16px;
    padding: 48px 44px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    background: linear-gradient(rgba(255,255,255,.88), rgba(255,255,255,.93)), url('images/popup-bg.jpg') center/cover no-repeat;
}
.g-popup-close {
    position: absolute; top: 14px; right: 18px; border: none; background: transparent;
    font-size: 3rem; line-height: 1; color: #888; cursor: pointer;
}
.g-popup-close:hover { color: #333; }
.g-popup-label { color: var(--g-gold); font-weight: 700; letter-spacing: 3px; font-size: 1.5rem; margin-bottom: 14px; }
.g-popup-title { color: var(--g-navy); font-size: 3rem; line-height: 1.2; font-weight: 700; margin: 0 0 16px; }
.g-popup-text { color: var(--g-ink); font-size: 1.8rem; line-height: 1.6; margin: 0 0 24px; }
.g-popup-form { display: flex; flex-direction: column; gap: 14px; }
.g-popup-input {
    width: 100%; padding: 15px 18px; border: 1px solid #ccc; border-radius: 8px;
    font-family: var(--g-font); font-size: 1.7rem; text-align: center;
}
.g-popup-input:focus { outline: 2px solid var(--g-burgundy); border-color: transparent; }
.g-popup-btn { width: 100%; letter-spacing: 1px; }
.g-popup-note { font-size: 1.4rem; color: #8a8a8a; margin: 14px 0 0; }
.g-popup-success { display: none; color: #1f7a44; font-weight: 600; font-size: 1.7rem; margin: 16px 0 0; }
.g-popup-form.success ~ .g-popup-success,
.g-popup-form.success + .g-popup-note + .g-popup-success { display: block; }
.g-popup-form.success { display: none; }
.g-popup-form.success ~ .g-popup-note { display: none; }
@media (max-width: 600px) {
    .g-popup-box { padding: 40px 24px; }
    .g-popup-title { font-size: 2.4rem; }
    .g-popup-text { font-size: 1.7rem; }
}

/* =====================================================
   FOOTER tweaks
   ===================================================== */
.g-footer { background: #f3efec; }
.g-footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.g-footer-nav .nav { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0; justify-content: flex-end; }
.g-footer-nav .nav a { color: var(--g-navy); text-decoration: none; font-size: 1.6rem; }
.g-footer-nav .nav a:hover { color: var(--g-burgundy); }
.g-footer-cta { padding: 11px 22px; font-size: 1.6rem; }
.g-footer-copyright { margin-top: 26px; font-size: 1.5rem; color: #777; }
.g-soli { font-style: italic; color: var(--g-burgundy); margin-left: 6px; }

/* top nav minimal: hide search icon */
.gh-head .gh-search { display: none; }

/* =====================================================
   RESPONSIVE — tablet
   ===================================================== */
@media (max-width: 980px) {
    .g-hero .g-container { max-width: 1140px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
    .g-hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .g-hero-image { order: -1; }
    .g-hero-image img { border-radius: 14px; }
    .g-hero-sub { white-space: normal; }
    .g-hero-logo { margin-left: auto; margin-right: auto; }
    .g-hero-copy { text-align: center; }
    .g-receive-head { justify-content: center; text-align: center; }
    .g-welcome-grid { grid-template-columns: 1fr; gap: 32px; }
    .g-welcome-sample { position: static; max-width: 460px; margin: 0 auto; }
    .g-sixmonths-inner { grid-template-columns: 1fr; gap: 30px; }
    .g-sixmonths-image { order: -1; max-width: 480px; margin: 0 auto; }
    .g-testi-grid { grid-template-columns: 1fr; gap: 44px; max-width: 480px; margin: 0 auto; }
    .g-plans { grid-template-columns: 1fr; max-width: 460px; }
    .g-footer-right { align-items: flex-start; }
    .g-footer-nav .nav { justify-content: flex-start; }
}

/* =====================================================
   RESPONSIVE — mobile
   ===================================================== */
@media (max-width: 600px) {
    .grandma-home section,
    .grandma-subscribe section,
    .grandma-contact section { padding: 52px 0; }
    .g-container { padding: 0 18px; }
    .g-h2 { font-size: 2.7rem; }
    .g-h3 { font-size: 1.9rem; }
    .g-hero-lead { font-size: 2.3rem !important; }
    .g-hero-sub { font-size: 2rem !important; white-space: normal; }
    .grandma-home p, .grandma-subscribe p, .grandma-contact p { font-size: 1.7rem; }
    .g-two-col { columns: 1; }
    .g-amount { font-size: 3.6rem; }
    .g-plan-name { font-size: 2.3rem; }
    .g-btn, .g-btn-lg { width: 100%; text-align: center; padding: 16px 20px; }
    .g-link-sample { white-space: normal; }
    .g-finalcta .g-btn, .g-corner .g-btn, .g-imagine .g-btn { width: 100%; }
}

/* =====================================================
   remove default content padding on the HOMEPAGE only
   (so the hero sits flush; inner pages keep their top spacing
    so headings don't touch the header logo)
   ===================================================== */
.home-template .site-content { padding: 0; }

/* =====================================================
   MOBILE MENU FIX — move Subscribe/Sign in to the top,
   remove the long empty gap (primary nav is empty)
   ===================================================== */
@media (max-width: 767px) {
    .is-head-open #gh-head {
        height: auto;
        bottom: auto;
        padding-bottom: 2.8rem;
        overflow-y: auto;
    }
    .is-head-open #gh-head .gh-head-actions {
        position: static;
        bottom: auto;
        width: 100%;
        padding-top: 1.6rem;
        margin-top: 1.2rem;
    }
    .is-head-open #gh-head .gh-head-actions:before { display: none; }
    .is-head-open #gh-head .gh-head-members { width: 100%; }
}
