/* Garden Global Logistics - Public CSS */
:root {
    --color-primary: #0056b3; /* Deep Blue */
    --color-secondary: #ffcc00; /* Light Yellow / Gold */
    --color-text: #333;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --spacing-unit: 1rem;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-light);
}
a { text-decoration: none; color: var(--color-primary); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}
.section { padding: 4rem 0; }

/* Header */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.site-header.header-hidden {
    transform: translateY(-100%);
}
.site-header.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    z-index: 1001;
}
.logo span { color: var(--color-secondary); }

.main-nav ul { display: flex; gap: 1.5rem; }
.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); }

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}
.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    padding: 5rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}
.mobile-nav.open {
    right: 0;
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.mobile-nav a {
    display: block;
    padding: 1rem 0;
    color: var(--color-text);
    font-weight: 500;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav a:hover {
    color: var(--color-primary);
    padding-left: 0.5rem;
}
.mobile-nav a.highlight-btn {
    background: var(--color-secondary);
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    border-bottom: none;
    text-align: center;
    font-weight: 600;
}

/* Mobile Overlay */
/* NOTE: display:none was removed — it caused the hidden overlay to sit on top of
   all page content on mobile, blocking every tap event. The overlay is now always
   rendered but pointer-events:none prevents it from intercepting clicks when closed. */
.mobile-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-logistics.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 8rem 0;
    text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; margin-bottom: 2rem; opacity: 0.9; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: #004494; transform: translateY(-2px); }
.btn-secondary { background: var(--color-secondary); color: #000; }
.btn-secondary:hover { background: #e6b800; }
.btn-link { color: var(--color-primary); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* Cards */
.card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Tracking Form */
.track-box {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    margin: -3rem auto 3rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}
.track-form { display: flex; gap: 1rem; }
.track-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.service-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}
.service-content {
    padding: 1.5rem;
}
.service-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Feature List */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}
.feature-item h4 { margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; color: #666; }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.testimonial-author span {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.team-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--color-primary);
}
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-role { color: var(--color-secondary); font-weight: 600; }

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.post-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.post-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
}
.post-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}
.post-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--color-secondary); }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 { color: var(--color-white); margin-bottom: 1rem; font-size: 1.1rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
    .deposit-balance-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
    /* Show mobile menu elements */
    .menu-toggle { display: flex; }
    .mobile-nav { display: block; }
    /* .mobile-overlay is display:block at all times (pointer-events:none when closed). */
    
    /* Hide desktop nav */
    .main-nav { display: none; }
    
    /* Header stays row layout on mobile */
    .site-header .container { 
        flex-direction: row; 
        gap: 0; 
    }
    
    .track-form { flex-direction: column; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 5rem 0; }
    .hero p { font-size: 1rem; padding: 0 1rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .deposit-summary-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   DEPOSIT PAGES - Premium Gold Theme Styles
   ============================================ */

/* Deposit Page Hero */
.deposit-hero {
    background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
                linear-gradient(45deg, #1a1a1a 0%, #2d2d2d 100%);
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.deposit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255,204,0,0.1) 50%, transparent 60%);
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* Deposit Lookup Card */
.deposit-lookup-card {
    background: linear-gradient(180deg, #ffffff 0%, #fefefe 100%);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.08),
        0 0 0 1px rgba(0,0,0,0.03);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}
.deposit-lookup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 0 0 4px 4px;
}
.deposit-lookup-card h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}
.deposit-lookup-card .form-group {
    margin-bottom: 1.25rem;
}
.deposit-lookup-card .form-group label {
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
    display: block;
}
.deposit-lookup-card input[type="text"],
.deposit-lookup-card input[type="password"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-family: inherit;
    color: var(--color-text);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fafafa;
    display: block;
}
.deposit-lookup-card input[type="text"]:focus,
.deposit-lookup-card input[type="password"]:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(255,204,0,0.15);
    background: #fff;
}
.deposit-lookup-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #004494 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,86,179,0.3);
}
.deposit-lookup-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,86,179,0.4);
}

/* Deposit Result Card */
.deposit-result-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 0;
    box-shadow: 
        0 15px 50px rgba(0,0,0,0.1),
        0 0 0 1px rgba(0,0,0,0.02);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}
.deposit-result-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #003d7a 100%);
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.deposit-result-header h2 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}
.deposit-result-header .customer-id {
    opacity: 0.85;
    font-size: 0.95rem;
}


/* Balance Display */
.deposit-balance-display {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}
.deposit-balance-display.has-balance {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
}
.deposit-balance-display.paid-full {
    background: linear-gradient(180deg, #f0fff4 0%, #ffffff 100%);
}
.deposit-balance-label {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.deposit-balance-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #c53030, #9b2335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.deposit-balance-amount.paid {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.deposit-balance-message {
    color: #666;
    font-size: 0.95rem;
}

/* Amount Breakdown */
.deposit-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0 2rem 2rem;
}
.deposit-summary-item {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
}
.deposit-summary-item:hover {
    transform: translateY(-2px);
}
.deposit-summary-item .label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.deposit-summary-item .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}
.deposit-summary-item .value.positive {
    color: #28a745;
}

/* Payment Details Box */
.deposit-payment-details {
    margin: 0 2rem 2rem;
    border: 2px solid var(--color-secondary);
    border-radius: 12px;
    overflow: hidden;
}
.deposit-payment-header {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5cc 100%);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255,204,0,0.3);
}
.deposit-payment-header h3 {
    color: #8B6914;
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.deposit-payment-header h3::before {
    content: '🏦';
    font-size: 1.25rem;
}
.deposit-payment-body {
    padding: 1.5rem;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}
.deposit-payment-body table {
    width: 100%;
}
.deposit-payment-body td {
    padding: 0.6rem 0;
    vertical-align: top;
}
.deposit-payment-body td:first-child {
    color: #666;
    width: 140px;
}
.deposit-payment-body td:last-child {
    font-weight: 600;
    color: #333;
    font-family: 'Monaco', 'Menlo', monospace;
}
.deposit-payment-instructions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e0d5a8;
}
.deposit-payment-instructions p:first-child {
    color: #8B6914;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.deposit-payment-reference {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,204,0,0.1);
    border-radius: 6px;
    font-size: 0.9rem;
}
.deposit-payment-reference strong {
    color: var(--color-primary);
}

/* Deposit Actions */
.deposit-actions {
    padding: 2rem;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.deposit-error {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    border: 1px solid #feb2b2;
    color: #c53030;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.deposit-error::before {
    content: '⚠️';
    font-size: 1.25rem;
}

/* Gold Accent Animation — uses transform (GPU-composited) instead of 'left' to avoid layout reflows */
.gold-accent {
    position: relative;
    overflow: hidden;
}
.gold-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,204,0,0.2), transparent);
    transform: translateX(-100%);
    animation: goldShine 2s ease-in-out infinite;
}
@keyframes goldShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Safety Deposit Status Badge ────────────────────────────────── */
.deposit-status-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    /* Explicit white so it doesn't inherit the global 'a' color (#0056b3) */
    color: #ffffff;
    background-color: #6c757d; /* fallback neutral grey */
}

.deposit-status-badge.pending {
    background-color: #0056b3;
    color: #ffffff;
}

.deposit-status-badge.partial {
    background-color: #e67e22;
    color: #ffffff;
}

.deposit-status-badge.paid {
    background-color: #1e7e34;
    color: #ffffff;
}

.deposit-status-badge.overdue {
    background-color: #c53030;
    color: #ffffff;
}

.deposit-status-badge.active {
    background-color: #1e7e34;
    color: #ffffff;
}

.deposit-status-badge.inactive,
.deposit-status-badge.closed {
    background-color: #6c757d;
    color: #ffffff;
}
