/* 
   Kountry Village Redesign 
   Modern, Lightweight, Responsive
*/

:root {
    /* Colors - Velusa Palette applied to KV Design */
    --color-primary: #0F2B46;
    /* Deep Navy */
    --color-secondary: #C6AE01;
    /* Mustard Gold */
    --color-text: #0F2B46;
    /* Navy Text */
    --color-text-light: #4a5b6c;
    /* Slate Grey */
    --color-bg: #FFFFFF;
    --color-bg-warm: #F9F8F6;
    /* Subtle Off-White */
    --color-white: #ffffff;
    --color-accent: #3D88B0;
    /* Slate Blue */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* UI */
    --radius: 8px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

.text-highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-left: var(--spacing-sm);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.nav-links a:not(.btn-nav) {
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.btn-nav {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px 0;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateY(0);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-primary);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Hero Section (Split) */
.hero {
    display: flex;
    min-height: 90vh;
    padding-top: 60px;
    /* Offset for navbar */
    position: relative;
    max-height: 1000px;
}

.hero-split-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-bg);
}

.hero-split-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 500px;
}

.hero-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-image-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Fade Overlay */
.hero-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Stronger fades: Left/Right 25%, Top 20%, Bottom 20% */
    background: linear-gradient(to right, var(--color-bg) 0%, transparent 25%, transparent 75%, var(--color-bg) 100%),
        linear-gradient(to bottom, var(--color-bg) 0%, transparent 20%, transparent 80%, var(--color-bg) 100%);
    pointer-events: none;
}

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.bg-warm {
    background-color: var(--color-bg-warm);
}

.section-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Engagement Models Cards */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.model-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.model-card p {
    flex-grow: 1;
    /* Pushes bottom content down */
    font-size: 1rem;
    color: var(--color-text-light);
}

.model-card h3 {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.model-tag {
    display: inline-block;
    background: var(--color-bg-warm);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1.5rem;
    /* Space from text */
    align-self: flex-end;
    /* Align right at bottom */
}

.model-accent {
    height: 4px;
    width: 60px;
    background: var(--color-secondary);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-more {
    text-align: center;
    margin-top: var(--spacing-md);
}

.text-link {
    color: var(--color-primary);
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}

/* Location Section */
.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.map-wrapper {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Footer */
.footer {
    background: var(--color-primary);
    color: white;
    padding: var(--spacing-lg) 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-lg);
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact h4 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    opacity: 0.9;
}

.contact-link:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .hero-split-left,
    .hero-split-right {
        flex: none;
        width: 100%;
    }

    .hero-split-right {
        height: 300px;
        order: -1;
    }

    /* Image on top mobile */
    .hero-split-left {
        padding: var(--spacing-lg) var(--spacing-sm);
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    /* Hide desktop nav */
    .mobile-toggle {
        display: block;
    }

    .split-content {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        height: 300px;
    }

    /* Mobile Table: Card Style or Scroll */
    .rates-table {
        display: block;
    }

    /* Allow horizontal scroll if needed, or: */
    /* Alternatively, card view for table on mobile if preferred. For now scroll is "lightweight". */

    .rates-table thead {
        display: none;
    }

    .rates-table,
    .rates-table tbody,
    .rates-table tr,
    .rates-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .rates-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--color-bg-warm);
        padding: 1rem;
        border-radius: var(--radius);
        background: var(--color-bg);
    }

    .rates-table td {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        display: flex;
        justify-content: space-between;
        text-align: right;
    }

    .rates-table td:last-child {
        border-bottom: none;
    }

    .rates-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--color-primary);
        text-align: left;
    }
}

/* Contact Form Styles */
.contact-form-section {
    background: var(--bg-surface);
    padding: var(--spacing-xl) 0;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 4px;
    /* Manual fallback if var missing */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #e6e9ec;
    /* Fallback */
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    color: var(--color-primary);
}

.form-control:focus {
    outline: none;
    border-color: #3D88B0;
    /* Accent */
    box-shadow: 0 0 0 3px rgba(61, 136, 176, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.g-recaptcha {
    margin-bottom: 1.5rem;
}