/* ==============================================================================
   CyberLink Solution — Stylesheet
   Design tokens: --color-orange-primary (#DE7A30), --color-cyan-primary (#3B82A6)
   Fonts: Cairo (display/body, AR+LAT), JetBrains Mono (data/labels), Space Grotesk (brand)
   Theme: dark by default, .light-mode class on <html>/<body> overrides tokens below
   ============================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

:root {
    --color-navy-dark: #0B1420;
    --color-navy-light: #17233b;

    --color-orange-primary: #DE7A30;
    --color-orange-light: #f3944d;
    --color-cyan-primary: #3B82A6;
    --color-cyan-light: #52a3ce;

    --color-bg-primary: #0B1420;
    --color-bg-secondary: #131f33;
    --color-bg-elevated: #182741;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.68);
    --color-text-muted: rgba(255, 255, 255, 0.45);
    --color-border: #263954;
    --color-success: #4FAE7D;

    --font-display: 'Cairo', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-brand: 'Space Grotesk', sans-serif;

    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light-mode,
body.light-mode {
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F6FAFF;
    --color-bg-elevated: #EEF4FC;
    --color-text-primary: #0B1420;
    --color-text-secondary: rgba(11, 20, 32, 0.68);
    --color-text-muted: rgba(11, 20, 32, 0.45);
    --color-border: #DDE7F2;
}

@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;
    }
}

body {
    font-family: var(--font-display);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    transition: var(--transition-smooth);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    -webkit-font-smoothing: antialiased;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-cyan-primary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    right: 1rem;
    top: -60px;
    background: var(--color-orange-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    z-index: 2000;
    transition: top 0.2s ease;
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-orange-primary);
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 20, 32, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    --header-height: 76px; /* Fallback height */
    transition: var(--transition-smooth);
}

body.light-mode header {
    background: rgba(255, 255, 255, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-brand);
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--color-cyan-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.logo-icon {
    width: clamp(42px, 8vw, 52px);
    height: clamp(42px, 8vw, 52px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(222, 122, 48, 0.15));
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.menu-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--color-orange-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
    display: block;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height, 76px);
    right: 0;
    width: 100%;
    background: rgba(11, 20, 32, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    z-index: 9999;
    max-height: calc(100dvh - var(--header-height, 76px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.light-mode .mobile-menu {
    background: rgba(255, 255, 255, 0.98);
}

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

.mobile-menu a {
    display: block;
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 0.35rem;
}

.mobile-menu a:hover {
    background: var(--color-bg-elevated);
}

.mobile-menu .cta-button {
    width: 100%;
    margin-top: 0.5rem;
    text-align: center;
}

.theme-toggle {
    background: rgba(222, 122, 48, 0.1);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(222, 122, 48, 0.2);
    transform: rotate(20deg);
}

.cta-button {
    background: linear-gradient(135deg, var(--color-orange-primary), var(--color-orange-light));
    color: #FFFFFF;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-display);
    box-shadow: 0 4px 15px rgba(222, 122, 48, 0.25);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(222, 122, 48, 0.35);
}

/* ===== HERO SECTION ===== */
main {
    padding-top: 76px;
}

.hero {
    min-height: 88vh;
    min-height: 88dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--color-navy-dark) 0%, var(--color-navy-light) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 2rem;
}

body.light-mode .hero {
    background: linear-gradient(160deg, #F0F5FF 0%, #E8F2FF 100%);
}

.hero-network-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    pointer-events: none;
}

body.light-mode .hero-network-bg {
    opacity: 0.18;
}

.hero-network-bg .node {
    animation: pulse-node 3.5s ease-in-out infinite;
}

.hero-network-bg .link {
    animation: pulse-link 3.5s ease-in-out infinite;
}

@keyframes pulse-node {
    0%, 100% { opacity: 0.5; r: 3; }
    50% { opacity: 1; r: 4.5; }
}

@keyframes pulse-link {
    0%, 100% { stroke-opacity: 0.15; }
    50% { stroke-opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    text-align: center;
}

.hero .eyebrow {
    background: rgba(222, 122, 48, 0.1);
    border: 1px solid rgba(222, 122, 48, 0.3);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.3rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 1.5rem;
    color: var(--color-orange-primary); /* fallback if gradient clip is unsupported/fails */
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
    .hero h1 {
        background: linear-gradient(90deg, var(--color-orange-primary), var(--color-cyan-primary));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.hero p {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.25rem;
    line-height: 1.8;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-orange-primary), var(--color-orange-light));
    color: #FFFFFF;
    border: none;
    padding: 1rem 2.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-display);
    box-shadow: 0 8px 25px rgba(222, 122, 48, 0.3);
    transition: var(--transition-smooth);
}

.btn-secondary {
    background: rgba(59, 130, 166, 0.1);
    color: var(--color-cyan-primary);
    border: 2px solid var(--color-cyan-primary);
    padding: 1rem 2.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-display);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(222, 122, 48, 0.4);
}

.btn-secondary:hover {
    background: rgba(59, 130, 166, 0.2);
    transform: translateY(-3px);
}

.hero-trust-strip {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

.hero-trust-strip span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-trust-strip svg {
    color: var(--color-cyan-primary);
    flex-shrink: 0;
}

/* ===== TECH STACK RIBBON ===== */
.tech-ribbon {
    background: var(--color-bg-secondary);
    padding: 1.75rem 2rem;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    background: rgba(222, 122, 48, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/* ===== SHARED SECTION STYLES ===== */
section.block {
    padding: 5.5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    font-weight: 900;
    color: var(--color-text-primary);
    margin-bottom: 0.85rem;
}

.section-header p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    }
}

.service-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.25rem;
    transition: var(--transition-smooth);
}

.service-card:hover {
    border-color: var(--color-orange-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(222, 122, 48, 0.08);
}

.service-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--color-orange-primary), var(--color-cyan-primary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    color: #FFFFFF;
    flex-shrink: 0;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.service-card ul {
    padding-right: 1.2rem;
    list-style: none;
}

.service-card li {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.7;
}

.service-card li:last-child {
    margin-bottom: 0;
}

.service-card li strong {
    color: var(--color-orange-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.service-card li::before {
    content: '▸';
    position: absolute;
    right: -1.2rem;
    color: var(--color-cyan-primary);
    font-weight: bold;
}

/* ===== PROCESS SECTION ===== */
.process {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    counter-reset: step;
}

.process-step {
    position: relative;
    padding-top: 0.5rem;
}

.process-step .step-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-border);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

body.light-mode .process-step .step-number {
    color: var(--color-border);
}

.process-step h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--color-text-primary);
}

.process-step p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.4rem;
    left: -1rem;
    width: 1rem;
    height: 1px;
    background: var(--color-border);
    display: none;
}

@media (min-width: 900px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

/* ===== SECURITY SECTION ===== */
.security {
    background: linear-gradient(160deg, var(--color-navy-dark) 0%, var(--color-navy-light) 100%);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

body.light-mode .security {
    background: linear-gradient(160deg, var(--color-bg-secondary) 0%, #E8F0F8 100%);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.security-item {
    background: rgba(59, 130, 166, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.security-item:hover {
    border-color: var(--color-cyan-primary);
    background: rgba(59, 130, 166, 0.1);
}

.security-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(59, 130, 166, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-cyan-primary);
    margin-bottom: 1.1rem;
}

.security-item h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    font-weight: 800;
    font-size: 1.05rem;
}

.security-item p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===== PORTFOLIO / CASE STUDY ===== */
.case-study {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 3rem;
    /* Defensive fallback for the whole work section: any text node
       here (including ones added later) wraps instead of forcing
       horizontal overflow, regardless of language or spacing. */
    overflow-wrap: break-word;
}

@media (max-width: 860px) {
    .case-study {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
}

.case-study-spaced {
    margin-top: 2rem;
}

.case-study h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.case-study p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.case-study .tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-cyan-primary);
    background: rgba(59, 130, 166, 0.1);
    border: 1px solid rgba(59, 130, 166, 0.25);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Same class of bug already fixed in the footer grid: grid items
   default to min-width: auto, so an unbreakable English word/acronym
   (VPN, Analysis, Storage...) can force its column — and the whole
   page, since this is an RTL document — wider than the viewport. */
.case-study-stat {
    min-width: 0;
}

.case-study-stat .num {
    overflow-wrap: anywhere;
}

.case-study-stat {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.case-study-stat .num {
    font-family: var(--font-mono);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--color-orange-primary);
    display: block;
    margin-bottom: 0.35rem;
}

.case-study-stat .label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ===== WORK GALLERY ===== */
.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.work-gallery figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.work-gallery img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.work-gallery figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    text-align: center;
}

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

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
    padding: 1.4rem 0;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--color-orange-primary);
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    padding-bottom: 1.4rem;
    font-size: 0.95rem;
}

/* ===== CONSULTATION FORM ===== */
.consultation-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.consultation-alt {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1.25rem;
    background: rgba(59, 130, 166, 0.06);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--color-text-secondary);
}

.consultation-alt a {
    color: var(--color-cyan-primary);
    font-weight: 700;
    text-decoration: none;
}

.consultation-alt a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-display);
    font-size: 1rem;
    transition: var(--transition-smooth);
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82A6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 18px;
    padding-left: 2.75rem;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-orange-primary);
    box-shadow: 0 0 0 3px rgba(222, 122, 48, 0.1);
}

/* honeypot: hidden from real users, catches basic bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--color-orange-primary), var(--color-orange-light));
    color: #FFFFFF;
    border: none;
    padding: 1.1rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-display);
    margin-top: 0.5rem;
}

.form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(222, 122, 48, 0.4);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-privacy-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.6;
}

.form-success-message {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(59, 130, 166, 0.08);
    border: 2px dashed var(--color-cyan-primary);
    border-radius: 12px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== FLOATING SOCIAL STACK ===== */
.social-float {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    left: calc(1.5rem + env(safe-area-inset-left));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    z-index: 900;
}

.social-float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: var(--transition-smooth);
}

.social-float-btn:hover {
    transform: scale(1.08);
}

.social-float-btn.instagram {
    background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-float-btn.facebook {
    background: #1877F2;
}

.whatsapp-float {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.08);
}

/* ===== FOOTER ===== */
footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Grid items default to min-width: auto, which lets long unbreakable
   strings (the email address, the WhatsApp link) force their column
   wider than the viewport. That extra width is what was pushing the
   whole page sideways on mobile. */
.footer-content > * {
    min-width: 0;
}

.footer-section a,
.footer-brand p {
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    }
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    color: var(--color-cyan-primary);
    border-color: var(--color-cyan-primary);
}

.footer-section h3 {
    color: var(--color-text-primary);
    margin-bottom: 1.2rem;
    font-weight: 800;
    font-size: 0.98rem;
}

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

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.footer-section a:hover {
    color: var(--color-orange-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .cta-button { display: none; }
    .menu-toggle { display: flex; }
    .hero h1 { font-size: 2.1rem; }
    section.block { padding: 3.5rem 1.5rem; }

    nav { padding: 0.6rem 1rem; }
    .nav-actions { gap: 0.6rem; }
    .logo { gap: 0.5rem; }
    .logo-icon { width: 38px; height: 38px; }
    .theme-toggle { width: 38px; height: 38px; font-size: 1.1rem; }
    .menu-toggle { width: 36px; height: 36px; }
}

@media (max-width: 360px) {
    .logo span { display: none; }
}
