﻿/* ---------- Colours ---------- */
:root {
    /* Brand */
    --brand-navy: #101520;
    --brand-mint: #58f9de;
    --brand-beige: #e1e1c5;
    --brand-black: #101520;
    --brand-dark-grey: #383838;
    --brand-white: #ffffff;
    /* Text */
    --text-navy: var(--brand-navy);
    --text-mint: var(--brand-mint);
    --text-beige: var(--brand-beige);
    --text-white: var(--brand-white);
    --text-grey: #1e1e1e;
    --text-black: var(--brand-black);
    --text-light-grey: #65988d; /* light text on mint backgrounds */
    --text-dark-grey: #545454; /* dark text on white backgrounds */
    --text-darker-grey: var(--brand-dark-grey); /* darker grey text on mint backgrounds */
    --text-dark-blue: #203056; /* daark blue link text on mint backgrounds */
    --text-error: #e6340f; /* red for error messages */
    /* UI Elements */
    --bg-form-panel: #f3f3f3; /* light background for form panels */
    --bg-page-panel: #1e2636; /* dark background for filter panel */
    --bg-selected-section: #18202f; /* dark background for selected sections */
    --bg-thead: #f9f9fb; /* light background for table headers */
    --bg-control: var(--brand-white); /* white background for controls */
    --bg-hr: #d5d5d5; /* light grey for horizontal rules */
    --bg-status-complete: var(--brand-mint); /* light mint */
    --bg-status-incomplete: #e6340f; /* red for incomplete status */
    --bg-status-not-started: #f5e2e2; /* light red for not started status */
    --bg-help-icon: #18202f; /* dark background for help icon */
    --bg-error-icon: #e6340f; /* red for incomplete status */
    --bg-success-green: #157347; /* green for success */
    --bg-error-red: #bb2d3b;
}

/* -------------------
   FAQs Page Accordion
---------------------*/
.accordion-item {
    background-color: var(--brand-navy);
    border: none;
    border-bottom: 1px solid var(--brand-mint);
    margin-bottom: 0;
}

.accordion-button {
    background-color: var(--brand-navy);
    color: var(--text-mint);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    border: none;
    padding: 1.25rem 1rem;
    box-shadow: none;
}

.accordion-button:not(.collapsed) {
    background-color: var(--brand-navy);
    color: var(--text-mint);
    box-shadow: none;
}

.accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2358f9de'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    flex-shrink: 0;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2358f9de'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(-180deg);
}

.accordion-button:hover {
    background-color: var(--bg-page-panel);
    color: var(--text-mint);
}

.accordion-body {
    background-color: var(--brand-navy);
    color: var(--text-beige);
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(88, 249, 222, 0.2);
}

/* Responsive accordion styling */
@media (max-width: 768px) {
    .accordion-button {
        font-size: clamp(16px, 2vw, 18px);
        padding: 1rem 0.75rem;
    }
    
    .accordion-body {
        padding: 1rem 0.75rem;
        font-size: clamp(16px, 2vw, 18px);
    }
}

/* -------------------
   Case Study / Blog Page
---------------------*/
.case-study__image {
    border-radius: 0;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.case-study__logo-header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    gap: clamp(1rem, 3vw, 2rem); /* Add gap to prevent collisions */
}

.case-study__logo--alacrity {
    max-height: clamp(35px, 4vw, 45px); /* Responsive from 35px to 45px */
    object-fit: contain;
    flex-shrink: 0; /* Prevent shrinking too much */
}

.case-study__logo--startsmart {
    max-height: clamp(90px, 10vw, 110px); /* Responsive from 90px to 110px */
    object-fit: contain;
    flex-shrink: 0; /* Prevent shrinking too much */
}

.case-study__logo-separator {
    color: var(--brand-mint);
    font-size: clamp(2.0rem, 4vw, 3.0rem); /* Responsive from 2.0rem to 3.0rem */
    font-weight: 500;
    flex-shrink: 1; /* Allow separator to shrink if needed */
}

/* Medium screens - adjust layout when container narrows */
@media (max-width: 1200px) {
    .case-study__logo-header {
        gap: clamp(0.75rem, 2vw, 1.5rem);
    }

    .case-study__logo--alacrity {
        max-height: clamp(30px, 3.5vw, 40px);
    }

    .case-study__logo--startsmart {
        max-height: clamp(75px, 8vw, 95px);
    }

    .case-study__logo-separator {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
}


/* ---------- Business Plan Title Inline Editing ---------- */
.title-inline-edit-container {
    position: relative;
}

/* Display Mode Styles */
.title-display-mode {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 4px;
    padding: 0.25rem 0;
    transition: background-color 0.2s ease;
}

.title-display-mode:hover {
    background-color: rgba(88, 249, 222, 0.05);
}

.title-display-text {
    margin: 0 !important;
    padding: 0.25rem 0;
}

.title-edit-trigger {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    color: var(--text-dark-grey);
    opacity: 0.4;
    transition: all 0.2s ease;
    line-height: 1;
    font-size: 1.1rem;
}

.title-display-mode:hover .title-edit-trigger {
    opacity: 1;
    color: var(--brand-mint);
    transform: scale(1.1);
}

/* Edit Mode Styles */
.title-edit-mode {
    animation: fadeInScale 0.2s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.business-plan-title {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    border: 2px solid var(--brand-mint) !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    background: rgba(88, 249, 222, 0.08) !important;
    color: inherit !important;
    width: 100% !important;
    min-width: 300px;
    box-shadow: 0 0 0 3px rgba(88, 249, 222, 0.2) !important;
    transition: all 0.2s ease !important;
}

.business-plan-title:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(88, 249, 222, 0.3) !important;
    background: rgba(88, 249, 222, 0.12) !important;
}

.business-plan-title::placeholder {
    color: rgba(var(--text-dark-grey), 0.6) !important;
    opacity: 1 !important;
}

.title-edit-actions {
    display: flex;
    gap: 0.5rem;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-edit-actions .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.title-auto-save-status {
    font-size: 0.875rem !important;
    margin-top: 0.25rem !important;
    min-height: 1.2rem !important;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Remove old styles that are no longer needed */
.title-input-container {
    display: none; /* Hide old implementation */
}

.title-edit-icon {
    font-size: inherit;
    transition: all 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .business-plan-title {
        font-size: 1.25rem !important;
        min-width: 250px;
    }
    
    .title-edit-actions {
        flex-wrap: wrap;
    }
    
    .title-edit-actions .btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* ---------- Font faces ---------- */
@font-face {
    font-family: "Sora";
    src: url("/fonts/sora/Sora-VariableFont_wght.woff2") format("woff2"), url("/fonts/sora/Sora-VariableFont_wght.woff") format("woff"), url("/fonts/sora/Sora-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

/* Comico Regular */
@font-face {
    font-family: 'Comico-Regular';
    src: url('/fonts/comico/Comico-Regular.woff2') format('woff2'), url('/fonts/comico/Comico-Regular.woff') format('woff'), url('/fonts/comico/Comico-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ---------- Base defaults ---------- */
html {
    font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Tweaks */
    font-synthesis-weight: none; /* prevent fake bold */
    font-synthesis-style: none; /* prevent fake italic */
    font-kerning: normal;
}

/* Base background/text come from the theme root class on <html> */
.theme-dark {
    --page-bg: var(--brand-navy);
    --page-fg: var(--text-beige);
    --button-bg: transparent;
    --button-border: var(--brand-mint);
    --button-text: var(--text-mint);
    --button-hover-bg: var(--brand-mint);
    --button-hover-border: transparent;
    --button-hover-text: var(--text-black);
    --button-active-bg: var(--brand-white);
    --button-active-border: transparent;
    --button-active-text: var(--text-black);
    --link-color: var(--text-mint);
    --link-hover-color: var(--brand-beige);
}

.theme-light {
    --page-bg: var(--brand-white);
    --page-fg: var(--text-dark-grey);
    --button-bg: var(--brand-black);
    --button-border: transparent;
    --button-text: var(--text-white);
    --button-hover-bg: var(--brand-dark-grey);
    --button-hover-border: transparent;
    --button-hover-text: var(--text-mint);
    --button-active-bg: var(--brand-white);
    --button-active-border: transparent;
    --button-active-text: var(--text-black);
    --link-color: var(--text-navy);
    --link-hover-color: var(--brand-dark-grey);
}

.bg-mint {
    background-color: var(--brand-mint);
    color: var(--text-dark-blue);
}

.bg-beige {
    background-color: var(--brand-beige);
    color: var(--text-dark-blue);
}

.txt-mint {
    color: var(--text-mint);
}

.txt-beige {
    color: var(--text-beige);
}

body.layout {
    background: var(--page-bg);
    color: var(--page-fg);    
}

/* Balance headings & nicer body wrapping */
h1, h2, h3, .h1, .h2, .h3, .display-xl, .display-lg {
    text-wrap: balance;
}

p, .body, .lead {
    text-wrap: pretty;    
}

    .body {
        font-size: 22px;
    }

/* -------------------
   Header / Navigation
---------------------*/
.site-header {
    background: var(--brand-navy);
    display:flex;
    flex-direction:column;
}

.site-nav .nav-link {
    font-size: clamp(16px, 2.5vw, 20px); /* Responsive from 16px to 20px */
    font-weight: 600;
    color: var(--text-beige) !important; /* Override Bootstrap defaults */
    padding: .75rem 1.5rem !important;
    border:0;
}

.site-nav .nav-link:hover {
    color: var(--brand-mint) !important;
}

/* Active menu item - higher specificity than the general .nav-link style */
.site-nav .nav-link.txt-mint {
    color: var(--brand-mint) !important;
}

.navbar-brand, .navbar-brand:hover {
    border: 0;
}

.site-nav .nav-icon {
    margin: 0 1rem 0 1rem;
}

    .site-nav .nav-icon a, .site-nav .nav-icon a:hover {
        text-decoration: none;
        border: 0;
    }

        .site-nav .nav-icon .bi {
            font-size: 2rem;
        }

/* Mobile menu vertical spacing - when navbar is collapsed */
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse {
        padding-top: 1rem; /* Space between toggler and first menu item */
    }

    .site-nav .nav-link {
        padding: .5rem 1.5rem !important; /* Reduced vertical padding for mobile */
    }

    .site-nav .nav-item {
        margin-bottom: .25rem; /* Additional spacing between menu items */
    }

    .site-nav .nav-icon {
        margin: 1rem 0 0 1.5rem;
    }


    /* Remove bottom margin from last item */
    .site-nav .nav-item:last-child {
        margin-bottom: 0;
    }

    /* Adjust CTA button spacing in mobile menu */
    .site-nav__cta {
        margin-left: 0;
        margin-top: .5rem; /* Extra space above the CTA button */
        display: inline-block;
        width: fit-content;
    }
}

/* Make the default Bootstrap hamburger visible on both themes */
.theme-dark .navbar-toggler {
    border-color: rgba(255,255,255,.25);
}

.theme-dark .navbar-toggler-icon {
    filter: invert(1);
}

.theme-light .navbar-toggler {
    border-color: rgba(0,0,0,.25);
}

.theme-light .navbar-toggler-icon {
    filter: invert(0);
}

.navbar-toggler {
    border-color: rgba(255,255,255,.25);
}

.navbar-toggler-icon {
    filter: invert(1);
}

.header-logo {
    height: clamp(80px, 12vw, 110px); /* Responsive logo height */
}

.menu-tagline {
    font-size: clamp(18px, 3.5vw, 24px); /* Responsive from 18px to 24px */
    font-weight: 700;
    color: var(--text-mint);
    text-align: center;
    margin-bottom: 30px;
}

.site-nav__cta { /* Call to action button in header */
    margin-left: .5rem;
}

/* -------------------
   Hero slider
----------------------*/
.hero {
    position: relative;
    isolation: isolate;
    background: var(--brand-navy);
    color: var(--text-beige);
}

.hero__wrap {
    position: relative;
    margin-inline: auto;
    /* JS writes --x: <px> to track handle position for the vertical rule */
    --x: 0px;
}

/* 3 equal columns holding the images */
.hero__panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: clamp(420px, 65vh, 760px);
    overflow: hidden;
    position: relative;
    z-index: 0;
}

.hero__panel {
    position: relative;
    overflow: hidden;
}

    .hero__panel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
        display: block;
    }

    /* Scrim (dark overlay) — lighter on the active panel */
    .hero__panel::after {
        content: "";
        position: absolute;
        inset: 0;
        background: #0e1526; /* deep navy scrim */
        opacity: var(--scrim, 0.64);
        transition: opacity 220ms ease;
        pointer-events: none;
    }

    .hero__panel.is-active::after {
        --scrim: 0.12;
    }

    /* Nudge the srd panel’s focal point so his face isn’t clipped */
    .hero__panel:nth-child(2) img {
        object-position: 60% 50%;
    }

    /* Nudge the 3rd panel’s focal point so his face isn’t clipped */
    .hero__panel:nth-child(3) img {
        object-position: 20% 50%;
    }

/* Big headline in brand mint (per comps), staggered lines */
.hero__content {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: left;
    pointer-events: none; /* don’t block dragging */
    padding-inline: clamp(16px, 6vw, 48px);
    z-index: 2;
}

.hero__headline {
    color: var(--brand-mint);
    font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    text-shadow: 0 2px 18px rgba(141, 247, 221, 0.25);
    font-size: clamp(2.2rem, 6vw, 6rem);
    max-width: 18ch;
    margin: 0;
}

.hero__line {
    display: inline-block;
}

.hero__line--1 {
    margin-left: 0;
    text-wrap-mode: nowrap;
}

.hero__line--2 {
    margin-left: clamp(24px, 4.4vw, 60px);
    text-wrap-mode: nowrap;
}

.hero__line--3 {
    margin-left: clamp(48px, 8.8vw, 120px);
    text-wrap-mode: nowrap;
}

.hero__byline {
    display:none; /* Temp while we await customer quotes */
    margin-top: clamp(-80px, -15vw, -130px); /* Responsive negative margin */
    font-family: "Comico-Regular", "Sora", sans-serif;
    font-weight: 400;    
    text-align: left;
}

.hero__name {
    color: var(--text-beige);
    font-size: clamp(1.7rem, 2vw, 1.25rem);
    letter-spacing: 0.08em;
}

.hero__org {
    color: var(--text-white);
    font-size: clamp(0.9rem, 1.7vw, 1.1rem);
    opacity: 0.9;
}

/* Vertical rule that aligns with the handle */
.hero__rule {
    position: absolute;
    top: 0;
    bottom: 15px;
    width: 2px;
    left: var(--x);
    transform: translateX(-50%);
    background: var(--brand-beige);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Handle/slider */
.hero__slider {
    position: absolute;
    inset: 0;
}

.hero__handle {
    --size: clamp(48px, 6vw, 64px);
    position: absolute;
    top: 28px; 
    left: 0;
    translate: -50% 0; /* keep the circle centred on x */
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background: var(--brand-beige); 
    border: 0;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(0,0,0,.28), 0 0 0 2px rgba(16,21,32,.12) inset;
    cursor: grab;
    touch-action: none; /* iOS: allow horizontal drag without scrolling */
    -webkit-tap-highlight-color: transparent;
    z-index: 3;
}

    .hero__handle:active {
        cursor: grabbing;
    }

    .hero__handle:focus-visible {
        outline: 3px solid var(--brand-mint);
        outline-offset: 2px;
    }

.hero__handle-icon {
    fill: var(--brand-navy);
    opacity: 0.9;
}

/* Make room for text on narrow phones by shifting content left slightly */
@media (max-width: 600px) {
    .hero__content {
        justify-items: start;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero__panel::after {
        transition: none;
    }
}

/* -------------------
   Feature Rows (alternating)
---------------------*/
.feature-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center; 
    gap: clamp(20px, 4vw, 40px);
    padding: clamp(30px, 5vw, 60px) 0px;
    width: 100%;
    box-sizing: border-box;
}

.feature-row--alt {
    flex-direction: row-reverse;
}

.feature-row__text {
    flex: 1 1 40%; 
    min-width: 0;
    max-width: 500px; 
    display: flex;
    flex-direction: column;
    gap: clamp(15px, 2.5vw, 20px);
    font-family: "Sora", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
}

.feature-row__text h2 .feature___line.feature___line--1 {
    font-size: clamp(28px, 6vw, 64px);
    text-align: left;
    text-wrap-mode: nowrap;
}

.feature-row__text h2 .feature___line.feature___line--2 {
    font-size: clamp(20px, 4vw, 36px);
    margin-left: clamp(30px, 8vw, 120px);
    text-wrap-mode: nowrap;
}

.feature-row__text h2 {
    margin-bottom: .5rem;
}

.feature-row__art {
    flex: 1 1 40%; 
    min-width: 0;
    max-width: 400px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-row__art img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
    z-index: -100;
}

/* Tablet responsive: 769px to 992px */
@media (max-width: 992px) and (min-width: 769px) {
    .feature-row {
        gap: clamp(15px, 3vw, 30px);
        padding: clamp(25px, 4vw, 40px) 0;
    }
    
    .feature-row__text {
        flex-basis: 48%; /* Smaller basis for tablets */
        max-width: 500px;
    }
    
    .feature-row__art {
        flex-basis: 48%; /* Smaller basis for tablets */
        max-width: 400px;
    }
    
    .feature-row__text h2 .feature___line.feature___line--1 {
        font-size: clamp(24px, 5vw, 48px);
    }
    
    .feature-row__text h2 .feature___line.feature___line--2 {
        font-size: clamp(18px, 3.5vw, 28px);
        margin-left: clamp(20px, 6vw, 60px);
    }
}

/* Mobile responsive: 768px and below */
@media (max-width: 768px) {
    .feature-row,
    .feature-row--alt {
        flex-direction: column;
        text-align: center;
        gap: clamp(20px, 5vw, 40px);
        padding: clamp(30px, 5vw, 40px) 20px;
    }

    .feature-row__text {
        flex: none; /* Remove flex behavior */
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .feature-row__art {
        flex: none; /* Remove flex behavior */
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .feature-row__text h2 .feature___line.feature___line--1 {
        font-size: clamp(24px, 7vw, 36px);
    }
    
    .feature-row__text h2 .feature___line.feature___line--2 {
        font-size: clamp(18px, 5vw, 24px);
        margin-left: clamp(15px, 4vw, 30px);
    }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
    .feature-row {
        gap: clamp(15px, 4vw, 25px);
        padding: clamp(20px, 4vw, 30px) 20px;
    }
    
    .feature-row__text h2 .feature___line.feature___line--2 {
        margin-left: clamp(10px, 3vw, 20px);
    }
}

/* -------------------
   Mid banner (photo with overlayed mint words/arrow)
---------------------*/
.mid-banner {
    position: relative;
}

.mid-banner__photo {
    width: 100%;
    height: clamp(220px, 40vw, 800px);
    object-fit: cover;
    object-position: center;
    display: block;
}

.mid-banner__overlay {
    position: absolute;
    left: 50%; /* Position at center */
    top: 1rem;
    transform: translateX(-50%); /* Center the element */
    width: clamp(50%, 25vw, 100%); /* Responsive width: 50% min, scales with viewport, 100% max */
    height: auto;
}

/* -------
   Footer
---------*/
/* Footer shared baseline; mint background already via .bg-brand */

footer {
    background-color: var(--brand-mint);
}

.footer__wrap{
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: clamp(40px, 8vw, 60px) 0; /* Responsive padding from 40px to 60px */
}

.footer__logo {
    margin-bottom: clamp(40px, 8vw, 60px); /* Responsive margin from 40px to 60px */
}

/* Social icons row */
.footer-social {
    display: none !important; /* Temp while we await soc med account setup */
    justify-content: center;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.footer-social__icon {
    width: clamp(32px, 5vw, 40px); /* Responsive from 32px to 40px */
    height: clamp(32px, 5vw, 40px); /* Responsive from 32px to 40px */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social__icon img {
    width: clamp(24px, 4vw, 30px); /* Responsive from 24px to 30px */
    height: clamp(24px, 4vw, 30px); /* Responsive from 24px to 30px */
}

/* Copyright */
.footer-copy {
    font-size: clamp(14px, 2vw, 16px); /* Responsive from 14px to 16px */
    font-weight: 500;
    color: var(--text-black);
}

/* Wider screens: let logo, login (if present), socials, copy breathe */
@media (min-width: 768px) {
    .footer__wrap {
        grid-template-columns: 1fr;
        row-gap: 1.1rem;
    }
}


 /* --------
   Buttons
----------*/
.button {
    font-size: clamp(16px, 2.5vw, 20px); /* Responsive from 16px to 20px */
    line-height: 1;
    font-family: "Sora";
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 0;
    border-top-left-radius: 25px;
    border-bottom-right-radius: 25px;
    border: 1px solid transparent;
    text-decoration: none;
    text-wrap-mode: nowrap;
}

.button--menu {
    background: var(--brand-mint);
    color: var(--text-navy);
}

    .button--menu:hover {
        background: var(--brand-white);
        color: var(--text-navy);
    }

    .button--menu:active {
        background: transparent;
        border-color: var(--brand-mint);
        color: var(--brand-mint);
    }

.button--body {
    background: var(--button-bg);
    border-color: var(--button-border);
    color: var(--button-text);
}

    .button--body:hover {
        background: var(--button-hover-bg);
        border-color: var(--button-hover-border);
        color: var(--button-hover-text);
    }

    .button--body:active {
        background: var(--button-active-bg);
        border-color: var(--button-active-border);
        color: var(--button-active-text);
    }

    /* ---------- Bootstrap Overrides for Identity Pages ---------- */

    /* Links - Override Bootstrap default link colors */
    a {
        color: var(--link-color);
        text-decoration: none;
    }

        a:hover {
            color: var(--link-hover-color);
        }

    /* Nav Pills - Override Bootstrap nav-pills to use brand colors */
    .nav-pills .nav-link {
        font-family: "Sora", system-ui, sans-serif;
        font-weight: 500;
        color: var(--page-fg);
        background-color: transparent;
        border-radius: 0;
        margin-bottom: 0.5rem;
        padding: 0.5rem 1rem;
        border: 1px solid transparent;
        transition: all 0.15s ease-in-out;
    }

    .nav-pills .nav-link:hover {
        color: var(--brand-mint);
        background-color: rgba(88, 249, 222, 0.1);
        border-color: rgba(88, 249, 222, 0.3);
    }

    .nav-pills .nav-link.active {
        color: var(--text-navy);
        background-color: var(--brand-mint);
        border-color: var(--brand-mint);
    }

    .nav-pills .nav-link.active:hover {
        color: var(--text-navy);
        background-color: var(--brand-mint);
        border-color: var(--brand-mint);
    }

    /* Bootstrap Alerts - Override Bootstrap alert colors to use brand colors */
    .alert {
        font-family: "Sora", system-ui, sans-serif;
        border-radius: 0;
        border-width: 0px;
    }

    .alert-success {
        color: var(--text-white);
        background-color: green;
    }

    .alert-danger {
        color: var(--text-white);
        background-color: red;
    }

    .alert-warning {
        color: black;
        background-color: orange;
    }

    .alert-warning p {
        color: black !important;
        background-color: orange;
    }

    .alert-warning p:last-of-type {
        margin:0;
    }

    .alert-info {
        color: var(--text-dark-blue);
        background-color: var(--brand-beige);
        border-color: var(--brand-mint);
    }

    .alert-primary {
        color: var(--text-white);
        background-color: var(--brand-navy);
        border-color: var(--brand-navy);
    }

    .alert-secondary {
        color: var(--text-white);
        background-color: var(--brand-dark-grey);
        border-color: var(--brand-dark-grey);
    }

    .alert-light {
        color: var(--text-dark-grey);
        background-color: var(--brand-white);
        border-color: var(--text-dark-grey);
    }

    .alert-dark {
        color: var(--text-beige);
        background-color: var(--brand-navy);
        border-color: var(--brand-navy);
    }

    /* Alert links */
    .alert a,
    .alert .alert-link {
        color: inherit;
        font-weight: 600;
        text-decoration: underline;
    }

    .alert-success a,
    .alert-success .alert-link {
        color: var(--text-darker-grey);
    }

    .alert-info a,
    .alert-info .alert-link {
        color: var(--text-dark-blue);
    }

    .alert-warning a,
    .alert-warning .alert-link {
        color: var(--text-darker-grey);
    }

    /* Form Controls - Make them fit the design system */
    .form-control, .form-select,
    .form-floating .form-control {
        font-family: "Sora", system-ui, sans-serif;
        background-color: var(--bg-control);
        border-color: var(--text-dark-grey);
    }

    .form-control:focus,
    .form-floating .form-control:focus {
        box-shadow: 0 0 0 0.25rem rgba(141, 247, 221, 0.25);
    }

    .form-check-input[type="checkbox"] {
        margin-right: 10px;
    }

    .form-check-input[type="checkbox"]:checked {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    }

    /* Table header, cells etc*/
    tbody, td, tfoot, th, thead, tr {
        font-family: "Sora", system-ui, sans-serif;
        align-content: center;
    }

    th {
        font-weight: 500;
        font-size: 110%;
    }

    /* Form Labels */
    .form-label {
        font-family: "Sora", system-ui, sans-serif;
        font-weight: 500;
    }

    .form-floating > label {
        font-family: "Sora", system-ui, sans-serif;
        font-weight: 300;
        color: var(--text-black);
    }

    /* Button Overrides - Map Bootstrap button classes to your button system */
    .btn {
        font-family: "Sora", system-ui, sans-serif;
        font-weight: 600;
        border-radius: 0;
        border-top-left-radius: 25px;
        border-bottom-right-radius: 25px;
        text-wrap-mode: nowrap;
        min-width:60px;
    }

    .btn-primary,
    .btn-lg.btn-primary {
        background: var(--button-bg);
        border-color: var(--button-border);
        color: var(--button-text);
    }

    .btn-primary:hover,
    .btn-lg.btn-primary:hover {
        background: var(--button-hover-bg);
        border-color: var(--button-hover-border);
        color: var(--button-hover-text);
    }

    .btn-primary:active,
    .btn-primary:focus,
    .btn-lg.btn-primary:active,
    .btn-lg.btn-primary:focus {
        background: var(--button-active-bg);
        border-color: var(--button-active-border);
        color: var(--button-active-text);
        box-shadow: 0 0 0 0.25rem rgba(141, 247, 221, 0.25);
    }

    /* Button Link */
    .btn-link {
        color: var(--link-color);
        font-family: "Sora", system-ui, sans-serif;
        font-weight: 500;
    }

    .btn-link:hover {
        color: var(--link-hover-color);
    }

    /* Error/Validation Messages */
    .text-danger,
    .field-validation-error {
        color: var(--text-error) !important;
    }

    /* Validation Summary */
    .validation-summary-errors {
        background: var(--bg-error-red);
        padding: 20px;
        margin-bottom: 20px;
    }

    .validation-summary-errors ul {    
        color: var(--brand-white);
        margin: 0;
    }

    /* Identity-specific form styling */
    .form-floating {
        margin-bottom: 1rem;
    }

    /* Checkbox styling */
    .form-check-input {
        background-color: var(--bg-control);
        border-color: var(--text-dark-grey);
    }

    .form-check-input:checked {
        background-color: var(--brand-mint);
        border-color: var(--brand-mint);
    }

    .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(141, 247, 221, 0.25);
    }

    /* Make sure headings use proper typography */
    h1, h2, h3, h4, h5, h6 {
        font-family: "Sora", system-ui, sans-serif;
    }

    /* ---------- Bootstrap Overrides for Identity Pages ---------- */

    /* Identity Panel - Centered panel for login/register forms */
    .identity-panel-container {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 1rem 3rem 1rem;
    }

    .identity-panel {
        background: var(--bg-page-panel);
        border-radius: 20px;
        padding: clamp(2rem, 5vw, 3rem);
        width: 100%;
        max-width: 480px; /* Reasonable width for forms */
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    }

        /* For Manage pages with sidebar nav, allow wider panel */
        .identity-panel:has(.col-md-3) {
            max-width: 800px;
        }

        /* Override the Bootstrap row/column layout in Identity forms */
        .identity-panel .row {
            margin: 0;
        }

        .identity-panel .col-md-4 {
            flex: 1;
            max-width: 100%;
            padding: 0;
        }

        /* Handle the manage navigation layout */
        .identity-panel .col-md-3,
        .identity-panel .col-md-9 {
            padding-left: 0;
            padding-right: 0;
        }

        .identity-panel .col-md-3 {
            margin-bottom: 1.5rem;
        }

        /* Make headings and text work well in the panel */
        .identity-panel h1,
        .identity-panel h2 {
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .identity-panel h3, .identity-panel h4 {
            margin-left: 0.5rem;
            margin-bottom: 1.5rem;
            text-align: left;
        }

        .identity-panel p {
            color: var(--text-beige);
        }

        .field-validation-error {
            display: block;
            margin-top: 10px;
        }

    /* QR Code */
    #qrCodeData {
        margin-bottom: 10px;
    }

    .progress-bar {
        background-color: var(--bg-success-green);
    }

    .bi-no-data {
        font-size: 3rem;
    }

    @media (max-width: 576px) {
        .identity-panel {
            padding: 1rem;
            border-radius: 20px;
        }
    }

    /* -------------------
       Contact Page
    ---------------------*/
    .contact-header {
        background: var(--bg-page-panel);
        color: var(--text-beige);
    }

    .contact-header__icon {
        max-height: clamp(50px, 6vw, 70px);
        object-fit: contain;
        margin: 0 clamp(1rem, 2vw, 2rem);
    }

    .contact-header__tagline {
        font-size: clamp(16px, 2.5vw, 20px);
        font-weight: 500;
    }

    .contact-form-section {
        background: var(--bg-form-panel);
        padding: 40px 0;
    }

    .contact-form-content {

        margin: 0 auto;
    }

        .contact-form-content h2 {
            color: var(--text-black);
            font-weight: 600;
        }

    .contact-form__phone {
        color: var(--text-black);
        font-size: clamp(18px, 2.5vw, 22px);
        font-weight: 500;
    }

    .contact-form-section .form-label {
        color: var(--text-black);
    }

    /* Contact form button styling */
    .contact-form-section .btn-primary {
        background: var(--brand-black);
        border-color: var(--brand-black);
        color: var(--text-white);
        border-radius: 0;
        padding: 5px 50px;
    }

        .contact-form-section .btn-primary:hover {
            background: var(--brand-dark-grey);
            border-color: var(--brand-dark-grey);
            color: var(--text-white);
        }

        .contact-form-section .btn-primary:active,
        .contact-form-section .btn-primary:focus {
            background: var(--brand-black);
            border-color: var(--brand-black);
            color: var(--text-white);
        }

    /* Responsive adjustments for contact page */
    @media (max-width: 768px) {
        .contact-header .row {
            flex-direction: column;
            text-align: center;
            gap: 1.5rem;
        }

        .contact-header__icon {
            margin: 0 auto;
        }
    }