/* =========================================================
   SCAMSAFETY.ORG
   Warm, trustworthy, high-contrast visual design
   ========================================================= */


/* ================= VARIABLES ================= */

:root {
    --navy: #10243e;
    --navy-dark: #071524;
    --navy-soft: #193452;

    --blue: #1769aa;
    --blue-dark: #0d4f83;

    --red: #b42318;
    --red-dark: #8f1d14;

    --green: #176b4d;
    --green-dark: #10543c;

    --cream: #f5f1e8;
    --cream-dark: #eae3d5;

    --paper: #fffdf8;
    --white: #ffffff;

    --light-blue: #edf4f8;
    --light-green: #edf6f1;
    --light-red: #fff0ed;
    --light-yellow: #fff8df;

    --border: #d7d0c4;
    --text: #1b2733;
    --text-light: #5b6670;
    --text-muted: #77818a;

    --max-width: 1120px;

    --radius: 12px;

    --shadow:
        0 10px 30px rgba(16, 36, 62, 0.08);

    --shadow-hover:
        0 16px 35px rgba(16, 36, 62, 0.13);
}


/* ================= RESET ================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--cream);

    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

p {
    margin-top: 0;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}


/* ================= LAYOUT ================= */

.container {
    width: min(100% - 40px, var(--max-width));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

.section-light {
    background: var(--light-blue);
}

.section-dark {
    background: var(--navy);
    color: var(--white);
}


/* ================= HEADER ================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 253, 248, 0.97);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);
}

.header-content {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: flex;
    flex-direction: column;

    text-decoration: none;
}

.site-name {
    color: var(--navy);

    font-size: 1.45rem;
    font-weight: 850;

    letter-spacing: -0.04em;
}

.tagline {
    color: var(--text-light);

    font-size: 0.78rem;
    line-height: 1.3;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-nav a {
    color: var(--navy);

    text-decoration: none;

    font-size: 0.88rem;
    font-weight: 750;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--blue);
}


/* ================= HERO ================= */

.hero {
    position: relative;

    background:
        linear-gradient(
            135deg,
            #e8eef2 0%,
            #f7f3ea 55%,
            #e5eee9 100%
        );

    border-bottom: 1px solid var(--border);

    padding: 105px 0 95px;

    overflow: hidden;
}

/* Decorative background shapes */

.hero::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -230px;
    right: -140px;

    border-radius: 50%;

    background: rgba(23, 105, 170, 0.08);
}

.hero::after {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    bottom: -220px;
    left: -130px;

    border-radius: 50%;

    background: rgba(23, 107, 77, 0.08);
}

.hero-content {
    position: relative;
    z-index: 1;

    max-width: 900px;

    text-align: center;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--red);

    font-size: 0.76rem;
    font-weight: 900;

    letter-spacing: 0.13em;
}

.hero h1 {
    max-width: 900px;

    margin: 0 auto 26px;

    color: var(--navy);

    font-size: clamp(2.35rem, 5vw, 4.35rem);

    line-height: 1.06;

    letter-spacing: -0.05em;
}

.hero-lead {
    max-width: 760px;

    margin: 0 auto 12px;

    color: #43515d;

    font-size: clamp(1.05rem, 2vw, 1.24rem);
}

.hero-buttons {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;

    margin-top: 40px;
}


/* ================= BUTTONS ================= */

.button {
    min-height: 58px;

    padding: 15px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    text-decoration: none;

    font-weight: 850;

    line-height: 1.3;

    border: 2px solid transparent;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
}

.button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(0, 0, 0, 0.13);
}

.button-danger {
    background: var(--red);
    color: var(--white);
}

.button-danger:hover {
    background: var(--red-dark);
}

.button-primary {
    background: var(--blue);
    color: var(--white);
}

.button-primary:hover {
    background: var(--blue-dark);
}

.button-family {
    background: var(--green);
    color: var(--white);
}

.button-family:hover {
    background: var(--green-dark);
}

.button-light {
    background: var(--white);
    color: var(--navy);
}


/* ================= THREE RULES ================= */

.rules-banner {
    background: var(--navy);

    color: var(--white);

    box-shadow:
        0 5px 20px rgba(7, 21, 36, 0.12);
}

.rules-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.rule {
    min-height: 105px;

    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-direction: column;

    text-align: center;

    gap: 3px;
}

.rule + .rule {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.rule strong {
    font-size: 1.08rem;

    letter-spacing: 0.1em;
}

.rule span {
    color: #cbd8e4;

    font-size: 0.9rem;
}


/* ================= SECTION HEADINGS ================= */

.section-heading {
    display: flex;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 42px;
}

.section-number {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--white);

    color: var(--navy);

    font-size: 0.82rem;
    font-weight: 900;
}

.section-number.red {
    background: var(--red);
}

.section-label {
    display: block;

    margin-bottom: 5px;

    color: var(--blue-dark);

    font-size: 0.73rem;
    font-weight: 900;

    letter-spacing: 0.11em;
}

.red-text {
    color: var(--red);
}

.section-heading h2 {
    margin: 0;

    color: var(--navy);

    font-size: clamp(1.9rem, 3.5vw, 2.7rem);

    line-height: 1.12;

    letter-spacing: -0.04em;
}

.section-heading-light h2 {
    color: var(--white);
}

.section-heading-light .section-label {
    color: #b9cadb;
}

.section-intro {
    max-width: 760px;

    margin: -15px 0 35px 68px;

    color: var(--text-light);

    font-size: 1.02rem;
}


/* ================= THREE STEPS ================= */

.three-step-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.step-card {
    padding: 32px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    position: relative;
}

.step-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 25px;
    right: 25px;

    height: 4px;

    background: var(--blue);

    border-radius: 0 0 5px 5px;
}

.step-icon {
    display: block;

    margin-bottom: 13px;

    font-size: 2.2rem;
}

.step-number {
    display: block;

    margin-bottom: 5px;

    color: var(--blue-dark);

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.1em;
}

.step-card h3 {
    margin: 0 0 10px;

    color: var(--navy);

    font-size: 1.5rem;
}

.step-card p {
    margin: 0;

    color: var(--text-light);
}


/* ================= EMERGENCY ================= */

.emergency-section {
    background:
        linear-gradient(
            135deg,
            #fff1ee 0%,
            #f9eee9 100%
        );
}

.emergency-card {
    max-width: 900px;

    margin: auto;

    padding: 42px;

    background: var(--paper);

    border: 2px solid #e3bdb6;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.emergency-title {
    margin-bottom: 15px;

    color: var(--red);

    font-size: 1.45rem;
    font-weight: 950;
}

.emergency-card > p {
    max-width: 750px;

    font-size: 1.08rem;
}

.do-not-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;

    margin: 28px 0;
}

.do-not-list div {
    padding: 13px 15px;

    background: var(--light-red);

    border: 1px solid #efd4cf;

    border-radius: 7px;

    font-weight: 650;
}

.gift-card-warning {
    padding: 23px;

    background: var(--light-yellow);

    border-left: 5px solid #d0a600;

    border-radius: 6px;
}

.gift-card-warning strong {
    display: block;

    margin-bottom: 7px;

    color: #584700;
}

.gift-card-warning p {
    margin: 0;
}


/* ================= PAYMENT WARNING ================= */

.payment-warning {
    max-width: 950px;

    margin: auto;

    padding: 38px;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    background: var(--paper);

    border: 1px solid #cbd9e1;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.payment-icon {
    font-size: 3rem;
}

.payment-warning h2 {
    margin: 0 0 15px;

    color: var(--navy);

    font-size: 1.8rem;

    line-height: 1.2;
}

.text-link {
    color: var(--blue-dark);

    font-weight: 850;
}


/* ================= PAYMENT CARDS ================= */

.important-message {
    max-width: 900px;

    margin: 0 auto 32px;

    padding: 25px;

    background: rgba(255, 255, 255, 0.08);

    border-left: 4px solid #e7c55b;

    border-radius: 6px;
}

.important-message strong {
    display: block;

    margin-bottom: 5px;

    color: var(--white);

    font-size: 1.2rem;
}

.important-message p {
    margin: 0;

    color: #d2dce5;
}

.payment-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.payment-card {
    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #193452,
            #142c46
        );

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: var(--radius);

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.12);
}

.payment-card h3 {
    margin: 0 0 10px;

    color: var(--white);

    font-size: 1.15rem;
}

.payment-card p {
    margin: 0 0 12px;

    color: #c8d5e0;
}

.payment-card > strong {
    color: var(--white);
}

.action-buttons {
    margin-top: 35px;

    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.evidence-box {
    margin-top: 35px;

    padding: 28px;

    background: #0c1d30;

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: var(--radius);
}

.evidence-box h3 {
    margin-top: 0;

    color: var(--white);
}

.evidence-box p {
    margin-bottom: 0;

    color: #b9c9d7;
}


/* ================= FAMILY ================= */

.family-section {
    background: var(--cream);
}

.family-intro {
    max-width: 760px;

    margin-bottom: 35px;
}

.family-intro h3 {
    margin: 0 0 8px;

    color: var(--navy);

    font-size: 1.6rem;
}

.family-intro p {
    margin: 0;

    color: var(--text-light);
}

.family-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 22px;
}

.family-do,
.family-dont {
    padding: 30px;

    border-radius: var(--radius);
}

.family-do {
    background: var(--light-green);

    border: 1px solid #c7dfd3;
}

.family-dont {
    background: var(--light-red);

    border: 1px solid #e6cbc6;
}

.family-do h3,
.family-dont h3 {
    margin-top: 0;
}

.family-grid ul {
    margin-bottom: 0;

    padding-left: 22px;
}

.family-grid li + li {
    margin-top: 8px;
}

.family-script {
    margin-top: 22px;

    padding: 25px 30px;

    background: var(--navy);

    color: var(--white);

    border-radius: var(--radius);
}

.family-script strong {
    color: #bfcfdd;
}

.family-script p {
    margin: 8px 0 0;

    font-size: 1.15rem;

    font-style: italic;
}


/* ================= FAMILY EMERGENCY ================= */

.family-emergency {
    max-width: 950px;

    margin: auto;

    padding: 38px;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    background: var(--paper);

    border: 1px solid #cbd9e1;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.family-emergency-icon {
    font-size: 3rem;
}

.family-emergency h2 {
    margin: 0 0 15px;

    color: var(--navy);
}


/* ================= COMMON SCAMS ================= */

.scam-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.scam-card {
    padding: 28px;

    display: flex;

    flex-direction: column;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: 0 4px 15px rgba(16, 36, 62, 0.045);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.scam-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);
}

.scam-card h3 {
    margin: 0 0 12px;

    color: var(--navy);

    font-size: 1.2rem;
}

.scam-card p {
    color: var(--text-light);
}

.scam-card strong {
    margin-top: auto;

    margin-bottom: 4px;

    color: var(--navy);
}

.scam-card span {
    color: #46535f;
}

.scam-card a {
    margin-top: 16px;

    color: var(--blue-dark);

    font-weight: 850;
}


/* ================= ROMANCE ================= */

.romance-section {
    background:
        linear-gradient(
            135deg,
            #f9edf1,
            #f8f2ec
        );
}

.romance-box {
    max-width: 850px;

    margin: auto;

    padding: 48px;

    background: var(--paper);

    border: 1px solid #e3cbd3;

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.romance-box h2 {
    margin: 0 0 22px;

    color: var(--navy);

    font-size: clamp(1.8rem, 4vw, 2.5rem);

    line-height: 1.15;
}

.big-warning {
    padding: 18px;

    background: #fff0f3;

    border-left: 5px solid #b4235a;

    font-size: 1.15rem;
}

.romance-box li + li {
    margin-top: 8px;
}

.romance-box > a {
    display: inline-block;

    margin-top: 15px;

    color: var(--blue-dark);

    font-weight: 850;
}


/* ================= LARGE PAYMENT ================= */

.large-payment-box {
    max-width: 900px;

    margin: auto;

    padding: 38px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.large-payment-box h3 {
    margin-top: 0;

    color: var(--navy);
}

.large-payment-box li + li {
    margin-top: 10px;
}

.large-payment-bottom {
    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    display: flex;

    flex-direction: column;

    gap: 5px;
}

.large-payment-bottom strong {
    color: var(--red);

    font-size: 1.1rem;
}


/* ================= PHONE ================= */

.phone-box {
    max-width: 900px;

    margin: auto;

    padding: 38px;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.phone-icon {
    font-size: 3rem;
}

.phone-box h3 {
    margin-top: 0;

    color: var(--navy);

    font-size: 1.45rem;
}

.phone-box a {
    color: var(--blue-dark);

    font-weight: 850;
}


/* ================= IDENTITY ================= */

.identity-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.identity-grid > div {
    padding: 28px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: 0 4px 14px rgba(16, 36, 62, 0.04);
}

.identity-grid h3 {
    margin-top: 0;

    color: var(--navy);
}

.identity-grid p {
    color: var(--text-light);
}

.identity-grid a {
    color: var(--blue-dark);

    font-weight: 850;
}


/* ================= OFFICIAL RESOURCES ================= */

.official-resources {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 15px;
}

.official-resources a {
    padding: 25px;

    display: flex;

    flex-direction: column;

    gap: 4px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: 9px;

    text-decoration: none;

    box-shadow:
        0 3px 12px rgba(16, 36, 62, 0.04);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;
}

.official-resources a:hover {
    transform: translateY(-2px);

    box-shadow: var(--shadow);

    border-color: #b9c8d2;
}

.official-resources strong {
    color: var(--navy);
}

.official-resources span {
    color: var(--text-light);

    font-size: 0.92rem;
}


/* ================= ABOUT ================= */

.about-section {
    background:
        linear-gradient(
            135deg,
            #eee7da,
            #f5f1e8
        );
}

.about-card {
    max-width: 950px;

    margin: auto;

    padding: 45px;

    display: grid;

    grid-template-columns: 80px 1fr;

    gap: 25px;

    background: var(--paper);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 3rem;
}

.about-card h2 {
    margin: 0 0 20px;

    color: var(--navy);

    font-size: 2rem;
}

.about-card p {
    color: #43505d;
}

.about-cta {
    margin-top: 28px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}


/* ================= FINAL ================= */

.final-section {
    padding: 95px 0;

    background:
        radial-gradient(
            circle at top right,
            #193b5d 0,
            var(--navy-dark) 45%
        );

    color: var(--white);

    text-align: center;
}

.final-section .eyebrow {
    color: #bdccda;
}

.final-section h2 {
    margin: 0 0 20px;

    font-size: clamp(2rem, 4vw, 3rem);

    letter-spacing: -0.04em;
}

.final-section p {
    max-width: 700px;

    margin: 0 auto 12px;

    color: #c9d6e1;

    font-size: 1.08rem;
}

.final-action {
    margin-top: 30px !important;

    color: var(--white) !important;

    font-size: 1.35rem !important;

    font-weight: 850;
}


/* ================= FOOTER ================= */

.site-footer {
    padding: 58px 0 25px;

    background: #06111d;

    color: #cbd7e2;
}

.footer-grid {
    display: grid;

    grid-template-columns: 2fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 40px;
}

.footer-brand {
    display: block;

    margin-bottom: 10px;

    color: var(--white);

    font-size: 1.25rem;
}

.footer-grid p {
    max-width: 450px;

    margin: 0;

    color: #91a3b4;
}

.footer-grid h3 {
    margin-top: 0;

    color: var(--white);

    font-size: 0.9rem;
}

.footer-grid a {
    display: block;

    width: fit-content;

    margin-bottom: 7px;

    color: #aebdca;

    text-decoration: none;

    font-size: 0.9rem;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;

    color: #788b9d;

    font-size: 0.78rem;
}


/* ================= ACCESSIBILITY ================= */

a:focus-visible,
button:focus-visible {
    outline: 3px solid #f2c94c;

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}


/* ================= TABLET ================= */

@media (max-width: 900px) {

    .main-nav {
        gap: 14px;
    }

    .main-nav a {
        font-size: 0.8rem;
    }

    .hero-buttons,
    .three-step-grid,
    .payment-grid,
    .scam-grid {
        grid-template-columns: 1fr;
    }

    .payment-grid {
        max-width: 650px;
    }

    .scam-grid {
        max-width: 800px;
    }

    .official-resources {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}


/* ================= MOBILE ================= */

@media (max-width: 700px) {

    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .section {
        padding: 65px 0;
    }

    .header-content {
        min-height: auto;

        padding: 14px 0;

        align-items: flex-start;
    }

    .main-nav {
        display: none;
    }

    .hero {
        padding: 72px 0;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-buttons {
        margin-top: 30px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }

    .rule {
        min-height: 82px;
    }

    .rule + .rule {
        border-left: 0;

        border-top:
            1px solid rgba(255, 255, 255, 0.15);
    }

    .section-heading {
        gap: 14px;

        margin-bottom: 30px;
    }

    .section-number {
        width: 40px;
        height: 40px;

        font-size: 0.75rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .section-intro {
        margin-left: 0;
    }

    .emergency-card,
    .romance-box,
    .large-payment-box,
    .phone-box,
    .family-emergency,
    .about-card {
        padding: 26px;
    }

    .do-not-list {
        grid-template-columns: 1fr;
    }

    .payment-warning,
    .phone-box,
    .family-emergency,
    .about-card {
        grid-template-columns: 1fr;
    }

    .payment-icon,
    .phone-icon,
    .family-emergency-icon,
    .about-icon {
        font-size: 2.3rem;
    }

    .family-grid,
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .button {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }
}


/* ================= PRINT ================= */

@media print {

    .site-header,
    .hero-buttons,
    .rules-banner,
    .action-buttons,
    .site-footer {
        display: none;
    }

    .section {
        padding: 30px 0;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}