/* ============================================================
   CUMA Engineering & Construction Ltd — Base Stylesheet
   Theme: Orange #FF6A00 / Black #1A1A1A / White #FFFFFF
   ============================================================ */

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

/* Hide scrollbars everywhere (keep scroll functionality) */
* { scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }

:root {
    --orange:      #FF6A00;
    --orange-dark: #CC5500;
    --orange-lite: #FFF0E6;
    --black:       #1A1A1A;
    --dark-gray:   #2D2D2D;
    --mid-gray:    #555555;
    --light-gray:  #F5F5F5;
    --border:      #E0E0E0;
    --white:       #FFFFFF;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,.12);
    --shadow-lg:   0 8px 40px rgba(0,0,0,.18);
    --radius:      8px;
    --radius-lg:   14px;
    --transition:  0.25s ease;
    --font:        'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }

/* ---- Utility ---- */
.container       { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section         { padding: 72px 0; overflow-x: hidden; }
.section-alt     { background: var(--light-gray); }
.section-dark    { background: var(--black); color: var(--white); }
.section-orange  { background: var(--orange); color: var(--white); }

.section-title   { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 12px; }
.section-sub     { color: var(--mid-gray); font-size: 1.05rem; margin-bottom: 48px; }
.section-dark .section-sub { color: #aaa; }

.text-orange { color: var(--orange); }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius);
    font-size: .95rem; font-weight: 600; transition: var(--transition);
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,106,0,.35); }
.btn-outline { border: 2px solid var(--orange); color: var(--orange); background: transparent; }
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--dark-gray); }
.btn-white { background: var(--white); color: var(--orange); }
.btn-white:hover { background: var(--orange-lite); }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

/* ---- Badge ---- */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 20px;
    font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-sale    { background: #FF3B30; color: #fff; }
.badge-new     { background: var(--orange); color: #fff; }
.badge-popular { background: #30B050; color: #fff; }

/* ---- Card ---- */
.card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---- Form Controls ---- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.form-control {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius); font-size: .95rem; font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white); color: var(--black);
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,106,0,.15); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--mid-gray); padding: 18px 0; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--border); }

/* ---- Search Modal ---- */
.search-modal {
    position: fixed; inset: 0; z-index: 3000;
    display: none; align-items: flex-start; justify-content: center;
}
.search-modal.open { display: flex; }
.search-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.search-modal-panel {
    position: relative; z-index: 1;
    width: 100%; max-width: 680px;
    margin-top: 14vh;
    padding: 0 24px;
    animation: searchSlideDown .35s ease both;
}
@keyframes searchSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.search-modal-close {
    position: absolute; top: -48px; right: 24px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.search-modal-close:hover { background: rgba(255,255,255,.25); }
.search-modal-form {
    display: flex; align-items: center; gap: 0;
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: 0 8px 60px rgba(0,0,0,.4);
    overflow: hidden;
}
.search-modal-icon {
    font-size: 1.2rem; color: var(--mid-gray);
    padding: 0 0 0 20px; flex-shrink: 0;
}
.search-modal-input {
    flex: 1; border: none; outline: none;
    padding: 18px 16px; font-size: 1.1rem;
    font-family: var(--font); color: var(--black);
    background: transparent;
}
.search-modal-input::placeholder { color: #aaa; }
.search-modal-submit {
    background: var(--orange); color: #fff;
    border: none; padding: 18px 28px;
    font-size: .95rem; font-weight: 700;
    cursor: pointer; transition: background var(--transition);
    flex-shrink: 0;
}
.search-modal-submit:hover { background: var(--orange-dark); }
.search-modal-hints {
    margin-top: 18px;
    display: flex; gap: 10px; align-items: center;
    flex-wrap: wrap; font-size: .85rem; color: #aaa;
}
.search-modal-hints a { color: #ddd; transition: color var(--transition); }
.search-modal-hints a:hover { color: var(--orange); }

@media (max-width: 600px) {
    .search-modal-panel { margin-top: 10vh; padding: 0 16px; }
    .search-modal-input { font-size: 1rem; padding: 14px 12px; }
    .search-modal-submit { padding: 14px 18px; font-size: .88rem; }
    .search-modal-close { right: 16px; width: 36px; height: 36px; font-size: 1.1rem; }
    .search-modal-hints { font-size: .8rem; }
}

/* ---- Section Header ---- */
.section-header { margin-bottom: 48px; }
.section-header .overline {
    text-transform: uppercase; letter-spacing: 2px; font-size: .8rem;
    font-weight: 700; color: var(--orange); margin-bottom: 8px;
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.section-header p  { color: var(--mid-gray); margin-top: 10px; max-width: 580px; }

/* ---- Grid helpers ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease both; }
.delay-1    { animation-delay: .1s; }
.delay-2    { animation-delay: .2s; }
.delay-3    { animation-delay: .3s; }
.delay-4    { animation-delay: .4s; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Top bar */
.top-bar {
    background: var(--black); color: #bbb;
    font-size: .8rem; padding: 6px 0;
}
.top-bar .container {
    display: flex; justify-content: space-between; align-items: center;
}
.top-bar a { color: #bbb; }
.top-bar a:hover { color: var(--orange); }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-left span, .top-bar-right span { display: flex; align-items: center; gap: 5px; }

/* Main nav */
.main-nav { padding: 14px 0; }
.main-nav .container { display: flex; align-items: center; gap: 24px; }
.main-nav { overflow-x: clip; }

.logo { display: flex; align-items: center; flex-shrink: 1; min-width: 0; }
.logo-img {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Footer logo — white pill so it reads on dark background */
.footer-logo-wrap {
    display: inline-block;
    background: var(--white);
    border-radius: var(--radius);
    padding: 8px 14px;
    margin-bottom: 4px;
}
.footer-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links { display: flex; align-items: center; gap: 0; flex: 1; }

.nav-item { position: relative; }
    .nav-item > a {
        display: flex; align-items: center; gap: 5px;
        padding: 10px 14px; font-weight: 600; font-size: .9rem;
        color: var(--black); transition: color var(--transition);
        white-space: nowrap;
    }
.nav-item > a:hover,
.nav-item.active > a { color: var(--orange); }
.nav-item > a::after {
    content: ''; position: absolute; bottom: -2px; left: 16px; right: 16px;
    height: 2px; background: var(--orange); border-radius: 1px;
    transform: scaleX(0); transition: transform var(--transition);
}
.nav-item:hover > a::after,
.nav-item.active > a::after { transform: scaleX(1); }

.caret { font-size: .7rem; transition: transform var(--transition); }
.nav-item:hover .caret { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
    position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    padding: 24px; min-width: 640px; max-width: calc(100vw - 24px);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition);
    transform: translateX(-50%) translateY(8px);
}
.nav-item:hover .mega-menu {
    opacity: 1; visibility: visible; pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.mega-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px; border-radius: var(--radius); transition: background var(--transition);
}
.mega-item:hover { background: var(--orange-lite); }
.mega-icon { font-size: 1.6rem; flex-shrink: 0; }
.mega-text strong { font-size: .9rem; font-weight: 700; display: block; color: var(--black); }
.mega-text span   { font-size: .78rem; color: var(--mid-gray); line-height: 1.4; }
.mega-item:hover .mega-text strong { color: var(--orange); }

/* Simple dropdown */
.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); border: 1px solid var(--border);
    min-width: 180px; padding: 8px 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    transform: translateY(8px);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; pointer-events: all; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 20px; font-size: .9rem; transition: background var(--transition); }
.dropdown a:hover { background: var(--orange-lite); color: var(--orange); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-icon-btn {
    position: relative; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius); font-size: 1.2rem;
    transition: background var(--transition);
}
.nav-icon-btn:hover { background: var(--light-gray); }
/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--black); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; width: 80%; max-width: 340px; height: 100vh;
    background: var(--white); box-shadow: var(--shadow-lg); z-index: 2000;
    padding: 24px; overflow-y: auto; transform: translateX(-100%); transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 1999; opacity: 0; transition: opacity .3s;
    pointer-events: none;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.mobile-nav-header .logo-img { height: 44px; }
.mobile-nav-close { font-size: 1.5rem; padding: 4px 10px; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); font-weight: 600; }
.mobile-nav a:hover { color: var(--orange); }
.mobile-nav .mobile-nav-contact {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.mobile-nav .mobile-nav-contact span {
    font-size: .82rem; color: var(--mid-gray); display: flex; align-items: center; gap: 8px;
}

@media (max-width: 1200px) {
    .nav-item > a { padding: 10px 8px; font-size: .85rem; }
    .main-nav .container { gap: 16px; }
    .main-nav { overflow-x: clip; }
    .mega-menu {
        min-width: 0; max-width: calc(100vw - 40px);
        left: 0; transform: none;
    }
    .nav-item:hover .mega-menu { transform: none; }
}
@media (max-width: 1100px) {
    .nav-item.hide-mid { display: none; }
}
@media (max-width: 1024px) {
    .nav-links, .top-bar { display: none; }
    .main-nav { overflow-x: clip; }
    .hamburger { display: flex; }
    .mobile-nav, .mobile-nav-overlay { display: block; }
    .nav-right .btn-primary { display: none; }
}
@media (max-width: 480px) {
    .mobile-nav { width: 85%; padding: 20px 16px; }
    .nav-right { gap: 6px; }
    .nav-icon-btn { width: 36px; height: 36px; font-size: 1.1rem; }
    .logo-img { height: 40px; }
}
@media (max-width: 360px) {
    .container { padding: 0 14px; }
    .logo-img { height: 34px; }
    .footer-logo-img { height: 36px; }
    .btn { padding: 10px 18px; font-size: .88rem; }
    .btn-lg { padding: 13px 24px; font-size: .96rem; }
    .section { padding: 40px 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--black); color: #ccc;
    padding-top: 64px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px; padding-bottom: 48px;
    border-bottom: 1px solid #333;
}
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; color: #aaa; max-width: 280px; }

.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .88rem; color: #aaa; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }

.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #aaa; margin-bottom: 12px; }
.footer-contact li span:first-child { color: var(--orange); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: #333; display: flex; align-items: center; justify-content: center;
    font-size: .9rem; transition: background var(--transition), transform var(--transition);
}
.social-link:hover { background: var(--orange); transform: translateY(-2px); }

.footer-bottom {
    padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
    font-size: .82rem; color: #777; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: var(--orange); }

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: .82rem;
    font-weight: 600;
    background: #25D366;
    color: #fff;
    transition: opacity .15s;
}
.btn-whatsapp:hover { opacity: .85; color: #fff; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
