/* ===== Stima Safi Global Stylesheet ===== */

:root {
    --primary: #FFB800;
    --secondary: #2D2D2D;
    --light: #ffffff;
    --light-alt: #f5f7fa;
    --accent: #0066CC;
    --success: #198754;
    --danger: #e53935;
    --dark-overlay: rgba(0, 0, 0, 0.6);
    --gold: #ffad00;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--secondary);
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
.navbar {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--secondary);
    text-decoration: none;
    padding: 15px 0;
}
.logo-icon img { width:48px; height:48px; object-fit:cover; border-radius:12px }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    padding: 15px 0;
    display: block;
    transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 0.7; }
.nav-links a.active { border-bottom: 3px solid var(--secondary); }
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    margin-left: auto;
}
.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        z-index: 99;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .nav-links li { border-top: 1px solid rgba(0,0,0,0.1); }
    .nav-links li a { padding: 20px; }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background-color: #0f1115;
    background-image: 
        /* Brand color glowing ambient lights */
        radial-gradient(ellipse 70% 60% at 50% -10%, rgba(255, 93, 0, 0.35), transparent),
        radial-gradient(circle at 85% 90%, rgba(0, 102, 204, 0.15), transparent 50%),
        /* High-tech grid pattern */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
    background-position: center center;
    color: white;
    padding: 100px 20px 90px;
    text-align: center;
    overflow: hidden;
}
    
.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.hero-subtitle { font-size: 1.3rem; opacity: 0.95; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    display: inline-block;
}
.btn-primary { background: var(--primary); color: var(--secondary); }
.btn-secondary { background: transparent; border: 2px solid white; color: white; }
.btn:hover { transform: translateY(-3px); }

/* ===== Sections ===== */
.section { padding: 80px 20px; max-width: 1100px; margin: 0 auto; }
.section-wrapper { width: 100%; overflow: hidden; }
.section-wrapper.light-bg { background-color: var(--light); }
.section-wrapper.alt-bg { background-color: var(--light-alt); }
.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    color: var(--secondary);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.service-card {
    background: white;
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-top: 4px solid var(--primary);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.15); }
.mv-icon, .service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--primary);
    background: #fff3e9;
    margin-bottom: 18px;
}
.mv-icon svg, .service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 15px; color: var(--secondary); font-size: 1.3rem; }
.service-card p { font-size: 0.95rem; line-height: 1.7; color: #555; }
.service-link { color: var(--accent); text-decoration: none; font-weight: 600; margin-top: 15px; display: inline-block; }

/* ===== About ===== */
.about-content {
    position: relative;
    background: #101318;
    color: white;
    padding: 44px 48px;
    border-radius: 20px;
    max-width: 950px;
    margin: 0 auto 28px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(16, 19, 24, 0.11);;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
}

.about-content::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -70px;
    top: -100px;
    border-radius: 50%;
    background: rgba(255,106,0,.22);
    filter: blur(10px);
}

.about-content::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    left: -70px;
    bottom: -90px;
    border-radius: 50%;
    border: 28px solid rgba(255,255,255,.04);
}

.about-content p {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    line-height: 1.85;
    color: rgba(255,255,255,.86);
}
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.mv-card {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}
.mv-card:hover { transform: translateY(-5px); box-shadow: 0 5px 20px rgba(0,0,0,0.12); }
.mv-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--secondary); }
.mv-card p { font-size: 1rem; line-height: 1.6; color: #555; }

/* ===== Contact ===== */
.contact-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 6px solid var(--primary);
}
.contact-intro { font-size: 1.1rem; margin-bottom: 35px; color: #555; line-height: 1.7; }
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 30px 0;
}
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    background: white;
    border: 1px solid #e6e9ee;
    color: var(--secondary);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
}
.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-color: var(--gold);
    color: var(--gold);
}
/* ===== Footer ===== */
.footer { background: var(--secondary); color: white; padding: 60px 20px 30px; }
.footer-container { max-width: 1100px; margin: 0 auto; }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer h3, .footer h4 { color: var(--primary); margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer a { color: white; text-decoration: none;}
.footer p { opacity: 0.9; margin-bottom: 8px; }
.social-links { display: flex; gap: 15px; margin-top: 15px; }
.social-links a {
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}
.footer-cta {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    opacity: 0.8;
}
.footer-legal { margin: 10px 0; }
.footer-legal a { margin: 0 5px; }
.footer-slogan { font-style: italic; opacity: 0.7; margin-top: 5px; }

/* ===== Utilities ===== */
.hidden { display: none !important; }

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 1.8rem; flex-direction: column; gap: 10px; }
    .hero-subtitle { font-size: 1.1rem; }
    .section { padding: 45px 20px; }
    .section-title { font-size: 1.6rem; }
    .about-content { padding: 25px; }
    .contact-box { padding: 25px; max-width: 100%; }
    .contact-methods { grid-template-columns: repeat(2, 1fr); }
    .contact-btn { width: 100%; font-size: 0.9rem; padding: 14px 16px; }
    .service-card { padding: 30px 20px; }
    .mv-card { padding: 20px 15px; }
    .mv-card h3 { font-size: 1.2rem; }
    .mv-card p { font-size: 0.95rem; }
    .mv-icon { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .contact-methods { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
}

/* ===== Contact Form Styles (Updated) ===== */

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e6e9ee;
    border-radius: 8px;
    background: #fafbfc;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-group textarea {
    min-height: 140px;
    max-height: 300px;
    resize: vertical;
    line-height: 1.6;
}

.form-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

.form-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid var(--danger);
    font-size: 0.95rem;
}

.form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    border-left: 4px solid var(--success);
    font-size: 1rem;
    font-weight: 600;
}

.form-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3);
}

.form-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.4);
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Honeypot - absolutely hidden */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ===== Floating WhatsApp Button (Fixed Positioning) ===== */

.floating-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.floating-tooltip {
    position: fixed;
    bottom: 95px;
    right: 25px;
    background: var(--secondary);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9998;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.floating-whatsapp:hover ~ .floating-tooltip,
.floating-whatsapp:focus ~ .floating-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .floating-whatsapp {
      position: fixed;
      bottom: 25px;
      right: 25px;
      width: 60px;
      height: 60px;
      background: #25D366;
      border-radius: 50%;
      box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      color: white;
      transition: transform 0.3s, box-shadow 0.3s;
      animation: pulse-whatsapp 2s infinite;
    }

  .floating-whatsapp:hover {
      transform: scale(1.15);
      box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }

  .floating-whatsapp svg {
      width: 35px;
      height: 35px;
    }
  
    .floating-tooltip {
        bottom: 85px;
        right: 15px;
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .contact-form-container,
    .contact-box .form-group input,
    .contact-box .form-group textarea {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* ===== SVG Icon System ===== */
.icon {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon-xs {
    width: 14px;
    height: 14px;
}

/* Icon in labels — sits inline with text */
.icon-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Icon in buttons — centered */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Social icons in footer */
.social-links .icon {
    width: 20px;
    height: 20px;
}

/* Calculator panel headings */
.calc-panel h3 .icon,
.result-card h4 .icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
}
