/* ===== Banksia Blue Mountains — Shared Styles ===== */

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

/* Design Tokens */
:root {
    --charcoal-green: #3D4F44;
    --sandstone: #E6DDD0;
    --warm-white: #FAFAF8;
    --eucalyptus: #7FA693;
    --bronze: #C29C6B;
    --text-gray: #4A4A4A;
    --light-gray: #E0E0E0;
}

/* Base */
body {
    font-family: 'Lato', sans-serif;
    color: var(--text-gray);
    background-color: var(--warm-white);
    line-height: 1.7;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--charcoal-green);
}

/* Scroll offset for fixed header */
[id] {
    scroll-margin-top: 100px;
}

/* SVG icon base styles */
.icon-svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.icon-svg svg {
    display: block;
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(250, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(127, 166, 147, 0.1);
}

nav {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--eucalyptus), var(--charcoal-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Let Banksia logo image maintain aspect ratio */
.logo-icon img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal-green);
    line-height: 1;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--eucalyptus);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Desktop Nav */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--eucalyptus);
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--charcoal-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 1100;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ===== Focus Styles ===== */
:focus-visible {
    outline: 3px solid var(--eucalyptus);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--eucalyptus);
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(127, 166, 147, 0.3);
    border: none;
    cursor: pointer;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: var(--charcoal-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 166, 147, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--charcoal-green);
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--eucalyptus);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: var(--eucalyptus);
    color: white;
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, var(--eucalyptus), var(--charcoal-green));
    color: white;
    padding: 1.25rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 166, 147, 0.3);
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
    display: none;
    background: var(--eucalyptus);
    border: 2px solid var(--charcoal-green);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem 0.75rem;
    line-height: 1;
    position: relative;
}

.mobile-menu-btn:hover {
    background-color: var(--charcoal-green);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--warm-white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: right 0.3s ease;
    padding: 6rem 2rem 2rem;
}

.mobile-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--charcoal-green);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    color: var(--eucalyptus);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--charcoal-green);
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light-gray);
    transition: color 0.3s ease;
}

.mobile-nav a:hover {
    color: var(--eucalyptus);
}

.mobile-nav .btn-primary {
    border: none;
    text-align: center;
    margin-top: 1rem;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== Forms ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--charcoal-green);
    font-size: 0.9rem;
}

input, textarea, select {
    padding: 1rem 1.25rem;
    border: 2px solid transparent;
    border-radius: 15px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: white;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--eucalyptus);
    box-shadow: 0 4px 15px rgba(127, 166, 147, 0.15);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 3rem 1rem;
}

.form-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--charcoal-green);
    margin-bottom: 0.75rem;
}

.form-success p {
    font-size: 1.1rem;
    color: var(--text-gray);
}

/* ===== Footer ===== */
footer {
    background-color: var(--charcoal-green);
    color: white;
    padding: 4rem 2.5rem 2rem;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--eucalyptus), var(--bronze));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.footer-logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: var(--eucalyptus);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--eucalyptus);
}

.footer-text-muted {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

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

/* ===== Shared Responsive ===== */
@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .logo-icon svg {
        width: 20px;
        height: 20px;
    }

    .logo-main {
        font-size: 1.25rem;
    }

    .logo-sub {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    nav {
        padding: 0.75rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    footer {
        padding: 3rem 1.25rem 1.5rem;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-about p {
        font-size: 0.9rem;
    }

    .mobile-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    footer {
        padding: 2.5rem 1rem 1.5rem;
    }
}
