/*
Theme Name: SpamGoblin Modern
Theme URI: https://spamgoblin.com/
Author: SpamGoblin
Description: Lightweight custom WordPress theme for SpamGoblin.com. Built for modern WordPress without page-builder or legacy framework dependencies.
Version: 1.1.0
Requires at least: 6.9
Requires PHP: 8.1
Text Domain: spamgoblin-modern
*/

:root {
    --sg-green: #8bc34a;
    --sg-green-bright: #a7df63;
    --sg-green-dark: #5f8f2e;
    --sg-green-deep: #365c1d;
    --sg-lime-soft: #eff8e4;
    --sg-ink: #182019;
    --sg-ink-2: #243127;
    --sg-muted: #687369;
    --sg-border: #dce4db;
    --sg-bg: #fffdf8;
    --sg-bg-soft: #f4f7f1;
    --sg-dark: #101711;
    --sg-dark-2: #19221a;
    --sg-max: 1180px;
    --sg-text: 860px;
    --sg-radius: 18px;
    --sg-radius-sm: 11px;
    --sg-shadow: 0 22px 65px rgba(20, 34, 23, .10);
    --sg-shadow-soft: 0 10px 30px rgba(20, 34, 23, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--sg-ink);
    background: var(--sg-bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--sg-green-deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--sg-green-dark); }

.sg-container { width: min(calc(100% - 48px), var(--sg-max)); margin-inline: auto; }
.sg-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--sg-green-bright);
    font-size: .79rem;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}
.sg-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    background: currentColor;
}

/* Utility + header */
.sg-utility-bar { background: var(--sg-dark); color: #bdc9bd; font-size: .79rem; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-links { display: flex; align-items: center; gap: 10px; }
.sg-utility-bar a { color: #edf4ed; text-decoration: none; }
.sg-utility-bar a:hover { color: var(--sg-green-bright); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 253, 248, .97);
    border-bottom: 1px solid rgba(220, 228, 219, .9);
    backdrop-filter: blur(14px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 26px; }
.site-branding { display: flex; align-items: center; min-width: 175px; margin-right: auto; }
.site-branding img { display: block; max-height: 57px; width: auto; }
.site-title { margin: 0; font-size: 1.45rem; font-weight: 900; }
.site-title a { color: var(--sg-ink); text-decoration: none; }

.primary-navigation ul { list-style: none; margin: 0; padding: 0; }
.primary-navigation > div > ul { display: flex; align-items: center; gap: 2px; }
.primary-navigation li { position: relative; }
.primary-navigation a {
    display: block;
    padding: 11px 11px;
    border-radius: 9px;
    color: #3b493e;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .065em;
    text-transform: uppercase;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current-menu-ancestor > a { background: var(--sg-lime-soft); color: var(--sg-green-deep); }
.primary-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    min-width: 225px;
    padding: 8px;
    background: var(--sg-bg);
    border: 1px solid var(--sg-border);
    border-radius: 13px;
    box-shadow: var(--sg-shadow);
}
.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu { display: block; }

.sg-header-cta {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--sg-dark);
    color: #fff;
    text-decoration: none;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.sg-header-cta:hover { color: var(--sg-dark); background: var(--sg-green-bright); }

.menu-toggle {
    display: none;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--sg-border);
    background: #fff;
    border-radius: 10px;
    padding: 9px 12px;
    color: var(--sg-ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
}

/* Homepage hero */
.sg-home-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(139,195,74,.18), transparent 29%),
        radial-gradient(circle at 15% 105%, rgba(95,143,46,.18), transparent 31%),
        linear-gradient(135deg, #0e1510 0%, #18231a 58%, #101711 100%);
}
.sg-home-hero::after {
    content: "";
    position: absolute;
    inset: auto -120px -190px auto;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(167,223,99,.15);
    border-radius: 50%;
}
.hero-grid { min-height: 640px; display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(340px, .87fr); gap: 70px; align-items: center; padding-top: 82px; padding-bottom: 82px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3.1rem, 6.2vw, 6rem);
    line-height: .96;
    letter-spacing: -.065em;
    font-weight: 950;
}
.hero-copy h1 span { color: var(--sg-green-bright); }
.hero-lede { max-width: 680px; margin: 26px 0 0; color: #d3ddd3; font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 35px; color: #aebbae; font-size: .83rem; font-weight: 700; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: var(--sg-green-bright); font-weight: 950; }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.goblin-shield {
    position: relative;
    z-index: 3;
    width: 225px;
    aspect-ratio: .88;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: polygon(50% 0, 91% 13%, 100% 54%, 83% 84%, 50% 100%, 17% 84%, 0 54%, 9% 13%);
    background: linear-gradient(145deg, var(--sg-green-bright), #68a832);
    color: #10200d;
    box-shadow: 0 35px 90px rgba(0,0,0,.32);
    transform: rotate(-4deg);
}
.goblin-shield::after {
    content: "";
    position: absolute;
    inset: 12px;
    clip-path: inherit;
    border: 2px solid rgba(16,32,13,.25);
}
.goblin-eyes { font-size: 2.1rem; letter-spacing: 8px; line-height: 1; }
.goblin-shield strong { margin-top: 14px; font-size: 1.55rem; line-height: 1.02; text-align: center; letter-spacing: .08em; }
.goblin-orbit { position: absolute; border: 1px dashed rgba(167,223,99,.28); border-radius: 50%; }
.orbit-one { width: 330px; height: 330px; }
.orbit-two { width: 410px; height: 410px; border-style: solid; border-color: rgba(255,255,255,.07); }
.threat-pill {
    position: absolute;
    z-index: 4;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    background: rgba(8,14,9,.72);
    color: #d6e2d6;
    backdrop-filter: blur(9px);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .1em;
}
.threat-one { top: 60px; left: 2px; transform: rotate(-7deg); }
.threat-two { top: 130px; right: -5px; transform: rotate(6deg); }
.threat-three { bottom: 72px; left: 24px; transform: rotate(5deg); }

.sg-trust-strip { border-bottom: 1px solid var(--sg-border); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { min-height: 112px; padding: 26px 26px; border-right: 1px solid var(--sg-border); display: flex; flex-direction: column; justify-content: center; }
.trust-grid > div:first-child { border-left: 1px solid var(--sg-border); }
.trust-grid strong { font-size: 1rem; font-weight: 900; }
.trust-grid span { color: var(--sg-muted); font-size: .83rem; }

/* Buttons */
.sg-button,
.entry-content a.button,
.entry-content .button,
input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 12px 21px;
    border: 0;
    border-radius: 11px;
    background: var(--sg-green-deep);
    color: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}
.sg-button:hover,
input[type="submit"]:hover,
button[type="submit"]:hover { transform: translateY(-1px); background: var(--sg-green-dark); color: #fff; box-shadow: 0 10px 28px rgba(54,92,29,.22); }
.sg-button-primary { background: var(--sg-green-bright); color: #11200e; }
.sg-button-primary:hover { background: #bcf17b; color: #0e190c; }
.sg-button-secondary { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; }
.sg-button-secondary:hover { background: rgba(255,255,255,.12); box-shadow: none; }

/* Home migrated content */
.sg-home-content { background: var(--sg-bg); }
.sg-home-section { position: relative; border-bottom: 1px solid var(--sg-border); }
.sg-home-section:nth-child(even) { background: var(--sg-bg-soft); }
.sg-home-section .entry-content { padding-top: 76px; padding-bottom: 76px; }
.sg-home-section:first-child .entry-content { padding-top: 82px; }
.sg-home-section h2:first-child,
.sg-home-section h3:first-child { margin-top: 0; }
.sg-home-section .sixcol,
.sg-home-section .fourcol,
.sg-home-section .threecol { padding: 28px; border: 1px solid var(--sg-border); border-radius: var(--sg-radius); background: rgba(255,255,255,.82); box-shadow: var(--sg-shadow-soft); }

/* Interior page hero */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 67px 0 58px;
    color: #fff;
    background: linear-gradient(135deg, #131c15, #202d21);
    border-bottom: 4px solid var(--sg-green);
}
.page-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 6%;
    top: -115px;
    border: 1px solid rgba(167,223,99,.13);
    border-radius: 50%;
}
.page-hero h1 { position: relative; z-index: 1; max-width: 850px; margin: 0; font-size: clamp(2.35rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.045em; }
.page-hero p { position: relative; z-index: 1; max-width: 760px; margin: 17px 0 0; color: #cbd7cb; font-size: 1.08rem; }

.site-main { min-height: 55vh; }
.entry-content { padding: 62px 0 82px; }
.entry-content > * { max-width: var(--sg-text); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--sg-max); }
.entry-content > .alignfull { max-width: none; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { line-height: 1.16; letter-spacing: -.03em; }
.entry-content h2 { margin-top: 2.1em; margin-bottom: .55em; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.entry-content h3 { margin-top: 1.7em; margin-bottom: .45em; font-size: 1.35rem; }
.entry-content p { margin-top: 0; margin-bottom: 1.25em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content blockquote {
    margin: 2.4rem auto;
    padding: 28px 31px;
    border-left: 5px solid var(--sg-green);
    background: var(--sg-bg-soft);
    border-radius: 0 var(--sg-radius) var(--sg-radius) 0;
    font-size: 1.08rem;
}

.sg-card {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--sg-border);
    border-radius: var(--sg-radius);
    box-shadow: var(--sg-shadow-soft);
}
.sg-inline-cta { max-width: var(--sg-max) !important; display: flex; align-items: center; justify-content: space-between; gap: 35px; background: var(--sg-dark); color: #fff; }
.sg-inline-cta h2 { margin: 0 0 8px; color: #fff; }
.sg-inline-cta p { margin: 0; color: #c8d2c8; }

/* Specific legacy pages */
.page-id-6314 .entry-content > .sixcol,
.page-id-7174 .entry-content > .sixcol { padding: 28px; background: #fff; border: 1px solid var(--sg-border); border-radius: var(--sg-radius); box-shadow: var(--sg-shadow-soft); }
.page-id-6314 .divider-line { margin: 48px 0; }
.page-id-2 .entry-content,
.page-id-7316 .entry-content { max-width: 1040px; }
.page-id-7552 .entry-content { max-width: 1020px; }
.page-id-7304 .entry-content,
.page-id-7280 .entry-content { max-width: 960px; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], select, textarea {
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    border: 1px solid #c9d2c8;
    border-radius: 10px;
    background: #fff;
    color: var(--sg-ink);
    font: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 135px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sg-green); box-shadow: 0 0 0 4px rgba(139,195,74,.16); }
.gform_wrapper, .wpcf7 { max-width: 940px; margin-inline: auto; }
.gform_wrapper .gform_heading { margin-bottom: 28px; }
.gform_wrapper .gsection { margin-top: 36px !important; padding: 22px 24px 14px !important; border: 0 !important; border-radius: 14px 14px 0 0; background: var(--sg-dark); color: #fff; }
.gform_wrapper .gsection_title { margin: 0 !important; color: #fff; font-size: 1.3rem !important; }
.gform_wrapper .gsection_description { color: #bfccbf; }
.gform_wrapper .gfield { margin-bottom: 17px; }
.gform_wrapper .gfield_label { font-weight: 850; color: #303b31; }
.gform_wrapper .gform_footer { margin-top: 28px; }

/* Footer */
.site-footer { position: relative; overflow: hidden; background: var(--sg-dark); color: #dce6dd; }
.site-footer::after { content: ""; position: absolute; width: 350px; height: 350px; right: -170px; bottom: -190px; border: 1px solid rgba(167,223,99,.12); border-radius: 50%; }
.footer-cta { padding: 54px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-cta h2 { margin: 0 0 6px; color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.04em; }
.footer-cta p { margin: 0; color: #b8c5b9; }
.footer-inner { position: relative; z-index: 1; padding: 48px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: start; }
.site-footer a { color: #fff; }
.footer-contact { font-size: 1.05rem; }
.footer-contact a { display: inline-block; margin-bottom: 4px; text-decoration: none; }
.footer-meta { position: relative; z-index: 1; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.1); color: #94a395; font-size: .87rem; }

.error-404 { padding: 80px 0; text-align: center; }

@media (max-width: 1000px) {
    .sg-header-cta { display: none; }
    .primary-navigation a { padding-inline: 8px; font-size: .73rem; }
    .hero-grid { grid-template-columns: 1fr .72fr; gap: 32px; }
    .hero-visual { transform: scale(.88); }
}

@media (max-width: 860px) {
    .sg-container { width: min(calc(100% - 34px), var(--sg-max)); }
    .sg-utility-bar { display: none; }
    .site-header { top: 0; }
    .header-inner { min-height: 74px; }
    .site-branding img { max-height: 50px; }
    .menu-toggle { display: inline-flex; }
    .primary-navigation { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--sg-bg); border-bottom: 1px solid var(--sg-border); padding: 13px 18px 21px; box-shadow: var(--sg-shadow-soft); }
    .primary-navigation.is-open { display: block; }
    .primary-navigation > div > ul { display: block; }
    .primary-navigation .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 0 15px; background: transparent; }
    .primary-navigation a { padding: 10px 8px; font-size: .82rem; }

    .hero-grid { min-height: auto; grid-template-columns: 1fr; padding-top: 66px; padding-bottom: 60px; }
    .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
    .hero-visual { display: none; }
    .hero-proof { display: grid; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid > div { border-bottom: 1px solid var(--sg-border); }
    .trust-grid > div:nth-child(odd) { border-left: 1px solid var(--sg-border); }
    .trust-grid > div:nth-child(even) { border-right: 1px solid var(--sg-border); }

    .page-hero { padding: 48px 0 42px; }
    .entry-content { padding: 48px 0 64px; }
    .sg-home-section .entry-content { padding-top: 56px; padding-bottom: 56px; }
    .sg-inline-cta, .footer-cta-inner { display: block; }
    .sg-inline-cta .sg-button, .footer-cta .sg-button { margin-top: 20px; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero-actions .sg-button { width: 100%; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-grid > div { border-left: 1px solid var(--sg-border); border-right: 1px solid var(--sg-border); }
    .page-hero h1 { font-size: 2.55rem; }
}
