/*
Theme Name: Bright Gems Home Nursery
Theme URI: https://example.com/
Author: N-Web Plus
Description: A responsive WordPress theme for Bright Gems Home Nursery with dynamic testimonials, gallery, pages, contact details and mobile navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: bright-gems
*/

:root{
  --bg-blue:#173e9f;
  --bg-red:#e63125;
  --bg-yellow:#ffd43b;
  --bg-ink:#16203a;
  --bg-soft:#fff9df;
  --bg-white:#fff;
  --bg-muted:#667085;
  --bg-radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Nunito,Arial,sans-serif;color:var(--bg-ink);background:#fff;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea{font:inherit}
.container{width:min(1180px,92%);margin-inline:auto}

.site-header{position:sticky;top:0;z-index:999;background:rgba(255,255,255,.97);box-shadow:0 5px 24px rgba(23,62,159,.10)}
.header-row{min-height:88px;display:grid;grid-template-columns:170px 1fr auto;align-items:center;gap:24px}
.site-logo img{width:155px;height:70px;object-fit:contain}
.primary-menu{display:flex;justify-content:center;gap:22px;align-items:center;list-style:none;margin:0;padding:0;font-weight:900;color:#102d74}
.primary-menu a{display:block;padding:10px 0;position:relative}
.primary-menu a:after{content:"";position:absolute;left:50%;right:50%;bottom:1px;height:3px;background:var(--bg-red);transition:.25s;border-radius:2px}
.primary-menu a:hover:after,.primary-menu .current-menu-item>a:after{left:0;right:0}
.header-actions{display:flex;align-items:center;gap:14px}
.header-whatsapp{color:var(--bg-red);font-weight:900;white-space:nowrap;font-size:14px}
.menu-toggle{display:none;border:0;background:var(--bg-blue);color:#fff;width:44px;height:44px;border-radius:12px;font-size:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:13px 20px;border-radius:12px;font-weight:900;text-transform:uppercase;box-shadow:0 8px 20px rgba(0,0,0,.10);transition:.2s}
.btn:hover{transform:translateY(-2px)}
.btn-yellow{background:var(--bg-yellow);color:#1d2435}
.btn-red{background:var(--bg-red);color:#fff}
.btn-blue{background:var(--bg-blue);color:#fff}

.hero{position:relative;min-height:610px;display:flex;align-items:center;background:linear-gradient(90deg,#fff 0 49%,#eef3ff 49% 100%);overflow:hidden}
.hero-grid{display:grid;grid-template-columns:46% 54%;min-height:610px;align-items:center}
.hero-copy{padding:58px 30px 58px 0;position:relative;z-index:2}
.eyebrow{color:var(--bg-red);font-weight:900;text-transform:uppercase;letter-spacing:1.8px;font-size:14px;margin:0 0 10px}
.hero h1,.page-hero h1{font-family:"Baloo 2",cursive;text-transform:uppercase;color:var(--bg-blue);font-size:clamp(44px,5vw,68px);line-height:1.02;margin:0 0 20px}
.hero h1 span{color:var(--bg-red)}
.hero p{font-size:20px;line-height:1.55;font-weight:700;margin:0 0 28px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.hero-image{position:absolute;right:0;top:0;bottom:0;width:54%;background-position:center;background-size:cover}
.hero-image:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.25) 18%,transparent 42%)}

.features{background:var(--bg-yellow);padding:60px 0}
.feature-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}
.feature-card{text-align:center;padding:24px 16px}
.feature-icon{width:94px;height:94px;border-radius:50%;background:#fff;display:grid;place-items:center;margin:0 auto 16px;color:var(--bg-blue);font-size:40px;font-weight:900}
.feature-card h3{font-family:"Baloo 2";font-size:23px;line-height:1.1;text-transform:uppercase;color:var(--bg-blue);margin:0 0 10px}
.feature-card p{font-weight:700;line-height:1.55;margin:0}

.learning-section,.content-section{padding:76px 0}
.learning-grid,.two-col{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center}
.learning-image{min-height:430px;border-radius:32px;background-size:cover;background-position:center;box-shadow:0 20px 50px rgba(23,62,159,.15)}
.section-title{font-family:"Baloo 2";color:var(--bg-blue);font-size:clamp(34px,4vw,48px);line-height:1.08;margin:0 0 16px}
.section-title span{color:var(--bg-red)}
.learning-list{list-style:none;padding:0;margin:24px 0 0;display:grid;gap:12px}
.learning-list li{display:flex;align-items:center;gap:12px;font-weight:800}
.learning-list li:before{content:"✓";width:26px;height:26px;border-radius:50%;background:var(--bg-blue);color:#fff;display:grid;place-items:center}

.testimonials{padding:80px 0;background:radial-gradient(circle at top left,rgba(255,212,59,.35),transparent 35%),linear-gradient(135deg,#fff,#f6f8ff)}
.testimonial-shell{position:relative;max-width:900px;margin:40px auto 0}
.testimonial-viewport{overflow:hidden;border-radius:28px}
.testimonial-track{display:flex;transition:transform .65s ease}
.testimonial-card{min-width:100%;background:#fff;border:3px solid var(--bg-yellow);border-radius:28px;padding:44px;box-shadow:0 18px 48px rgba(23,62,159,.14);position:relative}
.testimonial-card:nth-child(2){border-color:var(--bg-blue)}
.testimonial-card:nth-child(3){border-color:var(--bg-red)}
.quote-mark{position:absolute;right:28px;top:0;font:112px/1 Georgia,serif;color:rgba(23,62,159,.10)}
.stars{color:var(--bg-yellow);font-size:24px;letter-spacing:3px;margin-bottom:18px}
.testimonial-text{font-size:19px;line-height:1.75;font-style:italic;position:relative;z-index:1}
.testimonial-author{margin-top:24px;font-weight:900;color:var(--bg-blue)}
.testimonial-role{font-size:14px;color:var(--bg-muted);font-weight:700}
.testimonial-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border:0;border-radius:50%;background:var(--bg-blue);color:#fff;font-size:32px;cursor:pointer;z-index:4}
.testimonial-arrow.prev{left:-68px}.testimonial-arrow.next{right:-68px}
.testimonial-dots{display:flex;justify-content:center;gap:9px;margin-top:22px}
.testimonial-dot{width:11px;height:11px;border:0;border-radius:50%;background:#cad2e6;padding:0}
.testimonial-dot.active{width:30px;border-radius:999px;background:var(--bg-red)}

.gallery-preview,.gallery-page{padding:76px 0}
.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.gallery-card{background:#fff;border:1px solid #e7eaf2;border-radius:24px;overflow:hidden;box-shadow:0 14px 34px rgba(23,62,159,.10)}
.gallery-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-copy{padding:22px}
.gallery-copy h3{color:var(--bg-blue);font-family:"Baloo 2";font-size:24px;margin:0 0 8px}
.gallery-copy .area{color:var(--bg-red);font-size:13px;text-transform:uppercase;letter-spacing:1.2px;font-weight:900}

.cta-band{padding:56px 0;background:linear-gradient(135deg,var(--bg-yellow),#fff1a6);text-align:center}
.cta-band h2{font-family:"Baloo 2";font-size:clamp(32px,4vw,46px);color:var(--bg-blue);margin:0 0 10px}
.cta-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:22px}

.page-hero{padding:70px 0;text-align:center;background:linear-gradient(135deg,#fff8d9,#fff)}
.page-hero.blue{background:linear-gradient(135deg,var(--bg-blue),#315bc6);color:#fff}
.page-hero.blue h1{color:#fff}
.page-hero.yellow{background:var(--bg-yellow)}
.page-hero p{max-width:760px;margin:0 auto;font-size:19px;font-weight:700;line-height:1.6}
.info-grid,.fees-grid,.staff-grid,.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.info-card,.fee-card,.staff-card,.news-card,.contact-panel,.contact-form{background:#fff;border-radius:24px;padding:28px;box-shadow:0 12px 34px rgba(23,62,159,.10)}
.info-card h3,.fee-card h3,.staff-card h3,.news-card h3{font-family:"Baloo 2";font-size:26px;color:var(--bg-blue);margin:0 0 10px}
.fee-card.featured{border:4px solid var(--bg-yellow)}
.price{font-family:"Baloo 2";font-size:36px;color:var(--bg-red);margin:8px 0}
.contact-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:28px}
.contact-form{display:grid;gap:16px}
.contact-form input,.contact-form textarea{width:100%;padding:14px;border:2px solid #dde3f1;border-radius:12px}
.contact-form label{font-weight:900;color:var(--bg-blue)}
.site-footer{background:#102f7f;color:#fff;padding:48px 0}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.footer-logo img{width:180px;background:#fff;border-radius:10px;margin-bottom:14px}
.site-footer h3{font-family:"Baloo 2";font-size:24px;margin:0 0 12px}
.site-footer p{line-height:1.6;margin:7px 0}
.whatsapp-float{position:fixed;right:20px;bottom:20px;width:56px;height:56px;border-radius:50%;background:#25d366;color:#fff;display:grid;place-items:center;font-weight:900;box-shadow:0 10px 25px rgba(0,0,0,.25);z-index:60}

@media(max-width:1050px){
  .header-row{grid-template-columns:145px 1fr auto;gap:14px}
  .primary-menu{gap:14px;font-size:14px}
  .header-whatsapp{display:none}
  .feature-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:820px){
  .header-row{display:flex;min-height:72px}
  .site-logo img{width:120px;height:54px}
  .menu-toggle{display:inline-grid;place-items:center;margin-left:auto}
  .header-actions{display:none}
  .primary-nav{position:fixed;top:72px;left:12px;right:12px;display:none;background:#fff;border-radius:16px;padding:14px;box-shadow:0 18px 45px rgba(0,0,0,.18);max-height:calc(100vh - 90px);overflow:auto}
  .primary-nav.open{display:block}
  .primary-menu{flex-direction:column;align-items:stretch;gap:2px}
  .primary-menu a{padding:12px 14px;border-radius:10px}
  .hero{min-height:auto}
  .hero-grid{grid-template-columns:1fr;min-height:auto}
  .hero-copy{padding:48px 0}
  .hero-image{position:relative;width:100%;height:430px}
  .feature-grid{grid-template-columns:1fr 1fr}
  .learning-grid,.two-col,.contact-grid{grid-template-columns:1fr}
  .gallery-grid,.info-grid,.fees-grid,.staff-grid,.news-grid{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
  .testimonial-arrow{top:auto;bottom:-62px;transform:none}
  .testimonial-arrow.prev{left:calc(50% - 58px)}.testimonial-arrow.next{right:calc(50% - 58px)}
  .testimonial-dots{margin-top:76px}
}
@media(max-width:520px){
  .container{width:92%}
  .hero h1{font-size:40px}
  .hero p{font-size:17px}
  .hero-image{height:340px}
  .feature-grid,.gallery-grid,.info-grid,.fees-grid,.staff-grid,.news-grid,.footer-grid{grid-template-columns:1fr}
  .testimonial-card{padding:34px 24px}
  .testimonial-text{font-size:16px}
  .gallery-grid{gap:24px}
}
