/* JonKou Estates - Complete Master Stylesheet (CSS) */
:root {
    --primary-green: #102d20;
    --dark-estate: #092015;
    --accent-gold: #b58240;
    --gold-light: #F3E5AB;
    --bg-cream: #FAF7F2;
    --surface-white: #FFFFFF;
    --text-dark: #1E2522;
    --text-muted: #5A6560;
    --border-light: #E5DFD5;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1EBE5D;
    
    --brand-jon: #102d20;
    --brand-kou: #b58240;
    --brand-estates: #102d20;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-main, .brand-accent, .card-title, .section-title {
    font-family: 'Times New Roman', Times, serif !important;
}

.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.top-notification { background-color: var(--dark-estate); color: var(--gold-light); text-align: center; padding: 6px 10px; font-size: 0.85rem; font-weight: 600; }

.navbar { background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; }
.brand-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.header-logo { height: 42px; width: auto; object-fit: contain; }
.brand-stack { display: flex; flex-direction: column; line-height: 1.1; }
.brand-main { font-size: 1.3rem; font-weight: 800; }
.c-jon { color: var(--brand-jon) !important; font-weight: bold; }
.c-kou { color: var(--brand-kou) !important; font-weight: bold; }
.c-estates { color: var(--brand-estates) !important; font-weight: 700; }
.brand-accent { font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-size: 0.95rem; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--brand-kou); }

.header-actions { display: flex; align-items: center; gap: 15px; }
.header-user-actions { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.header-basket-btn { background: #E8F0EC; color: var(--primary-green); padding: 7px 12px; border-radius: 6px; font-weight: 700; border: 1px solid #C7D8CD; cursor: pointer; transition: all 0.2s; }
.header-basket-btn:hover { background: #D9E8E0; }

.user-dropdown { position: relative; display: inline-block; }
.user-dropdown-btn { background: var(--primary-green); color: white; padding: 7px 14px; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 0.9rem; font-family: 'Times New Roman', Times, serif; }
.user-dropdown-content { display: none; position: absolute; right: 0; background-color: #fff; min-width: 190px; box-shadow: 0px 8px 16px rgba(0,0,0,0.18); z-index: 100; border-radius: 6px; overflow: hidden; border: 1px solid #E5DFD5; }
.user-dropdown-content a { color: var(--text-dark); padding: 10px 14px; text-decoration: none; display: block; font-size: 0.95rem; }
.user-dropdown-content a:hover { background-color: #FAF7F2; color: var(--brand-kou); }
.user-dropdown:hover .user-dropdown-content { display: block; }

.auth-link { text-decoration: none; color: var(--primary-green); font-weight: 700; font-size: 0.9rem; }
.sep { color: #AAA; }

.floating-whatsapp { position: fixed; bottom: 25px; right: 25px; background-color: var(--whatsapp-green); color: #FFFFFF; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25); z-index: 1500; text-decoration: none; transition: transform 0.2s; }
.floating-whatsapp:hover { transform: scale(1.1); }

.admin-toolbar { background: #092015; color: #F3E5AB; padding: 7px 20px; width: 100%; z-index: 9999; display: flex; justify-content: space-between; align-items: center; font-family: 'Times New Roman', Times, serif; font-size: 0.88rem; border-bottom: 1px solid #1a382b; }
.admin-toolbar-btn { color: #fff; background: #b58240; padding: 3px 10px; border-radius: 4px; text-decoration: none; font-weight: bold; }

.hero { background: url('../images/Tea Cup with Farm Wider.png') center bottom / cover no-repeat; color: #FFFFFF; text-align: left; padding: 240px 20px 150px; position: relative; }
.hero-container { position: relative; z-index: 2; display: flex; justify-content: flex-start; align-items: center; }
.hero-content { max-width: 650px; }

.hero-title { 
    font-size: 3.2rem; 
    font-weight: 800; 
    letter-spacing: 1.5px; 
    margin-bottom: 12px; 
    color: #FFFFFF; 
    text-shadow: 0 0 12px rgba(243, 229, 171, 0.9), 0 0 25px rgba(181, 130, 64, 0.7), 0 3px 15px rgba(0, 0, 0, 0.95); 
}

.hero-tagline { font-size: 1.35rem; font-weight: 500; color: var(--gold-light); margin-bottom: 30px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
.hero-cta-group { display: flex; justify-content: flex-start; gap: 15px; flex-wrap: wrap; }

.btn { display: inline-block; padding: 11px 24px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: all 0.25s ease; font-family: 'Times New Roman', Times, serif; }
.btn-gold { background-color: var(--accent-gold); color: #FFF; }
.btn-gold:hover { background-color: #9c6c30; transform: translateY(-2px); }
.btn-outline-white { background-color: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.full-btn { width: 100%; text-align: center; }

#products { background: url('../images/Tea_Farms.png') center center / cover no-repeat fixed; position: relative; padding: 75px 0; }
#products .section-title { color: #FFFFFF; }
#products .section-subtitle { color: var(--accent-gold); }
#products .divider { background-color: var(--accent-gold); }

.section { padding: 65px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-subtitle { font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent-gold); font-weight: 700; margin-bottom: 6px; display: block; }
.section-title { font-size: 2.1rem; color: var(--primary-green); font-weight: 700; }
.divider { width: 50px; height: 3px; background-color: var(--accent-gold); margin: 10px auto 0; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; align-items: stretch; }
.product-card { background-color: var(--surface-white); border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); display: flex; flex-direction: column; height: 100%; transition: all 0.3s ease; }
.product-card.filtered-out { opacity: 0.25; filter: grayscale(80%); pointer-events: none; order: 99; }
.product-card.filtered-in { order: 1; }

/* Ribbons styling */
.card-top-ribbon { padding: 10px 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-align: center; text-transform: uppercase; display: block; width: 100%; box-sizing: border-box; }

.card-visual { padding: 25px 20px; display: flex; justify-content: center; align-items: center; min-height: 250px; }
.product-pouch-img { max-height: 220px; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15)); }
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.35rem; margin-bottom: 4px; font-weight: 700; }
.card-sub { font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; color: var(--accent-gold); margin-bottom: 10px; }
.card-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; min-height: 105px; }

.profile-specs-row { background-color: #F8F5F0; padding: 12px 15px; border-radius: 6px; margin-top: auto; margin-bottom: 16px; font-size: 0.9rem; display: flex; flex-direction: column; gap: 6px; }
.spec-col { display: flex; justify-content: space-between; width: 100%; align-items: center; }
.spec-lbl { font-weight: bold; color: var(--text-dark); }
.dots { color: #b58240; letter-spacing: 2px; font-size: 1rem; }

.story-section { background-color: #FFFFFF; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.story-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.story-content h3 { font-size: 1.8rem; color: var(--primary-green); margin-bottom: 14px; }
.quote-box { background-color: #FAF4EB; border-left: 4px solid var(--accent-gold); padding: 16px 18px; border-radius: 0 6px 6px 0; margin: 18px 0; font-style: italic; font-size: 1.05rem; color: #4A3B2C; }
.quote-author { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 0.9rem; color: var(--primary-green); }

.story-image-card { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-light); margin-top: 15px; }
.story-main-img { width: 100%; height: auto; max-height: 340px; object-fit: cover; display: block; }
.story-img-badge { position: absolute; bottom: 12px; left: 12px; right: 12px; background: rgba(16, 45, 32, 0.88); backdrop-filter: blur(8px); border: 1px solid rgba(181, 130, 64, 0.4); padding: 8px 12px; border-radius: 6px; color: #FFFFFF; }
.story-img-badge span { display: block; font-weight: 700; color: var(--accent-gold); font-size: 0.95rem; }

.transit-card { background-color: #FAF7F2; border: 1px solid #E6DED2; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05); }
.transit-card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 10px; border-bottom: 1px solid #ECE3D7; }
.transit-title { display: flex; align-items: center; gap: 6px; color: #102d20; font-size: 1rem; }
.zero-badge { background-color: #102d20; color: #A3D9B5; font-size: 0.78rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.transit-map-body { padding: 15px 10px; display: flex; justify-content: center; align-items: center; }
.transit-map-img { width: 100%; max-width: 350px; height: auto; max-height: 280px; object-fit: contain; display: block; }
.transit-card-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px 18px; background-color: #FAF7F2; border-top: 1px solid #ECE3D7; }
.transit-footer-col .footer-icon-title { display: flex; align-items: center; gap: 5px; font-size: 0.88rem; color: #102d20; }
.transit-footer-col p { font-size: 0.82rem; color: #5A6560; }

.transparency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 25px; }
.step-card { background-color: var(--surface-white); border: 1px solid var(--border-light); border-radius: 8px; padding: 20px 16px; text-align: center; }
.step-num { width: 36px; height: 36px; background-color: var(--primary-green); color: var(--gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-weight: 800; font-size: 0.95rem; }
.step-card h4 { color: var(--primary-green); font-size: 1.1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); }

.wholesale-section { background-color: #F3ECE1; }
.wholesale-box { background-color: var(--surface-white); border: 1px solid var(--border-light); border-radius: 10px; padding: 35px; max-width: 800px; margin: 0 auto; }
.wholesale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group.full { grid-column: span 2; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 5px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #CCC4B8; border-radius: 6px; font-family: 'Times New Roman', Times, serif; font-size: 0.95rem; }

.connect-section { background-color: var(--primary-green); color: #FFFFFF; text-align: center; padding: 55px 0; }
.connect-box { max-width: 720px; margin: 0 auto; }
.connect-desc { font-size: 1.1rem; color: var(--gold-light); margin-bottom: 25px; line-height: 1.5; }

.alert-box { padding: 12px; border-radius: 6px; margin-bottom: 18px; font-size: 0.95rem; text-align: left; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #C8E6C9; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }

.compliance-section { background-color: var(--dark-estate); color: #FFFFFF; padding: 40px 0; }
.compliance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; text-align: center; max-width: 700px; margin: 0 auto; }
.compliance-item { background: rgba(255, 255, 255, 0.05); padding: 16px 14px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.compliance-item h5 { color: var(--accent-gold); font-size: 0.85rem; text-transform: uppercase; margin-bottom: 5px; }
.compliance-item p { font-family: monospace; font-size: 1.05rem; font-weight: 700; }

.footer { background-color: #05130C; color: #A3B0A9; padding: 45px 0 20px; font-size: 0.9rem; }
.footer .brand-main { color: #FFFFFF !important; font-size: 1.4rem !important; font-weight: 800 !important; }
.footer .brand-accent, .footer .c-estates { color: #F3E5AB !important; font-weight: 700 !important; letter-spacing: 2px !important; }
.footer .c-kou { color: var(--accent-gold) !important; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-logo-img { height: 35px; width: auto; }
.footer h5 { color: #FFFFFF; margin-bottom: 12px; text-transform: uppercase; font-size: 0.95rem; }
.footer a { color: #A3B0A9; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 18px; text-align: center; font-size: 0.85rem; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; }
.custom-modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #FFFFFF; width: 90%; max-width: 480px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); z-index: 2001; overflow: hidden; }
.modal-header { background: var(--primary-green); color: #FFFFFF; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.2rem; }
.close-modal { background: transparent; border: none; color: #FFFFFF; font-size: 1.6rem; cursor: pointer; }
.modal-body { padding: 22px; max-height: 65vh; overflow-y: auto; }
.modal-footer { padding: 14px 20px; background: #F8F5F0; border-top: 1px solid #E5DFD5; }

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .story-grid { grid-template-columns: 1fr; gap: 30px; }
    .brand-main { font-size: 1.15rem; }
    .hero-title { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 768px) {
    .hero { padding: 130px 15px 90px; text-align: center; }
    .hero-container { justify-content: center; }
    .hero-title { font-size: 2rem; }
    .hero-tagline { font-size: 1.05rem; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; text-align: center; }
    
    .wholesale-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
    .products-grid { grid-template-columns: 1fr; }
    .transparency-grid { grid-template-columns: 1fr; }
    .compliance-grid { grid-template-columns: 1fr; }
    
    .custom-modal { width: 95%; max-width: none; }
    table { font-size: 0.85rem; }
    th, td { padding: 8px 6px !important; }
}
