@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;900&display=swap');

/* ===== CSS RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary-orange: #ff6b35;
    --primary-blue: #1e3a8a;
    --accent-yellow: #fbbf24;
    --dark-blue: #0f172a;
    --light-gray: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --red: #dc2626;
    --success-color: #22c55e;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-header: 1000;
    --z-overlay: 1100;
    --z-modal: 1200;
    
    /* Viewport height fix for mobile */
    --vh: 1vh;
}

/* ===== BASE STYLES ===== */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--dark-blue);
    min-height: 100vh;
    min-height: calc(var(--vh) * 100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Background Pattern */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: var(--z-modal);
    transition: top var(--transition-normal);
}

.skip-link:focus {
    top: 6px;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: var(--dark-blue);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-header);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(15, 23, 42, 0.95);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--spacing-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    transition: transform var(--transition-normal);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 50px;
    width: auto;
    margin-right: 15px;
}

.logo-fallback {
    display: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    margin-right: 15px;
    color: var(--dark-blue);
}

.logo-text {
    color: var(--accent-yellow);
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    color: var(--white);
    font-weight: 300;
    margin-left: 5px;
}

/* Desktop Navigation */
nav {
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-xl);
    margin: 0;
    padding: 0;
    align-items: center;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    padding: 12px 0;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
}

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

nav a:hover {
    color: var(--accent-yellow);
    transform: translateY(-1px);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-normal);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MAIN CONTENT ===== */
main {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero {
    padding: 180px 0 60px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 1;
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

/* ===== CONTACT FORM SECTION ===== */
.contact-form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 50px;
    margin: -30px auto 60px auto;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: none;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

/* Form Container */
.form-container {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid rgba(30, 58, 138, 0.1);
}

.contact-form {
    display: grid;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Form Labels */
label {
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.required {
    color: var(--red);
    font-weight: 700;
}

/* Form Inputs */
input,
select,
textarea {
    padding: 15px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 400;
    transition: all var(--transition-normal);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    font-family: inherit;
    min-height: 44px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    background: var(--white);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}

textarea {
    min-height: 260px;
    resize: vertical;
    line-height: 1.5;
}

/* Submit Button */
.submit-btn {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 12px 60px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    justify-self: center;
    margin-top: var(--spacing-md);
    min-height: 44px;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.submit-btn::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.5s;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CONTACT INFO CARD ===== */
.contact-info-card {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 30px rgba(30, 58, 138, 0.3);
    height: fit-content;
    position: sticky;
    top: 120px;
}

.contact-info-card h3 {
    color: var(--accent-yellow) !important;
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    min-height: 44px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark-blue);
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-yellow) !important;
    margin-bottom: 5px;
}

.contact-details p {
    color: var(--white);
    margin: 0;
    line-height: 1.4;
}

.contact-details a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition-normal);
}

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

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    display: none;
    background: var(--success-color);
    color: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: var(--spacing-md);
    animation: slideDown 0.5s ease-out;
}

.success-message.show {
    display: block;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

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

/* ===== ERROR STATES ===== */
.error {
    border-color: var(--red) !important;
    background: rgba(220, 38, 38, 0.05) !important;
}

.error-message {
    color: var(--red);
    font-size: 0.9rem;
    margin-top: 5px;
    padding: 5px 10px;
    background: rgba(220, 38, 38, 0.1);
    border-radius: var(--radius-sm);
    font-weight: 500;
}


/* ===== UTILITY CLASSES ===== */
.touch-active {
    transform: scale(0.98);
    opacity: 1;
    transition: all 0.1s ease;
}

.fade-in-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-ready.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Keyboard visible state for mobile */
.keyboard-visible .contact-info-card {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 var(--spacing-md);
    }
    
    .contact-form-section {
        padding: var(--spacing-xl);
        margin: -20px var(--spacing-md) var(--spacing-xl) var(--spacing-md);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-info-card {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-blue);
        padding: var(--spacing-lg) var(--spacing-md);
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
    }
    
    nav.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        padding: var(--spacing-md) 0;
        font-size: 18px;
        font-weight: 600;
        width: 100%;
    }
    
    nav a::after {
        display: none;
    }
    
    nav a:hover {
        background: rgba(255,255,255,0.1);
        transform: none;
        padding-left: 10px;
    }
    
    /* Logo Mobile */
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtitle {
        display: none;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin-right: 10px;
    }
    
    /* Hero Mobile */
    .hero {
        padding: 140px 0 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 var(--spacing-md);
    }
    
    /* Form Section Mobile */
    .contact-form-section {
        margin: -20px 10px 30px 10px;
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-header p {
        font-size: 1rem;
    }
    
    .form-container {
        padding: 25px 15px;
        border-radius: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Mobile Inputs */
    input,
    select,
    textarea {
        padding: 18px 15px;
        border-radius: 10px;
    }
    
    /* Submit Button Mobile */
    .submit-btn {
        width: 100%;
        padding: 18px 30px;
        font-size: 1.1rem;
        margin-top: 15px;
    }
    
    /* Contact Info Card Mobile */
    .contact-info-card {
        padding: 25px 20px;
        margin-top: var(--spacing-md);
    }
    
    .contact-info-card h3 {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-contact {
        justify-content: center;
    }
    
    /* Disable animations on mobile for performance */
    
}

/* Small Smartphones */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .contact-form-section {
        margin: -15px 5px 20px 5px;
        padding: 20px 10px;
    }
}

/* Landscape Mode */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 120px 0 30px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .contact-info-card {
        position: static;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

/* Focus States */
*:focus-visible {
    outline: 3px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0066cc;
        --text-dark: #000000;
        --white: #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .contact-item:hover,
    .submit-btn:hover,
    nav a:hover {
        transform: none;
    }
    
    .contact-item:active,
    .submit-btn:active,
    nav a:active {
        transform: scale(0.98);
    }
}

/* High-DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .contact-form-section {
        box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    }
}

/* iOS Safe Areas */
@supports (padding: max(0px)) {
    .contact-form-section {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
    }
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    
    header,
    .mobile-menu-toggle,
    .submit-btn {
        display: none !important;
    }
    
    .contact-form-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Harmonized social icon visibility */
.social-icons img,
.social-icons svg,
.adress_footer .social-icons img,
.adress_footer .social-icons svg,
#adress_footer .social-icons img,
#adress_footer .social-icons svg {
  filter: none !important;
  opacity: 1 !important;
}
