/* =========================================
   ROOT VARIABLES
========================================= */

:root {
    --primary-color: #8383ee;
    --background-color: #8484ef;
    --header-color: #21213e;

    --secondary-color: #21213e;
    --accent-color: #f0f0f0;
    --soft-white: #f4f4f4;

    --button-color: #e4d100;
    --button-hover: #d4c100;

    --container-width: 1200px;

    --header-gutter: 4%;

    --primary-text-color: #ffffff;
    --text-color: #272611;
    --secondary-yellow: #e4d100;
    --font-family: Arial, sans-serif;
}

/* =========================================
   GLOBAL RESET
========================================= */

html {
    font-family: var(--font-family);

    font-size: 16px;

    background-color: var(--background-color);
    color: var(--text-color);

    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3,
h4,
p,
a,
button,
li {
    font-family: var(--font-family);
}

/* HEADINGS */

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 18px;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    line-height: 1.3;
    margin-bottom: 16px;
}

h4 {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    line-height: 1.4;
    margin-bottom: 14px;
}

/* TEXT */

p,
li {
    font-size: 1rem;
    line-height: 1.8;
}

/* LINKS */

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

/* IMAGES */

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

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

/* =========================================
   NAVBAR
========================================= */

.site-header {
    width: 100%;
    background: var(--header-color);
    padding: 12px 0;
    position: relative;
    z-index: 1000;
}

.header-inner {
    width: min(calc(100% - 2 * var(--header-gutter)), var(--container-width));
    margin: 0 auto;
}


/* EVERYTHING SAME LINE */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================
   LOGO
========================================= */

.logo-column {
    flex: 0 0 auto;
}

.logo-column a {
    display: flex;
    align-items: center;
}

.site-header .logo-column img {
    display: block;
    width: auto;
    height: 64px;
    max-width: 140px;
}


/* =========================================
   NAVIGATION
========================================= */

.main-menu {
    flex: 1;

    background: transparent;
    border: none;

    display: flex;
    justify-content: center;
}

.menu-list {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.menu-list li {
    margin: 0;
    padding: 0;
}

.menu-list a {
    display: flex;
    align-items: center;

    padding: 10px 12px;

    border-radius: 8px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.menu-list a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--secondary-yellow);
}


/* =========================================
   CONTACT BUTTON
========================================= */

.contact-button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 20px;

    background: var(--button-color);
    color: var(--text-color);

    border: 2px solid var(--button-color);
    border-radius: 10px;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s ease;
}

.contact-button:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
}


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

@media (max-width: 768px) {

    .contact-button {
        flex: 0 0 auto;
    }

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

.site-footer {
    background-color: var(--header-color);
    color: var(--primary-text-color);

    padding: clamp(40px, 6vw, 60px) 0 30px;
}

/* =========================================
   CONTAINER
========================================= */

.footer-container {
    width: min(92%, 1280px);
    margin: 0 auto;
}

/* =========================================
   GRID
========================================= */

.footer-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(220px, 1fr)
    );

    gap: clamp(20px, 4vw, 40px);

    margin-bottom: 40px;
}

/* =========================================
   LOGO
========================================= */

.footer-logo img {
    width: 100%;
    max-width: 120px;
    height: auto;

    margin-bottom: 20px;
}

/* =========================================
   TAGLINE
========================================= */

.footer-tagline {
    color: rgba(255,255,255,.8);

    font-size: 15px;
    line-height: 1.7;
}

/* =========================================
   TITLES
========================================= */

.footer-column h4 {
    color: var(--primary-text-color);

    margin-bottom: 18px;

    font-size: 18px;
    font-weight: 700;
}

/* =========================================
   LISTS
========================================= */

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

/* =========================================
   LINKS
========================================= */

.footer-column a,
.footer-social a {
    color: rgba(255,255,255,.85);

    text-decoration: none;

    transition:
        opacity .25s ease,
        color .25s ease;
}

.footer-column a:hover,
.footer-social a:hover {
    opacity: .75;
}

/* =========================================
   SOCIAL
========================================= */

.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 20px;

    padding: 25px 0;

    border-top: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);

    margin-bottom: 25px;
}

/* =========================================
   COPYRIGHT
========================================= */

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,.7);

    font-size: 14px;
    line-height: 1.6;
}

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

@media (max-width: 980px) {

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

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

@media (max-width: 768px) {

    .site-footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }

    .footer-social {
        gap: 16px;
    }
}

/* =========================================
   LOVESIGNHUB NAV/FOOTER RESPONSIVENESS + ACCESSIBILITY FIXES
========================================= */

/* Keep header usable when navigation has many links */
.site-header,
.main-menu,
.site-footer {
    overflow-wrap: anywhere;
}

.logo-column img,
.footer-logo img {
    object-fit: contain;
}

.contact-button,
.menu-list a,
.footer-column a,
.footer-social a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.contact-button:focus-visible,
.menu-list a:focus-visible,
.footer-column a:focus-visible,
.footer-social a:focus-visible {
    outline: 3px solid var(--secondary-yellow, #e4d100);
    outline-offset: 3px;
}

.footer-column h4,
.footer-tagline,
.footer-bottom p,
.footer-column a,
.footer-social a {
    color: rgba(255,255,255,.88);
}

.footer-column h4 {
    color: #fff;
}

@media (max-width: 980px) {
    /* Narrower gutters on small screens; .header-inner follows the variable. */
    :root {
        --header-gutter: 3%;
    }

    .menu-container,
    .footer-container {
        width: min(94%, var(--container-width));
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 16px 0;
    }

    .header-row {
        gap: 16px;
    }

    .site-header .logo-column img {
        width: auto;
        height: 54px;
        max-width: 120px;
    }

    .menu-list a {
        padding: 10px 12px;
        border-radius: 10px;
    }

    .menu-list a:hover,
    .menu-list a:focus-visible {
        background: rgba(0,0,0,.05);
        opacity: 1;
    }

    .contact-button {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 20px;
    }

    .footer-social a {
        width: 44px;
        height: 44px;
        justify-content: center;
    }
}

/* Shared header: logo, navigation and sign-in in one row. */
.site-header .header-row {
    gap: 20px;
}

.site-header .main-menu {
    min-width: 0;
}

.site-header .menu-container {
    width: 100%;
}

.site-header .menu-list {
    flex-wrap: wrap;
    gap: 4px;
}

.site-header .menu-list a {
    padding: 10px 8px;
}

.site-header .contact-column {
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .site-header .header-row {
        flex-wrap: wrap;
    }

    .site-header .contact-column {
        margin-left: auto;
    }

    .site-header .main-menu {
        order: 3;
        flex: 0 0 100%;
    }
}
