/*
Theme Name: Never Too Latte
Theme URI: https://nevertoolatte.store
Author: Never Too Latte Pte. Ltd.
Author URI: https://nevertoolatte.store
Description: A modern, premium, responsive WordPress theme for NEVER TOO LATTE PTE. LTD., a Singapore coffee shop and café. Elegant, warm, minimal, mobile-first, and WooCommerce compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nevertoolatte
Tags: cafe, coffee, restaurant, food, business, responsive, custom-logo, custom-menu, custom-colors, featured-images, threaded-comments, translation-ready, footer-widgets, e-commerce, blog
*/

:root{
  --ntl-coffee:#4E342E;
  --ntl-latte:#EED9C4;
  --ntl-cream:#FAF7F2;
  --ntl-white:#FFFFFF;
  --ntl-charcoal:#2F2F2F;
  --ntl-muted:#7a6b62;
  --ntl-border:#e8ddd1;
  --ntl-shadow:0 10px 30px rgba(47,47,47,.08);
  --ntl-radius:14px;
  --ntl-font-sans:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  --ntl-font-serif:'Playfair Display',Georgia,serif;
  --ntl-container:1200px;
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--ntl-font-sans);
  color:var(--ntl-charcoal);
  background:var(--ntl-cream);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--ntl-coffee);text-decoration:none;transition:.25s}
a:hover{color:var(--ntl-charcoal)}
h1,h2,h3,h4,h5,h6{font-family:var(--ntl-font-serif);color:var(--ntl-coffee);margin:0 0 .6em;line-height:1.2;font-weight:700}
h1{font-size:clamp(2rem,4.5vw,3.4rem)}
h2{font-size:clamp(1.6rem,3vw,2.4rem)}
h3{font-size:1.4rem}
p{margin:0 0 1em}

.container{width:100%;max-width:var(--ntl-container);margin:0 auto;padding:0 1.25rem}
.section{padding:5rem 0}
.section-title{text-align:center;margin-bottom:2.5rem}
.section-title .eyebrow{display:inline-block;letter-spacing:.25em;text-transform:uppercase;font-size:.75rem;color:var(--ntl-muted);margin-bottom:.5rem;font-weight:600}
.section-title p{max-width:640px;margin:0 auto;color:var(--ntl-muted)}

.btn{
  display:inline-block;padding:.85rem 1.75rem;border-radius:999px;
  font-weight:600;font-size:.95rem;letter-spacing:.02em;
  background:var(--ntl-coffee);color:var(--ntl-white)!important;
  border:2px solid var(--ntl-coffee);cursor:pointer;transition:.25s;
}
.btn:hover{background:transparent;color:var(--ntl-coffee)!important}
.btn-outline{background:transparent;color:var(--ntl-coffee)!important}
.btn-outline:hover{background:var(--ntl-coffee);color:var(--ntl-white)!important}
.btn-light{background:var(--ntl-latte);color:var(--ntl-coffee)!important;border-color:var(--ntl-latte)}
.btn-light:hover{background:transparent;color:var(--ntl-latte)!important}

/* Header */
.site-header{
  position:sticky;top:0;z-index:100;background:rgba(250,247,242,.92);
  backdrop-filter:saturate(160%) blur(10px);
  border-bottom:1px solid var(--ntl-border);transition:.3s;
}
.site-header.scrolled{box-shadow:var(--ntl-shadow)}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;gap:1rem}
.site-branding a{display:flex;align-items:center;gap:.6rem;color:var(--ntl-coffee)}
.site-branding .brand-mark{
  width:42px;height:42px;border-radius:50%;
  background:var(--ntl-coffee);color:var(--ntl-latte);
  display:grid;place-items:center;font-family:var(--ntl-font-serif);font-weight:700;
}
.site-title{font-family:var(--ntl-font-serif);font-size:1.25rem;font-weight:700;line-height:1}
.site-tagline{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ntl-muted)}

.main-nav ul{list-style:none;display:flex;gap:1.75rem;margin:0;padding:0}
.main-nav a{color:var(--ntl-charcoal);font-weight:500;font-size:.95rem;position:relative}
.main-nav a::after{content:"";position:absolute;left:0;bottom:-6px;width:0;height:2px;background:var(--ntl-coffee);transition:.25s}
.main-nav a:hover::after,.main-nav .current-menu-item>a::after{width:100%}

.header-actions{display:flex;align-items:center;gap:.75rem}

.menu-toggle{
  display:none;background:none;border:0;padding:.5rem;cursor:pointer;
  color:var(--ntl-coffee);
}
.menu-toggle span{display:block;width:24px;height:2px;background:currentColor;margin:5px 0;transition:.25s}

@media(max-width:900px){
  .menu-toggle{display:block}
  .main-nav{
    position:absolute;top:100%;left:0;right:0;background:var(--ntl-cream);
    border-bottom:1px solid var(--ntl-border);
    max-height:0;overflow:hidden;transition:.35s;
  }
  .main-nav.open{max-height:80vh}
  .main-nav ul{flex-direction:column;gap:0;padding:1rem 1.25rem}
  .main-nav li{border-bottom:1px solid var(--ntl-border)}
  .main-nav a{display:block;padding:1rem 0}
}

/* Hero */
.hero{
  position:relative;min-height:88vh;display:flex;align-items:center;
  background:
    linear-gradient(rgba(47,47,47,.55),rgba(78,52,46,.55)),
    url('https://images.unsplash.com/photo-1509042239860-f550ce710b93?auto=format&fit=crop&w=1800&q=80') center/cover no-repeat;
  color:var(--ntl-white);text-align:center;
}
.hero-inner{max-width:820px;margin:0 auto;padding:6rem 1.25rem}
.hero .eyebrow{color:var(--ntl-latte);letter-spacing:.35em;text-transform:uppercase;font-size:.8rem;font-weight:600}
.hero h1{color:var(--ntl-white);margin-top:.75rem}
.hero p{font-size:1.15rem;opacity:.9;margin:1rem auto 2rem;max-width:640px}
.hero .btn{margin:.25rem}
.hero .btn-outline{color:var(--ntl-white)!important;border-color:var(--ntl-white)}
.hero .btn-outline:hover{background:var(--ntl-white);color:var(--ntl-coffee)!important}

/* Cards */
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.5rem}
.card{
  background:var(--ntl-white);border-radius:var(--ntl-radius);
  overflow:hidden;box-shadow:var(--ntl-shadow);transition:.3s;
  display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-6px)}
.card .card-media{aspect-ratio:4/3;overflow:hidden;background:var(--ntl-latte)}
.card .card-media img{width:100%;height:100%;object-fit:cover;transition:.6s}
.card:hover .card-media img{transform:scale(1.06)}
.card .card-body{padding:1.25rem 1.4rem 1.5rem;flex:1;display:flex;flex-direction:column}
.card .card-title{margin:0 0 .35rem;font-size:1.2rem}
.card .card-desc{color:var(--ntl-muted);font-size:.92rem;flex:1}
.card .card-price{margin-top:.9rem;font-family:var(--ntl-font-serif);color:var(--ntl-coffee);font-weight:700;font-size:1.15rem}

/* About */
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center}
.about-grid img{border-radius:var(--ntl-radius);box-shadow:var(--ntl-shadow)}
@media(max-width:800px){.about-grid{grid-template-columns:1fr}}

/* Why us */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.5rem}
.why-item{background:var(--ntl-white);border:1px solid var(--ntl-border);border-radius:var(--ntl-radius);padding:1.75rem;text-align:center;transition:.25s}
.why-item:hover{border-color:var(--ntl-coffee);transform:translateY(-4px)}
.why-item .icon{width:56px;height:56px;border-radius:50%;background:var(--ntl-latte);color:var(--ntl-coffee);display:grid;place-items:center;margin:0 auto 1rem;font-size:1.5rem}
.why-item h3{font-size:1.1rem;margin-bottom:.4rem}
.why-item p{color:var(--ntl-muted);font-size:.92rem;margin:0}

/* Testimonials */
.testimonials{background:var(--ntl-coffee);color:var(--ntl-cream)}
.testimonials h2{color:var(--ntl-latte)}
.testimonials .section-title p{color:rgba(250,247,242,.75)}
.testi-track{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.testi-card{background:rgba(255,255,255,.06);border:1px solid rgba(238,217,196,.2);border-radius:var(--ntl-radius);padding:1.75rem}
.testi-card .stars{color:#F5C066;letter-spacing:2px;margin-bottom:.6rem}
.testi-card p{font-style:italic;color:var(--ntl-cream)}
.testi-card .who{margin-top:1rem;font-weight:600;color:var(--ntl-latte)}

/* Gallery */
.gallery-masonry{columns:3;column-gap:1rem}
.gallery-masonry img{width:100%;margin:0 0 1rem;border-radius:12px;break-inside:avoid;box-shadow:var(--ntl-shadow);transition:.3s}
.gallery-masonry img:hover{transform:scale(1.02)}
@media(max-width:900px){.gallery-masonry{columns:2}}
@media(max-width:560px){.gallery-masonry{columns:1}}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem}
@media(max-width:800px){.contact-grid{grid-template-columns:1fr}}
.contact-info li{list-style:none;margin:0 0 1rem;padding-left:2rem;position:relative;color:var(--ntl-muted)}
.contact-info li strong{color:var(--ntl-charcoal);display:block}
.contact-info li::before{content:"";position:absolute;left:0;top:.35rem;width:20px;height:20px;background:var(--ntl-latte);border-radius:50%}
.contact-form input,.contact-form textarea,.search-form input[type=search]{
  width:100%;padding:.9rem 1rem;border:1px solid var(--ntl-border);
  border-radius:10px;font:inherit;background:var(--ntl-white);margin-bottom:1rem;
}
.contact-form textarea{min-height:140px;resize:vertical}
.map-embed{aspect-ratio:16/10;background:var(--ntl-latte);border-radius:var(--ntl-radius);display:grid;place-items:center;color:var(--ntl-coffee);font-family:var(--ntl-font-serif)}

/* Newsletter */
.newsletter{background:var(--ntl-latte);text-align:center;border-radius:var(--ntl-radius);padding:3rem 1.5rem}
.newsletter form{display:flex;gap:.5rem;max-width:480px;margin:1.25rem auto 0;flex-wrap:wrap;justify-content:center}
.newsletter input{flex:1;min-width:220px;padding:.85rem 1rem;border-radius:999px;border:1px solid var(--ntl-border);font:inherit}

/* Footer */
.site-footer{background:var(--ntl-charcoal);color:#c9c1ba;padding:4rem 0 1rem;margin-top:4rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:2.5rem}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.footer-grid{grid-template-columns:1fr}}
.site-footer h4{color:var(--ntl-latte);font-family:var(--ntl-font-serif);margin-bottom:1rem;font-size:1.1rem}
.site-footer a{color:#c9c1ba}
.site-footer a:hover{color:var(--ntl-latte)}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin-bottom:.5rem}
.socials{display:flex;gap:.6rem;margin-top:1rem}
.socials a{width:38px;height:38px;border-radius:50%;background:rgba(238,217,196,.1);display:grid;place-items:center;color:var(--ntl-latte)}
.socials a:hover{background:var(--ntl-coffee);color:var(--ntl-white)}
.footer-bottom{border-top:1px solid rgba(255,255,255,.08);margin-top:3rem;padding-top:1.5rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:1rem;font-size:.85rem}

/* Back to top */
.back-to-top{
  position:fixed;right:1.25rem;bottom:1.25rem;width:44px;height:44px;
  border-radius:50%;background:var(--ntl-coffee);color:var(--ntl-white);
  display:grid;place-items:center;box-shadow:var(--ntl-shadow);
  opacity:0;pointer-events:none;transition:.3s;border:0;cursor:pointer;z-index:200;
}
.back-to-top.show{opacity:1;pointer-events:auto}

/* Posts / Blog */
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem}
.post-card{background:var(--ntl-white);border-radius:var(--ntl-radius);overflow:hidden;box-shadow:var(--ntl-shadow);transition:.25s}
.post-card:hover{transform:translateY(-4px)}
.post-card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--ntl-latte)}
.post-card .thumb img{width:100%;height:100%;object-fit:cover}
.post-card .body{padding:1.25rem 1.5rem 1.75rem}
.post-card .meta{font-size:.8rem;color:var(--ntl-muted);text-transform:uppercase;letter-spacing:.15em}
.post-card h3{margin:.4rem 0 .6rem;font-size:1.25rem}
.post-card p{color:var(--ntl-muted);font-size:.95rem}

.single-content{background:var(--ntl-white);padding:3rem;border-radius:var(--ntl-radius);box-shadow:var(--ntl-shadow);max-width:820px;margin:2rem auto}
.single-content img{border-radius:10px;margin:1.5rem 0}
.pagination{display:flex;justify-content:center;gap:.5rem;margin:3rem 0}
.pagination .page-numbers{padding:.5rem .9rem;border:1px solid var(--ntl-border);border-radius:8px;color:var(--ntl-coffee)}
.pagination .current{background:var(--ntl-coffee);color:var(--ntl-white);border-color:var(--ntl-coffee)}

/* Breadcrumbs */
.breadcrumbs{font-size:.85rem;color:var(--ntl-muted);padding:1rem 0}
.breadcrumbs a{color:var(--ntl-coffee)}

/* Screen reader */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* WooCommerce quick polish */
.woocommerce ul.products li.product .price{color:var(--ntl-coffee)!important;font-family:var(--ntl-font-serif)}
.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{
  background:var(--ntl-coffee)!important;color:var(--ntl-white)!important;border-radius:999px;padding:.7rem 1.5rem!important;
}
.woocommerce #respond input#submit:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--ntl-charcoal)!important}

/* Animations */
@keyframes fadeUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
.reveal{opacity:0}
.reveal.visible{animation:fadeUp .8s ease forwards}

/* Comments */
.comment-list{list-style:none;padding:0}
.comment-list li{background:var(--ntl-white);border-radius:12px;padding:1.25rem;margin-bottom:1rem;box-shadow:var(--ntl-shadow)}
