/* ===============================================
   SHINE — Design System
   White · Clean · Architectural
   =============================================== */
:root {
    --red:            #e51722;      /* Primary accent — red */
    --blue:           #1B3A6B;      /* Secondary accent — dark navy blue */
    --text-dark:      #0f172a;      /* Near-black for headings */
    --text-medium:    #374151;      /* Medium gray for body */
    --text-light:     #6B7280;      /* Light gray for subtitles */
    --bg-white:       #ffffff;
    --bg-light:       #f9fafb;
    --bg-dark:        #0f172a;      /* Footer / dark sections */
    --border:         #e5e7eb;
    --border-strong:  #d1d5db;
    --shadow-sm:      rgba(0,0,0,0.05);
    --shadow-md:      rgba(0,0,0,0.10);
    --whatsapp:       #25D366;

    --font-size-base:  16px;
    --font-size-scale: 1;
}

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

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: 'Heebo', sans-serif;
    color: var(--text-medium);
    background-color: var(--bg-white);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===============================================
   Typography
   =============================================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 { font-size: calc(4rem * var(--font-size-scale)); }
h2 { font-size: calc(2.2rem * var(--font-size-scale)); }
h3 { font-size: calc(1.25rem * var(--font-size-scale)); }

p {
    font-size: calc(1rem * var(--font-size-scale));
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ===============================================
   Container
   =============================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===============================================
   Section Header Pattern
   =============================================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: calc(0.75rem * var(--font-size-scale));
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.75rem;
}

.section-label.light { color: rgba(255,255,255,0.65); }

.section-title {
    font-size: calc(2.2rem * var(--font-size-scale));
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-title.light { color: #ffffff; }

.section-subtitle {
    font-size: calc(1.05rem * var(--font-size-scale));
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto;
}

.section-subtitle.light { color: rgba(255,255,255,0.7); }

/* ===============================================
   Buttons
   =============================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--red);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 4px;
    font-size: calc(0.95rem * var(--font-size-scale));
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(229,23,34,0.3);
}

.btn-primary:hover {
    background-color: #c9131e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(229,23,34,0.35);
    color: #ffffff;
}

.btn-secondary {
    display: inline-block;
    color: var(--text-dark);
    font-size: calc(0.95rem * var(--font-size-scale));
    font-weight: 500;
    padding: 14px 8px;
    border-bottom: 1.5px solid var(--text-dark);
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    color: var(--red);
    border-bottom-color: var(--red);
}

/* ===============================================
   Accessibility Menu
   =============================================== */
.accessibility-menu {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 9999;
}

.accessibility-toggle {
    background-color: var(--blue);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: calc(0.85rem * var(--font-size-scale));
    font-family: 'Heebo', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 8px var(--shadow-md);
    transition: all 0.2s ease;
}

.accessibility-toggle:hover {
    background-color: var(--red);
    transform: translateY(-1px);
}

.accessibility-toggle:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.accessibility-options {
    position: absolute;
    top: 48px;
    left: 0;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 18px;
    box-shadow: 0 8px 24px var(--shadow-md);
    min-width: 210px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
}

.accessibility-options.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.accessibility-options h2 {
    font-size: calc(0.95rem * var(--font-size-scale));
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.accessibility-btn {
    width: 100%;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 8px;
    cursor: pointer;
    font-family: 'Heebo', sans-serif;
    font-size: calc(0.9rem * var(--font-size-scale));
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.accessibility-btn:hover {
    background-color: var(--blue);
    color: white;
    border-color: var(--blue);
}

.accessibility-btn .icon {
    font-weight: 700;
    font-size: calc(1rem * var(--font-size-scale));
    min-width: 20px;
    text-align: center;
}

.accessibility-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    color: var(--blue);
    font-size: calc(0.85rem * var(--font-size-scale));
    transition: color 0.2s;
}

.accessibility-link:hover { color: var(--red); }

/* ===============================================
   Floating Buttons
   =============================================== */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    left: 28px;
    background-color: var(--whatsapp);
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(37,211,102,0.45);
    z-index: 9998;
    transition: all 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37,211,102,0.55);
}

.phone-float {
    position: fixed;
    bottom: 30px;
    left: 28px;
    background-color: var(--blue);
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(27,58,107,0.4);
    z-index: 9998;
    transition: all 0.25s ease;
}

.phone-float:hover {
    transform: scale(1.08);
    background-color: #243f7a;
}

@media (max-width: 768px) {
    .phone-float {
        display: flex;
        left: 18px;
    }
}

/* ===============================================
   Navbar
   =============================================== */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.1rem 0;
    transition: padding 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.navbar-scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 4px 20px var(--shadow-sm);
    background-color: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.logo {
    grid-column: 1;
    justify-self: start;
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    grid-column: 3;
    justify-self: end;
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.logo-image {
    max-height: 130px;
    max-width: 360px;
    width: auto;
    object-fit: contain;
    transition: max-height 0.3s ease;
}

.navbar.navbar-scrolled .logo-image {
    max-height: 50px;
}

.nav-links {
    grid-column: 2;
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
    justify-content: center;
}

.nav-links a {
    color: var(--text-medium);
    font-weight: 500;
    font-size: calc(0.92rem * var(--font-size-scale));
    padding: 0.4rem 0;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--red);
    transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--text-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-contact-link {
    background-color: var(--text-dark);
    color: #ffffff !important;
    padding: 8px 20px !important;
    border-radius: 3px;
    transition: background-color 0.2s ease !important;
}

.nav-contact-link:hover {
    background-color: var(--red) !important;
    color: #ffffff !important;
}

.nav-contact-link::after { display: none !important; }

.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.25s ease;
}

/* ===============================================
   Hero Section
   =============================================== */
.hero {
    background-color: var(--bg-white);
    background-image:
        linear-gradient(rgba(27,58,107,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,58,107,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 90px 0 80px;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--red), transparent);
    opacity: 0.3;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.hero-label {
    font-size: calc(0.75rem * var(--font-size-scale));
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: calc(5.5rem * var(--font-size-scale));
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: calc(1.4rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.hero-description {
    font-size: calc(0.97rem * var(--font-size-scale));
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 0;
    max-width: 640px;
    text-align: center;
}

.hero-line {
    font-size: calc(0.95rem * var(--font-size-scale));
    color: var(--text-light);
    margin-bottom: 0;
}

.hero-tagline {
    font-size: calc(1.1rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--red);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-tagline::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1.5px;
    background-color: var(--red);
    flex-shrink: 0;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 4px solid var(--blue);
    box-shadow: 0 8px 32px rgba(27,58,107,0.15);
}

/* ===============================================
   Services Section
   =============================================== */
/* ===============================================
   Audience Section
   =============================================== */
.audience-section {
    padding: 90px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
}

.audience-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

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

.audience-item:last-child {
    border-bottom: none;
}

.audience-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--bg-white);
    border: none;
    cursor: pointer;
    text-align: right;
    transition: background 0.2s;
    font-family: inherit;
}

.audience-header:hover {
    background: var(--bg-light);
}

.audience-item.open .audience-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

.audience-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--red);
    min-width: 44px;
    line-height: 1;
}

.audience-titles {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.audience-title {
    font-size: calc(1.1rem * var(--font-size-scale));
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

.audience-tagline {
    font-size: calc(0.88rem * var(--font-size-scale));
    color: var(--text-light);
    line-height: 1.4;
}

.audience-arrow {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.2s;
    position: relative;
}

.audience-arrow::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-medium);
    border-bottom: 2px solid var(--text-medium);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.3s ease;
}

.audience-item.open .audience-arrow {
    background: rgba(229,23,34,0.1);
}

.audience-item.open .audience-arrow::after {
    transform: rotate(-135deg) translateY(-2px);
    border-color: var(--red);
}

.audience-body {
    display: none;
    padding: 28px 28px 32px 28px;
    background: var(--bg-white);
}

.audience-item.open .audience-body {
    display: block;
}

.audience-body p {
    color: var(--text-medium);
    font-size: calc(0.95rem * var(--font-size-scale));
    line-height: 1.85;
    margin-bottom: 1rem;
}

.audience-body p:last-child {
    margin-bottom: 0;
}

.audience-body strong {
    color: var(--text-dark);
}

.audience-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}

.audience-service-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
}

.audience-service-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--red);
    min-width: 28px;
    padding-top: 1px;
}

.audience-service-item > div {
    font-size: calc(0.88rem * var(--font-size-scale));
    color: var(--text-medium);
    line-height: 1.6;
}

.audience-clients {
    background: rgba(27,58,107,0.05);
    border-right: 3px solid var(--blue);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    margin-top: 16px;
}

.audience-cta-line {
    background: rgba(229,23,34,0.06);
    border-right: 3px solid var(--red);
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    color: var(--text-dark) !important;
}

@media (max-width: 768px) {
    .audience-header { padding: 18px 16px; gap: 12px; }
    .audience-body { padding: 20px 16px 24px; }
    .audience-services-grid { grid-template-columns: 1fr; }
    .audience-num { font-size: 1.2rem; min-width: 32px; }
}

/* =============================================== */

.services-section {
    padding: 90px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5px;
    background-color: var(--border);
    border: 1.5px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.service-card {
    background-color: var(--bg-white);
    padding: 48px 36px;
    transition: all 0.25s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.25s ease;
}

.service-card:hover::before {
    background-color: var(--red);
}

.service-card:hover {
    background-color: var(--bg-light);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon.red {
    background-color: rgba(229,23,34,0.08);
    color: var(--red);
}

.service-icon.blue {
    background-color: rgba(27,58,107,0.08);
    color: var(--blue);
}

.service-card h3 {
    font-size: calc(1.15rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.service-card p {
    color: var(--text-light);
    font-size: calc(0.95rem * var(--font-size-scale));
    line-height: 1.75;
    margin-bottom: 0;
    text-align: center;
}

.service-icon {
    margin-left: auto;
    margin-right: auto;
}

/* ===============================================
   Process Section
   =============================================== */
.process-section {
    padding: 90px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    padding: 0 24px;
    text-align: center;
}

.step-number {
    font-size: calc(2rem * var(--font-size-scale));
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--red);
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1.2rem;
}

.step-content h3 {
    font-size: calc(1.1rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.step-content p {
    font-size: calc(0.92rem * var(--font-size-scale));
    color: var(--text-light);
    line-height: 1.75;
    margin-bottom: 0;
}

.process-connector {
    display: flex;
    align-items: center;
    padding-top: 20px;
    flex-shrink: 0;
}

/* ===============================================
   Advantages Section
   =============================================== */
.advantages-section {
    padding: 90px 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border);
}

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

.advantage-card {
    grid-column: span 2;
}

/* Center the last 2 cards when there are 5 total */
.advantage-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.advantage-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

.advantage-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 20px var(--shadow-sm);
    transform: translateY(-3px);
}

.advantage-accent {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
}

.advantage-accent.red { background-color: var(--red); }
.advantage-accent.blue { background-color: var(--blue); }

.advantage-icon {
    margin-bottom: 1.2rem;
}

.advantage-card h3 {
    font-size: calc(1.1rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    text-align: center;
}

.advantage-card p {
    color: var(--text-light);
    font-size: calc(0.93rem * var(--font-size-scale));
    line-height: 1.75;
    margin-bottom: 0;
    text-align: center;
}

/* ===============================================
   Portfolio Section
   =============================================== */
.portfolio-section {
    padding: 90px 0;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.portfolio-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 30px rgba(27,58,107,0.12);
    transform: translateY(-4px);
}

.portfolio-visual {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.portfolio-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-thumb-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(27,58,107,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--border);
}

.portfolio-tag {
    display: inline-block;
    font-size: calc(0.72rem * var(--font-size-scale));
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--blue);
    background-color: rgba(27,58,107,0.08);
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-size: calc(0.95rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.portfolio-extra {
    display: none;
}

.portfolio-load-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.portfolio-load-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    color: var(--blue);
    border: 2px solid var(--blue);
    border-radius: 6px;
    font-size: calc(0.95rem * var(--font-size-scale));
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.portfolio-load-more-btn:hover {
    background: var(--blue);
    color: #fff;
}

/* ── Project Modal ── */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.project-modal.active {
    display: flex;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    cursor: pointer;
}

.project-modal-inner {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.project-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-white);
    z-index: 2;
    border-radius: 12px 12px 0 0;
}

.project-modal-header h3 {
    font-size: calc(1.1rem * var(--font-size-scale));
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-medium);
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: var(--bg-light);
}

.project-modal-body {
    padding: 24px;
}

.modal-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.modal-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.modal-img:hover {
    opacity: 0.88;
}

.modal-video-wrap {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.modal-video-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

@media (max-width: 600px) {
    .modal-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .project-modal-body {
        padding: 16px;
    }
}

/* ── Image Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 88vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.28);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.28);
}

.lightbox-prev { right: 18px; }
.lightbox-next { left: 18px; }

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-family: var(--font-main, 'Heebo', sans-serif);
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* ===============================================
   Contact Section
   =============================================== */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(27,58,107,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,58,107,0.08) 1px, transparent 1px);
    background-size: 30px 30px;
}

.contact-content {
    text-align: center;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 24px 32px;
    color: #ffffff;
    transition: all 0.25s ease;
    min-width: 240px;
}

.contact-card:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    color: #ffffff;
}

.contact-card-whatsapp {
    border-color: rgba(37,211,102,0.4);
    background-color: rgba(37,211,102,0.08);
}

.contact-card-whatsapp:hover {
    background-color: rgba(37,211,102,0.15);
    border-color: rgba(37,211,102,0.6);
}

.contact-card-whatsapp .contact-icon { color: var(--whatsapp); }

.contact-icon {
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
}

.contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.contact-label {
    font-size: calc(0.75rem * var(--font-size-scale));
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}

.contact-value {
    font-size: calc(0.95rem * var(--font-size-scale));
    font-weight: 500;
    color: #ffffff;
}

/* ===============================================
   Footer
   =============================================== */
.footer {
    background-color: #060e1a;
    color: rgba(255,255,255,0.65);
    padding: 56px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo {
    display: block;
    font-size: calc(2rem * var(--font-size-scale));
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: calc(0.88rem * var(--font-size-scale));
    color: rgba(255,255,255,0.45);
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--red);
    color: var(--red);
    background-color: rgba(229,23,34,0.08);
}

.footer-links h3,
.footer-contact h3 {
    font-size: calc(0.8rem * var(--font-size-scale));
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.2rem;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a,
.footer-contact a {
    color: rgba(255,255,255,0.55);
    font-size: calc(0.9rem * var(--font-size-scale));
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #ffffff;
}

.footer-contact p {
    margin-bottom: 0.7rem;
    font-size: calc(0.9rem * var(--font-size-scale));
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: calc(0.82rem * var(--font-size-scale));
    color: rgba(255,255,255,0.25);
    margin-bottom: 0;
}

/* ===============================================
   Scroll Animation
   =============================================== */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

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

/* ===============================================
   High Contrast Mode
   =============================================== */
body.high-contrast {
    --red: #ff0000;
    --blue: #0000ff;
    --text-dark: #000000;
    --text-medium: #000000;
    --text-light: #111111;
    --bg-white: #ffffff;
    --bg-light: #ffffff;
    --border: #000000;
}

body.high-contrast .service-card,
body.high-contrast .advantage-card,
body.high-contrast .portfolio-item,
body.high-contrast .contact-card {
    border: 2px solid #000000;
}

body.high-contrast .hero {
    background-image: none;
    border-bottom: 2px solid #000;
}

body.high-contrast .contact-section {
    background-color: #000;
    background-image: none;
}

body.high-contrast .footer {
    background-color: #000;
}

/* ===============================================
   Testimonials Page
   =============================================== */
.testimonials-hero {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(27,58,107,0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27,58,107,0.12) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 80px 0;
    text-align: center;
}

.testimonials-section {
    padding: 90px 0;
    background-color: var(--bg-white);
}

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

.testimonial-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px 28px;
    position: relative;
    transition: all 0.25s ease;
}

.testimonial-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 6px 24px var(--shadow-sm);
    transform: translateY(-3px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 4rem;
    line-height: 1;
    color: var(--border);
    font-family: Georgia, serif;
    font-weight: 700;
}

.testimonial-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 1rem;
}

.star {
    color: var(--red);
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: calc(0.95rem * var(--font-size-scale));
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #3a6fd8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.author-avatar.red-bg {
    background: linear-gradient(135deg, var(--red), #f03d47);
}

.author-info {}

.author-name {
    display: block;
    font-size: calc(0.92rem * var(--font-size-scale));
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-role {
    font-size: calc(0.8rem * var(--font-size-scale));
    color: var(--text-light);
}

/* ===============================================
   Responsive — Tablet & Mobile
   =============================================== */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr); /* stays 2×2 */
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }

    /* Navbar mobile */
    .nav-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .logo-image { max-height: 50px; }

    .mobile-menu-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: calc(100% + 1rem);
        right: 0;
        left: 0;
        background-color: var(--bg-white);
        border: 1px solid var(--border);
        border-radius: 6px;
        flex-direction: column;
        gap: 0;
        padding: 8px;
        box-shadow: 0 8px 24px var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        border-radius: 4px;
    }

    .nav-links a:hover {
        background-color: var(--bg-light);
    }

    .nav-links a::after { display: none; }

    .nav-contact-link {
        background-color: var(--red) !important;
        color: #ffffff !important;
        margin-top: 4px;
    }

    /* Hero mobile */
    .hero {
        padding: 60px 0 50px;
        min-height: auto;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero-profile-img {
        width: 160px;
        height: 160px;
    }

    .hero-title {
        font-size: calc(3.5rem * var(--font-size-scale));
        letter-spacing: -2px;
    }

    .hero-subtitle { font-size: calc(1.1rem * var(--font-size-scale)); }

    .hero-cta-group { flex-wrap: wrap; gap: 1rem; }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5px;
    }

    /* Process */
    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .process-connector {
        display: none;
    }

    .process-step {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Advantages */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .advantage-card,
    .advantage-card:nth-child(4) {
        grid-column: 1;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Contact */
    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .contact-card {
        width: 100%;
        max-width: 360px;
        justify-content: flex-start;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Accessibility */
    .accessibility-menu {
        top: 80px;
        left: 10px;
    }

    .accessibility-toggle {
        padding: 8px 14px;
        font-size: calc(0.8rem * var(--font-size-scale));
    }

    /* Floats */
    .whatsapp-float {
        bottom: 95px;
        left: 18px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    html { font-size: 15px; }

    .hero-title {
        font-size: calc(2.8rem * var(--font-size-scale));
    }

    .section-title {
        font-size: calc(1.8rem * var(--font-size-scale));
    }
}

/* ===============================================
   Print
   =============================================== */
@media print {
    .navbar, .accessibility-menu,
    .whatsapp-float, .phone-float,
    .footer { display: none; }
}
