/*
  OZ RENEXA - Static Website Styles
  Clean CSS without frameworks
*/

/* ==================== CSS Variables ==================== */
:root {
    /* Colors - derived from OZ RENEXA logo */
    --color-background: #ffffff;
    --color-foreground: #2e2e2e;
    --color-primary: #2e2e2e;
    --color-primary-foreground: #ffffff;
    --color-accent: #b5a046;
    --color-accent-foreground: #ffffff;
    --color-muted: #f5f5f3;
    --color-muted-foreground: #737373;
    --color-card: #fafaf8;
    --color-border: #e8e8e5;
    --color-section-light: #f8f7f5;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --section-padding-y: 4rem;
    --section-padding-x: 1rem;
    --container-max-width: 1024px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* Border radius */
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-foreground);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* ==================== Utilities ==================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
}

.text-accent {
    color: var(--color-accent);
}

.gold-underline {
    position: relative;
    display: inline-block;
}

.gold-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* ==================== Navigation ==================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-background);
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Mobile: nav-menu as dropdown */
.nav-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

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

.nav-menu li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(46, 46, 46, 0.8);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

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

.nav-link.active {
    color: var(--color-accent);
    background-color: var(--color-muted);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-foreground);
    position: relative;
    transition: background-color 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-foreground);
    transition: transform 0.2s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background-color: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Desktop styles */
@media (min-width: 768px) {
    .nav-container {
        height: 80px;
    }

    .logo-img {
        height: 48px;
    }

    .nav-menu {
        display: flex;
        position: static;
        background: none;
        border: none;
        padding: 0;
        box-shadow: none;
        gap: 2rem;
    }

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

    .nav-link {
        display: inline;
        padding: 0;
        border-radius: 0;
    }

    .nav-link:hover,
    .nav-link.active {
        background-color: transparent;
    }

    .nav-toggle {
        display: none;
    }
}

/* ==================== Sections ==================== */
.section {
    padding: var(--section-padding-y) 0;
}

.section-light {
    background-color: var(--color-section-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.875rem;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-muted-foreground);
    max-width: 48rem;
    margin: 2rem auto 0;
    font-size: 1.125rem;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }

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

    :root {
        --section-padding-x: 2rem;
    }
}

/* ==================== Hero Section ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0 4rem;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('images/hero-image.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero-content {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out;
}

.hero-subtitle {
    color: var(--color-accent);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--color-foreground);
    line-height: 1.2;
}

.hero-title span {
    display: block;
}

@media (min-width: 768px) {
    .hero {
        padding-top: 8rem;
    }

    .hero-title {
        font-size: 3.75rem;
    }
}

/* Info Cards */
.info-cards {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    margin: 0 auto 0.75rem;
}

.info-title {
    font-size: 1.125rem;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.info-text {
    color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
    .info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Funding Info */
.funding-info {
    background-color: var(--color-card);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    text-align: left;
    animation: fadeIn 0.5s ease-out 0.3s backwards;
}

.funding-info p {
    font-size: 1.125rem;
    color: rgba(46, 46, 46, 0.9);
    line-height: 1.75;
}

.funding-logo {
    width: 100%;
    height: auto;
    margin-top: 1.5rem;
    border-radius: var(--radius);
}

/* Scroll Indicator */
.scroll-indicator {
    display: inline-block;
    margin-top: 4rem;
    color: var(--color-muted-foreground);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
}

.scroll-indicator:hover {
    color: var(--color-accent);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==================== About Section ==================== */
.about-description {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
}

.about-description p {
    font-size: 1.125rem;
    color: rgba(46, 46, 46, 0.9);
    line-height: 1.75;
}

.about-description p + p {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .about-description {
        padding: 2.5rem;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(181, 160, 70, 0.5);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.feature-text {
    color: var(--color-muted-foreground);
    line-height: 1.75;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Indicators Section */
.indicators-section,
.location-section {
    margin-top: 3rem;
}

.subsection-title {
    font-size: 1.5rem;
    color: var(--color-foreground);
    margin-bottom: 1.5rem;
    text-align: center;
}

.indicators-grid {
    display: grid;
    gap: 1.5rem;
}

.indicator-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.indicator-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.indicator-label {
    font-size: 1.125rem;
    color: var(--color-muted-foreground);
    margin-bottom: 1rem;
}

.indicator-text {
    color: var(--color-foreground);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .indicators-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Location Section */
.location-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.location-region {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: 1rem;
}

.location-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.location-districts {
    color: var(--color-muted-foreground);
    line-height: 1.75;
}

.location-districts strong {
    color: var(--color-foreground);
}

/* Poster Section */
.poster-section {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.poster-link {
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: var(--radius-lg);
}

.poster-link:hover {
    transform: scale(1.02);
}

.poster-link:hover .poster-image {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.poster-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: block;
}

@media (min-width: 768px) {
    .poster-image {
        max-width: 600px;
    }
}

/* ==================== Gallery Section ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-placeholder {
    aspect-ratio: 4 / 3;
    background-color: var(--color-muted);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-muted-foreground);
    gap: 0.5rem;
}

.gallery-placeholder svg {
    width: 48px;
    height: 48px;
}

.gallery-placeholder span {
    font-size: 0.875rem;
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--color-muted-foreground);
}

/* Gallery item for real images */
.gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ==================== Questionnaire Section ==================== */
.form-container {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: rgba(46, 46, 46, 0.05);
    border-bottom: 1px solid var(--color-border);
}

.form-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(181, 160, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.form-title {
    font-size: 1.25rem;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.form-subtitle {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.form-body {
    padding: 1rem;
}

.form-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: var(--radius);
}

.form-footer {
    padding: 1.5rem;
    background-color: rgba(46, 46, 46, 0.05);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.form-footer p {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

.form-footer a {
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

.forms-grid {
    display: grid;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-body-text {
    padding: 1.5rem;
}

.form-body-text p {
    color: var(--color-muted-foreground);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.form-body-text p:last-of-type {
    margin-bottom: 1.5rem;
}

/* Registration Form */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-foreground);
}

.form-group label .required {
    color: #dc2626;
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--color-background);
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(181, 160, 70, 0.1);
}

.form-group input::placeholder {
    color: var(--color-muted-foreground);
    opacity: 0.7;
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

.form-message {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.form-message svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-message p {
    margin: 0;
    line-height: 1.5;
}

.form-message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message-success svg {
    color: #16a34a;
}

.form-message-success p {
    color: #166534;
}

.form-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-message-error svg {
    color: #dc2626;
}

.form-message-error p {
    color: #991b1b;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

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

.btn-primary:hover {
    background-color: #a08f3d;
    color: var(--color-accent-foreground);
}

.form-container-link {
    display: flex;
    flex-direction: column;
}

.form-container-link .form-body-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-container-link .btn {
    margin-top: auto;
    justify-content: center;
}

@media (min-width: 768px) {
    .form-body {
        padding: 1.5rem;
    }

    .form-iframe {
        height: 800px;
    }
}

/* ==================== Contact Section ==================== */
.contact-card {
    max-width: 36rem;
    margin: 0 auto;
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-name {
    font-size: 1.5rem;
    color: var(--color-foreground);
    margin-bottom: 0.5rem;
}

.contact-divider {
    width: 64px;
    height: 4px;
    background-color: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(181, 160, 70, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

.contact-label {
    font-weight: 500;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.contact-text {
    color: var(--color-muted-foreground);
}

.contact-text a {
    color: var(--color-muted-foreground);
    transition: color 0.2s ease;
}

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

@media (min-width: 768px) {
    .contact-card {
        padding: 2.5rem;
    }
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-primary-foreground);
}

.footer-eu {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
}

.footer-eu-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.footer-logo {
    height: 64px;
    width: auto;
    background-color: white;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.footer-eu-link {
    margin-top: 1.5rem;
}

.footer-eu-link a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-decoration: underline;
}

.footer-eu-link a:hover {
    color: white;
}

.footer-main {
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand-logo {
    height: 40px;
    width: auto;
    background-color: white;
    padding: 0.25rem;
    border-radius: var(--radius);
}

.footer-brand-name {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.footer-project {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .footer-logo {
        height: 80px;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: right;
    }
}
