/*
Theme Name: RBW Ponds Theme
Author: DB - Kentmedia
Description: Custom theme for RBW Ponds 2026
Version: 3.0
*/

:root {
    --primary-color: #009CFF;
    --secondary-color: #EA7A0E;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --dark: #212529;
    --font-heading: 'Roboto', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-image: url('assets/images/pond_background_blue_clean.png') !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 990px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-logo img {
    max-height: 80px;
}

.header-info {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon {
    color: var(--secondary-color);
}

.header-info strong {
    color: var(--primary-color);
    font-size: 1.2em;
}

.main-navigation {
    background: transparent;
    padding: 10px 0;
    /* Removed solid bar background */
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    gap: 5px;
    /* Spacing between buttons */
    flex-wrap: wrap;
    /* Safety wrap if screen is very narrow but not mobile yet */
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    display: block;
    background: var(--primary-color);
    /* Blue buttons */
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    /* Reduced padding */
    border-radius: 5px;
    /* Rounded buttons */
    transition: background 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    font-size: 0.8em;
    /* Reduced font size */
    line-height: normal;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a {
    background: var(--secondary-color);
    /* Orange hover/active */
    color: var(--white);
    transform: translateY(-2px);
}

.hero-container {
    margin-top: 15px;
    margin-bottom: 25px;
    height: 400px;
    /* Fixed height for consistency */
    position: relative;
    border-radius: 15px;
    /* Curved corners */
    overflow: hidden;
    padding: 0;
    /* Override container padding if needed, but keeping 0 20px from .container is safer for alignment, let's see */
    border: 10px solid var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Optional: adds depth to the framed hero */
}

/* Ensure inner wrapper takes full space */
.hero-slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    border-radius: 15px;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slider Controls */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2em;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary-color);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.slider-dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Static Hero for Inner Pages */
.hero-static {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    z-index: 1;
}

.page-content {
    background: var(--white);
    padding: 20px 20px 30px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 7fr 3fr;
    /* 70% / 30% split */
    gap: 60px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.main-column {
    min-width: 0;
    /* Critical for preventing grid blowout */
}

.sidebar-column {
    min-width: 0;
    /* Critical for preventing grid blowout */
}

.cta-box {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d66a00 100%);
    color: var(--white);
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(234, 122, 14, 0.3);
    transition: transform 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-5px);
}

.cta-box h3 {
    margin-top: 0;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cta-box ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.cta-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer {
    background: var(--dark);
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 10px 0;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-top: 0;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    line-height: 1.2;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #444;
    line-height: 1.3;
}

/* Sidebar & Widgets */
.widget {
    margin-bottom: 30px;
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
}

.widget-title {
    font-size: 1.2em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--dark);
    margin-top: 0;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: #555;
    text-decoration: none;
}

.widget a:hover {
    color: var(--primary-color);
}

/* Recent Projects Slider (Simple CSS Loop or JS target) */
.recent-projects-slider {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.project-slide-track {
    display: flex;
    gap: 20px;
    /* JS will handle movement */
}

.project-card {
    min-width: 250px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-card h4 {
    padding: 10px 15px;
    margin: 0;
    font-size: 1em;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5em;
    cursor: pointer;
    padding: 10px;
}

/* Gallery Grid - 3x5 layout (approx) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns */
    gap: 15px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .menu-toggle {
        display: block;
        /* Show hamburger */
        margin: 0 auto;
    }

    .main-navigation {
        background: var(--dark);
        /* Restore background for mobile dropdown */
        border-radius: 0;
        position: absolute;
        /* helpful for overlay */
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 999;
    }

    .main-navigation ul {
        display: none;
        /* Hide by default */
        flex-direction: column;
        text-align: center;
        width: 100%;
    }

    .main-navigation.toggled ul {
        display: flex;
        /* Show when toggled */
    }

    .mobile-logo {
        max-height: 50px;
        margin-bottom: 10px;
    }

    .header-info {
        text-align: center;
        margin-top: 15px;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
    }

    .page-content {
        grid-template-columns: 1fr;
        padding: 15px 15px;
        gap: 40px;
    }

    h1 {
        font-size: 2em;
    }
}

/* Blog Styles */
.blog-post {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.blog-post h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.blog-post h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: var(--secondary-color);
}

.entry-excerpt {
    color: #666;
}

/* Contact Form Styles */
.contact-form-wrapper {
    margin-top: 30px;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}

.rbw-contact-form .form-group {
    margin-bottom: 15px;
}

.rbw-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--dark);
}

.rbw-contact-form input[type="text"],
.rbw-contact-form input[type="email"],
.rbw-contact-form input[type="tel"],
.rbw-contact-form input[type="number"],
.rbw-contact-form select,
.rbw-contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1em;
}

.rbw-contact-form .form-row {
    display: flex;
    gap: 15px;
}

.rbw-contact-form .form-row .form-group {
    flex: 1;
}

.rbw-contact-form button[type="submit"] {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.rbw-contact-form button[type="submit"]:hover {
    background: #d66a00;
}

@media (max-width: 600px) {
    .rbw-contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   Blog & Single Post Styles
   ========================================= */

/* Blog Archive Item */
.blog-post-item {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--secondary-color);
}

.post-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-thumbnail {
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 400px;
    /* Fixed height for consistency in stacked view */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.post-thumbnail img:hover {
    transform: scale(1.01);
}

.post-summary {
    width: 100%;
}

.post-summary h2 {
    margin-top: 0;
    font-size: 2em;
    margin-bottom: 15px;
}

.post-summary h2 a {
    color: var(--primary-color);
    text-decoration: none;
}

.post-summary h2 a:hover {
    color: var(--secondary-color);
}

.post-meta {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
    font-style: italic;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.entry-excerpt {
    color: #666;
    margin-bottom: 20px;
    /* Line clamping for 5 lines */
    display: -webkit-box;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: calc(1.6em * 5);
    /* Fallback/Explicit height limit */
}

.entry-excerpt p {
    margin: 0;
    /* Remove margins to ensure clamp works cleanly on container */
}

.read-more-link {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease;
}

.read-more-link:hover {
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
}

/* Single Post Content */
.post-content .featured-image {
    margin-bottom: 30px;
}

.post-content .featured-image img {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.post-content .post-meta {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.entry-content {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 20px;
}

/* Post Navigation */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: var(--primary-color);
}

/* Pagination */
.pagination {
    margin-top: 50px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Blog */
@media (max-width: 768px) {
    .post-inner {
        flex-direction: column;
    }

    .post-thumbnail {
        flex: 0 0 auto;
        max-width: 100%;
        margin-bottom: 20px;
        width: 100%;
    }
}

/* Sidebar Recent Posts with Thumbs */
.widget_recent_entries_with_thumbs li {
    margin-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
}

.widget_recent_entries_with_thumbs li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sidebar-post-thumb {
    margin-bottom: 10px;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 180px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sidebar-post-thumb img:hover {
    transform: scale(1.02);
}

.sidebar-post-title {
    display: block;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-color);
}

.sidebar-post-title:hover {
    color: var(--primary-color);
}

/* CTA Widget Styles */
.rbw-cta-widget {
    background-color: var(--secondary-color);
    /* Orange */
    color: white;
    border-radius: 15px;
    overflow: hidden;
    /* Ensure button corners match container */
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: background-color 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 10px;
    /* Reduced specific margins to 10px all round */
}

/* Remove default widget padding/bg if needed, but keeping it inside widget wrapper is fine */
/* If the widget wrapper .widget has padding, this inner box will sit inside. That's usually OK. */

.rbw-cta-widget:hover {
    background-color: var(--primary-color);
    /* Blue */
}

.rbw-cta-widget .cta-content {
    padding: 10px;
    /* Reduced from 30px 20px */
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    /* Reduced height constraint slightly if padding is less */
}

.rbw-cta-widget h3 {
    color: white;
    margin: 0;
    font-size: 1.1em;
    /* Reduced from 1.3em */
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 700;
}

.rbw-cta-button {
    background-color: var(--primary-color);
    /* Blue */
    color: white !important;
    /* Ensure it stays white */
    padding: 15px 10px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    border: none;
    display: block;
    /* Bottom corners handled by container overflow:hidden */
}

.rbw-cta-widget:hover .rbw-cta-button {
    background-color: var(--secondary-color);
    /* Orange */
    color: white !important;
}