/*
Theme Name: Little Bamboo Montessori
Theme URI: https://lbm.edu.vn
Author: Little Bamboo Montessori
Description: Giao diện WordPress riêng cho trường mầm non Little Bamboo Montessori.
Version: 1.0.0
Text Domain: little-bamboo
*/

:root {
  --forest: #244b3b;
  --leaf: #3d7258;
  --sage: #dce8d7;
  --cream: #fbf7ec;
  --paper: #fffdf7;
  --clay: #c86645;
  --gold: #e8b85d;
  --ink: #20312a;
  --muted: #647168;
  --line: rgba(36, 75, 59, .14);
  --shadow: 0 24px 70px rgba(31, 65, 50, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Be Vietnam Pro", system-ui, sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--leaf); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--clay); }
.section { padding: 108px 0; }
.section-title { margin: 14px 0 22px; max-width: 720px; font: 700 clamp(2.25rem, 5vw, 4rem)/1.1 "Lora", Georgia, serif; letter-spacing: -.035em; }
.section-intro { max-width: 680px; color: var(--muted); font-size: 1.05rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s ease; }
.site-header.scrolled { background: rgba(255,253,247,.92); box-shadow: 0 8px 30px rgba(31,65,50,.08); backdrop-filter: blur(14px); }
.nav-wrap { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; line-height: 1.15; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50% 50% 46% 54%; background: var(--forest); color: #fff; font: 700 1.3rem/1 "Lora", serif; box-shadow: 0 7px 22px rgba(36,75,59,.22); }
.brand span small { display: block; margin-top: 3px; color: var(--clay); font-size: .67rem; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; font-size: .92rem; font-weight: 700; }
.nav a { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--clay); transition: .25s ease; }
.nav a:not(.btn):hover::after { right: 0; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; color: var(--forest); font-size: 1.7rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 800; box-shadow: 0 12px 30px rgba(36,75,59,.2); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--leaf); }
.btn-light { background: #fff; color: var(--forest); box-shadow: none; border-color: var(--line); }

.hero { min-height: 820px; display: grid; align-items: center; position: relative; overflow: hidden; background: var(--cream); }
.hero::after { content: ""; position: absolute; width: 380px; height: 380px; left: -170px; bottom: -140px; border-radius: 50%; border: 65px solid rgba(232,184,93,.18); }
.hero-media { position: absolute; inset: 0 0 0 42%; background: linear-gradient(90deg, var(--cream) 0%, rgba(251,247,236,.28) 24%, transparent 46%), url("assets/images/hero-montessori.png") center/cover no-repeat; }
.hero-content { position: relative; z-index: 2; width: min(1160px, calc(100% - 40px)); margin: 84px auto 0; }
.hero-copy { width: min(610px, 55%); }
.hero h1 { margin: 16px 0 24px; font: 700 clamp(3.4rem, 7vw, 6.7rem)/.93 "Lora", Georgia, serif; letter-spacing: -.06em; }
.hero h1 em { color: var(--clay); font-style: italic; font-weight: 500; }
.hero p { max-width: 560px; margin: 0 0 32px; color: #586860; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 36px; font-size: .88rem; font-weight: 700; color: var(--leaf); }
.hero-note::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: var(--sage); box-shadow: inset 0 0 0 10px var(--paper); }

.values { background: var(--forest); color: #fff; padding: 36px 0; }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.value { padding: 10px 28px; border-left: 1px solid rgba(255,255,255,.18); }
.value:first-child { border-left: 0; }
.value strong { display: block; font: 700 1.2rem/1.3 "Lora", serif; }
.value span { color: rgba(255,255,255,.68); font-size: .84rem; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 88px; align-items: center; }
.story-card { min-height: 520px; position: relative; padding: 56px; display: flex; align-items: flex-end; border-radius: 220px 220px 28px 28px; overflow: hidden; background: linear-gradient(160deg, #aec7a2, #edf1db); box-shadow: var(--shadow); }
.story-card::before { content: ""; position: absolute; inset: 44px; border: 1px solid rgba(255,255,255,.7); border-radius: 190px 190px 18px 18px; }
.bamboo { position: absolute; inset: auto 10% 0; height: 88%; opacity: .9; background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(36,75,59,.16) 40px 47px, transparent 47px 84px); transform: skew(-7deg); }
.story-quote { position: relative; margin: 0; color: var(--forest); font: 700 2rem/1.25 "Lora", serif; }
.story-quote small { display: block; margin-top: 18px; font: 700 .75rem/1.4 "Be Vietnam Pro", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.ticks { display: grid; gap: 20px; margin-top: 32px; }
.tick { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.tick b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--sage); }
.tick strong { display: block; margin-bottom: 5px; }
.tick p { margin: 0; color: var(--muted); }

.programs { background: #f1f2e8; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.program { min-height: 390px; position: relative; overflow: hidden; padding: 34px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.program:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.program:nth-child(2) { background: var(--forest); color: #fff; }
.program .number { color: var(--clay); font: 700 3rem/1 "Lora", serif; opacity: .8; }
.program h3 { margin: 76px 0 14px; font: 700 1.7rem/1.2 "Lora", serif; }
.program p { color: var(--muted); }
.program:nth-child(2) p { color: rgba(255,255,255,.72); }
.program .age { position: absolute; left: 34px; bottom: 30px; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.day-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.timeline { display: grid; gap: 0; margin-top: 38px; }
.time-row { display: grid; grid-template-columns: 88px 20px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.time-row time { color: var(--clay); font-weight: 800; }
.time-row i { width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(232,184,93,.18); }
.day-art { min-height: 560px; position: relative; border-radius: 28px; background: var(--cream); border: 1px solid var(--line); overflow: hidden; }
.sun { width: 180px; height: 180px; position: absolute; right: 48px; top: 48px; border-radius: 50%; background: var(--gold); }
.hill { position: absolute; width: 130%; height: 55%; left: -15%; bottom: -18%; border-radius: 50% 50% 0 0; background: var(--leaf); transform: rotate(-6deg); }
.hill.two { left: -10%; bottom: -30%; background: var(--forest); transform: rotate(9deg); }
.day-art blockquote { position: absolute; z-index: 2; left: 42px; right: 42px; bottom: 50px; margin: 0; color: #fff; font: 700 2rem/1.25 "Lora", serif; }

.cta { padding: 100px 0; background: var(--clay); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.cta h2 { margin: 0 0 12px; max-width: 760px; font: 700 clamp(2.3rem, 5vw, 4.4rem)/1.05 "Lora", serif; letter-spacing: -.04em; }
.cta p { margin: 0; color: rgba(255,255,255,.78); }
.cta .btn { background: #fff; color: var(--clay); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-item strong { display: block; margin-top: 4px; font-size: 1.06rem; }
.visit-card { padding: 46px; border-radius: 28px; background: var(--forest); color: #fff; box-shadow: var(--shadow); }
.visit-card h3 { margin: 0 0 14px; font: 700 2rem/1.2 "Lora", serif; }
.visit-card p { color: rgba(255,255,255,.72); }
.visit-card .btn { margin-top: 14px; background: var(--gold); color: var(--forest); box-shadow: none; }

.site-footer { padding: 38px 0; background: #182f26; color: rgba(255,255,255,.7); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; font-size: .82rem; }
.footer-grid strong { color: #fff; }

@media (max-width: 920px) {
  .nav { position: fixed; inset: 0; padding: 120px 32px 40px; flex-direction: column; align-items: stretch; background: var(--paper); transform: translateX(100%); transition: .3s ease; }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.25rem; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .hero { min-height: 860px; align-items: end; }
  .hero-media { inset: 0 0 48% 0; background: linear-gradient(0deg, var(--cream), transparent 46%), url("assets/images/hero-montessori.png") 60% center/cover no-repeat; }
  .hero-content { margin-bottom: 68px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { border-left: 0; }
  .about-grid, .day-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .program-grid { grid-template-columns: 1fr; }
  .program { min-height: 320px; }
  .cta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 76px 0; }
  .nav-wrap { height: 76px; }
  .brand span { font-size: .88rem; }
  .brand-mark { width: 42px; height: 42px; }
  .hero-content { width: min(100% - 28px, 1160px); }
  .hero h1 { letter-spacing: -.045em; }
  .value-grid { grid-template-columns: 1fr; }
  .value, .value:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding: 16px 0; }
  .value:first-child { border-top: 0; }
  .story-card { min-height: 420px; padding: 34px; }
  .program { padding: 28px; }
  .day-art { min-height: 430px; }
  .visit-card { padding: 32px; }
  .footer-grid { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
