/*
Theme Name: Stony Point Bay Marina - Nautical Excellence
Author: Stony Point Media
Description: Ein erstklassiger Hafen für Segler, Motorbootfahrer und Sportwetten-Enthusiasten in einer malerischen Bucht.
Version: 2.2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;800&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary: #0652dd; /* Navy Blue */
    --secondary: #1289a7; /* Teal Water */
    --accent: #fbc531; /* Sun Gold */
    --bg-main: #f5f6fa;
    --white: #ffffff;
    --text-main: #2f3640;
    --text-muted: #7f8c8d;
    --border: rgba(6, 82, 221, 0.1);
    --shadow: 0 15px 35px rgba(6, 82, 221, 0.08);
    
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.3s ease;

    --section-pad: clamp(4rem, 10vw, 8rem);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, .logo, .btn-marina {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(2.5rem, 10vw, 5.5rem); color: var(--white); margin-bottom: 2rem; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 3rem; text-align: center; color: var(--primary); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1.2rem; color: var(--secondary); }

.mono { font-family: 'Montserrat', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Axis 1: N-A Classic Horizontal */
.site-header {
    background: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}
.logo {
    display: inline-flex !important;
    align-items: center;
    font-size: clamp(1.2rem, 4vw, 2rem) !important;
    font-weight: 900;
    color: #0652dd !important; /* Hardcoded Navy Blue for visibility */
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
    min-width: 150px;
    min-height: 1em;
    flex-shrink: 0;
}
.logo span { color: #1289a7 !important; } /* Hardcoded Teal */

.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; list-style: none; gap: 3.5rem; justify-content: flex-end; }
.main-nav a { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--text-main); }
.main-nav a:hover { color: var(--primary); }

.nav-toggle { display: none; }

/* Axis 2: H-A Full Bleed Overlay */
.hero-marina {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--primary);
    padding-top: 100px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Rule 13: Overlay Protection */
.hero-marina::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(6, 82, 221, 0.8) 20%, transparent 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.btn-marina {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--accent);
    color: var(--text-main);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(251, 197, 49, 0.2);
    margin-top: 2rem;
}
.btn-marina:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(251, 197, 49, 0.3); }

/* Axis 8: D-A Diagonal Sections */
.diagonal-section {
    position: relative;
    background: var(--secondary);
    color: var(--white);
    padding: var(--section-pad) 0;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 4rem 0;
}

/* Axis 3: F-B Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding: var(--section-pad) 0;
}
.feature-card {
    padding: 3rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--accent); }

/* Axis 5: U-D Photo Strip (Gallery) */
.photo-strip { 
    display: flex; 
    width: 100%; 
    height: 450px; 
    overflow: hidden;
    margin: 4rem 0;
}
.strip-img { flex: 1; height: 100%; object-fit: cover; transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1); filter: brightness(0.8); }
.strip-img:hover { flex: 3; filter: brightness(1.1); }

/* Axis 4: C-A Vertical Cards & 20: 3x3 Grid */
.posts-section { padding: var(--section-pad) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 6rem; }

.post-card-marina { 
    background: var(--white); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    display: flex; 
    flex-direction: column; 
    height: 100%;
}
.post-card-marina .thumb { 
    height: 250px; 
    overflow: hidden; 
}
.post-card-marina .thumb img { 
    width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: 0.5s; 
}
.post-card-marina:hover .thumb img { transform: scale(1.1); }

.post-card-content { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.post-card-content .meta { font-weight: 700; font-size: 0.75rem; color: var(--secondary); margin-bottom: 0.5rem; text-transform: uppercase; }
.post-card-content h3 { flex-grow: 1; font-size: 1.4rem; color: var(--primary); }

/* Rule 8: Golden Standard Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.8rem; margin: 5rem 0; flex-wrap: wrap; }
.pagination .page-numbers { 
    display: flex; align-items: center; justify-content: center; 
    min-width: 45px; height: 45px; padding: 0 10px;
    text-decoration: none; font-weight: 700; border: 1px solid var(--border);
    background: var(--white); color: var(--primary); border-radius: 4px;
    transition: 0.3s;
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white) !important; border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; background: transparent; cursor: default; }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--accent); border-color: var(--accent); }

/* Axis 6: FT-C Three-column Footer */
.site-footer { background: var(--primary); color: var(--white); padding: 8rem 0 4rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-bottom: 6rem; }
.footer-logo { font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.footer-logo span { color: var(--accent); }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { font-weight: 500; font-size: 0.9rem; text-transform: uppercase; opacity: 0.7; }
.footer-nav a:hover { opacity: 1; color: var(--accent); }

.footer-contact h4 { font-family: 'Montserrat'; margin-bottom: 2rem; color: var(--accent); text-transform: uppercase; }
.footer-contact p { margin-bottom: 1rem; color: rgba(255,255,255,0.8); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 3rem; display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.1em; }

/* Axis 7: V-A Soft Shadows (Applied via classes above) */

/* Rule 47: Footer Protection */
.site-main footer { margin-left: 0; width: 100%; }

@media (max-width: 1024px) {
    .header-inner { gap: 1.5rem; }
    .features-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 6px; background: var(--primary); 
        padding: 12px; border: none; cursor: pointer; z-index: 10001; 
    }
    .nav-toggle span { width: 25px; height: 2px; background: var(--white); transition: 0.3s; }
    
    .main-nav { 
        display: block !important; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--primary); z-index: 10000; padding: 10rem 2rem;
        transform: translateY(-100%); transition: transform 0.4s ease; visibility: hidden;
    }
    body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 2.5rem; }
    .main-nav a { font-size: 1.5rem; color: var(--white); }

    body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .posts-grid { grid-template-columns: 1fr; }
    .photo-strip { height: 250px; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
