:root {
    /* Color Palette - Premium Navy & Gold */
    --primary: #0A192F;
    --primary-light: #172A45;
    --accent: #D4AF37;
    --accent-hover: #C19B2E;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --overlay: rgba(2, 12, 27, 0.7);
    --secondary: #64FFDA; /* Subtle teal for micro-accents */
    --bg-dark: #020C1B;
    --bg-light: #F8F9FA;
    --text-white: #E6F1FF;
    --text-dark: #1D1D1D;
    --text-muted: #8892B0;
    --white: #FFFFFF;
    
    /* Gradients */
    --grad-primary: linear-gradient(135deg, #0A192F 0%, #172A45 100%);
    --grad-accent: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);

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

    /* Spacing & Sizes */
    --section-padding: 120px 0;
    --container-width: 1100px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero content fades in immediately on load */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scroll-revealed elements: hidden up front only when JS is active, so the
   content stays visible if JS fails. The observer adds .reveal-active. */
.js .fade-in-up,
.js .fade-in-scale {
    opacity: 0;
}

.fade-in-up.reveal-active {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-scale.reveal-active {
    animation: fadeInScale 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.section {
    padding: var(--section-padding);
    scroll-margin-top: 90px; /* offset so anchored sections clear the fixed header */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

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

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

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

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

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.4s ease;
}

#main-header.scrolled {
    background-color: var(--primary);
    padding: 15px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.logo-mark {
    height: 52px;
    width: auto;
    transition: height 0.4s ease;
}

#main-header.scrolled .logo-mark {
    height: 44px;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-subtext {
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: var(--accent);
}

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

.nav-links a {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
}

/* Mobile menu button (hamburger) — hidden on desktop */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

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

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-image: url('assets/hero-bg.jpg'); /* Placeholder image source */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

#hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

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

.stat-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Services Section */
.bg-light { background-color: var(--bg-light); }

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

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

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-icon {
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* About Section */
.about-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 20px 20px 0 var(--accent);
}

.about-content {
    flex: 1;
}

.section-tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question svg {
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-item.active .faq-question {
    background-color: var(--primary);
    color: var(--white);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background-color: var(--white);
}

.faq-answer p {
    padding: 0 30px 20px;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.contact-info p {
    margin-bottom: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 5px;
}

.contact-form {
    background-color: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Honeypot — visually removed but still present in the DOM for bots to trip on.
   Not display:none, since some bots skip hidden fields; this keeps it off-screen. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* RODO consent checkbox — inline layout, smaller print than the field labels */
.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-consent input {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-consent label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.form-consent a {
    color: var(--accent);
    font-weight: 600;
}

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

/* Submission feedback message */
.form-status {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-success {
    background-color: rgba(100, 255, 218, 0.12);
    color: #0a7a5c;
    border: 1px solid rgba(100, 255, 218, 0.5);
}

.form-status.is-error {
    background-color: rgba(220, 53, 69, 0.08);
    color: #b02a37;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

/* Legal / policy pages (privacy policy, etc.) */
.legal-page {
    padding-top: 160px; /* clear the fixed header */
    padding-bottom: 100px;
}

.legal-page .container {
    max-width: 800px;
}

.legal-page h1 {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.legal-page .legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.6rem;
    color: var(--primary);
    margin: 40px 0 15px;
}

.legal-page p,
.legal-page li {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-page a {
    color: var(--accent);
    font-weight: 600;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-note {
    background-color: var(--bg-light);
    border-left: 3px solid var(--accent);
    padding: 20px 25px;
    border-radius: 4px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-muted);
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .header-contact {
        display: none;
    }

    /* Desktop nav hidden; opens as a stacked dropdown below the fixed header */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background-color: var(--primary);
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

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

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
    }

    /* Neutralize the button styling on the Kontakt link inside the dropdown */
    .nav-links a.btn-primary {
        background-color: transparent;
        color: var(--white);
        border-radius: 0;
    }

    .nav-links a.btn-primary:hover {
        background-color: var(--primary-light);
        transform: none;
    }
}
