/* ===================================================
   VALOR AG — Styles
   Brand Style Guide: style/style_guide.md
   =================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary Palette */
    --valor-red: #C8102E;
    --valor-red-hover: #a00d24;
    --deep-navy: #001F3F;
    --deep-navy-light: #0A2342;
    --star-white: #FFFFFF;
    --golden-beam: #FFCC00;
    --golden-beam-dim: #FFD700;
    --field-green: #4A7043;

    /* Supporting / Neutral */
    --cream: #F5F0E1;
    --warm-gray: #8A8A8A;
    --slate: #2C3E50;
    --rust-accent: #A0522D;
    --sky-blue: #4FC3F7;

    /* Layout */
    --nav-height: 72px;
    --container-max: 1200px;
    --section-padding: 100px;
    --card-radius: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--slate);
    background-color: var(--star-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    color: var(--deep-navy);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: 2px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: 1px; }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 600; }

.section-title {
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--valor-red);
    margin-top: 12px;
    border-radius: 2px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    margin-top: 16px;
    font-size: 1.125rem;
    color: var(--warm-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--valor-red);
    color: var(--star-white);
    border-color: var(--valor-red);
}

.btn-primary:hover {
    background-color: var(--valor-red-hover);
    border-color: var(--valor-red-hover);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.35);
}

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

.btn-secondary:hover {
    background-color: var(--star-white);
    color: var(--deep-navy);
}

.btn-full {
    width: 100%;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

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

.nav-logo-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--star-white);
    letter-spacing: 2px;
}

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

.nav-link {
    padding: 8px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--star-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link--cta {
    background-color: var(--valor-red);
    color: var(--star-white) !important;
    border: 2px solid var(--valor-red);
    margin-left: 8px;
}

.nav-link--cta:hover {
    background-color: var(--valor-red-hover);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--star-white);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

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

/* Mobile nav open state */
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-open .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--deep-navy);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 31, 63, 0.75) 0%, rgba(10, 35, 66, 0.55) 40%, rgba(200, 16, 46, 0.25) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(255, 204, 0, 0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(5%, 3%); }
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--star-white), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
}

.hero-title {
    color: var(--star-white);
    margin-bottom: 24px;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.hero-scroll-indicator span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

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

.services {
    background-color: var(--star-white);
}

/* ---------- Service Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card {
    background: var(--cream);
    border: 1px solid rgba(0, 31, 63, 0.1);
    border-radius: var(--card-radius);
    padding: 36px 28px;
    transition: all var(--transition);
    cursor: default;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 31, 63, 0.1);
    border-color: rgba(255, 204, 0, 0.4);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    color: var(--deep-navy);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    margin-bottom: 12px;
    color: var(--deep-navy);
}

.card-text {
    color: var(--warm-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- About ---------- */
.about {
    background-color: var(--cream);
}

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

.about-lead {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--valor-red);
    margin-top: 20px;
    margin-bottom: 16px;
}

.about-content p {
    margin-bottom: 16px;
}

.about-values {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.value-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-item strong {
    display: block;
    color: var(--deep-navy);
    font-weight: 600;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    margin-bottom: 0;
}

.about-badge {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-emblem {
    width: 280px;
    height: 280px;
}

.badge-stars svg {
    width: 100%;
    height: 100%;
}

/* ---------- Service Area ---------- */
.service-area {
    background: var(--star-white);
}

.area-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.map-embed {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--card-radius);
    overflow: hidden;
    border: 2px solid rgba(0, 31, 63, 0.12);
    box-shadow: 0 4px 24px rgba(0, 31, 63, 0.08);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.map-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: var(--deep-navy);
    color: var(--star-white);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.map-badge span {
    color: var(--golden-beam);
}

.area-card {
    background: var(--cream);
    border: 1px solid rgba(0, 31, 63, 0.1);
    border-radius: var(--card-radius);
    padding: 36px;
}

.area-card h3 {
    margin-bottom: 16px;
    color: var(--deep-navy);
}

.area-card p {
    color: var(--warm-gray);
    margin-bottom: 20px;
}

.area-list {
    margin-bottom: 28px;
}

.area-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--slate);
    font-size: 0.95rem;
}

.area-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--field-green);
    font-weight: 700;
}

/* ---------- Contact ---------- */
.contact {
    background-color: var(--cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-form {
    background: var(--star-white);
    border-radius: var(--card-radius);
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 31, 63, 0.06);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-group:not(.form-row .form-group) {
    margin-bottom: 20px;
}

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

.required {
    color: var(--valor-red);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid rgba(0, 31, 63, 0.12);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--slate);
    background: var(--star-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--valor-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

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

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

.form-status {
    margin-top: 16px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status.success {
    color: var(--field-green);
}

.form-status.error {
    color: var(--valor-red);
}

.contact-info {
    padding: 20px 0;
}

.info-block {
    margin-bottom: 32px;
}

.info-block h3 {
    color: var(--deep-navy);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.info-block p {
    color: var(--warm-gray);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--valor-red);
    margin-top: 2px;
}

.info-item strong {
    display: block;
    color: var(--deep-navy);
    margin-bottom: 4px;
}

.info-item p {
    margin: 0;
    color: var(--warm-gray);
}

.info-item a {
    color: var(--valor-red);
}

.info-item a:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--deep-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

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

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    color: var(--star-white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-services li {
    padding: 6px 0;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-tagline {
    color: var(--golden-beam);
    font-style: italic;
}

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

.footer-credit a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--transition);
}

.footer-credit a:hover {
    color: var(--golden-beam);
}

/* ---------- Animations ---------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid children */
.services-grid .card:nth-child(2) { transition-delay: 0.1s; }
.services-grid .card:nth-child(3) { transition-delay: 0.2s; }
.services-grid .card:nth-child(4) { transition-delay: 0.3s; }
.services-grid .card:nth-child(5) { transition-delay: 0.4s; }
.services-grid .card:nth-child(6) { transition-delay: 0.5s; }

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

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

    .about-badge {
        order: -1;
    }

    .badge-emblem {
        width: 200px;
        height: 200px;
    }

    .area-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
        --nav-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--deep-navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    }

    .nav-open .nav-menu {
        right: 0;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-link--cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
    }

    .map-embed {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 24px;
    }

    .card {
        padding: 28px 20px;
    }
}

