/* ================================================= */
/* 耳 THEME VARIABLES & LIGHT/DARK MODE */
/* ================================================= */
:root {
  /* DARK MODE (Noticeable Navy Blue & Warm Amber) */
  --bg-primary: #1e3a8a;       /* Lighter, noticeable Navy Blue */
  --bg-secondary: #274b8f;     
  --bg-tertiary: #3b82f6;      
  
  --text-primary: #F8FAFC;     
  --text-secondary: #CBD5E1;   
  --text-faded: #94A3B8;       
  
  --border-color: rgba(255, 191, 0, 0.2);
  --shadow-color: rgba(0, 0, 0, 0.5);
  
  --accent-color-light: #FFBF00; /* Warm Amber */
  --accent-color-dark: #E6AC00;  
  --footer-bg: #172b66;        
  --bg-image-opacity: 0.03; 
}

body.light-mode {
  /* LIGHT MODE (Pristine White & Indigo Blue) */
  --bg-primary: #F8FAFC;       
  --bg-secondary: #FFFFFF;     
  --bg-tertiary: #F1F5F9;      
  
  --text-primary: #000080;     /* Indigo Blue */
  --text-secondary: #000066;   
  --text-faded: #475569;       
  
  --border-color: rgba(0, 0, 128, 0.1);
  --shadow-color: rgba(0, 0, 0, 0.05);
  
  --accent-color-light: #000080; /* Indigo Blue */
  --accent-color-dark: #000066;  
  
  --footer-bg: #F1F5F9;
  --bg-image-opacity: 0.03;
}

/* ================================================= */
/* 名ｸ GLOBAL BACKGROUND & RESET */
/* ================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('homepage_picture/petpet.jpg') center/cover no-repeat;
  opacity: var(--bg-image-opacity);
  filter: blur(1px);
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ================================================= */
/* ｧｩ SHARED HEADER STYLES */
/* ================================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px; /* Centered padding so text and buttons don't look weirdly high */
    background: #0b132b;
    border-bottom: 2px solid var(--accent-color-light);
    color: var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

body.light-mode .header {
    background: #FFCE00; /* Pet Express Yellow */
    border-bottom: none;
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.1);
}

@keyframes logoSway {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-6px) rotate(-6deg); }
    66% { transform: translateY(-6px) rotate(6deg); }
}

.logo-title { display: flex; align-items: center; gap: 12px; animation: fadeInUp 0.6s ease; }
.logo { width: 45px; height: 45px; object-fit: contain; filter: drop-shadow(0 0 5px var(--accent-color-light)); margin: 0; padding: 0; animation: logoSway 3s ease-in-out infinite; }
/* Kung gusto mo na sa hover lang siya gagalaw, i-comment out yung animation sa .logo sa itaas, at gamitin ito: */
/* .logo:hover { animation: logoSway 3s ease-in-out infinite; } */
.title { font-size: 26px; font-weight: 900; letter-spacing: 3px; color: var(--accent-color-light); text-transform: uppercase; margin: 0; }
/* NAV BUTTONS */
.nav-buttons { display: flex; gap: 15px; align-items: center; animation: fadeInUp 0.8s ease; flex-wrap: wrap; background: transparent !important; }
.nav-buttons button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-primary);
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

body.light-mode .nav-buttons button {
    background: transparent;
    border: 1px solid transparent;
    color: #000080;
    box-shadow: none;
}

.nav-buttons button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: transparent;
    color: var(--accent-color-light);
}

.nav-buttons button.active {
    background: rgba(255, 206, 0, 0.15);
    color: var(--accent-color-light);
    font-weight: 800;
    border-color: transparent;
}

body.light-mode .nav-buttons button:hover {
    background: rgba(255, 255, 255, 0.5);
    color: #000080;
    border-color: transparent;
}

body.light-mode .nav-buttons button.active {
    background: #ffffff;
    color: #000080;
    border-color: transparent;
    font-weight: 800;
}

.nav-buttons button i {
    font-size: 18px;
    transition: color 0.3s ease;
}

/* Login Button & Theme Toggle */
.nav-buttons .login-btn {
    background: var(--accent-color-light) !important;
    color: #1a365d !important;
    border: none !important;
    box-shadow: 0 4px 15px var(--shadow-color);
    font-weight: 800;
    border-radius: 20px !important;
}
.nav-buttons .login-btn:hover { transform: translateY(-2px) scale(1.05); }

body.light-mode .nav-buttons .login-btn {
    background: #000080 !important;
    color: #FFFFFF !important;
}

#theme-toggle {
    width: 40px; height: 40px;
    background: var(--bg-tertiary);
    color: var(--accent-color-light);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    margin-left: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
body.light-mode #theme-toggle { background: #fff; border-color: #cbd5e1; }

/* ================================================= */
/* ｦｶ FOOTER STYLES */
/* ================================================= */
.footer { 
    padding: 30px 40px 15px; 
    background: var(--footer-bg); 
    border-top: 1px solid var(--border-color); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    margin: 0 auto 20px; 
    max-width: 900px; 
}

.footer h3 { 
    font-size: 18px; 
    margin-bottom: 12px; 
    font-weight: 700; 
    color: var(--accent-color-light); 
}

.footer ul { list-style: none; padding: 0; }
.footer li { margin: 4px 0; font-size: 14px; }
.footer p, .footer li, .footer a { color: var(--text-secondary); line-height: 1.4; }
.footer a { text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent-color-light); }

.footer-grid > div:nth-child(2) ul {
    display: block;
}

.footer-bottom { 
    text-align: center; 
    padding-top: 15px; 
    border-top: 1px solid var(--border-color); 
    color: var(--text-faded); 
    font-size: 13px;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* ===== HAMBURGER BUTTON (hidden on desktop) ===== */
.nav-hamburger {
    display: none;
    background: transparent;
    border: 2px solid var(--accent-color-light);
    color: var(--accent-color-light);
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    z-index: 1100;
}
.nav-hamburger:hover { background: var(--accent-color-light); color: var(--bg-primary); }

/* Mobile Theme Toggle & Close button container */
.nav-mobile-header,
.mobile-theme-toggle {
    display: none !important;
}

/* Close button (inside drawer, mobile only) */
.nav-buttons .nav-close-btn {
    display: none !important;
}

/* Desktop Theme Toggle */
.desktop-theme-toggle {
    display: flex !important;
}

/* Full-screen overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1050;
    backdrop-filter: blur(3px);
}
.nav-overlay.nav-overlay-active { display: block; }

/* ================================================= */
/* 📱 GLOBAL MOBILE RESPONSIVENESS                   */
/* ================================================= */
@media (max-width: 768px) {

    /* === HEADER === */
    .header {
        padding: 14px 18px;
        position: relative;
    }

    /* Show hamburger, hide nav by default */
    .nav-hamburger {
        display: flex;
    }

    /* Mobile nav drawer — slides in from right */
    .nav-buttons {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: min(300px, 80vw);
        height: 100dvh;
        background: rgba(0, 11, 100, 0.97);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        padding: 20px 20px 40px;
        gap: 8px;
        overflow-y: auto;
        z-index: 1100;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-wrap: nowrap;
        animation: none;
    }
    .nav-buttons.nav-open {
        transform: translateX(0);
    }

    .nav-mobile-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 10px;
    }
    .mobile-theme-toggle {
        display: flex !important;
    }
    .desktop-theme-toggle {
        display: none !important;
    }

    /* Close X button at top of drawer */
    .nav-buttons .nav-close-btn {
        display: flex !important;
        background: transparent !important;
        border: none !important;
        color: var(--text-primary) !important;
        font-size: 22px !important;
        padding: 4px 8px !important;
        width: auto !important;
        flex-grow: 0 !important;
        cursor: pointer;
    }

    .nav-buttons button {
        padding: 12px 18px;
        font-size: 15px;
        text-align: left;
        border-radius: 10px;
        flex-grow: 0;
        width: 100%;
    }


    /* Logo area */
    .logo-title { gap: 10px; }
    .logo { width: 40px; height: 40px; }
    .title { font-size: 24px; letter-spacing: 2px; }

    /* Footer */
    .footer { padding: 30px 18px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-grid > div:nth-child(2) ul { 
        text-align: left; 
        grid-template-columns: 1fr;
    }

    /* Global hero text */
    .services-hero h1, 
    .booking-hero h1, 
    .contact-hero h1,
    .about-hero h1,
    .hero-content h1 {
        font-size: 34px !important;
        line-height: 1.2;
    }
    
    .services-hero p, 
    .booking-hero p, 
    .contact-hero p,
    .about-hero p,
    .hero-content p {
        font-size: 15px !important;
        padding: 0 8px;
    }

    /* Light mode drawer (Mobile only) */
    body.light-mode .nav-buttons {
        background: rgba(255, 255, 255, 0.98) !important;
    }
}

@media (max-width: 480px) {
    .title { font-size: 20px; letter-spacing: 1px; }
    .logo { width: 36px; height: 36px; }
}


/* ================================================= */
/* 耳 GLOBAL LIGHT MODE CARD OVERRIDES */
/* ================================================= */
body.light-mode .service-card,
body.light-mode .contact-info,
body.light-mode .contact-form-container,
body.light-mode .booking-container,
body.light-mode .value-card,
body.light-mode .testimonial-card,
body.light-mode .history-container .table-responsive,
body.light-mode .flip-card-front,
body.light-mode .flip-card-back {
    background: #ffffff !important;
    backdrop-filter: none;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Light mode focus ring — Royal Blue */
body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus,
body.light-mode .form-group textarea:focus {
  background: #ffffff;
  border-color: var(--accent-color-light);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

body.light-mode h1, body.light-mode h2, body.light-mode h3 { text-shadow: none; }

/* Light mode overrides for logo */
body.light-mode .title {
    color: #0033A0;
}
/* ================================================= */
/* GLOBAL CANVAS BACKGROUND FIX                      */
/* ================================================= */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ================================================= */
/* STANDARDIZED UI UTILITY CLASSES (Admin/Emp/Cust)  */
/* ================================================= */

/* MAIN CONTAINERS */
.paw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.paw-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.paw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* BUTTONS */
.paw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: #FFBF00; /* Warm Amber */
    color: #000080;      /* Indigo Blue */
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.paw-btn:hover {
    background: #E6AC00;
    transform: translateY(-2px);
}
.paw-btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color-light);
    color: var(--accent-color-light);
}
.paw-btn-outline:hover {
    background: var(--accent-color-light);
    color: var(--bg-primary);
}
body.light-mode .paw-btn {
    background: #000080;
    color: #FFFFFF;
}
body.light-mode .paw-btn:hover {
    background: #000066;
}

/* SIDEBAR / NAVBAR (DASHBOARDS) */
.paw-sidebar {
    width: 260px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
}
.paw-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}
.paw-sidebar-link:hover, .paw-sidebar-link.active {
    background: rgba(255, 191, 0, 0.15); /* Warm amber tint */
    color: #FFBF00; /* Always Amber on Dark Mode */
}
body.light-mode .paw-sidebar-link:hover, 
body.light-mode .paw-sidebar-link.active {
    background: rgba(0, 0, 128, 0.1);
    color: #000080;
}

/* TABLES */
.paw-table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.paw-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.paw-table th, .paw-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}
.paw-table th {
    background: rgba(0,0,0,0.2);
    color: var(--accent-color-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}
body.light-mode .paw-table th {
    background: #F1F5F9;
}
.paw-table tr:last-child td {
    border-bottom: none;
}
.paw-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}
body.light-mode .paw-table tbody tr:hover {
    background: #F8FAFC;
}

\n
/* ===== FAQ SECTION ===== */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}
.faq-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}
