/*
Theme Name: Divinigen
Theme URI: https://divinigen.com
Author: Divinigen
Description: Custom Divinigen Theme
Version: 2.3
Text Domain: divinigen
*/

:root {
    --dg-bg: #050505;
    --dg-bg-soft: #0b0b0d;
    --dg-panel: rgba(18, 18, 22, 0.78);
    --dg-panel-strong: rgba(14, 14, 18, 0.92);
    --dg-border: rgba(255, 255, 255, 0.09);
    --dg-text: #f3f3f1;
    --dg-text-soft: rgba(243, 243, 241, 0.78);
    --dg-text-dim: rgba(243, 243, 241, 0.55);
    --dg-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --dg-radius-xl: 30px;
    --dg-radius-lg: 24px;
    --dg-radius-md: 18px;
    --dg-radius-sm: 14px;
    --dg-container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--dg-bg);
    color: var(--dg-text);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

video {
    max-width: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.dg-page-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.04), transparent 38%),
        linear-gradient(180deg, #070707 0%, #040404 100%);
}

.dg-section-inner,
.dg-hero-inner,
.dg-footer-inner,
.dg-header-inner {
    width: min(var(--dg-container), calc(100% - 40px));
    margin: 0 auto;
}

/* =========================
   HEADER
========================= */

.dg-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(5, 5, 7, 0.66);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dg-header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dg-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.dg-brand-mark {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 74px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.dg-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.dg-brand-name {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1;
    letter-spacing: 0.01em;
    color: #f4f2ee;
}

.dg-brand-tagline {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(244, 242, 238, 0.8);
}

.dg-nav-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dg-primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.dg-primary-nav a {
    color: rgba(255,255,255,0.8);
    font-size: 15px;
    transition: color 0.18s ease, opacity 0.18s ease;
}

.dg-primary-nav a:hover {
    color: #ffffff;
}

.dg-mobile-toggle {
    display: none;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dg-mobile-toggle span,
.dg-mobile-toggle span::before,
.dg-mobile-toggle span::after {
    display: block;
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: #f1f1ef;
    position: relative;
}

.dg-mobile-toggle span::before,
.dg-mobile-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.dg-mobile-toggle span::before {
    top: -10px;
}

.dg-mobile-toggle span::after {
    top: 10px;
}

/* =========================
   HERO
========================= */

.dg-homepage {
    position: relative;
}

.dg-hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100svh;
    background: #050505;
}

.dg-hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.dg-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1);
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.dg-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.34) 38%,
        rgba(0, 0, 0, 0.60) 100%
    );
}

.dg-hero-content {
    position: relative;
    z-index: 2;
}

.dg-hero-inner {
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 42px;
    padding: 146px 0 84px;
}

.dg-hero-copy {
    max-width: 620px;
}

.dg-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.11);
    background: rgba(255,255,255,0.03);
    color: rgba(245, 242, 238, 0.88);
    font-size: 14px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.dg-hero-title {
    margin: 22px 0 18px;
    font-size: 56px;
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: #f7f4ef;
    max-width: 560px;
}

.dg-hero-text {
    max-width: 620px;
    color: rgba(245, 242, 238, 0.88);
    font-size: 22px;
    line-height: 1.58;
    margin: 0;
}

.dg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
}

.dg-btn,
.dg-reading-submit,
.dg-path-link,
.dg-print-btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,0.1);
    background: linear-gradient(180deg, rgba(34,34,38,0.86) 0%, rgba(14,14,16,0.92) 100%);
    color: #f3f1ec;
    min-height: 68px;
    padding: 0 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 14px 40px rgba(0,0,0,0.26);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dg-btn:hover,
.dg-reading-submit:hover,
.dg-path-link:hover,
.dg-print-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.18);
    background: linear-gradient(180deg, rgba(42,42,48,0.9) 0%, rgba(18,18,21,0.96) 100%);
}

.dg-btn-secondary {
    background: rgba(255,255,255,0.025);
}

/* =========================
   READING CARD
========================= */

.dg-reading-card {
    background: linear-gradient(180deg, rgba(14,14,18,0.84) 0%, rgba(8,8,10,0.92) 100%);
    border: 1px solid var(--dg-border);
    box-shadow: var(--dg-shadow);
    border-radius: var(--dg-radius-xl);
    padding: 34px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dg-reading-card-header {
    margin-bottom: 20px;
}

.dg-reading-card-kicker {
    color: rgba(215,210,202,0.85);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 10px;
}

.dg-reading-card-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.06;
    color: #f7f4ef;
}

.dg-reading-card-text {
    margin: 0;
    color: var(--dg-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.dg-form-message {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.dg-form-error {
    background: rgba(120, 24, 24, 0.22);
    border: 1px solid rgba(205, 86, 86, 0.28);
    color: #f2cdcd;
}

.dg-form-debug {
    background: rgba(64, 64, 110, 0.22);
    border: 1px solid rgba(120, 120, 200, 0.26);
    color: #d7d9ff;
}

.dg-reading-form {
    display: grid;
    gap: 18px;
}

.dg-form-field {
    display: grid;
    gap: 8px;
}

.dg-form-field label {
    color: rgba(243, 243, 241, 0.88);
    font-size: 14px;
    letter-spacing: 0.04em;
}

.dg-form-field input,
.dg-form-field textarea {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #f7f4ef;
    padding: 18px 18px;
    outline: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.dg-form-field input::placeholder,
.dg-form-field textarea::placeholder {
    color: rgba(243,243,241,0.42);
}

.dg-form-field input:focus,
.dg-form-field textarea:focus {
    border-color: rgba(215,210,202,0.32);
    background: rgba(255,255,255,0.04);
}

.dg-form-field textarea {
    min-height: 132px;
    resize: vertical;
}

.dg-reading-submit {
    width: 100%;
    font-size: 19px;
    margin-top: 4px;
}

.dg-reading-note {
    color: var(--dg-text-dim);
    font-size: 13px;
    line-height: 1.7;
    margin-top: 2px;
}

/* =========================
   PATHWAYS
========================= */

.dg-pathways-section {
    padding: 88px 0 92px;
    background: linear-gradient(180deg, rgba(8,8,9,0.88) 0%, rgba(5,5,6,1) 100%);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.dg-section-heading {
    max-width: 740px;
    margin-bottom: 34px;
}

.dg-section-heading h2 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    color: #f5f2ed;
}

.dg-section-heading p {
    margin: 0;
    color: var(--dg-text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.dg-pathways-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dg-path-card {
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(16,16,19,0.78), rgba(10,10,12,0.92));
    box-shadow: 0 18px 40px rgba(0,0,0,0.24);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dg-path-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.08;
    color: #f4f1eb;
}

.dg-path-card p {
    margin: 0;
    color: var(--dg-text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.dg-path-link {
    margin-top: auto;
    width: 100%;
    min-height: 58px;
    font-size: 16px;
}

/* =========================
   LOADING PAGE
========================= */

.dg-loading-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.03), transparent 34%),
        linear-gradient(180deg, #070708 0%, #040404 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
}

.dg-loading-inner {
    width: min(760px, 100%);
    text-align: center;
    padding: 42px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(13,13,16,0.84);
    box-shadow: var(--dg-shadow);
}

.dg-loading-title {
    margin: 0 0 12px;
    font-size: clamp(40px, 6vw, 62px);
    line-height: 1.02;
}

.dg-loading-text {
    margin: 0 auto 28px;
    max-width: 620px;
    color: var(--dg-text-soft);
    font-size: 18px;
    line-height: 1.7;
}

.dg-loading-symbols {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 30px 0 18px;
}

.dg-loading-symbol {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245,242,238,0.86);
    font-size: 26px;
    animation: dgPulse 1.8s ease-in-out infinite;
}

.dg-loading-symbol:nth-child(2) {
    animation-delay: 0.18s;
}

.dg-loading-symbol:nth-child(3) {
    animation-delay: 0.36s;
}

.dg-loading-symbol:nth-child(4) {
    animation-delay: 0.54s;
}

@keyframes dgPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.72;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

/* =========================
   RESULT PAGE
========================= */

.dg-reading-result-page {
    min-height: 100vh;
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,0.03), transparent 30%),
        linear-gradient(180deg, #070708 0%, #040404 100%);
}

.dg-reading-result-inner {
    width: min(900px, calc(100% - 40px));
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(14,14,18,0.88) 0%, rgba(8,8,10,0.96) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 30px;
    box-shadow: var(--dg-shadow);
    padding: 42px 34px;
}

.dg-reading-title {
    margin: 0 0 10px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 0.98;
    color: #f7f4ef;
}

.dg-reading-name,
.dg-reading-dob,
.dg-reading-question {
    color: var(--dg-text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.dg-reading-name {
    margin-bottom: 4px;
}

.dg-reading-dob {
    margin-bottom: 6px;
}

.dg-reading-question {
    margin-bottom: 26px;
}

.dg-reading-section {
    padding: 24px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.dg-reading-section h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.08;
    color: #f4f1eb;
}

.dg-reading-section p {
    margin: 0;
    color: rgba(243,243,241,0.88);
    font-size: 18px;
    line-height: 1.92;
}

.dg-reading-extras {
    margin-top: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 10px;
    color: var(--dg-text-soft);
    font-size: 17px;
}

.dg-reading-actions {
    margin-top: 30px;
}

.dg-print-btn {
    min-width: 220px;
}

.dg-reading-note {
    margin-top: 22px;
    color: var(--dg-text-dim);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================
   FOOTER
========================= */

.dg-site-footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, #0c0c0d 0%, #080808 100%);
    padding: 34px 0;
}

.dg-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: center;
}

.dg-footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dg-footer-brand {
    color: #f4f4f4;
    font-size: 18px;
    font-weight: 500;
}

.dg-footer-text {
    color: #bdbdbd;
    font-size: 14px;
    line-height: 1.7;
}

.dg-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dg-footer-nav a {
    color: #d0d0d0;
    font-size: 14px;
    transition: color 0.18s ease;
}

.dg-footer-nav a:hover {
    color: #ffffff;
}

/* =========================
   MOBILE NAV
========================= */

@media (max-width: 980px) {
    .dg-primary-nav {
        display: none;
    }

    .dg-mobile-toggle {
        display: inline-flex;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
    .dg-hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        min-height: auto;
        padding: 132px 0 70px;
    }

    .dg-hero-title {
        font-size: 52px;
        max-width: 540px;
    }

    .dg-hero-text {
        font-size: 21px;
        max-width: 580px;
    }

    .dg-pathways-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dg-reading-card {
        max-width: 760px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px) {
    .dg-header-inner {
        min-height: 86px;
    }

    .dg-brand {
        gap: 12px;
    }

    .dg-brand-mark {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .dg-brand-name {
        font-size: 26px;
    }

    .dg-brand-tagline {
        font-size: 10px;
        letter-spacing: 0.18em;
    }

    .dg-mobile-toggle {
        width: 62px;
        height: 62px;
        border-radius: 18px;
    }

    .dg-mobile-toggle span,
    .dg-mobile-toggle span::before,
    .dg-mobile-toggle span::after {
        width: 28px;
    }

    .dg-hero-section {
        min-height: 100svh;
        padding-bottom: 0;
    }

    .dg-hero-video {
        object-position: center 6%;
        transform: scale(0.88);
    }

    .dg-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.24) 38%,
            rgba(0, 0, 0, 0.54) 100%
        );
    }

    .dg-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        width: min(100% - 30px, 640px);
        min-height: 100svh;
        padding: 122px 0 44px;
        align-content: start;
    }

    .dg-hero-copy {
        max-width: 100%;
    }

    .dg-kicker {
        min-height: 46px;
        padding: 0 20px;
        font-size: 11px;
        letter-spacing: 0.16em;
    }

    .dg-hero-title {
        font-size: clamp(52px, 12vw, 76px);
        line-height: 0.96;
        letter-spacing: -0.03em;
        margin: 20px 0 18px;
        max-width: 100%;
    }

    .dg-hero-text {
        font-size: 18px;
        line-height: 1.65;
        max-width: 100%;
    }

    .dg-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        margin-top: 30px;
        width: 100%;
    }

    .dg-hero-actions .dg-btn,
    .dg-hero-actions a,
    .dg-hero-actions button {
        width: 100%;
        min-height: 72px;
        padding: 0 24px;
        font-size: 18px;
    }

    .dg-reading-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .dg-reading-card-title {
        font-size: 28px;
    }

    .dg-reading-card-text {
        font-size: 15px;
    }

    .dg-form-field input,
    .dg-form-field textarea {
        padding: 16px 16px;
        border-radius: 16px;
    }

    .dg-reading-submit {
        min-height: 66px;
        font-size: 18px;
    }

    .dg-pathways-section {
        padding: 68px 0 74px;
    }

    .dg-section-heading {
        margin-bottom: 26px;
    }

    .dg-section-heading h2 {
        font-size: 36px;
    }

    .dg-section-heading p {
        font-size: 16px;
    }

    .dg-pathways-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dg-path-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .dg-path-card h3 {
        font-size: 24px;
    }

    .dg-path-card p {
        font-size: 15px;
    }

    .dg-loading-page {
        padding: 112px 16px 40px;
    }

    .dg-loading-inner {
        padding: 30px 18px;
        border-radius: 24px;
    }

    .dg-loading-title {
        font-size: 36px;
    }

    .dg-loading-text {
        font-size: 16px;
    }

    .dg-loading-symbol {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .dg-reading-result-page {
        padding: 120px 0 70px;
    }

    .dg-reading-result-inner {
        width: min(100% - 24px, 780px);
        padding: 28px 18px;
        border-radius: 24px;
    }

    .dg-reading-title {
        font-size: 34px;
    }

    .dg-reading-name,
    .dg-reading-dob,
    .dg-reading-question,
    .dg-reading-extras {
        font-size: 15px;
    }

    .dg-reading-section {
        padding: 20px 0;
    }

    .dg-reading-section h2 {
        font-size: 24px;
    }

    .dg-reading-section p {
        font-size: 16px;
        line-height: 1.82;
    }

    .dg-print-btn {
        width: 100%;
        min-width: 0;
    }

    .dg-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================
   SMALL PHONE
========================= */

@media (max-width: 420px) {
    .dg-brand-name {
        font-size: 22px;
    }

    .dg-brand-tagline {
        font-size: 9px;
    }

    .dg-hero-title {
        font-size: 48px;
    }

    .dg-hero-text {
        font-size: 17px;
    }

    .dg-reading-card {
        padding: 20px 16px;
    }

    .dg-btn,
    .dg-reading-submit,
    .dg-path-link,
    .dg-print-btn {
        min-height: 64px;
        font-size: 17px;
    }
}

/* ===== FINAL MOBILE HERO FIX ===== */
@media (max-width: 767px) {
    .dg-hero-section {
        min-height: 100vh;
        height: 100vh;
        padding-bottom: 0;
    }

    .dg-hero-video-wrap {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .dg-hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transform: scale(1);
    }

    .dg-hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.22) 34%,
            rgba(0, 0, 0, 0.52) 100%
        );
    }

    .dg-hero-inner {
        min-height: 100vh;
        align-content: start;
        padding: 118px 0 40px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .divi-intensity-options {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    button.divi-intensity-btn {
        width: 100% !important;
        height: 56px !important;
        padding: 0 18px !important;
        border-radius: 18px !important;
        white-space: normal !important;
        flex: none !important;
    }
}