/*
Design 15: Ocean Breeze
*/

:root {
    --color-dark: #0a2e36;
    --color-light: #f0f8ff;
    --color-accent: linear-gradient(135deg, #00c6ff, #0072ff);
    --color-muted: #e0f0ff;
    --border-radius: 15px;
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-logo: 'Pacifico', cursive;
    --logo-font-size: 2.5rem;
    --logo-font-weight: 400;
    --max-width: 1200px;
}

/* BASE */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-light);
    color: var(--color-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: #0072ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00c6ff;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 0.75em;
    color: var(--color-dark);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

/* LAYOUT */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.site-logo img {
    max-height: 50px;
}

.site-logo .logo-text {
    font-family: var(--font-logo);
    font-size: var(--logo-font-size);
    font-weight: var(--logo-font-weight);
    background: var(--color-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* NAV */
.main-nav {
    display: none; /* Hidden on mobile */
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-item a {
    font-weight: 600;
    color: var(--color-dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s ease;
}

.nav-item a:hover::after, .nav-item.active a::after {
    width: 100%;
}

/* DROPDOWN */
.has-dropdown {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.has-dropdown:hover .dropdown {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown li a {
    padding: 0.75rem 1.5rem;
    display: block;
    white-space: nowrap;
}

.dropdown li a:hover {
    background: var(--color-muted);
    color: #0072ff;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 0.5rem 0;
}

/* HAMBURGER */
.menu-toggle {
    display: block; /* Visible on mobile */
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 102;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-dark);
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* MOBILE NAV */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 98;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 99;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s ease;
}

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

.mobile-nav .nav-list {
    flex-direction: column;
}

.mobile-nav .nav-item {
    margin: 0 0 1rem;
}

.mobile-nav .nav-item a {
    font-size: 1.2rem;
}

.mobile-nav .dropdown {
    display: none; /* Simplified for mobile */
}

.mobile-nav .dropdown li a {
    padding-left: 2rem;
}

/* MAIN */
.site-main {
    padding: 2rem 0;
}

/* BREADCRUMBS */
.breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: #0072ff;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 0.5rem;
}

/* WAVE SECTIONS */
.category-section, .featured-grid, .site-footer {
    position: relative;
    padding: 4rem 0;
    background-color: var(--color-muted);
    border-radius: 50% / 0 0 30px 30px;
    margin-top: 2rem;
}

.category-section:nth-child(odd) {
    background-color: #fff;
}

/* FEATURED GRID */
.featured-grid {
    padding-top: 2rem;
}

.featured-main {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
}

.featured-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    padding: 1.5rem;
}

.featured-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #0072ff;
    margin-bottom: 0.5rem;
}

.featured-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.featured-main .featured-title {
    font-size: 2.2rem;
}

.featured-excerpt {
    color: #555;
}

/* CATEGORY SECTIONS */
.category-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid;
    border-image: var(--color-accent) 1;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
}

.see-all {
    font-weight: 600;
}

/* POST CARDS */
.posts-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.post-card {
    background: #fff;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-body {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.post-card-excerpt {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.post-card-date {
    font-size: 0.8rem;
    color: #777;
    font-weight: 600;
}

/* SINGLE POST */
.single-post.has-sidebar { /* Mobile: sidebar is below content */ }
.single-post.sidebar-left { /* No effect on mobile */ }
.single-post.sidebar-left .sidebar { /* No effect on mobile */ }

.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.post-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #0072ff;
}

.post-title {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body h2 { font-size: 2rem; margin-top: 2em; }
.post-body h3 { font-size: 1.6rem; margin-top: 1.5em; }
.post-body p { margin-bottom: 1.5em; }
.post-body ul, .post-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.post-body img {
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

/* TAGS */
.post-tags {
    margin: 2rem 0;
}

.tag {
    display: inline-block;
    background: var(--color-muted);
    color: #0072ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #0072ff;
    color: #fff;
}

/* INTERNAL LINKS */
.internal-links {
    background: var(--color-muted);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
}

.internal-links h3 {
    margin-top: 0;
}

.internal-links ul {
    list-style: none;
    padding: 0;
}

.internal-links li a {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid #d0e0ff;
}

/* SIDEBAR */
.sidebar {
    margin-top: 3rem;
}

.sidebar-widget {
    background: var(--color-muted);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.sidebar-widget h3 {
    font-size: 1.5rem;
    border-bottom: 2px solid;
    border-image: var(--color-accent) 1;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.widget-related .related-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.widget-related .related-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 1rem;
}

.widget-related .related-item span {
    font-weight: 600;
}

.widget-categories ul {
    list-style: none;
    padding: 0;
}

.widget-categories li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #d0e0ff;
}

.widget-categories a {
    font-weight: 500;
}

.widget-banner img {
    border-radius: var(--border-radius);
}

/* STATIC PAGE */
.static-page {
    padding: 2rem 0;
}

.page-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.page-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-body h2 { font-size: 2rem; margin-top: 2em; }
.page-body p { margin-bottom: 1.5em; }

/* CATEGORY PAGE */
.category-header {
    text-align: center;
    padding: 3rem 0;
    background: var(--color-muted);
    border-radius: 0 0 50% 50% / 0 0 40px 40px;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 3rem;
}

.category-description {
    max-width: 600px;
    margin: 1rem auto 0;
    color: #555;
}

/* BANNERS */
.banner {
    margin: 2rem 0;
}

.banner img {
    border-radius: var(--border-radius);
}

/* ENTITY */
.entity-hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--color-accent);
    color: #fff;
    border-radius: 0 0 60% 60% / 0 0 50px 50px;
}

.entity-title { color: #fff; font-size: 3.5rem; }
.entity-subtitle { color: #fff; opacity: 0.9; font-size: 1.2rem; }

.sections-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin-top: 3rem;
}

.section-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.section-card h2 { font-size: 1.6rem; }
.section-desc { color: #555; }

/* LOCAL */
.local-hero {
    padding: 4rem 0;
    text-align: center;
    background: var(--color-muted);
    border-radius: 40px;
}

.hero-title { font-size: 3rem; }
.hero-subtitle { font-size: 1.2rem; color: #555; margin-bottom: 2rem; }
.hero-cta { margin-top: 2rem; }

.btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0072ff;
    color: #fff;
    border: 2px solid #0072ff;
}

.btn-primary:hover {
    background: #00c6ff;
    border-color: #00c6ff;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

.local-services, .local-locations, .local-blog { margin-top: 3rem; }

.services-grid, .locations-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-card h3 { font-size: 1.5rem; }

.location-link {
    display: block;
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.location-link:hover {
    background: #0072ff;
    color: #fff;
    transform: scale(1.05);
}

/* TILES */
.tiles-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

.tile-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tile-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tile-body {
    padding: 1.5rem;
}

.tile-title { font-size: 1.3rem; }
.tile-excerpt { font-size: 0.9rem; color: #555; }

/* FOOTER */
.site-footer {
    color: #fff;
    padding: 4rem 0 0;
    background: var(--color-dark);
    border-radius: 50px 50px 0 0;
}

.footer-bg-light { background: var(--color-light); color: var(--color-dark); }
.footer-bg-accent { background: var(--color-accent); color: #fff; }
.footer-bg-dark { background: var(--color-dark); color: #fff; }

.footer-inner { }

.footer-cols-4 {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-bg-dark .footer-col h3 { color: #fff; }

.footer-links, .footer-posts {
    list-style: none;
    padding: 0;
}

ul.footer-links li, ul.footer-posts li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-posts a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s ease;
}

.footer-bg-light .footer-links a, .footer-bg-light .footer-posts a {
    color: var(--color-dark);
}

.footer-links a:hover, .footer-posts a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-about {
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
}

.footer-about a {
    color: #fff;
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.footer-bg-light .footer-bottom {
    border-top: 1px solid #ddd;
    color: #555;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.8rem; }

    .menu-toggle { display: none; }
    .main-nav { display: block; }

    .featured-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .single-post.has-sidebar {
        display: grid;
        grid-template-columns: 3fr 1fr;
        gap: 3rem;
    }

    .single-post.sidebar-left {
        grid-template-columns: 1fr 3fr;
    }

    .single-post.sidebar-left .sidebar {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .sidebar {
        margin-top: 0;
    }

    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sections-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tiles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Single-post variant extras ===== */
.internal-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.internal-link-card {
    border: 1px solid var(--color-muted);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.internal-link-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.internal-link-card a {
    display: block;
    text-decoration: none;
    color: var(--color-dark);
}
.internal-link-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.internal-link-card h4 {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    margin: 0;
}
.related-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.related-list {
    list-style: none;
    padding: 0;
}
.related-list li {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-muted);
}
.related-list li:last-child {
    border-bottom: none;
}
.related-list a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* Variant D: post-cover (full-width hero image) */
.post-cover {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
}
.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 3rem 2rem 2rem;
}
.post-cover-overlay .post-title {
    color: white;
}
.post-cover-overlay .post-category a {
    color: var(--color-accent);
}
.post-subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .internal-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ===== Variant C: Header extras ===== */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-navigation {
    display: flex;
    align-items: center;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navigation-strip {
    border-bottom: 1px solid var(--color-muted);
    padding: 0.5rem 0;
}
.mobile-nav-container {
    padding: 1.5rem;
}

/* Variant C: Footer extras */
.footer-disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 1rem;
}
.footer-info {
    font-size: 0.9rem;
    line-height: 1.8;
}

