/* ==========================================================================
   Supersquid Theme - Global Styles
   ========================================================================== */

/* Base Variables */
:root {
    --color-primary: #0A0A23;
    --color-accent: #001d76;
    --color-bg: #080e2b;
    --color-text: #1a1a1a;
    --color-text-light: #666666;

    /* Typography System */
    --font-base: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    --font-extra: "Domine", Times New Roman, serif;

    /* Type Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.1rem;
    /* 18px */
    --text-xl: 1.15rem;
    /* 20px */
    --text-2xl: 1.25rem;
    /* 24px */
    --text-3xl: 1.5rem;
    /* 28px */
    --text-4xl: 2rem;
    /* 32px */
    --text-5xl: 2.5rem;
    /* 40px */

    /* Font Weights */
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 600;

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.6;
    --leading-relaxed: 1.8;

    --max-width: 1600px;
    --header-height: 70px;
}

* {
    -webkit-tap-highlight-color: transparent;
    --font-base: "DM Sans", "Helvetica Neue", Arial, sans-serif;
    font-family: var(--font-base);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

/* Mobile Layout Fixes (100dvh) */
html,
body {
    height: 100dvh;
    overflow: hidden;
    /* Prevent body scroll */
}

#app-root {
    height: 100dvh;
    width: 100%;
    display: flex;
    overflow: hidden;
}

body,
button {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--contrast-color);
    background-color: transparent;
    transition: opacity 0.3s ease, background 0.6s ease;
}

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

/* Links */
a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    text-decoration: none;
}

/* Containers */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
    background-color: transparent;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
    transition: background-color 0.6s ease, color 0.6s ease;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: none;
}

.site-branding img {
    height: 32px;
    display: block;
}

.site-branding a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    /* No underline for logo */
}

.dynamic-logo {
    width: 150px;
    /* Adjust based on logo aspect ratio */
    height: 40px;
    background-image: var(--logo-url);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    transition: background-image 0.3s ease;
}

.primary-nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.primary-nav li {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.primary-nav a {
    color: var(--contrast-color);
    font-weight: 300;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
    color: var(--color-accent);
    text-decoration: none;
}



/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg);
    color: var(--color-text-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

/* ==========================================================================
   GLOBAL ELEMENTS
   ========================================================================== */
/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.5rem 0;
    font-weight: var(--weight-medium);
    line-height: var(--leading-tight);
    color: inherit;
}

h1 {
    font-family: var(--font-extra);
    font-size: var(--text-5xl);
    font-weight: var(--weight-medium);
}

h2 {
    font-family: var(--font-extra);
    font-size: var(--text-4xl);
    font-weight: var(--weight-medium);
}

h3 {
    font-family: var(--font-base);
    font-size: var(--text-3xl);
}

h4 {
    font-family: var(--font-base);
    font-size: var(--text-2xl);
}

h5 {
    font-family: var(--font-extra);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
}

h6 {
    font-family: var(--font-base);
    font-size: var(--text-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraphs & Text */
p {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-base);
}

p:last-child {
    margin-bottom: 0;
}

/* Lists */
ul,
ol {
    margin: 0 0 0.5rem 0;
    padding-left: 0.5rem;
}

ul {
    list-style-type: disc;
}

ol {
    list-style-type: decimal;
}

li {
    margin-bottom: 0.5rem;
}

li>ul,
li>ol {
    margin-bottom: 0;
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 1.5rem 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-family: var(--font-extra);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle background */
}

/* Buttons */
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #e25725;
    text-decoration: none;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */
.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Button styling */
.header-btn {
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 400;
    transition: background 0.2s ease;
    text-decoration: none;
    font-size: 13px;
}

.header-btn:hover {
    background: #e25725;
    /* Slightly darker accent on hover */
}

/* On landing page (transparent header) adjust contrast if needed */
body.home .header-btn {
    background: var(--color-accent);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 400;
    transition: background 0.2s ease;
    text-decoration: none;
    font-size: 13px;
}

section {
    width: 100%;
    overflow: hidden;
}

.site-footer {
    font-family: inherit;
}

.footer-background {
    padding-top: 2rem;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-brand img {
    max-width: 150px;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 300px;
    text-align: left;
    padding: 10px;
}

.footer-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav .menu li {
    margin: 0.3rem 0;
}

.footer-nav .menu a {
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-nav .menu a:hover {
    text-decoration: underline;
}

.footer-social a {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.85;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-brand,
.footer-nav,
.footer-social {
    max-width: 300px;
    width: 100%;
}

@media (max-width: 768px) {
    :root {

        /* Type Scale */
        --text-xs: 0.65rem;
        /* 12px */
        --text-sm: 0.775rem;
        /* 14px */
        --text-base: 0.85rem;
        /* 16px */
        --text-lg: 0.9rem;
        /* 18px */
        --text-xl: 1rem;
        /* 20px */
        --text-2xl: 1.15rem;
        /* 24px */
        --text-3xl: 1.3rem;
        /* 28px */
        --text-4xl: 1.6rem;
        /* 32px */
        --text-5xl: 1.9rem;
        /* 40px */

        /* Font Weights */
        --weight-light: 300;
        --weight-regular: 400;
        --weight-medium: 500;
        --weight-bold: 600;

        /* Line Heights */
        --leading-tight: 1.2;
        --leading-normal: 1.6;
        --leading-relaxed: 1.8;

        --max-width: 100%;
        --header-height: 70px;
    }

    .footer-nav .menu li {
        margin: 0.3rem 0;
        text-align: left;
        padding: 0 10px;
    }

    .footer-social {
        text-align: left;
        padding: 0 10px;
    }

    .footer-bottom {

        border-top: 1px solid rgb(111 111 111 / 20%);
    }
}

.sqHeaderBlocks {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.sqHplan {
    background-color: #eee;
    padding: 0;
    border-radius: 10px;
}

.sqPlanType {
    text-align: center;
    text-transform: uppercase;
    color: white;
    font-size: 12px;
    background-color: gold;
    border-radius: 10px 10px 0 0;
    padding: 2px 5px;
}

.sqPlanLogo {
    font-size: 12px;
    text-align: center;
    padding: 5px;
    line-height: 14px;
}

.superSquidBlock {
    background-color: #080e2b;
    padding: 0 20px;
}

.superSquidInner {
    background-color: white;
    border-radius: 25px 25px 0 0;
}

.sqHbrandingLogo {
    height: 60px;
    aspect-ratio: 4/2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sqHbranding {
    display: flex;
    align-items: center;
}

.sqHbrandingTxts p {
    color: white;
    font-size: 12px;
}

.sqHmenus {
    display: flex;
    align-items: center;
}

.sqHmenu {
    display: flex;
    list-style: none;
}

.sqHmenu a {
    color: white;
    font-size: 13px;
    opacity: 0.75;
}

.sqHmenu a:hover {
    opacity: 1;
}

.sqHmenu li.active a {
    opacity: 1;
}

.sqHmenu li {
    padding: 0 5px;
}

.sqHuser {
    display: inline-block;
    border: solid 2px white;
    border-radius: 33px;
    cursor: pointer;
    margin: 0 0 0 10px;
}

.supersquidMobileHeader {
    display: none;
    width: 100%;
}

.ssmhTop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    width: 100%;
}

.ssmhTopLeft {
    display: flex;
    align-items: center;
}

.ssmhTopIcon {
    height: 30px;
    margin: 0 0 0 5px;
}

.ssmhTopIcon img {
    height: 100%;
}

.ssmhTopLeft p {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 12px;
    cursor: pointer;
    border: solid 1.5px;
    color: white;
    font-size: 25px;
}

.ssmhTopRight {
    display: flex;
    align-items: center;
    margin: 0 12px 0 0;
}


.sqmHmenu {
    list-style: none;
    color: white;
}

.sqmHmenu li a {
    color: white;
}

.ssmhLeft {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.sshmLeftMENU {
    position: absolute;
    top: 0;
    left: -70%;
    /* hidden off-screen */
    width: 70%;
    height: 100%;
    background-color: #0b0f29;
    box-shadow: 7px 6px 25px #00000073;
    padding: 20px;
    transition: left 0.3s ease;
    z-index: 1009990;
}

/* Active state */
.ssmhLeft.active {
    opacity: 1;
    visibility: visible;
}

.ssmhLeft.active .sshmLeftMENU {
    left: 0;
}

.main-wrapper.superSquidMain {
    width: 100dvw;
    height: 100%;
    overflow-y: auto;
    /* Allow content to scroll */
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
    /* Ensure content starts at top */
}

#region-header {
    width: calc(100% - 60px);
    margin-left: 60px;
}

#region-content {
    width: calc(100% - 60px);
    margin-left: 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: width 0.6s ease, margin-left 0.6s ease;
}

.supersquidSideOpen #region-content {
    width: calc(100% - 440px);
    margin-left: 440px;
}

#region-content-inner {
    width: 100%;
    max-width: 800px;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Optional dimming */
    z-index: 99;
    /* Below sidebar, above content */
}

.sidebar-component.mobile-open .sidebar-overlay {
    display: block;
}

.ssscTitle h5 {
    margin: 0;
}

/* Standard Section Title */
.ssscTitle {
    display: flex;
    align-items: center;
    margin-bottom: 0px;
}

.ssscTitle h5 {
    font-size: 18px;
    font-weight: 700;
    color: var(--contrast-color, #282d4c);
    margin: 0;
}

.ssscTitle p {
    display: inline-flex;
    margin: 0 0 0 7px;
    background-color: var(--model-color-dark, #282d4c);
    color: white;
    width: 25px;
    height: 25px;
    font-size: 12px;
    font-weight: 600;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
}

.squidView-onboarding-single #region-content {
    width: calc(100% - 60px);
    margin-left: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    transition: width 0.6s ease, margin-left 0.6s ease;
    margin-top: 30px;
}

.squidView-onboarding-single #region-content-inner {
    width: 100%;
    max-width: 100%;
}

.squidView-onboarding-single .ssmhTopIcon {
    height: 70px;
    margin: 0 0 0 5px;
    display: flex;
    justify-content: center;
}

/* Mobile Nav (basic) */
@media (max-width: 768px) {
    .primary-nav ul {
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        right: 0;
        background: var(--color-bg);
        border-left: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 1rem;
        gap: 1rem;
        display: none;
    }

    .primary-nav ul.is-open {
        display: flex;
        align-items: center;
    }

    .sqHmenu {
        display: none;
    }

    .sqHbrandingTxts {
        display: none;
    }

    .site-header .container {
        padding: 0;
    }

    .supersquidMobileHeader {
        display: block;
    }

    .sqHeaderBlocks {
        display: none;
    }

    .superSquidBlock {
        padding: 0;
    }

    .superSquidInner {
        border-radius: 0;
    }

    .site-header {
        height: 50px;
    }

    .sqHuser {
        display: inline-block;
        width: 30px;
        height: 30px;
        border: solid 1.5px white;
    }

    .superSquidMain #region-header {
        width: 100dvw;
        margin-left: 0;
    }

    .superSquidMain #region-content {
        width: 100dvw;
        margin-left: 0;
    }

    .squidView-privacy #region-content-inner,
    .squidView-terms #region-content-inner,
    .squidView-cookies #region-content-inner {
        padding: 0 15px;
    }

    .squidView-onboarding-single #region-content {
        width: calc(100% - 20px);
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        transition: width 0.6s ease, margin-left 0.6s ease;
        margin-top: 10px;
    }

    .squidView-onboarding-single #region-content-inner {
        width: 100%;
        max-width: 100%;
    }
}