/* DITTO Comunicaciones - Shared Styles */
:root {
    /* Brand Colors - From Official DITTO Logo */
    /* Gold/Yellow Origami Bird (Left) */
    --ditto-gold: #F9B233;
    --ditto-gold-mid: #E59525;
    --ditto-gold-shadow: #D98014;

    /* Blue Origami Bird (Right) */
    --ditto-blue: #4A90E2;
    --ditto-blue-mid: #357ABD;
    --ditto-blue-dark: #2E5EAA;

    /* Supporting Colors */
    --primary: #1A2B4A;
    --secondary: var(--ditto-gold);
    --accent: var(--ditto-blue);
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --text-primary: #1A1A1A;
    --text-secondary: #5A6474;
    --border: #E2E5EA;
    --shadow: 0 4px 24px rgba(26, 43, 74, 0.08);
    --shadow-hover: 0 8px 32px rgba(26, 43, 74, 0.12);

    /* Brand Gradient */
    --gradient-brand: linear-gradient(135deg, var(--ditto-gold) 0%, var(--ditto-blue) 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: var(--bg-primary);
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

/* Ensure hamburger is always on top on mobile */
@media (max-width: 768px) {
    .header {
        z-index: 1004;
    }
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 195px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}

.logo-text {
    display: none;
}

.logo-name {
    display: none;
}

.logo-tagline {
    display: none;
}

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

.nav-link {
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--ditto-gold);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 8px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-dropdown-item:hover {
    background: var(--bg-secondary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
}

.lang-btn {
    padding: 6px 10px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    border-radius: 4px;
    text-decoration: none;
}

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

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

.lang-divider {
    color: var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--gradient-brand);
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(249, 178, 51, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

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

.btn-white:hover {
    background: var(--bg-secondary);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 24px;
    overflow-y: auto;
}

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

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-sub {
    padding-left: 20px;
}

.mobile-nav-sub a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-nav-sub a:hover {
    color: var(--secondary);
}

.mobile-cta {
    margin-top: 24px;
}

.mobile-cta .btn {
    width: 100%;
}

/* Two Column Layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-col-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, #2d4a7c 100%);
}

.two-col-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.two-col-content h2 {
    margin-bottom: 24px;
}

.two-col-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* Years Badge */
.years-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
}

.years-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
}

.years-text {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Hero */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 43, 74, 0.85) 0%, rgba(26, 43, 74, 0.7) 100%);
    z-index: 1;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Page Hero (smaller) */
.page-hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--primary) 0%, #2d4a7c 100%);
    color: white;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Section */
.trust {
    padding: 60px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

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

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

.trust-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

/* Alternating trust icons - gold & blue */
.trust-grid .trust-item:nth-child(1) .trust-icon,
.trust-grid .trust-item:nth-child(3) .trust-icon {
    color: var(--ditto-gold);
}

.trust-grid .trust-item:nth-child(2) .trust-icon,
.trust-grid .trust-item:nth-child(4) .trust-icon {
    color: var(--ditto-blue);
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.trust-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(249, 178, 51, 0.15) 0%, rgba(74, 144, 226, 0.15) 100%);
    background: rgba(249, 178, 51, 0.12);
    color: var(--ditto-gold);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Links use DITTO blue */
a {
    color: var(--ditto-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ditto-gold);
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 20px;
    color: var(--primary);
}

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

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px 32px;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Alternating gold/blue icons */
.services-grid .service-card:nth-child(1) .service-icon,
.services-grid .service-card:nth-child(3) .service-icon,
.services-grid .service-card:nth-child(5) .service-icon {
    background: linear-gradient(135deg, var(--ditto-gold) 0%, var(--ditto-gold-mid) 100%);
}

.services-grid .service-card:nth-child(2) .service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--ditto-blue) 0%, var(--ditto-blue-mid) 100%);
}

.services-grid .service-card:nth-child(2) .service-icon,
.services-grid .service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--ditto-blue) 0%, var(--ditto-blue-mid) 100%);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

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

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

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.service-link:hover {
    gap: 12px;
}

.service-link svg {
    width: 18px;
    height: 18px;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

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

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.content-image {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, #2d4a7c 100%);
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 40px;
}

.image-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.image-placeholder span {
    font-size: 0.9rem;
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-check {
    width: 24px;
    height: 24px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list span {
    font-size: 1rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
    font-family: 'Playfair Display', serif;
}

.process-step h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Industries */
.industries {
    background: var(--bg-secondary);
}

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

.industry-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

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

.industry-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

/* Alternating industry icons */
.industries-grid .industry-card:nth-child(1) .industry-icon,
.industries-grid .industry-card:nth-child(3) .industry-icon,
.industries-grid .industry-card:nth-child(5) .industry-icon,
.industries-grid .industry-card:nth-child(7) .industry-icon {
    color: var(--ditto-gold);
}

.industries-grid .industry-card:nth-child(2) .industry-icon,
.industries-grid .industry-card:nth-child(4) .industry-icon,
.industries-grid .industry-card:nth-child(6) .industry-icon,
.industries-grid .industry-card:nth-child(8) .industry-icon {
    color: var(--ditto-blue);
}

.industry-card h4 {
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #2d4a7c 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Forms */
.form-section {
    padding: 100px 0;
}

.form-container {
    max-width: 720px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

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

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox input {
    width: auto;
    margin-top: 4px;
}

.form-checkbox label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload:hover {
    border-color: var(--secondary);
    background: var(--bg-secondary);
}

.file-upload svg {
    width: 48px;
    height: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.file-upload p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.file-upload input {
    display: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo-name {
    display: none;
}

.footer-brand .footer-logo {
    display: block;
    width: 180px;
    height: auto;
    max-height: 65px;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Light logo panel for footer - so black logo is readable */
.footer-logo-panel {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.footer-logo-panel img {
    display: block;
    width: 170px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.footer-brand p {
    margin-top: 0;
    opacity: 0.8;
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

/* ER Digital Credit */
.footer-credit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-credit span {
    opacity: 0.7;
}

.footer-credit a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-credit a:hover {
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    padding: 24px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secondary);
}

.breadcrumb span {
    margin: 0 8px;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Tablet logo */
    .logo-icon {
        width: 165px;
        max-height: 60px;
    }

    .header-inner {
        height: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .content-grid.reverse {
        direction: ltr;
    }

    .process-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-step::after {
        display: none;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
    }

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

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

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

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

@media (max-width: 640px) {
    /* Mobile logo */
    .logo-icon {
        width: 155px;
        max-height: 55px;
    }

    .header-inner {
        height: 70px;
    }

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

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

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }
}

/* Legal Pages */
.legal-section {
    padding: 60px 0 100px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ditto-gold);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.legal-content li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.7;
}

.legal-content a {
    color: var(--ditto-blue);
    text-decoration: none;
}

.legal-content a:hover {
    color: var(--ditto-gold);
    text-decoration: underline;
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    text-align: left;
    padding: 12px 16px;
    border: 1px solid var(--border);
}

.cookie-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--primary);
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table tr:hover {
    background: var(--bg-secondary);
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.cookie-banner-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.cookie-banner-text a {
    color: var(--ditto-blue);
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
}

.cookie-banner .btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-banner .btn-outline:hover {
    background: var(--bg-secondary);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
    }

    .cookie-banner-buttons {
        width: 100%;
    }

    .cookie-banner-buttons .btn {
        flex: 1;
    }
}

/* Footer */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 80px 0 0;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--ditto-gold);
    transform: translateY(-2px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-contact li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--ditto-gold);
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--ditto-gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--ditto-gold);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 0;
    }

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

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

/* =====================
   MOBILE NAVIGATION
   ===================== */

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 1002;
}

.mobile-toggle:hover {
    background: var(--bg-secondary);
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
    margin: 4px 0;
}

/* Hamburger icon color - always dark for visibility */
@media (max-width: 1024px) {
    .mobile-toggle span {
        background: var(--primary);
    }
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1001;
    padding: 24px;
    overflow-y: auto;
    flex-direction: column;
    gap: 0;
}

.mobile-menu.active {
    display: flex;
    padding-top: 90px;
    z-index: 1100;
}

/* Close button for mobile menu */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.mobile-menu-close::before,
.mobile-menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.mobile-menu-close::before {
    transform: rotate(45deg);
}

.mobile-menu-close::after {
    transform: rotate(-45deg);
}

.mobile-menu.active .mobile-menu-close {
    display: flex;
}

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

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

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

.mobile-nav-link {
    display: block;
    padding: 16px 0;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-sub {
    display: none;
    padding: 0;
}

.mobile-nav-sub.active {
    display: block;
}

.mobile-nav-sub a {
    display: block;
    padding: 12px 0 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-sub a:last-child {
    border-bottom: none;
}

.mobile-services-toggle {
    user-select: none;
}

.mobile-cta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}

.mobile-cta .btn {
    width: 100%;
    padding: 16px;
}

/* Mobile header adjustments - breakpoint at 768px */
@media (max-width: 768px) {
    .header-inner {
        height: 70px;
    }

    .logo-icon {
        width: 150px;
    }

    .nav {
        display: none !important;
    }

    /* Hide desktop CTA button on mobile */
    .nav-right > a.btn-primary {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        position: relative;
        z-index: 1003;
        margin-left: 12px;
        background-color: rgba(0, 0, 0, 0.05);
        border: 1px solid var(--border);
    }

    .mobile-toggle:hover {
        background-color: rgba(0, 0, 0, 0.1);
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .lang-toggle {
        font-size: 0.75rem;
    }

    .lang-btn {
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .logo-icon {
        width: 120px;
    }

    .lang-toggle {
        font-size: 0.7rem;
    }

    .lang-btn {
        padding: 4px 5px;
    }

    .lang-divider {
        font-size: 0.6rem;
    }

    .header-inner {
        height: 60px;
    }

    .mobile-menu {
        padding-top: 80px;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Services dropdown for mobile - click to expand */
.nav-dropdown > .nav-link::after {
    content: ' ▼';
    font-size: 0.6em;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        background: var(--bg-secondary);
        border-radius: 0;
        margin-top: 8px;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}
