/* ===================================================================
   Flora — flora.aivos.tech  (multilingual, image-rich)
   Palette from the Flora logo (amber sunflower + dark navy hands)
   =================================================================== */

:root {
  --amber:      #E8A020;
  --amber-soft: #F2B84B;
  --amber-deep: #C9821A;
  --navy:       #1D3A45;
  --navy-2:     #22434F;
  --navy-deep:  #142932;
  --cream:      #FBF7EF;
  --cream-2:    #FFFDF9;
  --ink:        #22323A;
  --muted:      #5B6B72;
  --line:       rgba(29, 58, 69, 0.12);
  --white:      #ffffff;

  --shadow-sm: 0 2px 8px rgba(20, 41, 50, 0.08);
  --shadow-md: 0 12px 30px rgba(20, 41, 50, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 41, 50, 0.18);

  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1160px;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Richer background than flat pale yellow: layered warm gradients */
  background-color: #F6EFE1;
  background-image:
    radial-gradient(1100px 700px at 88% -8%, rgba(232,160,32,.16), transparent 60%),
    radial-gradient(900px 600px at -10% 12%, rgba(29,58,69,.06), transparent 55%),
    radial-gradient(800px 800px at 50% 120%, rgba(232,160,32,.10), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:lang(zh), :lang(ko) { line-height: 1.75; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--navy); font-weight: 800; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-primary { background: var(--amber); color: var(--navy-deep); box-shadow: 0 8px 20px rgba(232,160,32,.35); }
.btn-primary:hover { background: var(--amber-soft); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.6); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 239, 0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(251,247,239,.95); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--navy); font-weight: 800; }
.brand-text small { font-size: .72rem; color: var(--amber-deep); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; flex-wrap: nowrap; }
.main-nav a { display: block; font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--navy-2); padding: 8px 11px; border-radius: 999px; white-space: nowrap; transition: background .16s, color .16s; }
.main-nav a:hover { background: rgba(232,160,32,.14); color: var(--navy); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
  box-shadow: var(--shadow-sm); transition: border-color .16s, transform .16s;
}
.lang-btn:hover { border-color: var(--amber); transform: translateY(-1px); }
.lang-flag { font-size: 1.05rem; }
.lang-label { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-caret { font-size: .7rem; color: var(--muted); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .94rem; color: var(--navy-2);
  padding: 10px 12px; border-radius: 9px; transition: background .14s;
}
.lang-menu button:hover, .lang-menu button.active { background: rgba(232,160,32,.16); color: var(--navy); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(246,239,225,.90), rgba(246,239,225,.965)),
    url("assets/img/class-group.jpg");
  background-size: cover; background-position: center 30%;
}
.hero-glow { position: absolute; top: -220px; right: -160px; width: 620px; height: 620px; z-index: 0; background: radial-gradient(circle, rgba(232,160,32,.30), transparent 62%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .84rem; font-weight: 700; color: var(--navy-2); box-shadow: var(--shadow-sm); }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(232,160,32,.22); }

.hero-title { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 20px 0 18px; letter-spacing: -.02em; }
.hero-title .grad { background: linear-gradient(105deg, var(--amber-deep), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.14rem; color: var(--muted); max-width: 560px; }
.hero-sub strong { color: var(--navy); }
.hero-actions { display: flex; gap: 14px; margin: 28px 0 34px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 30px; list-style: none; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); }
.stat-label { font-size: .86rem; color: var(--muted); max-width: 160px; }

.hero-visual { display: flex; justify-content: center; }
.hero-card { background: linear-gradient(160deg, #fff, var(--cream-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 34px; text-align: center; box-shadow: var(--shadow-lg); position: relative; max-width: 360px; width: 100%; }
.hero-card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 2px; background: linear-gradient(150deg, rgba(232,160,32,.5), transparent 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-logo { width: 168px; height: 168px; object-fit: contain; margin: 0 auto 16px; animation: floaty 5s ease-in-out infinite; }
.hero-card-title { font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--navy); }
.hero-card-sub { color: var(--amber-deep); font-weight: 700; font-size: .96rem; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trust strip ---------- */
.trust { background: linear-gradient(90deg, var(--navy-deep), var(--navy)); color: #fff; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; padding: 18px 22px; }
.trust-item { font-family: var(--font-head); font-weight: 600; font-size: .96rem; opacity: .95; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; position: relative; }
.section-soft { background: linear-gradient(180deg, rgba(255,253,249,.75), rgba(251,247,239,.35)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-deep); background: rgba(232,160,32,.14); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

/* Dark section (mission) with photo overlay */
.section-dark { color: #fff; overflow: hidden; }
.section-dark .section-bg { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(20,41,50,.90), rgba(16,33,40,.94)), url("assets/img/workshop-2.jpg"); background-size: cover; background-position: center; }
.section-dark .container { position: relative; z-index: 1; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.8); }
.section-dark .section-tag { background: rgba(232,160,32,.25); color: var(--amber-soft); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.about-copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.about-copy p strong { color: var(--navy); }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.mini-icon { font-size: 1.9rem; display: block; margin-bottom: 10px; }
.mini-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.mini-card p { font-size: .95rem; color: var(--muted); }

/* ---------- Impact (on dark) ---------- */
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.impact-item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px 22px; text-align: center; backdrop-filter: blur(4px); border-top: 4px solid var(--amber); }
.impact-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); color: #fff; line-height: 1; }
.impact-desc { display: block; margin-top: 12px; color: rgba(255,255,255,.82); font-size: .96rem; }

/* ---------- App embed ---------- */
.app-frame { background: var(--navy-deep); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.06); }
.app-frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: rgba(255,255,255,.05); }
.app-frame-bar span[class^="dot-"] { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.app-frame-url { margin-left: 12px; color: rgba(255,255,255,.7); font-size: .86rem; font-family: var(--font-head); background: rgba(255,255,255,.08); padding: 4px 14px; border-radius: 999px; }
.app-frame-body { position: relative; width: 100%; height: 74vh; min-height: 560px; background: #0a0a1a; }
.app-frame-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.app-note { text-align: center; margin-top: 18px; color: var(--muted); }
.app-note a { color: var(--amber-deep); font-weight: 700; }
.app-note a:hover { text-decoration: underline; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto 56px; padding-left: 6px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--amber), var(--line)); }
.tl-item { position: relative; padding: 0 0 30px 52px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-marker { position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); border: 4px solid var(--cream-2); box-shadow: 0 0 0 2px var(--amber); }
.tl-content { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow-sm); }
.tl-date { font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .05em; }
.tl-content h3 { font-size: 1.18rem; margin: 6px 0; }
.tl-content p { color: var(--muted); font-size: .98rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; margin: 0; }
.g-item.g-lg { grid-column: span 2; grid-row: span 2; aspect-ratio: 16/11; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 14px; color: #fff; font-size: .92rem; font-weight: 600; font-family: var(--font-head); background: linear-gradient(transparent, rgba(20,41,50,.85)); }

/* ---------- Awards (image cards) ---------- */
.awards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 940px; margin: 0 auto; }
.award-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s; }
.award-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.award-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.award-media img { width: 100%; height: 100%; object-fit: cover; }
.award-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(20,41,50,.35)); }
.award-badge { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .84rem; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.award-body { padding: 24px 26px 28px; }
.award-body h3 { font-size: 1.5rem; margin-bottom: 8px; }
.award-body p { color: var(--muted); }
.award-link { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 700; color: var(--amber-deep); }
.award-link:hover { text-decoration: underline; }

/* ---------- Press (thumbnail cards) ---------- */
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 940px; margin: 0 auto; }
.press-card { display: flex; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.press-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(232,160,32,.4); }
.press-thumb { flex: 0 0 132px; overflow: hidden; background: var(--navy-deep); }
.press-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.press-card:hover .press-thumb img { transform: scale(1.07); }
.press-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 7px; }
.press-source { font-family: var(--font-head); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--amber-deep); }
.press-title { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; color: var(--navy); line-height: 1.3; }
.press-cta { font-size: .88rem; color: var(--muted); font-weight: 700; margin-top: auto; }

/* ---------- CTA band ---------- */
.cta-band { color: #fff; padding: 78px 0; position: relative; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(135deg, rgba(20,41,50,.93), rgba(16,33,40,.96)), url("assets/img/class-flowers.jpg"); background-size: cover; background-position: center; }
.cta-band::before { content: ""; position: absolute; top: -140px; left: -80px; width: 460px; height: 460px; z-index: 1; background: radial-gradient(circle, rgba(232,160,32,.24), transparent 62%); }
.cta-inner { text-align: center; position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.cta-inner p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 14px 0 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: var(--amber-soft); }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a, .footer-col li { font-size: .95rem; color: rgba(255,255,255,.72); transition: color .16s; }
.footer-col a:hover { color: var(--amber-soft); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; color: rgba(255,255,255,.6); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: -1; }
  .hero-logo { width: 130px; height: 130px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .main-nav { margin-left: 0; }
  .main-nav, .nav-cta { display: none; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .main-nav { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--cream-2); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); margin: 0; }
  .site-header.nav-open .main-nav ul { flex-direction: column; padding: 14px; gap: 4px; }
  .site-header.nav-open .main-nav a { display: block; padding: 12px 16px; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .g-item.g-lg { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .awards-grid, .press-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr 1fr; }
  .app-frame-body { height: 70vh; min-height: 480px; }
}
@media (max-width: 420px) { .lang-label { display: none; } }
@media (max-width: 460px) {
  .section { padding: 60px 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-cards { grid-template-columns: 1fr; }
  .press-card { flex-direction: column; }
  .press-thumb { flex-basis: 160px; width: 100%; }
  .hero-stats { gap: 20px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
