/* =============================================
   UDCP.MA — Professional Redesign
   ============================================= */

/* ---------- VARIABLES ---------- */
:root {
    --primary:       #1a3666;   /* logo blue  */
    --primary-mid:   #254d99;   /* lighter blue */
    --accent:        #8c2032;   /* logo red   */
    --accent-light:  #b02840;   /* lighter red */
    --white:         #ffffff;
    --off-white:     #f5f7fb;
    --gray-100:      #eef1f7;
    --gray-200:      #dde2ed;
    --gray-400:      #9aa3b0;
    --gray-600:      #5a6577;
    --gray-800:      #1e2a3a;
    --text:          #111827;
    --text-muted:    #6b7280;
    --success:       #10b981;
    --radius-sm:     6px;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 4px rgba(0,0,0,.06);
    --shadow:        0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:     0 12px 40px rgba(0,0,0,.14);
    --transition:    0.3s cubic-bezier(.4,0,.2,1);
    --font-body:     'Inter', -apple-system, sans-serif;
    --font-display:  'Montserrat', 'Inter', sans-serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); line-height: 1.65; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

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

/* =============================================
   HEADER
   ============================================= */
#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}
#header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #25d366;
    padding: 8px 14px;
    border: 1.5px solid #25d366;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.whatsapp-btn:hover { background: #25d366; color: var(--white); }

.cta-btn {
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(140,32,50,.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--white);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(140,32,50,.4);
}
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-outline:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--white);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* =============================================
   SECTION COMMON
   ============================================= */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .75rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
}
.section-header.light h2 { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.75); }

/* AOS animation */
[data-aos] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(26,54,102,.93) 0%,
        rgba(26,54,102,.78) 50%,
        rgba(140,32,50,.45) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    max-width: 700px;
    margin-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #f09aaa;
    background: rgba(140,32,50,.25);
    border: 1px solid rgba(140,32,50,.5);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 58px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.accent-text { color: var(--accent); }

.hero-content p {
    font-size: 18px;
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.hero-stat span {
    font-size: 13px;
    color: rgba(255,255,255,.7);
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,.2);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.5);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    animation: float 2s ease-in-out infinite;
}
.scroll-arrow {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
}
@keyframes float { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* =============================================
   SERVICES
   ============================================= */
.services {
    padding: 7rem 0;
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card.featured {
    background: var(--primary);
    border-color: var(--primary);
}
.service-card.featured::before { background: var(--accent); }
.service-card.featured .service-icon-wrap { background: rgba(255,255,255,.12); color: var(--accent); }
.service-card.featured h3,
.service-card.featured p,
.service-card.featured li { color: var(--white); }
.service-card.featured li::before { color: var(--accent); }
.service-card.featured .service-features { border-top-color: rgba(255,255,255,.15); }

.service-badge-top {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: var(--accent);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.service-card-inner { padding: 2.5rem; }

.service-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(26,54,102,.1), rgba(140,32,50,.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}
.service-card:hover .service-icon-wrap { transform: scale(1.08) rotate(4deg); }

.service-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .75rem;
}
.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.service-features {
    border-top: 1px solid var(--gray-100);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.service-features li {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}
.service-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 13px;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
    padding: 7rem 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform .6s ease;
}
.about-image-wrap:hover img { transform: scale(1.03); }

.about-badge-float {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}
.about-badge-float svg { color: var(--success); flex-shrink: 0; }

.about-content h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.about-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.about-features { display: flex; flex-direction: column; gap: 1.75rem; }
.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.feature-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 3px rgba(140,32,50,.18);
}
.about-feature h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .35rem;
}
.about-feature p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============================================
   TEAM
   ============================================= */
.team-section {
    padding: 7rem 0;
    background: var(--off-white);
}
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.team-content h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.team-content > p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.team-stat { text-align: center; }
.team-stat strong {
    display: inline;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}
.team-stat sup {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}
.team-stat span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: .25rem;
}
.team-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.team-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform .6s ease;
}
.team-image-wrap:hover img { transform: scale(1.03); }

/* =============================================
   WHY US
   ============================================= */
.why-us {
    padding: 7rem 0;
    background: var(--primary);
}
.why-us .section-tag { color: var(--accent); }
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}
.why-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}
.why-card:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(140,32,50,.5);
    transform: translateY(-4px);
}
.why-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: rgba(140,32,50,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f09aaa;
    margin-bottom: 1.25rem;
}
.why-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .75rem;
}
.why-card p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    line-height: 1.65;
}

/* =============================================
   PRODUCTS
   ============================================= */
.products {
    padding: 7rem 0;
    background: var(--white);
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.product-card {
    background: var(--off-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.product-card:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card:hover h3,
.product-card:hover p,
.product-card:hover .product-number { color: var(--white); }
.product-card:hover .product-number { opacity: .15; }

.product-number {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 900;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: .75rem;
    transition: var(--transition);
}
.product-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .75rem;
    transition: var(--transition);
}
.product-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    transition: var(--transition);
}

/* =============================================
   INNOVATION
   ============================================= */
.innovation {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}
.innovation-bg {
    position: absolute;
    inset: 0;
}
.innovation-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.innovation-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(26,54,102,.94) 0%, rgba(140,32,50,.82) 100%);
}
.innovation-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}
.innovation-content h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}
.innovation-content p {
    font-size: 17px;
    color: rgba(255,255,255,.78);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
    padding: 7rem 0;
    background: var(--off-white);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}
.contact-info-col h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}
.contact-info-col > p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2.5rem; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
a.contact-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(140,32,50,.15);
    transform: translateX(4px);
}
.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}
.contact-item strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: .2rem;
}
.contact-item span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.social-links { display: flex; gap: .75rem; }
.social-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
}
.social-btn.wa { background: #25d366; }
.social-btn.fb { background: #1877f2; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.li { background: #0077b5; }
.social-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.2); }

/* Contact Form */
.contact-form-col {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
.contact-form h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: .5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--off-white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,168,67,.15);
    background: var(--white);
}
.form-group textarea { resize: vertical; }

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(16,185,129,.1);
    border: 1px solid var(--success);
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
}
.form-success.show { display: flex; }

/* =============================================
   FOOTER
   ============================================= */
footer { background: var(--gray-800); }

.footer-top { padding: 5rem 0 3rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin-bottom: 1.25rem;
    opacity: .9;
}
.footer-brand p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
}
.footer-col h5 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a {
    font-size: 14px;
    color: var(--gray-400);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 1.5rem 0;
}
.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { font-size: 13px; color: var(--gray-400); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 13px; color: var(--gray-400); transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }

/* =============================================
   CHATBOT
   ============================================= */

.chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Toggle button */
.chat-toggle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26,54,102,.4);
    transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
    animation: pulse-chat 3s ease infinite;
}
.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(26,54,102,.5);
}
@keyframes pulse-chat {
    0%,100% { box-shadow: 0 4px 20px rgba(26,54,102,.4); }
    50%      { box-shadow: 0 4px 30px rgba(26,54,102,.6), 0 0 0 8px rgba(26,54,102,.1); }
}
.chat-toggle-icon { display: flex; align-items: center; justify-content: center; }

.chat-badge {
    position: absolute;
    top: -3px; right: -3px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    transition: transform .2s ease, opacity .2s ease;
}
.chat-badge.hidden { transform: scale(0); opacity: 0; }

/* Chat window */
.chat-window {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 340px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 50px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom left;
    transform: scale(0.85) translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease;
    max-height: 520px;
}
.chat-window.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .85rem;
}
.chat-header-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--white);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.chat-header-avatar img { width: 100%; height: 100%; object-fit: contain; }
.chat-header-info { flex: 1; }
.chat-header-info strong { display: block; color: var(--white); font-size: 14px; font-weight: 700; }
.chat-header-info span { font-size: 12px; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.online-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(74,222,128,.3);
}
.chat-close {
    color: rgba(255,255,255,.8);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    transition: background .2s;
}
.chat-close:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    scroll-behavior: smooth;
    max-height: 320px;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }

.chat-msg {
    display: flex;
    gap: .5rem;
    align-items: flex-end;
    animation: msgIn .25s ease;
}
@keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { flex-direction: row-reverse; }

.msg-bubble {
    max-width: 78%;
    padding: .65rem 1rem;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.5;
}
.chat-msg.bot .msg-bubble {
    background: var(--gray-100);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat-msg.user .msg-bubble {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.msg-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: .65rem 1rem;
    background: var(--gray-100);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}
.typing-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gray-400);
    animation: dot-bounce .9s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .15s; }
.typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce {
    0%,80%,100% { transform: translateY(0); }
    40%          { transform: translateY(-6px); }
}

/* Quick replies */
.chat-quick-replies {
    padding: 0 1rem .75rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.quick-reply-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--off-white);
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    padding: 5px 12px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.quick-reply-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Input row */
.chat-input-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}
#chatInput {
    flex: 1;
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    padding: 9px 16px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    color: var(--text);
    background: var(--off-white);
    transition: border-color .2s;
}
#chatInput:focus { border-color: var(--primary); background: var(--white); }
.chat-send {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s, box-shadow .2s;
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(26,54,102,.35); }

@media (max-width: 480px) {
    .chat-widget { bottom: 1.25rem; left: 1.25rem; }
    .chat-window { width: calc(100vw - 2.5rem); }
}

/* WhatsApp float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.45);
    transition: var(--transition);
    animation: pulse-wa 2.5s ease infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.55); }
@keyframes pulse-wa {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
    50% { box-shadow: 0 4px 30px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.12); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px; left: 0; right: 0; bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 20px; }
    .whatsapp-btn { display: none; }
    .hamburger { display: flex; }

    .hero-content {
        margin-left: 2rem;
        margin-right: 2rem;
        padding: 5rem 0 4rem;
    }
    .hero-stats { gap: 1.25rem; }
    .hero-stat strong { font-size: 22px; }
    .hero-stat-divider { height: 30px; }

    .services-grid { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image-wrap img { height: 300px; }
    .team-grid { grid-template-columns: 1fr; gap: 3rem; }
    .team-grid .team-image-wrap { order: -1; }
    .team-image-wrap img { height: 300px; }
    .team-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .why-grid { grid-template-columns: 1fr; gap: 1rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom .container { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 28px; }
    .hero-actions { flex-direction: column; }
    .btn-primary, .btn-outline { width: 100%; justify-content: center; }
    .hero-stats { gap: .75rem; }
    .hero-stat strong { font-size: 20px; }
    .cta-btn { display: none; }
    .products-grid { grid-template-columns: 1fr; }
    .team-stats { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
