/*
Theme Name: My AFB Safe
Theme URI: https://myafbsafe.com
Author: My AFB Safe
Description: Custom theme for My AFB Safe Singapore
Version: 1.0.0
License: Private
Text Domain: afbsafe
*/

/* ── RESET & BASE ── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Albert Sans',system-ui,sans-serif;color:#222;background:#fff;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* ── VARIABLES ── */
:root{
  --red:#cc1c21;
  --dark:#101010;
  --max:1400px;
  --px:clamp(1rem,4vw,6rem);
}

/* ── LAYOUT ── */
.container{max-width:var(--max);margin:0 auto;padding:0 var(--px)}

/* ─────────────────────────────────────────────
   FONT STANDARD
   H1 hero:       50px / 600 / #fff / lh 75px
   H2 light bg:   50px / 600 / #000 / lh 50px
   H2 dark bg:    50px / 600 / #fff / lh 75px
   H2 quote:      50px / 600 / #fff / lh 64px
   H3 principles: 30px / 700 / #fff
   H4 card title: 30px / 700 / #222
   H4 showroom:   25px / 600 / #000
   Body light:    18px / 400 / #666 / lh 26px
   Body dark:     18px / 400 / #fff / lh 26px
   Body address:  18px / 400 / #000 / lh 26px
   Author/cite:   20px / 600 / #000
   Breadcrumb:    16px / 400 / #fff
   ───────────────────────────────────────────── */

/* H1 */
h1{font-family:'Albert Sans',system-ui,sans-serif;font-size:50px;font-weight:600;color:#fff;line-height:75px}

/* H2 */
h2{font-family:'Albert Sans',system-ui,sans-serif;font-size:50px;font-weight:600;line-height:50px;color:#000}
.section-dark h2,.section-dark .title-center{color:#fff;line-height:75px}
.section-quote h2,.section-quote p{color:#fff;line-height:64px}

/* H3 */
h3{font-family:'Albert Sans',system-ui,sans-serif;font-size:30px;font-weight:700;color:#fff}

/* H4 */
h4{font-family:'Albert Sans',system-ui,sans-serif;font-size:30px;font-weight:700;color:#222}
.showroom-name h4,.showroom-item h4{font-size:25px;font-weight:600;color:#000}

/* H5 */
h5{font-family:'Albert Sans',system-ui,sans-serif;font-size:16px;font-weight:600;color:#222}

/* Body */
p,li,span,td{font-family:'Albert Sans',system-ui,sans-serif;font-size:18px;font-weight:400;color:#666;line-height:26px}
.section-dark p,.section-dark li{color:#fff}
.address,.showroom-item p{color:#000}

/* Author / cite */
.author,cite,.ronn-teo{font-size:20px;font-weight:600;color:#000;font-style:normal}

/* Breadcrumb */
.breadcrumb,.breadcrumb a{font-size:16px;font-weight:400;color:#fff}

/* Small */
small,.meta{font-size:14px;color:#888}

/* ── TOPBAR ── */
.topbar{background:var(--red);color:#fff;text-align:center;font-size:14px;font-weight:600;padding:10px var(--px)}

/* ── NAVBAR ── */
.navbar{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:100}
.navbar-inner{display:flex;align-items:center;justify-content:space-between;height:72px;gap:1rem}
.logo img{height:44px;width:auto}
.nav-links{display:flex;align-items:center;gap:2rem;font-size:16px}
.nav-links a:hover{color:var(--red)}
.nav-links a.active,
.nav-links .current-menu-item > a,
.nav-links .current-page-ancestor > a{color:var(--red);font-weight:600}
.nav-right{display:flex;align-items:center;gap:1rem}
.search-box{display:flex;align-items:center;background:#f3f3f3;border-radius:90px;padding:8px 16px;gap:8px}
.search-box input{background:none;border:none;outline:none;font-size:14px;width:140px}
.nav-icon{position:relative;cursor:pointer}
.cart-badge{position:absolute;top:-6px;right:-6px;background:#db3b3c;color:#fff;border-radius:50%;width:18px;height:18px;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;background:none;border:none;padding:4px}
.hamburger span{display:block;width:24px;height:2px;background:#222;border-radius:2px}

/* ── PAGE HERO ── */
.page-hero{position:relative;height:200px;overflow:hidden}
.page-hero img.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.page-hero-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:0 var(--px)}
.breadcrumb{font-size:16px;font-weight:400;color:#fff;margin-bottom:0}
.breadcrumb a{color:#fff}
.page-hero h1{font-size:50px;font-weight:600;color:#fff;line-height:75px}

/* ── FOOTER ── */
footer{background:#f1f1f1;padding:4rem var(--px) 2rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1.5fr;gap:2.5rem;margin-bottom:3rem}
.footer-brand img{height:40px;margin-bottom:1rem}
.footer-brand p{font-size:14px;color:#444;line-height:1.7;max-width:320px}
.footer-brand p+p{margin-top:.75rem}
.footer-col h5{font-size:16px;font-weight:600;margin-bottom:1rem}
.footer-col ul{display:flex;flex-direction:column;gap:.6rem}
.footer-col ul li a{font-size:14px;color:#444;transition:color .2s}
.footer-col ul li a:hover{color:var(--red)}
.footer-subscribe h5{font-size:16px;font-weight:600;margin-bottom:.75rem}
.subscribe-row{display:flex;gap:.5rem;flex-wrap:wrap}
.subscribe-row input{flex:1;min-width:140px;padding:10px 16px;border-radius:90px;border:1px solid #ccc;font-size:14px;outline:none}
.subscribe-row button{padding:10px 20px;background:var(--dark);color:#fff;border:none;border-radius:90px;font-size:14px;font-weight:600;cursor:pointer}
.footer-bottom{border-top:1px solid #d0d0d0;padding-top:1.5rem;font-size:13px;color:#888}

/* ── WHATSAPP FLOAT ── */
.whatsapp-float{position:fixed;bottom:24px;right:24px;z-index:998;background:#25d366;border-radius:50%;width:56px;height:56px;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 16px rgba(0,0,0,.25);transition:transform .2s}
.whatsapp-float:hover{transform:scale(1.08)}
.whatsapp-float svg{width:30px;height:30px;fill:#fff}

/* ── LAYOUT RESPONSIVE ── */
@media(max-width:900px){
  .nav-links{display:none;flex-direction:column;position:absolute;top:72px;left:0;right:0;background:#fff;border-bottom:1px solid #eee;padding:1.5rem var(--px);gap:1.5rem;z-index:99}
  .nav-links.open{display:flex}
  .hamburger{display:flex}
  .search-box{display:none}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:500px){
  .footer-grid{grid-template-columns:1fr}
}

/* ── FOOTER FONT OVERRIDES ── */
/* Override global 18px body rule for footer small text */
footer p,
footer li,
footer span,
.footer-brand p,
.footer-col ul li a,
.subscribe-row input,
.subscribe-row button{font-size:14px;line-height:1.7}
.footer-col h5,
.footer-subscribe h5{font-size:16px;font-weight:600}
.footer-bottom{font-size:13px}

/* ── FOOTER FONT OVERRIDES (from Figma source) ── */
footer p,
footer li,
footer span,
.footer-brand p,
.footer-col ul li,
.footer-col ul li a{font-size:18px;font-weight:400;color:#444;line-height:1.7}
.footer-col h5,
.footer-subscribe h5{font-size:22px;font-weight:600;color:#222}
.footer-bottom,
.footer-bottom span{font-size:18px;color:#a2a2a2}
.subscribe-row input{font-size:18px}
.subscribe-row button{font-size:18px;font-weight:400}


/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:10px;padding:14px 28px;border-radius:90px;font-weight:700;font-size:16px;cursor:pointer;border:none;transition:opacity .2s}
.btn:hover{opacity:.85}
.btn-red{background:var(--red);color:#fff}
.btn-outline{background:#fff;color:#222;border:1.5px solid #222}

/* ── SECTION TITLE ── */
.section-title{font-size:50px!important;font-weight:600!important;text-align:center!important;margin-bottom:2rem!important;color:#000!important;line-height:50px!important;display:block!important;width:100%!important}

/* ── PRODUCT PRICE ── */
.price-row{display:flex;align-items:center;gap:.5rem}
.price-now{font-size:18px;font-weight:700;color:var(--red)}
.price-old{font-size:15px;color:#ababab;text-decoration:line-through}

/* ── LEARN MORE LINK ── */
.learn-more{color:var(--red);font-weight:700;font-size:15px;display:inline-flex;align-items:center;gap:6px;border-bottom:1px solid var(--red);padding-bottom:2px}

/* ── HOME PAGE ── */

/* HERO */
.hero{position:relative;height:700px;overflow:hidden;background:#111}
.hero-swiper{width:100%;height:100%}
.swiper-slide{position:relative;height:700px;display:flex;align-items:center}
.hero-bg{position:absolute;inset:0;object-fit:cover;width:100%;height:100%;opacity:.6}
.hero-content{position:relative;z-index:1;padding:80px var(--px)}
.hero-content h1{font-size:clamp(36px,6vw,72px);font-weight:600;color:#fff;line-height:1.05;max-width:600px;margin-bottom:.5rem}
.hero-content p{color:#fff;font-size:clamp(16px,2vw,30px);font-weight:400;margin-bottom:2rem}
.hero-dots{display:flex;gap:8px;margin-top:2rem}
.hero-dot{width:22px;height:10px;background:rgba(255,255,255,.4);border-radius:90px;cursor:pointer;transition:.3s}
.hero-dot.sm{width:10px;background:rgba(255,255,255,.4);border-radius:50%;cursor:pointer}

/* FEATURES */
.features{background:#f2f2f2!important;padding:2.5rem var(--px)!important}
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.feature-card{background:#fff;border:1px solid #dcdcdc;border-radius:10px;padding:1.25rem 1.25rem 1.25rem 1.5rem;display:flex;align-items:center;gap:1rem;box-shadow:0 4px 10px rgba(0,0,0,.06)}
.feature-icon{flex-shrink:0;width:52px;height:52px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center}
.feature-icon svg{width:26px;height:26px;stroke:#fff;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.feature-card h4{font-size:15px;font-weight:600;margin-bottom:2px}
.feature-card p{font-size:13px;color:#555;line-height:1.4}
@media(max-width:900px){.features-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.features-grid{grid-template-columns:1fr}.feature-card{padding:1rem}.feature-card h4{font-size:14px}.feature-card p{font-size:12px}}

/* ECONOMY */
.economy{padding:5rem var(--px)!important;background:#f2f2f2!important}
.economy-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-top:2.5rem}
.economy-card{background:#fff;border-radius:10px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.economy-card-img{height:320px;overflow:hidden;background:#f8f8f8}
.economy-card-img img{width:100%;height:100%;object-fit:contain;padding:20px}
.economy-card-body{padding:1.5rem}
.choice-tag{font-size:13px;color:var(--red);font-weight:600;margin-bottom:.5rem}
.economy-card-body h3{font-size:20px!important;font-weight:600!important;margin-bottom:1rem!important;display:block!important;color:#222!important;visibility:visible!important;opacity:1!important}

/* NEW ARRIVALS */
.new-arrivals{padding:5rem var(--px)}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1.5rem;margin-top:2.5rem}
.product-card{border-radius:10px;overflow:hidden;background:#fff;border:1px solid #eee}
.product-card-img{height:260px;background:#f2f2f2;overflow:hidden;position:relative}
.product-card-img img{width:100%;height:100%;object-fit:contain;padding:16px;transition:transform .3s}
.product-card:hover .product-card-img img{transform:scale(1.04)}
.product-card-img .cart-btn{position:absolute;bottom:12px;right:12px;width:40px;height:40px;background:var(--red);border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer}
.product-card-img .cart-btn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2}
.product-card-body{padding:1rem}
.product-card-body h4{font-size:17px;font-weight:600;margin-bottom:.5rem;line-height:1.3}

/* ABOUT CTA */
.about-cta{display:grid;grid-template-columns:1fr 1fr;height:680px}
.about-cta-left{background:var(--dark)!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:4rem var(--px)!important}
.about-cta-text{max-width:500px;color:#fff;text-align:center}
.about-cta-text h2{font-size:clamp(28px,4vw,50px);font-weight:600;margin-bottom:1.5rem;color:#fff}
.about-cta-text p{font-size:16px!important;line-height:1.7!important;opacity:.85!important;margin-bottom:2rem!important;color:#fff!important}
.about-cta-right{overflow:hidden!important;background:#fff!important}
.about-cta-right img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;opacity:1!important}
@media(max-width:700px){.about-cta{grid-template-columns:1fr}.about-cta-right{height:280px}}

/* TESTIMONIALS */
.testimonials{padding:5rem var(--px)}
.testimonials-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:2.5rem}
.testimonials-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem}
.testimonial-card{border:1px solid #eee;border-radius:10px;padding:1.5rem}
.stars{color:#f4a40a;font-size:18px;margin-bottom:.75rem}
.testimonial-card p{font-size:15px;line-height:1.6;color:#444;margin-bottom:1rem}
.testimonial-author{font-weight:700;font-size:15px}

/* GALLERY STRIP */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden}
.gallery-item{height:360px;overflow:hidden}
.gallery-item img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gallery-item:hover img{transform:scale(1.05)}
@media(max-width:700px){.gallery{grid-template-columns:1fr 1fr}.gallery-item{height:220px}}

/* BLOG */
.blog-section{padding:5rem var(--px);background:#f9f9f9}
.blog-section-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem;margin-bottom:2.5rem}
.blog-section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
@media(max-width:900px){.blog-section-grid{grid-template-columns:1fr}}
.blog-section-card{border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.06)}
.blog-section-card-img{height:200px;background:#ddd;overflow:hidden}
.blog-section-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.blog-section-card:hover .blog-section-card-img img{transform:scale(1.04)}
.blog-section-card-body{padding:1.25rem}
.blog-section-card-body h4{font-size:16px;font-weight:600;line-height:1.4;margin-bottom:1rem}

/* ── SWIPER HERO DOTS ── */
.hero-pagination{bottom:2rem!important}
.hero-pagination .swiper-pagination-bullet{width:10px;height:10px;background:rgba(255,255,255,.5);opacity:1;border-radius:50%;transition:.3s}
.hero-pagination .swiper-pagination-bullet-active{width:22px;height:10px;background:#fff;border-radius:90px}
