/* winow.homes Real Estate Website Styles */

:root {
    --color-primary: #3b82f6;        /* Bright blue - trust and reliability */
    --color-secondary: #ffffff;      /* White - clean background */
    --color-text: #1e293b;          /* Dark slate - readable text */
    --color-background: #ffffff;    /* White background */
    --color-border: #e2e8f0;        /* Light gray borders */
    --color-accent: #10b981;        /* Emerald - growth and prosperity */
    --color-warm: #f59e0b;          /* Amber - warmth and home comfort */
    --color-light: #f8fafc;         /* Very light gray */
    --color-gradient-start: #3b82f6; /* Blue gradient start */
    --color-gradient-end: #10b981;   /* Emerald gradient end */
    --color-gray-light: #f1f5f9;    /* Light gray for sections */
    --color-gray-medium: #94a3b8;   /* Medium gray for subtle elements */
    --color-success: #10b981;       /* Success messages */
    --color-error: #ef4444;         /* Error messages */
    --color-warning: #f59e0b;       /* Warning messages */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-accent);
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Navigation */
.nav {
    background: var(--color-background);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--color-accent);
}

.nav-menu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

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

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    padding: 6rem 2rem;
    text-align: center;
    color: var(--color-secondary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-secondary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.cta-button {
    background: var(--color-warm);
    color: var(--color-secondary);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(244, 162, 97, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s ease;
}

.cta-button:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
    animation: pulse 2s infinite;
}

.cta-button:hover::before {
    left: 100%;
}

.btn {
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.btn:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: var(--color-background);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.card:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Feature boxes */
.feature-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin: 1rem 0;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
}

/* Stats section */
.stats-section {
    background: linear-gradient(135deg, var(--color-light) 0%, #f0f9ff 100%);
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 20px;
}

/* Quote section */
.quote-section {
    background: linear-gradient(135deg, var(--color-warm) 0%, var(--color-accent) 100%);
    color: white;
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.quote-section::before {
    content: '"';
    font-size: 6rem;
    position: absolute;
    top: -1rem;
    left: 2rem;
    opacity: 0.3;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    margin: 2rem 0;
    overflow: hidden;
}

.testimonial-slide {
    display: none;
    animation-duration: 1s;
}

.testimonial-slide.active {
    display: block;
    animation-name: fadeEffect;
}

@keyframes fadeEffect {
    from {opacity: 0.4}
    to {opacity: 1}
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.testimonial-btn:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.dot {
    height: 12px;
    width: 12px;
    background-color: var(--color-border);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--color-accent);
}

/* Map */
#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* Blog */
.blog-post {
    margin-bottom: 3rem;
}

.blog-post-image {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
    font-size: 0.9rem;
}

.blog-category {
    background: var(--color-light);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Events */
.event-card {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.event-date {
    background: var(--color-primary);
    color: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    flex: 1;
}

.event-time {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.event-location {
    color: var(--color-text);
    margin-bottom: 1rem;
}

/* Resources */
.resource-link {
    display: block;
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--color-light);
    margin-bottom: 1rem;
    text-decoration: none;
    color: var(--color-text);
    border-left: 4px solid var(--color-primary);
    transition: all 0.3s ease;
}

.resource-link:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.resource-title {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.resource-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--color-accent);
    color: white;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--color-light) 0%, #f1f5f9 100%);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-accent);
}

/* Hidden content by default */
.content-section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(42, 157, 143, 0.5); }
    50% { box-shadow: 0 0 20px rgba(42, 157, 143, 0.8); }
    100% { box-shadow: 0 0 5px rgba(42, 157, 143, 0.5); }
}

/* Floating Achievement Badge */
.achievement-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
    border-left: 4px solid var(--color-accent);
    max-width: 300px;
}

.badge-content {
    display: flex;
    align-items: center;
    padding: 15px;
    position: relative;
}

.badge-icon {
    font-size: 24px;
    margin-right: 12px;
    animation: pulse 2s infinite;
}

.badge-text {
    flex: 1;
}

.badge-title {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 3px;
}

.badge-desc {
    font-size: 0.9rem;
    color: var(--color-text);
}

.badge-close {
    background: none;
    border: none;
    color: var(--color-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.badge-close:hover {
    color: var(--color-text);
}

/* Cookie notice */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: var(--color-secondary);
    padding: 1rem;
    text-align: center;
    z-index: 1001;
    display: none;
}

.cookie-notice.show {
    display: block;
}

.cookie-notice button {
    background: var(--color-secondary);
    color: var(--color-primary);
    border: none;
    padding: 0.5rem 1rem;
    margin-left: 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Topic Explorer Styles (UNIQUE ELEMENT) */
.topic-tag {
    background: var(--color-light);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    cursor: pointer;
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: var(--color-primary);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-background);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .nav-container {
        padding: 1rem;
    }

    .section {
        padding: 2rem 1rem;
    }

    .event-card {
        flex-direction: column;
    }

    .event-date {
        min-width: auto;
    }
}