
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    font-family: var(--main-font-family); 
    font-style: bold;
}


body {
    background-color: var(--background-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
}

* {
    text-decoration: none;
    color: var(--link-color);
}

/* Links */

.link-button {
    display: inline-block;
    background-color: var(--highlight-color);
    color: var(--text-color3);
    -webkit-text-stroke: 0.9px var(--text-outline-color);
    text-decoration: none;
    text-shadow: 2px 2px 4px var(--shadow-color2);
    align-items: center;
    text-align: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 0 10px 0 var(--shadow-color);
    padding: 0.5rem;
    transition: all 0.5s ease-in-out;
    min-width: 6rem;
}

.link-button:hover {
    color: var(--highlight-color2);
    box-shadow: 0 0 14px 0 var(--shadow-color2);
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}


.topbar-bottom-row-left {
    width: 12%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-bottom-row-middle {
    width: 76%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topbar-bottom-row-right {
    width: 12%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
}

.main-content {
    text-decoration: none;
    height: auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY & BASE STYLES
   ============================================================ */

html {
    font-size: 16.8px;
}

/* ============================================================
   RESPONSIVE: Galaxy S23 and similar (360px - 480px)
   ============================================================ */

@media (max-width: 480px) {
    html {
        font-size: 15.75px;
    }

    body {
        font-size: 16.8px;
    }

    .link-button {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 0.875rem;
        font-size: 0.984375rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        padding: 0.75rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }
    
    /* Ensure proper spacing between topbar, navbar, and content */
    .topbar {
        margin-bottom: 0;
    }
    
    .navbar-container {
        margin-bottom: 0;
    }
    
    /* Breadcrumb spacing */
    .breadcrumb-container {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Footer spacing */
    .footer {
        margin-top: 2rem;
    }
    
    /* Global container width standardization - prevent horizontal scroll */
    * {
        box-sizing: border-box;
    }
    
    /* Global centering for forms and cards on mobile */
    .auth-container,
    .quote-request-container,
    .form-section,
    .profile-layout-container,
    .card-form-content,
    .auth-card,
    .form-card,
    .quote-container,
    .quote-card,
    .quote-success-card {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 1.5rem);
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Ensure containers are centered and use proper width */
    [class*="container"]:not(.home-container):not(.gallery-public-container):not(.site-background) {
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 1.5rem);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Global card constraints */
    [class*="card"]:not(.home-container):not(.gallery-public-container) {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Global heading font sizes for mobile */
    h1 {
        font-size: clamp(1.3125rem, 4.2vw, 1.8375rem);
        line-height: 1.3;
    }
    
    h2 {
        font-size: clamp(1.18125rem, 3.675vw, 1.575rem);
        line-height: 1.3;
    }
    
    h3 {
        font-size: clamp(1.05rem, 3.15vw, 1.3125rem);
        line-height: 1.3;
    }
    
    h4 {
        font-size: clamp(0.984375rem, 2.625vw, 1.18125rem);
        line-height: 1.4;
    }
    
    h5, h6 {
        font-size: clamp(0.91875rem, 2.1vw, 1.05rem);
        line-height: 1.4;
    }
    
    /* Body text sizes */
    p, span, div, label {
        font-size: clamp(0.91875rem, 2.625vw, 1.05rem);
        line-height: 1.5;
    }
    
    small {
        font-size: clamp(0.7875rem, 2.1vw, 0.91875rem);
        line-height: 1.4;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    html {
        font-size: clamp(14.7px, 4.2vw, 16.8px);
    }

    body {
        font-size: clamp(16.8px, 4.2vw, 18.9px);
    }

    .link-button {
        min-width: auto;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: clamp(0.91875rem, 4.2vw, 1.05rem);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {
        padding: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 15.75px;
    }
}

/* ============================================================
   UTILITY CLASSES FOR INLINE STYLE REPLACEMENT
   ============================================================ */

.position-relative {
    position: relative;
}

.display-none {
    display: none;
}

.display-flex {
    display: flex;
}

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

.flex-align-start {
    display: flex;
    align-items: flex-start;
}

.flex-justify-center {
    display: flex;
    justify-content: center;
}

.flex-gap-sm {
    display: flex;
    gap: var(--admin-space-sm);
}

.flex-gap-base {
    display: flex;
    gap: var(--admin-space-base);
}