/**
 * Batam Water - Main Stylesheet
 * Modern & Responsive Design
 */

/* ========== Reset & Base Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4169E1;
    --secondary-color: #00BFFF;
    --dark-color: #111;
    --light-color: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* ========== Preloader ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========== Header ========== */
.header-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
}

.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.store-status {
    display: flex;
    align-items: center;
}

.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    min-width: 200px;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.status-card.open {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.status-card.closed {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.status-label {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-info {
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .store-status {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 999;
    }
    
    .status-card {
        min-width: auto;
        padding: 10px 16px;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    }
    
    .status-card.open {
        box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
    }
    
    .status-card.closed {
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }
    
    .status-header {
        margin-bottom: 6px;
    }
    
    .status-label {
        font-size: 12px;
    }
    
    .status-info {
        font-size: 10px;
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ========== Navigation ========== */
.main-nav {
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li:first-child > a {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.nav-menu > li > a:hover,
.nav-menu > li:hover > a {
    background: var(--secondary-color);
}

/* Dropdown Menu */
.nav-menu .has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-color);
    min-width: 250px;
    list-style: none;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #fff;
    font-size: 13px;
}

.dropdown-menu a:hover {
    background: var(--secondary-color);
    padding-left: 25px;
}

/* ========== Slider with Sidebar Layout ========== */
.slider-with-sidebar {
    display: grid !important;
    grid-template-columns: 1fr 280px !important;
    gap: 20px !important;
    align-items: flex-start;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.slider-with-sidebar .hero-slider {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    height: 400px !important;
    padding-bottom: 0 !important;
}

.slider-with-sidebar .slider-container {
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100%;
}

.sidebar-inline {
    width: 280px;
    flex-shrink: 0;
    height: 400px;
}

.sidebar-inline .sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-inline .sidebar-widget h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-inline .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-inline .social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.sidebar-inline .social-btn:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.2);
}

.sidebar-inline .social-btn img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.sidebar-inline .social-btn span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ========== Hero Slider ========== */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 0;
    padding-bottom: 32%; /* Reduced height */
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
}

/* Override for slider in sidebar layout */
.slider-with-sidebar > .hero-slider {
    max-width: none !important;
    margin: 0 !important;
    height: 400px !important;
    padding-bottom: 0 !important;
}

.slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slide-caption {
    display: none;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    color: var(--primary-color);
    font-size: 30px;
    padding: 15px 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.slider-btn:hover {
    background: #fff;
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Caption overlay inside slideshow */
.slide-caption-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 30px 20px 20px;
    z-index: 10;
}

.slide-caption-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ========== Main Content ========== */
.main-content {
    padding: 40px 0;
    background: var(--light-color);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.main-area {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ========== Sections ========== */
.welcome-section {
    margin-bottom: 40px;
    text-align: center;
}

.welcome-section h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Services Grid */
.services-section,
.categories-section,
.why-us-section {
    margin-bottom: 40px;
}

.services-section h2,
.categories-section h2,
.why-us-section h2 {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.services-grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

/* Compact Service Cards */
.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card-small {
    background: #fff;
    padding: 25px 15px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.service-card-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card-small:hover::before {
    transform: scaleX(1);
}

.service-card-small:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(65, 105, 225, 0.25);
}

.service-card-small:hover .service-icon-small {
    transform: scale(1.2) rotate(5deg);
}

.service-card-small:hover h4 {
    color: var(--primary-color);
}

.service-icon-small {
    font-size: 2.5rem;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(0.3);
}

.service-card-small:hover .service-icon-small {
    filter: grayscale(0);
}

.service-card-small h4 {
    color: var(--dark-color);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .services-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .service-card-small {
        padding: 20px 12px;
    }
    
    .service-icon-small {
        font-size: 2rem;
    }
    
    .service-card-small h4 {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .services-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .service-card-small {
        padding: 18px 10px;
    }
    
    .service-icon-small {
        font-size: 1.8rem;
    }
}

.service-card {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.category-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.category-item:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.category-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.category-item span {
    font-weight: 500;
    color: var(--text-color);
}

/* Benefits List */
.benefits-list {
    display: grid;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    transition: var(--transition);
}

.benefit-item:hover {
    box-shadow: var(--shadow);
}

.benefit-icon {
    font-size: 2rem;
    color: #4CAF50;
    flex-shrink: 0;
}

.benefit-item h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.benefit-item p {
    color: #666;
}

/* ========== Sidebar ========== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    background: var(--primary-color);
    color: #fff;
    margin: -20px -20px 20px;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    text-align: center;
    font-size: 1.2rem;
}

/* Digital Clock */
.digital-clock {
    background: #1b1b1b;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

#time {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #14ffe9, #ffeb3b, #ff00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hue-rotate 3s linear infinite;
}

@keyframes hue-rotate {
    100% { filter: hue-rotate(360deg); }
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--light-color);
    border-radius: 5px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.social-btn:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.social-btn img {
    width: 30px;
    height: 30px;
}

.social-btn span {
    color: var(--text-color);
    font-weight: 500;
}

/* Partner Widget */
.partner-link {
    text-align: center;
}

.partner-link img {
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.cta-widget h3 {
    background: transparent;
    color: #fff;
}

.cta-widget p {
    color: #fff;
    margin-bottom: 15px;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.cta-button:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.cta-button img {
    width: 24px;
    height: 24px;
}

/* Quick Contact */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--text-color);
    word-break: break-all;
}

/* ========== Footer ========== */
.site-footer {
    background: #fff;
    padding: 50px 0 20px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.footer-column p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    transform: scale(1.1);
    background: var(--primary-color);
}

.social-icon img {
    width: 24px;
    height: 24px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    color: #666;
}

.contact-info a {
    color: var(--primary-color);
}

.operating-hours {
    list-style: none;
    margin-bottom: 20px;
}

.operating-hours li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    color: #666;
}

.delivery-info {
    background: var(--light-color);
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.delivery-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.delivery-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Copyright */
.copyright {
    background: #2e2e2e;
    color: #999;
    padding: 20px 0;
}

.copyright-content {
    text-align: center;
}

.copyright-content p {
    margin: 5px 0;
}

.copyright-content a {
    color: #fff;
}

.copyright-content a:hover {
    color: var(--secondary-color);
}

/* ========== WhatsApp Float Button ========== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }
}

/* ========== Utility Classes ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* ========== Desktop Layout Override ========== */
@media screen and (min-width: 769px) {
    .slider-with-sidebar {
        grid-template-columns: 1fr 280px !important;
    }
}
