/* ========== Global Variables ========== */
:root {
    --colorprimary: #83a9d2;    /* 'Ruddy Blue' aka Traible Blue */
    --colorsecondary: #ecf2f8;  /* 'Alice Blue' */
    --colorbackground: #121212; /* 'Night' */
    --colorsurface: #0B141E;    /* 'Rich Black' */
    --textcolor: #aaa;          /* 'Silver' */
    --headshotBackground: #ecf2f8;
    --togglercolor: #f2f3f4;
    --ff: 'Roboto', sans-serif;
    --tf: 'Myriad Pro', sans-serif;
    --margin-xxs: .25rem;
    --margin-xs: .5rem;
    --margin-s: .75rem;
    --margin-m: 1rem;
    --margin-l: 1.25rem;
    --margin-xl: 1.75rem;
    --margin-xxl: 2.5rem;

    --h1: bold max(36px, 4vw) / max(36px,5vw) var(--ff);
    --h2: max(36px, 4vw) / max(36px,5vw) var(--ff);
    --h3: bold 24px/36px var(--ff);
    --h4: bold 18px/27px var(--ff);
    --p: 18px/27px var(--ff);
    --links: bold 18px/18px var(--ff);
    --h5: bold 14px/21px var(--ff);
    --subtext: 12px/20px var(--ff);

    --transition: 0.3s ease-in-out;
    --shadow: 0 4px 12px rgba(131, 169, 210, 0.1);
    --darkshadow: 0px 5px 10px 5px var(--colorbackground);
}

.light-mode {
    --colorprimary: #78A2CE;     /* 'Ruddy Blue' */
    --colorsecondary: #1a1a1a;   /* 'Eerie Black' */
    --colorbackground: #f2f3f4;  /* 'anti-flash white' */
    --colorsurface: #ECF2F8;     /* 'Alice Blue' */
    --textcolor: #333333;        /* 'Jet' */
    --togglercolor: #1a1a1a;
    --headshotBackground: #f2f3f4;
    --shadow: 0 4px 12px rgba(131, 169, 210, 0.388);
}

@font-face {
    font-family: 'Myriad Pro';
    src: url("../fonts/MyriadProRegular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


a:focus, button:focus {
    outline: 2px solid var(--colorprimary);
    outline-offset: 4px;
}

/* ========== Base Elements ========== */
html {
    scroll-behavior: smooth;
    /* scroll-snap-type: y mandatory; */
}
body {
    background-color: var(--colorbackground);
    font-family: var(--ff);
    line-height: 1.6;
    color: var(--colorsecondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}
h1, h2, h3, h4, h5 {
    color: var(--colorprimary);
}
/* h3 {
    color: var(--colorprimary)!important;
} */
h1 { font: var(--h1); line-height: 1.2; }
h2 { font: var(--h2); line-height: 1.3; }
h3 { font: var(--h3); font-size: clamp(20px, 2.5vw, 32px); line-height: 1.4; }
h4 { font: var(--h4); line-height: 1.4; }
h5 { font: var(--h5); line-height: 1.4; }
  
p, ul, .card-text {
    color: var(--textcolor);
    font: var(--p);
}
ul.list-unstyled li h4 {
    margin-bottom: 1rem;
}

/* ========== Section Layouts ========== */
.section {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    padding: 4rem 2rem;
    /* scroll-snap-align: start; */
}
.col {
    display: flex;
    height: 100vh;
    padding-top: 100px;
}

/* ========== Navbar Styles ========== */
/* Default Bootstrap styles use a background-image for the toggler icon.
   We're overriding this based on light/dark mode */
.theme-toggler-icon {
    color: var(--togglercolor);
    transition: var(--transition);
}

.theme-toggler-icon {
    transition: var(--transition);
}
.navbar {
    background-color: var(--colorbackground);
    box-shadow: var(--shadow);
    padding: 1rem 2rem;
    font-size: 1.2rem;
}
.sub-navbar {
    background-color: var(--colorbackground);
    box-shadow: var(--shadow);
    z-index: 1050; /* Ensures it's above other elements */
}
.navbar-brand img {
    width: 50px;
    height: 50px;
    
}
.navbar-dark .navbar-nav .nav-link,
.sub-navbar .nav-link {
    color: var(--textcolor);
    font-weight: 500;
    padding: 1rem 2rem;
    transition: color var(--transition);
}
.links {
    transition: color var(--transition);
}
.links:hover {
    text-decoration: none;
    outline: none; /* remove outline in some cases */
    box-shadow: none; /* fallback to ensure no glow */
}

.navbar-dark .navbar-nav .nav-link:hover,
.sub-navbar .nav-link.active {
    color: var(--colorprimary);
}
.nav-link:hover  {
    color: var(--colorprimary); 
}
.sub-navbar .nav-link.active {
    color: var(--colorsecondary) !important;
    border-bottom: 2px solid var(--colorprimary);
}

#current-section-title {
    font-size: 1rem;
}

.dropdown-toggle {
    font-size: 1.25rem;
    padding: 0;
    border: none;
    background: none;
}

.dropdown-menu {
    min-width: auto;
}

/* ========== Cards & Blocks ========== */
.card {
    background-color: var(--colorsurface);
    border: 2px solid var(--colorprimary);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    transition: transform var(--transition);
    min-height: 100%;
}
.card:hover {
    transform: translateY(-5px);
}
.card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    line-height: 1.8;
}
.card ul.plans-list li {
    padding-left: 24px;
    position: relative;
}
.card ul.plans-list li.plans-yes::before {
    content: "✓";
    color: var(--colorprimary);
    position: absolute;
    left: 0;
}
.card ul.plans-list li.plans-no::before {
    content: "✗";
    color: #e57373; /* soft red */
    position: absolute;
    left: 0;
}
.card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content {
    flex-grow: 1;
}

/* ========== Scroll Indicator & Animations ========== */
.scroll-indicator {
    margin-top: 20px;
    font-size: 1.2em;
    color: var(--colorsecondary);
    opacity: 0.7;
}
.slide-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}
.slide-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Buttons ========== */
.btn:hover {
    color: var(--colorprimary);
    transform: scale(1.05);
    text-decoration: none;
}
.card .btn {
    margin-top: 20px;
    background-color: transparent;
    border: 2px solid var(--colorprimary);
    color: var(--colorsecondary); /* button text color */
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.card .btn:hover {
    background-color: var(--colorprimary);
    color: var(--colorbackground);
}
.nav-link:focus,
.nav-link:active,
.btn:focus,
.btn:active {
    outline: none !important;
    box-shadow: none !important;
}
.nav-link:focus,
.nav-link:active,
.nav-link:focus-visible,
.footer a:focus,
.footer a:active,
.footer a:focus-visible,
.social-icons a:focus,
.social-icons a:active,
.social-icons a:focus-visible,
button:focus,
button:active,
button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: left;
    }
    .section {
        padding: 2rem 1rem;
    }
    .card {
        height: auto;
    }
}
@media (max-width: 991px) {
    .card {
        margin-bottom: 1.5rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ========== Footer ========== */
.footer {
    background-color: var(--colorbackground);
    color: var(--colorsecondary);
    padding: 40px 0;
    font-family: var(--ff);
}
.footer-content h5 {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.footer a {
    color: var(--colorsecondary);
    text-decoration: none;
    display: inline-block;
    margin: 0.25rem 0;
    transition: color 0.3s ease;
}
.footer a:hover {
    color: var(--colorprimary);
}
.footer-divider {
    width: 60%;
    margin: 1.5rem auto;
    border: 1px solid var(--colorsecondary);
    opacity: 0.2;
}
a.text-white:hover {
    color: var(--colorprimary) !important;
    transform: scale(1.1);
}

.social-icons {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 20px; /* space between icons */
    margin: 1rem 0;
}
.social-icons a svg {
    width: 24px;
    height: 24px;
    fill: var(--colorsecondary);
    transition: fill 0.3s ease, transform 0.2s ease;
}
.social-icons a:hover svg {
    fill: var(--colorprimary);
    transform: scale(1.1);
}
svg {
    fill: var(--colorsecondary);
    width: 20px;
}
svg:hover {
    fill: var(--colorprimary);
}

/* ========== Logo ========== */
/* Apply font and remove all default link/hover styles */
.logo-link {
    text-decoration: none!important;
    box-shadow: none;
    outline: none;
}

/* Prevent underline on hover/focus */
.logo-link:hover,
.logo-link:focus,
.logo-link:visited {
    text-decoration: none!important;
    box-shadow: none;
    outline: none;
}

/* Style the logo text */
.logo {
    font-family: var(--tf); /* or directly: 'Myriad Pro', sans-serif */
    font-size: 2.25rem; /* Adjust as needed */
    font-weight: normal;
    margin: 0;
    padding: 0;
    color: var(--colorsecondary);
}

/* Style the colored "ai" part */
.logo .accent {
    color: var(--colorprimary);
}
