/**
 * Cité Rotterdam - Stylesheet
 * Clean, modern, responsive design
 */

/* ================================
   CSS Variables & Reset
   ================================ */
:root {
    --color-primary: #005c33;
    --color-primary-light: #00a75d;
    --color-accent: #f29fc5;
    --color-accent-hover: #e08ab0;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-bg: #f8f9fa;
    --color-bg-alt: #eef2f7;
    --color-border: #dee2e6;
    --color-success: #28a745;
    --color-error: #dc3545;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: 0.3s ease;
    --container-max: 1140px;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ================================
   Utility Classes
   ================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* Honeypot - hidden from users */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ================================
   Buttons
   ================================ */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

/* ================================
   Header
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 92, 51, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

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

.nav-link {
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 5px 0;
    position: relative;
}

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

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

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

.btn-nav {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================================
   Hero Section
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/home_hreo.png') center/cover no-repeat;
    opacity: 0.65;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 92, 51, 0.45) 0%, rgba(0, 167, 93, 0.35) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-note {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
}

.hero-note a {
    color: var(--color-accent);
    text-decoration: underline;
}

.hero-note a:hover {
    color: var(--color-white);
}

/* ================================
   About Section
   ================================ */
.about {
    padding: 100px 0;
    background-color: var(--color-white);
}

.about h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 50px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
    color: var(--color-text-light);
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text a {
    color: var(--color-accent);
    font-weight: 500;
}

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

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* ================================
   Contact Section
   ================================ */
.contact {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.contact h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 20px;
}

.contact-intro {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-warning {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px 20px;
    background-color: rgba(242, 159, 197, 0.1);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius);
}

.contact-warning a {
    color: var(--color-accent);
    font-weight: 500;
}

/* Form Alerts */
.form-alert {
    max-width: 600px;
    margin: 0 auto 30px;
    padding: 15px 20px;
    border-radius: var(--radius);
    text-align: center;
    font-weight: 500;
}

.form-alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 6px;
}

.required {
    color: var(--color-error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(242, 159, 197, 0.15);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

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

.error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--color-error);
    margin-top: 4px;
    min-height: 18px;
}

/* Checkbox */
.form-checkbox {
    margin-top: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.checkbox-wrapper input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 2px 0 0 0;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    outline: none;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    background-color: var(--color-white);
    position: relative;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-wrapper input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(242, 159, 197, 0.25);
}

.checkbox-wrapper label {
    cursor: pointer;
}

.checkbox-wrapper a {
    color: var(--color-accent);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 10px;
    border: none;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ================================
   Footer
   ================================ */
.footer {
    background-color: var(--color-primary);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer p:last-child {
    margin-bottom: 0;
}

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

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

/* ================================
   Responsive Design
   ================================ */

/* Tablet */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image-placeholder {
        height: 280px;
    }

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

/* Mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-primary);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }

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

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about {
        padding: 70px 0;
    }

    .about h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .contact {
        padding: 70px 0;
    }

    .contact-form {
        padding: 25px 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 20px 15px;
    }
}
