/* ============================================
   NAROC S.A.C - Global Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
    --naroc-blue: #0047AB;
    --naroc-orange: #FF6B35;
    --naroc-red: #E63946;
    --naroc-light-blue: #4A90E2;
    --naroc-dark: #1a1a2e;
    --light-bg: #ffffff;
    --dark-text: #1a1a1a;
    --light-text: #6c757d;
    --transition: all 0.25s ease;
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.10);
    --shadow-card: 0 1px 6px rgba(0, 0, 0, 0.04);
    --border-subtle: 1px solid rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--naroc-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* --- Reduced Motion (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Reset --- */
html {
    overflow-x: hidden;
}

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

/* --- Base --- */
body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    background: #f9fafb;
    color: var(--dark-text);
    overflow-x: hidden;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Section Heading --- */
.section-heading {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--naroc-dark);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--naroc-orange);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn-naroc {
    background: linear-gradient(135deg, var(--naroc-blue) 0%, var(--naroc-light-blue) 100%);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-decoration: none;
}

.btn-naroc:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    color: white;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: var(--light-bg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    transition: var(--transition);
    padding: 0.8rem 0;
    max-width: 100vw;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    transition: var(--transition);
    padding: 0.5rem;
}

.navbar-brand img {
    height: 80px;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
    height: 65px;
}

.navbar-brand:hover {
    opacity: 0.85;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    position: relative;
    padding: 0.75rem 1.25rem !important;
    margin: 0 0.25rem;
    transition: var(--transition);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--naroc-orange);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--naroc-blue) !important;
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link.active {
    color: var(--light-bg) !important;
    background: linear-gradient(135deg, var(--naroc-blue) 0%, var(--naroc-light-blue) 100%);
}

.nav-link.active::before {
    display: none;
}

/* Dropdown */
.dropdown-toggle::after {
    margin-left: 0.5rem;
    transition: var(--transition);
    color: var(--naroc-orange);
    font-weight: bold;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    border: var(--border-subtle);
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    margin-top: 0.8rem;
    background: var(--light-bg);
    min-width: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--naroc-blue);
    border-radius: 3px;
}

.dropdown-item {
    padding: 0.7rem 1rem;
    transition: var(--transition);
    color: var(--dark-text);
    border-radius: var(--radius-md);
    margin-bottom: 0.2rem;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-item:first-child {
    background: linear-gradient(135deg, var(--naroc-blue) 0%, var(--naroc-light-blue) 100%);
    color: white !important;
    font-weight: 700;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--naroc-orange);
}

.dropdown-item:first-child:hover {
    opacity: 0.9;
}

.dropdown-item:not(:first-child):hover {
    background: rgba(0, 71, 171, 0.05);
    color: var(--naroc-blue);
    transform: translateX(4px);
    border-left-color: var(--naroc-orange);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid var(--naroc-blue);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--naroc-blue) 0%, var(--naroc-light-blue) 100%);
    transition: var(--transition);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 28px;
    height: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--naroc-dark) 0%, var(--naroc-blue) 100%);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--naroc-orange);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.85;
}

.footer-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-icons a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-icons i {
    font-size: 1.2rem;
    color: #fff;
}

.footer-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    position: relative;
    padding-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    background: var(--naroc-orange);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: #e8e8e8;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
    font-weight: 500;
    padding-left: 0;
}

.footer-links a i {
    margin-right: 0.8rem;
    color: var(--naroc-orange);
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--naroc-orange);
    padding-left: 6px;
}

.footer-contact p {
    margin-bottom: 1.2rem;
    color: #e8e8e8;
    display: flex;
    align-items: flex-start;
    font-weight: 500;
    line-height: 1.6;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: var(--naroc-orange);
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.footer-contact a {
    color: var(--naroc-orange);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--naroc-red);
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal a {
    color: #e8e8e8;
    text-decoration: none;
    margin: 0 1rem;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--naroc-orange);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--naroc-orange);
}

.footer-legal a:hover::after {
    width: 100%;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 56px;
    height: 56px;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
    .footer-icons {
        justify-content: flex-start;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 90px;
    }

    .section-heading {
        font-size: 1.9rem;
    }

    /* Mobile navbar toggler - always visible */
    .navbar-toggler {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Mobile navbar collapse */
    .navbar-collapse {
        background: var(--light-bg);
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
        box-shadow: var(--shadow-hover);
    }

    .navbar-nav {
        padding: 1rem 0;
        background: rgba(0, 0, 0, 0.02);
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        border: var(--border-subtle);
    }

    .nav-link {
        padding: 1rem 1.5rem !important;
        margin: 0.15rem 0.5rem;
    }

    .nav-link::before {
        left: 10px;
        transform: translateX(0);
        width: 0;
        height: 100%;
        bottom: 0;
    }

    .nav-link:hover::before {
        width: 3px;
    }

    .dropdown-menu {
        box-shadow: none;
        background: rgba(248, 249, 250, 0.8);
        margin-top: 0.5rem;
        margin-left: 1rem;
        border: var(--border-subtle);
        min-width: auto;
        width: 100%;
    }

    .navbar-brand img {
        height: 65px;
    }
}

@media (max-width: 767.98px) {
    .section-heading {
        font-size: 1.6rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-section-title {
        text-align: center;
    }

    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-legal a {
        display: block;
        margin: 0.5rem 0;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 375px) {
    body {
        padding-top: 80px;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .navbar-brand img {
        height: 55px;
    }
}
