/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Brand Colors */
    --color-primary: #b68b3c;
    --color-primary-light: #1e3046;
    --color-primary-dark: #1e3046;
    --color-accent: #b68b3c;

    /* Neutral Colors */
    --color-bg-light: #f8fafbF0;
    --color-bg-white: #ffffff;
    --color-text-dark: #0f1926;
    --color-text-light: #38506c;
    --color-border: #e2e8f0;

    /* Typography */
    --font-main: 'CustomFont', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Layout & Spacing */
    --max-width: 1200px;
    --transition-fast: 0.2s ease;
    --border-radius: 6px;
    --mobile-width: 1024px;
}

@font-face {
    font-family: 'CustomFont';
    src: url("../fonts/montserrat.ttf");
}

.color-accent {
    color: var(--color-accent);
}

/* ==========================================================================
    BACKGROUND
   ========================================================================== */

#moving-bg {
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    background-image: url("../images/background-header2.webp");
    background-size: cover;
}

/* ==========================================================================
   GLOBAL RESETS & STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

ul {
    list-style: none;
}

/* ==========================================================================
   3. COMPONENTS (BUTTONS & FORMS)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.85rem 2.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover {
    cursor: pointer;
}

.btn-primary {
    background: var(--color-primary-dark);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-primary);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #1e2a3a;
    border: 2px solid #1e2a3a;
}

.btn-secondary:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-submit {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    width: 100%;
    border: none;
    font-size: 1rem;
}

.btn-submit:hover {
    background-color: var(--color-primary-dark);
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    gap: 2vw;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    margin: 2vh 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: .8rem;
    letter-spacing: 2px;
    user-select: none;
}

.logo-text-main {
    text-transform: uppercase;
}

.logo-text-sub {
    font-size: .7rem;
}

.logo img {
    height: 100%;
    max-height: 50px;
}

.main-navigation {
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    /* align-items: center; */
    gap: 2vw;
    font-size: clamp(.8rem,.3598rem + .71vw,1rem);
}

.main-navigation ul li {
    display: flex;
    /* align-items: center;
    justify-content: center; */
    /* min-height: 72px; */
}

.main-navigation a {
    color: var(--color-text-dark);
    font-weight: 500;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--color-primary);
}


/* ==========================================================================
   5. SECTIONS & LAYOUTS
   ========================================================================== */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.25rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

section>.container>p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.color-light {
    color: var(--color-primary);
}

.accent {
    color: var(--color-primary-dark);
}

section.no-background {
    background: transparent !important;
    /* color: white; */
}


/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #eef3f4 0%, #d4dfdf 100%);
    padding: 7rem 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .big {
    font-size: 3rem;
}

.hero-section .container p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* About Section */

/* Services Grid */
.services-section,
.about-section {
    background-color: #FFFFFF88;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* display: flex;
    flex-direction: row;
    flex-wrap: wrap; */
}

.service-card {
    background-color: var(--color-bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    border-top: 4px solid var(--color-primary);
    transition: transform var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
}

/* Contact Section */
.contact-section {
    background-color: var(--color-bg-white);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 3px 3px 4px #0001;
}

.fancy-separator {
    color: var(--color-accent);
    border-bottom: 1px dashed var(--color-accent);
    display: block;
    width: 100%;
    height: 1px;
    margin: 2rem 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-primary-dark);
    color: #e2e8f0;
    padding: 4rem 0;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-info p {
    font-size: .8rem;
}

.footer-info h3 {
    color: var(--color-bg-white);
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: var(--color-bg-white);
    margin-bottom: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #a0aec0;
}

.footer-links a:hover {
    color: var(--color-bg-white);
}

/* ==========================================================================
   RESPONSIVE DESIGN & HAMBURGER MENU
   ========================================================================== */

/* Hide the toggle button completely on desktop screens */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    z-index: 1001;
}

/* Create the three burger lines using CSS */
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
    .site-header .container {
        height: auto;
        gap: 1rem;
    }

    .main-navigation ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    /* Hide the CTA button on mobile to save header space */
    .site-header .header-cta {
        display: none;
    }

    /* Align items to the left */
    .logo {
        margin-right: auto;
    }

    .site-header .container {
        /* height: 70px; */
        position: relative;
    }

    /* Transform navigation layout into a hidden full-width dropdown menu */
    .main-navigation {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-bg-white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    /* Stack items vertically on mobile view */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 1.25rem 0;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }

    /* Dynamic classes toggled via JavaScript */
    .main-navigation.nav-open {
        max-height: 400px;
        /* Expands menu smooth downward */
    }

    /* Morph the hamburger lines into an 'X' icon when open */
    .menu-toggle.nav-open .hamburger {
        background-color: transparent;
    }

    .menu-toggle.nav-open .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.nav-open .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}