/* styles.css - shared sitewide styles */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

/* Variables */
:root {
    --primary: #e87d5f;
    --dark: #333333;
    --light: #f9f3ed;
    --text: #4a4a4a;
}

/* General styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-weight: 700;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: var(--primary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.btn {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    background-color: #d06a4d;
}

/* Header */
header {
    background-color: transparent;
    color: var(--dark);
    padding: 1rem 0;
    width: 100%;
    z-index: 10;
    position: relative;
}

body.homepage header {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

body.homepage .logo {
    color: white;
}

.main-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

body.homepage .nav-links a {
    color: white;
}

.nav-links a:hover {
    opacity: 0.8;
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: white;
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Legal content area */
.legal-content {
    max-width: 900px;
    margin: 4rem auto 4rem auto;
    padding: 3rem 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    font-size: 1.1rem;
    color: var(--text);
    min-height: 400px;
}

@media (max-width: 900px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 700px) {
    .legal-content {
        padding: 2rem 3rem;
        margin: 2rem 1rem 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.2rem 0.5rem;
        margin: 1rem 0.5rem 1rem 0.5rem;
    }
}

@media (max-width: 600px) {
    .logo { font-size: 1.2rem; }
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact a {
    display: block; /* Ensures each link is on its own line */
    margin: 0;      /* Remove any default margin */
}


/* Hamburger menu: ensure always enabled on all pages */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        background-color: #2b2b2b;
        width: 350px;
        padding: 1rem 0;
        gap: 0.5rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 8px 24px rgba(0,0,0);
        z-index: 1000;
    }
    .nav-links.active {
        display: flex;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links li {
        text-align: left;
        width: 100%;
    }
    .nav-links a {
        display: block;
        padding: 0.7rem 1.5rem;
        color: white;
        font-size: 1.1rem;
    }
    .main-nav {
        flex-direction: row;
    }
    .logo {
        z-index: 1002;
    }
    /* Hamburger animation */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Hamburger icon color: context-aware (homepage vs. interior) */
body.homepage .mobile-menu-toggle span {
    background-color: #fff; /* White for homepage (over hero) */
}

body:not(.homepage) .mobile-menu-toggle span {
    background-color: #222; /* Black/dark for interior pages */
} 