/* Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    max-width: 100%;
    overflow-x: clip;
}

@supports not (overflow: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

img,
video,
svg,
canvas {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: #fff;
    color: #0d6efd;
    border: 2px solid #0d6efd;
    border-radius: 6px;
    z-index: 5000;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a,
button,
input,
select,
textarea {
    touch-action: manipulation;
}

/* Header Styles */
.main-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 10;
    transition: box-shadow 0.3s, background-color 0.3s;
}

/* Keep header behavior consistent across all pages (non-sticky). */
.home-page .main-header {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: 10;
}

/* Sticky header disabled globally: keep normal document flow on all screens. */
.main-header.sticky {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.header-top {
    background-color: #0d2137;
    padding: 10px 0;
    border-bottom: 1px solid #1a5276;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info .phone {
    font-weight: 600;
    color: #ccc;
}

.phone-link,
a.phone-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.phone-link:hover {
    text-decoration: none;
    opacity: 1;
}

.whatsapp-inline-logo,
.whatsapp-logo-mark {
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.header-actions a,
.header-action-button {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

.header-actions a:hover,
.header-action-button:hover {
    color: #fff;
}

.header-action-form {
    display: inline;
    margin: 0;
}

.header-action-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

/* Logo Banner — covers the header */
.header-logo-banner {
    background: #000;
    padding: 0;
    border-bottom: 1px solid #e2e8f0;
}

.header-logo-banner .container {
    max-width: 100%;
    padding: 0;
}

.logo-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.logo-image {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 52px;
    font-weight: 700;
    color: #1a5276;
    margin: 0;
    display: block;
    letter-spacing: 4px;
}

.main-nav {
    padding: 0;
    background: #f8f9fa;
    border-bottom: 2px solid #1a5276;
}

.nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
}

/* Site-wide brand background */
.site-logo-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    opacity: 1;
}

.site-logo-background img {
    width: min(1500px, 94vw);
    opacity: 0.22;
    filter: blur(10px);
    transform: scale(1.12);
}

.main-content,
.main-footer {
    position: relative;
    z-index: 1;
}

/* nav menu list alignment */

.nav-search {
    flex: 0 1 320px;
    margin: 0;
    position: relative;
}

.search-form {
    display: flex;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
}

.search-btn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #0056b3;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    color: #333;
}

/* Force mobile-safe navigation for detected phone browsers */
body.mobile-device .main-header,
body.mobile-device.home-page .main-header {
    position: static !important;
    top: auto !important;
}

body.mobile-device .header-top-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

body.mobile-device .contact-info .phone {
    display: block;
    width: 100%;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
}

body.mobile-device .header-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
}

body.mobile-device .logo-image {
    max-height: 64px;
    width: auto;
    max-width: 88%;
    margin: 0 auto;
}

body.mobile-device .mobile-menu-toggle {
    display: none !important;
}

body.mobile-device .nav-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0;
}

body.mobile-device .nav-search,
body.mobile-device .nav-cart,
body.mobile-device .nav-menu {
    width: 100%;
}

body.mobile-device .nav-menu-list {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    list-style: none;
    gap: 0;
    border: 1px solid #e7ebf0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

body.mobile-device .nav-menu-list > li {
    width: 100%;
    border-bottom: 1px solid #e9ecef;
}

body.mobile-device .nav-menu-list > li:last-child {
    border-bottom: 0;
}

body.mobile-device .nav-menu-list > li > a {
    padding: 13px 14px;
    font-size: 15px;
}

body.mobile-device .has-mega-menu .mega-menu,
body.mobile-device .has-dropdown .dropdown-menu {
    display: none !important;
}

.nav-cart {
    position: relative;
}

.cart-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.nav-menu-list {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu-list li {
    position: relative;
}

.nav-menu-list > li > a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-menu-list > li > a:hover {
    color: #007bff;
}

/* Mega Menu Styles */
.has-mega-menu {
    position: static !important;
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 30px;
    margin-top: 0;
    z-index: 1001;
    border-top: 2px solid #007bff;
}

.has-mega-menu:hover .mega-menu {
    display: block;
}

.mega-menu-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.mega-menu-column h3 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.mega-menu-column h3 a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.mega-menu-column h3 a:hover {
    color: #0056b3;
}

.mega-menu-sub {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-sub li {
    margin-bottom: 8px;
}

.mega-menu-sub a,
.mega-menu-sub a.mega-menu-sub-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, padding-left 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.mega-menu-sub a:hover {
    color: #007bff;
}

.mega-menu-sub a:hover .mega-menu-label {
    padding-left: 4px;
}

.mega-menu-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f2f4;
    border: 1px solid #e8eaed;
}

.mega-menu-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: top;
}

.mega-menu-label {
    flex: 1;
    min-width: 0;
}

/* Legacy dropdown support */
.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    min-width: 200px;
    padding: 10px 0;
    margin-top: 10px;
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0d2137 0%, #1a5276 50%, #2980b9 100%);
    color: white;
    padding: 50px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 36px;
    margin-bottom: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #7fb0e8;
    outline-offset: 2px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: white;
    color: #007bff;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
}

/* Products Grid */
.featured-products {
    padding: 60px 0;
}

.featured-products h2 {
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
    color: #1a5276;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f8f9fa;
    padding: 12px;
}

.product-image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.product-info {
    padding: 16px 18px;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a5276;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #007bff;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
    margin-right: 10px;
}

.discounted-price {
    color: #28a745;
    margin-right: 10px;
}

.discount-badge {
    background-color: #ffc107;
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-price-login a {
    color: #007bff;
    text-decoration: none;
}

/* Services Section */
.services-overview {
    padding: 60px 0;
    background-color: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.services-overview h2 {
    margin-bottom: 30px;
    font-size: 32px;
    text-align: center;
    color: #1a5276;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.service-card h3 {
    margin-bottom: 15px;
    color: #1a5276;
}

.service-card p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

/* Footer */
.main-footer {
    background-color: #0f1b2a;
    color: #d5deea;
    padding: 40px 0 14px;
    margin-top: 60px;
    border-top: 1px solid #20324a;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px 40px;
    align-items: start;
    margin-bottom: 32px;
}

.footer-heading {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #f0f5fb;
    line-height: 1.2;
}

.footer-column-desc {
    margin: -6px 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #9ab0cc;
    font-weight: 500;
}

.footer-contact-list,
.footer-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-hours {
    font-size: 14px;
    color: #9ab0cc !important;
    line-height: 1.5;
}

.footer-column a {
    color: #9dc0ef;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    font-weight: 600;
}

.footer-column a:hover {
    color: #c8e4ff;
    opacity: 1;
}

.footer-link-list a {
    display: inline-block;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.footer-connect-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}

.footer-action-btn,
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid rgba(196, 225, 247, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.footer-action-btn--outline {
    width: 100%;
    background: linear-gradient(180deg, rgba(17, 29, 41, 0.96), rgba(11, 20, 29, 0.96));
    color: #eef5fb !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-action-btn--outline:hover {
    border-color: rgba(196, 225, 247, 0.28);
    transform: translateY(-1px);
}

.footer-social-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.footer-social-btn {
    width: 100%;
    color: #eef5fb !important;
    background: linear-gradient(180deg, rgba(17, 29, 41, 0.96), rgba(11, 20, 29, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.footer-social-btn:hover {
    border-color: rgba(196, 225, 247, 0.28);
    transform: translateY(-1px);
    color: #fff !important;
}

.footer-social-btn--whatsapp {
    background: linear-gradient(180deg, rgba(20, 129, 70, 0.98), rgba(14, 99, 53, 0.98));
    border-color: rgba(120, 220, 160, 0.22);
}

.footer-social-btn--whatsapp:hover {
    border-color: rgba(140, 235, 175, 0.35);
}

.footer-social-btn--linkedin {
    background: linear-gradient(180deg, rgba(22, 82, 128, 0.98), rgba(14, 56, 92, 0.98));
    border-color: rgba(120, 180, 230, 0.22);
}

.footer-social-btn--instagram {
    background: linear-gradient(180deg, rgba(120, 52, 140, 0.98), rgba(72, 32, 96, 0.98));
    border-color: rgba(220, 160, 240, 0.2);
}

.footer-social-btn--placeholder {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.footer-social-btn__icon {
    flex-shrink: 0;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid #263a54;
    color: #a7b8cc;
    font-size: 14px;
}

.footer-contact-col .footer-chip {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(17, 29, 41, 0.96), rgba(11, 20, 29, 0.96));
    color: rgba(236, 244, 250, 0.92) !important;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(196, 225, 247, 0.16);
}

.footer-contact-col .footer-email-link {
    display: inline-block;
    font-size: 15px;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(9, 18, 27, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    z-index: 2200;
}

.whatsapp-float:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.whatsapp-float-logo {
    width: 30px;
    height: 30px;
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

}

@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-connect-stack {
        max-width: none;
    }

    .footer-social-row {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

.no-products {
    text-align: center;
    padding: 40px;
    color: #999;
    grid-column: 1 / -1;
}
