/* ============================================
   CSS Variables
   ============================================ */
:root {
    --color-primary: #50b3a2;
    --color-primary-dark: #409182;
    --color-secondary: #2d5a4a;
    --color-accent: #ff9800;
    --color-bg: #f4f4f4;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #fff;
    --color-dark: #1a1a1a;
    
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
    
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    
    --transition: 0.3s ease;
}

/* ============================================
   Base Styles
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

/* ============================================
   Header & Navigation
   ============================================ */
header {
    background: var(--color-primary);
    padding: 0.5rem 1rem;
    width: 100%;
    z-index: 100;
    position: relative;
}

header.transparent {
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    backdrop-filter: blur(5px);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

/* Nav Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95em;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.nav-links li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.nav-links li a.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
    transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
    transition: transform var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu-toggle.open .hamburger {
    background: transparent;
}

.mobile-menu-toggle.open .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-secondary);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        transition: right var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 0;
        font-size: 1.1em;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links li a.active::after {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background-image: url('IMG/Salop1.png');
    height: 100vh;
    min-height: 600px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 74, 0.6) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-text {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-text h1 {
    font-size: 3.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}

.hero-text .tagline {
    font-size: 1.4em;
    opacity: 0.95;
    margin: 0;
    font-weight: 300;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.35s backwards;
}

.btn-cta {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    font-size: 1.05em;
}

.btn-cta-primary {
    background: var(--color-white);
    color: var(--color-secondary);
    box-shadow: var(--shadow-md);
}

.btn-cta-primary:hover {
    background: #f0f5f3;
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.9);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.32);
    color: var(--color-white);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2em;
    }
    
    .hero-text .tagline {
        font-size: 1.1em;
    }
}

/* ============================================
   Main Content
   ============================================ */
main {
    padding: 2rem 1rem;
    margin: 0 auto;
    max-width: 800px;
}

main.padded-top {
    padding-top: 100px;
}

section {
    background: var(--color-white);
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

section h2 {
    color: var(--color-secondary);
    margin-top: 0;
}

/* Action Bar (How can I help) */
.action-bar {
    background: var(--color-secondary);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.15);
}

.action-bar-label {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.2em;
}

.action-bar-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.action-bar-links a {
    color: var(--color-white);
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 1.05em;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-bar-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .action-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .action-bar-links {
        justify-content: center;
    }
}

/* About Logo */
.about-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
}

/* Page Links (HOME navigation list) */
.page-links {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    display: grid;
    gap: 12px;
}

.page-links li {
    margin: 0;
}

.page-links li a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: all var(--transition);
    border-left: 4px solid var(--color-primary);
}

.page-links li a:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: var(--color-secondary);
}

.page-links li a::before {
    content: '→';
    margin-right: 12px;
    font-size: 1.2em;
    color: var(--color-primary);
}

/* ============================================
   Content Sections (What, Why, How pages)
   ============================================ */
.intro-header {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text);
}

.intro-header h1 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--color-secondary);
}

.intro-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--color-text-light);
}

.content-section {
    padding: 80px 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-section.image-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
}

.full-height {
    height: 100vh;
    min-height: 500px;
}

/* When full-height section is first (under transparent header), add padding */
main > .full-height:first-child {
    padding-top: 120px;
}

.text-block {
    max-width: 600px;
    margin: 0 auto;
}

.text-overlay {
    background-color: rgba(0, 0, 0, 0.65);
    padding: 40px;
    border-radius: 16px;
    max-width: 650px;
    color: var(--color-white);
    backdrop-filter: blur(5px);
}

.text-overlay h1,
.text-overlay h2 {
    color: var(--color-white);
    margin-top: 0;
}

.text-overlay.light {
    background-color: rgba(255, 255, 255, 0.92);
    color: var(--color-text);
}

.text-overlay.light h1,
.text-overlay.light h2 {
    color: var(--color-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.cta-button {
    display: inline-block;
    padding: 14px 28px;
    margin-top: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition);
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   Map Section
   ============================================ */
#map-container {
    padding: 0 20px 80px;
}

/* Map layout lives in templates/where.html (.map-with-panel, #map, bottom panel). */

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px 40px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    margin: 0 0 15px 0;
    font-size: 1.1em;
    color: var(--color-primary);
}

.footer-section p {
    margin: 0;
    opacity: 0.8;
    font-size: 0.95em;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95em;
    transition: color var(--transition);
}

.footer-section ul li a:hover {
    color: var(--color-primary);
}

.footer-section a {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.6;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* ============================================
   Page Backgrounds
   ============================================ */
body.what-page,
body.where-page,
body.why-page,
body.how-page {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

/* ============================================
   Social Links
   ============================================ */
.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 15px;
    color: var(--color-text);
    font-weight: bold;
    text-decoration: none;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
