/* Design System & Aesthetics: Marinise MASE Service Landing Page - Light Theme */

:root {
    --bg-black: #ffffff;          /* White Background */
    --bg-dark: #f8fafc;           /* Very Light Gray/Blue */
    --bg-card: #ffffff;           /* Pure White Cards */
    --primary: #0056a7;           /* Marinise Brand Navy Blue */
    --primary-glow: rgba(0, 86, 167, 0.15);
    --text-light: #0f172a;         /* Deep Slate for Headings */
    --text-main: #334155;          /* Charcoal Slate for Body */
    --text-muted: #64748b;         /* Muted Blue/Gray for Subtexts */
    --border: #e2e8f0;            /* Soft slate borders */
    --border-glow: rgba(0, 86, 167, 0.25);
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --font: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font);
    background-color: var(--bg-black);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Helpers */
h1, h2, h3, h4 {
    color: var(--text-light);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-main);
}

.text-center { text-align: center; }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.w-full { width: 100%; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.gap-md { gap: 32px; }
.gap-sm { gap: 16px; }
.mt-md { margin-top: 48px; }
.mt-sm { margin-top: 24px; }
.mt-xs { margin-top: 12px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: #004383;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 86, 167, 0.35);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: var(--text-muted);
}

.btn-call {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--border-glow);
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-call:hover {
    background-color: rgba(0, 86, 167, 0.05);
    border-color: var(--primary);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* Badges & Titles */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-accent {
    background-color: rgba(0, 86, 167, 0.05);
    color: var(--primary);
    border: 1px solid var(--border-glow);
}

.sub-title {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 8px;
}

.section-desc {
    max-width: 680px;
    margin: 12px auto 0;
    color: var(--text-muted);
}

/* Header Navbar & Lang Switcher */
.header {
    height: 90px; /* Slightly taller for larger logo */
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

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

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

.logo-img {
    height: 52px; /* Increased logo size slightly */
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

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

.header-actions-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-selector {
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px 8px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-light);
}

.lang-btn.active {
    color: var(--primary);
}

.lang-divider {
    color: var(--border);
    font-size: 0.7rem;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* CSS Vector Logo Re-creation for MASE Generators */
.mase-badge-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 6px;
    padding: 8px 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.mase-logo-text-blue {
    font-family: var(--font);
    font-weight: 900;
    font-style: italic;
    color: #0b2545; /* Navy blue */
    font-size: 1.6rem;
    line-height: 1;
    letter-spacing: -1.5px;
    text-transform: lowercase;
}

.mase-logo-text-red {
    font-family: var(--font);
    font-weight: 800;
    background-color: #ef4444; /* red banner */
    color: #ffffff;
    font-size: 0.6rem;
    padding: 2px 8px;
    letter-spacing: 1.5px;
    margin-top: 3px;
    border-radius: 2px;
    text-transform: uppercase;
}

/* Overlays on Images */
.hero-brand-overlay {
    position: absolute;
    bottom: 30px;
    right: 40px;
    z-index: 10;
}

.visual-brand-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 16px 0 24px;
    letter-spacing: -1px;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.h-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
}

.h-feat-item i {
    color: #53a9c3;
}

/* Glassmorphism Cards & Forms */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.hero-form h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.hero-form p {
    font-size: 0.85rem;
    margin-bottom: 24px;
    color: var(--text-muted);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-light);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 86, 167, 0.15);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

/* Sections */
.section {
    padding: 100px 0;
}

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

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

.section-blue-gradient {
    background: radial-gradient(1000px 400px at 50% 50%, #f0f7ff 0%, var(--bg-black) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Why Choose Us Feature boxes */
.card-feature-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
}

.card-feature-box:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 167, 0.05);
}

.feat-box-icon {
    font-size: 1.35rem;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.card-feature-box p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.3;
}

/* Solutions Cards */
.solution-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: var(--transition);
}

.solution-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.solution-card:hover::before {
    background-color: var(--primary);
}

.sol-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    background-color: rgba(0, 86, 167, 0.05);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.solution-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.solution-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Catalog Card Box */
.catalog-box {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    overflow: hidden;
    padding: 0;
    background-color: #ffffff;
    border: 1px solid var(--border);
}

.catalog-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.catalog-content h2 {
    font-size: 2.2rem;
    margin: 16px 0;
}

.catalog-content p {
    margin-bottom: 32px;
    color: var(--text-muted);
}

.catalog-visual {
    overflow: hidden;
    border-left: 1px solid var(--border);
}

.catalog-visual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Engine Models Selector */
.model-selection-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.model-tab {
    padding: 12px 24px;
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: var(--transition);
}

.model-tab:hover {
    background-color: #e2e8f0;
    color: var(--text-light);
}

.model-tab.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.model-details-card {
    padding: 40px;
    margin-top: 24px;
    background-color: #ffffff;
    border: 1px solid var(--border);
}

.model-details-card p {
    color: var(--text-muted);
}

/* Mariner Sub-tabs filters */
.mariner-sub-tabs {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.sub-tab-pill {
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.sub-tab-pill.active {
    background-color: rgba(0, 86, 167, 0.08);
    color: var(--primary);
    border-color: var(--primary-glow);
}

.generator-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.spec-item-card {
    background-color: #f8fafc;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.spec-item-card:hover {
    border-color: var(--primary-glow);
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.spec-item-card h4 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    color: var(--text-light);
}

.spec-item-card p {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

.spec-item-card .download-pdf-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.spec-item-card .download-pdf-btn:hover {
    background-color: var(--danger);
    color: #ffffff;
}

/* Footer Section */
.footer {
    background-color: #052844;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 20px;
}

.footer h4, .footer p, .footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer h4 {
    color: #ffffff;
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: #e0f2fe; /* Light sky blue for contrast */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 32px;
}

.disclaimer-text {
    background-color: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
}

.disclaimer-text p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Modal Form Success */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: #ffffff;
    border: 1px solid var(--border);
    padding: 40px;
    max-width: 480px;
    margin: 15% auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Responsive Styles (Tablets & Mobile) */
@media (max-width: 1024px) {
    .section {
        padding: 60px 0;
    }
    .header {
        height: 74px; /* Lower header height on mobile */
    }
    .header-container {
        padding: 0 16px;
    }
    .logo {
        margin-right: auto; /* Push subsequent elements to the far right */
    }
    .logo-img {
        height: 38px; /* Shrink logo on mobile to prevent overflow */
    }
    .nav {
        display: none;
    }
    .nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 74px; /* Match new header height */
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 2px solid var(--primary);
        padding: 32px 24px;
        gap: 20px;
        box-shadow: 0 15px 30px rgba(0, 86, 167, 0.1);
        z-index: 999;
    }
    .nav.active a {
        font-size: 1.15rem;
        color: var(--text-light);
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f1f5f9;
        font-weight: 600;
        text-decoration: none;
    }
    .nav.active a:last-child {
        border-bottom: none;
    }
    .nav-toggle {
        display: flex; /* Flex alignment for centering icon */
    }
    .header-actions-right {
        gap: 12px;
        margin-left: 0;
        margin-right: 12px; /* Spacing before toggle button */
    }
    .header-cta {
        display: none;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-form-wrapper {
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    .hero-features {
        align-items: center;
    }
    .catalog-box {
        grid-template-columns: 1fr;
    }
    .catalog-visual {
        display: none;
    }
    .hero-brand-overlay {
        bottom: unset;
        top: 20px;
        right: 20px;
    }
    .grid-4, .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .model-details-card {
        padding: 20px 16px;
    }
    .spec-item-card {
        padding: 12px;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        margin-bottom: 40px;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-social-icons {
        justify-content: center;
    }
    .footer-copyright {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        justify-content: center;
    }
}

/* Footer Social & Hours Enhancements */
.footer-social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social-icons a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-social-icons a:hover {
    background-color: var(--primary);
    color: #ffffff !important;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.working-hours p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.8rem;
    line-height: 1.6;
}

.working-hours p strong {
    color: #ffffff;
}

/* Cookie Policy Popup */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-content p {
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-light);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

.btn-cookie-accept {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 576px) {
    .cookie-banner {
        bottom: 16px;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}



/* Fix Turkish browser uppercase 'i' to 'I' casing bug for English text */
html[lang="en"] .badge,
html[lang="en"] .sub-title,
html[lang="en"] .pref-badge,
html[lang="en"] .footer h4 {
    text-transform: none !important;
}
