/*
Theme Name: Style at Home
Description: Vakantieappartementen Knokke — FSE block theme met kust-sfeer
Version: 1.0.0
Author: Sherlock SEO Agency
Text Domain: style-at-home
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== RESET & BASIS ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--wp--preset--font-family--body, 'Lato', Georgia, serif);
    line-height: 1.7;
    color: var(--wp--preset--color--contrast, #1a2634);
    background-color: var(--wp--preset--color--base, #ffffff);
    -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAFIE ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--heading, 'Cormorant Garamond', Georgia, serif);
    line-height: 1.2;
    font-weight: 600;
    color: var(--wp--preset--color--contrast, #1a2634);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--wp--preset--color--primary, #2a6f8f);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--wp--preset--color--primary-dark, #1d4f6a); }

/* ===== NAVIGATIE ===== */
.wp-block-navigation {
    font-family: var(--wp--preset--font-family--body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.wp-block-navigation a {
    color: var(--wp--preset--color--contrast);
    padding: 0.3rem 0;
    position: relative;
}

.wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wp--preset--color--primary);
    transition: width 0.25s ease;
}

.wp-block-navigation a:hover::after { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(42,111,143,0.12);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* ===== HERO ===== */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #1a4a6b 0%, #2a6f8f 40%, #4a9ab5 70%, #7dc2d5 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200'%3E%3Cpath fill='%23ffffff' fill-opacity='0.06' d='M0,96L48,112C96,128,192,160,288,165.3C384,171,480,149,576,128C672,107,768,85,864,90.7C960,96,1056,128,1152,133.3C1248,139,1344,117,1392,106.7L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") bottom/100% auto no-repeat;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: white;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.92;
    margin-bottom: 2rem;
}

/* ===== KNOPPEN ===== */
.wp-block-button__link,
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
}

.wp-block-button.is-style-primary .wp-block-button__link,
.btn-primary {
    background: var(--wp--preset--color--primary, #2a6f8f);
    color: white;
    border: 2px solid var(--wp--preset--color--primary, #2a6f8f);
}

.wp-block-button.is-style-primary .wp-block-button__link:hover,
.btn-primary:hover {
    background: var(--wp--preset--color--primary-dark, #1d4f6a);
    border-color: var(--wp--preset--color--primary-dark, #1d4f6a);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(42,111,143,0.3);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-secondary:hover {
    background: white;
    color: var(--wp--preset--color--primary, #2a6f8f);
    transform: translateY(-1px);
}

/* ===== APARTMENT CARDS ===== */
.apartment-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.apartment-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: linear-gradient(135deg, #c8e6f0 0%, #a0d2e4 50%, #7dc2d5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2a6f8f;
    font-size: 3rem;
}

.apartment-card__body {
    padding: 1.5rem;
}

.apartment-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--contrast);
}

.apartment-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7c8d;
}

.apartment-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--wp--preset--color--primary);
    margin-bottom: 1.2rem;
}

/* ===== USP SECTIE ===== */
.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.usp-item {
    text-align: center;
}

.usp-item__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.usp-item__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--wp--preset--color--contrast);
}

/* ===== SECTIONS ===== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 0.8rem;
}

.section-subtitle {
    text-align: center;
    color: #6b7c8d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-bg-sand {
    background-color: var(--wp--preset--color--sand, #f7f3ed);
}

.section-bg-sea {
    background: linear-gradient(135deg, #1a4a6b 0%, #2a6f8f 100%);
    color: white;
}

.section-bg-sea h2,
.section-bg-sea p { color: white; }

/* ===== KNOKKE GIDS ===== */
.gids-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gids-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    border-top: 2px solid var(--wp--preset--color--primary, #2a6f8f);
    border-left: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.gids-card__category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--primary);
    margin-bottom: 0.5rem;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.wp-block-group.contact-form input,
.wp-block-group.contact-form textarea,
.wp-block-group.contact-form select,
input[type="text"], input[type="email"], input[type="tel"],
textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #d0dce8;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--wp--preset--color--contrast);
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(42,111,143,0.12);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a2634;
    color: rgba(255,255,255,0.8);
    padding: 60px 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.wp-block-group.site-footer > .wp-block-group {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Fix: WP's is-layout-constrained limits children to global contentSize (760px).
   Override so footer columns span the full inner container (capped at 1200px above). */
.site-footer .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.site-footer a {
    color: rgba(255,255,255,0.7);
}

.site-footer a:hover {
    color: var(--wp--preset--color--accent, #c9a96e);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-tagline {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== BREADCRUMBS ===== */
.breadcrumb {
    font-size: 0.875rem;
    color: #6b7c8d;
    padding: 1rem 0;
}

.breadcrumb a { color: var(--wp--preset--color--primary); }
.breadcrumb span::before { content: ' › '; margin: 0 0.25rem; }

/* ===== AMENITIES LIST ===== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.amenities-grid li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.amenities-grid li::before {
    content: '✓';
    color: var(--wp--preset--color--primary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ===== PRICING TABLE ===== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e8eef3;
}

.pricing-table th {
    background: var(--wp--preset--color--primary);
    color: white;
    font-weight: 600;
}

.pricing-table tr:nth-child(even) td { background: #f7f3ed; }

/* ===== BOOKING BLOCK ===== */
.booking-block {
    background: linear-gradient(135deg, #2a6f8f, #4a9ab5);
    color: white;
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
}

.booking-block h2, .booking-block p { color: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero-section { min-height: 70vh; }
}

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

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-white { color: white !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.container-narrow { max-width: 720px; margin: 0 auto; }

/* ===== ACCENT COLOR (sand/gold) ===== */
.accent-line {
    display: inline-block;
    width: 50px;
    height: 3px;
    background: var(--wp--preset--color--accent, #c9a96e);
    border-radius: 2px;
    margin: 0.5rem auto 1.5rem;
}

/* ===== LOGO TEXT ===== */
.site-logo-text {
    font-family: var(--wp--preset--font-family--heading, 'Cormorant Garamond', serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #2a6f8f);
    text-decoration: none;
    letter-spacing: 0.02em;
    display: inline-block;
}
.site-logo-text:hover {
    color: var(--wp--preset--color--primary-dark, #1d4f6a);
}

/* ===== FEATURE / HIGHLIGHT CARDS (shadow, no left border) ===== */
.feature-item, .highlight-card, .knokke-feature {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 28px;
    border: none;
    border-top: 2px solid #B8975A;
    border-left: none !important;
}
