/*
Theme Name: Inti Arts
Theme URI: https://art.inti.foundation
Author: Inti Arts
Author URI: https://art.inti.foundation
Description: Theme thanh tịnh và tỉnh thức cho Inti Arts – nơi nghệ thuật trở thành hành trình quay về. Tông màu tím – teal – vàng kim lấy cảm hứng từ logo "Mặt Trời Bên Trong".
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inti-arts
Tags: art, music, one-column, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --purple: #7c4dbc;
  --purple-deep: #5f37a3;
  --teal: #3bb8be;
  --teal-deep: #2a949a;
  --gold: #dda43a;
  --gold-soft: #f0c96b;

  --ink: #2a2540;
  --ink-soft: #5a5470;
  --muted: #8b849c;

  --paper: #fbf9f6;
  --paper-2: #f4f0ff;
  --surface: #ffffff;
  --line: #ece7f3;

  --grad: linear-gradient(120deg, var(--purple) 0%, var(--teal) 100%);
  --grad-soft: linear-gradient(135deg, #f3ecff 0%, #e8f7f7 100%);

  --shadow-sm: 0 4px 16px rgba(60, 40, 100, 0.06);
  --shadow-md: 0 18px 48px rgba(70, 45, 120, 0.12);

  --wrap: 1140px;
  --radius: 20px;
  --radius-lg: 28px;

  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.2em; }

a { color: var(--purple-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-deep); }

img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 1rem;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 77, 188, .28);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(124, 77, 188, .34); }
.btn-ghost {
  background: transparent;
  color: var(--purple-deep);
  border-color: rgba(124, 77, 188, .35);
}
.btn-ghost:hover { background: rgba(124, 77, 188, .07); color: var(--purple-deep); transform: translateY(-2px); }

/* =========================================================
   3. Header / navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 46px; height: 46px; }
.brand .brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1;
}
.brand .brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 4px;
}

.main-nav ul { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.main-nav a {
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink-soft);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--grad);
  transition: width .25s ease;
  border-radius: 2px;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .25s;
}
.nav-toggle span + span { margin-top: 6px; }

/* =========================================================
   4. Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6rem);
  background: var(--grad-soft);
}
.hero::before {
  /* the inner sun glow */
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(240,201,107,.55) 0%, rgba(240,201,107,0) 62%);
  filter: blur(6px);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo {
  width: clamp(120px, 20vw, 168px);
  height: auto;
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 10px 26px rgba(124, 77, 188, .22));
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: .01em;
  margin-bottom: .4rem;
}
.hero .lead-en {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--purple-deep);
  margin-bottom: 1.4rem;
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Section scaffolding */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-alt { background: var(--surface); }

/* =========================================================
   5. Intro / about
   ========================================================= */
.intro-quote {
  text-align: center;
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  color: var(--ink);
  max-width: 960px;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
}
@media (min-width: 992px) {
  .intro-quote { white-space: nowrap; max-width: none; }
}
.intro-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.12rem;
}
.intro-body p { margin-bottom: 1.5rem; }
.intro-echo {
  text-align: center;
  margin: 2.5rem auto 0;
  max-width: 560px;
}
.intro-echo span {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  color: var(--ink);
  line-height: 1.9;
}
.intro-echo .final {
  margin-top: 1.4rem;
  font-weight: 600;
}

/* =========================================================
   6. Pillars
   ========================================================= */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .28s ease, box-shadow .28s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pillar .num {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
  box-shadow: 0 10px 22px rgba(124, 77, 188, .26);
}
.pillar h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

/* =========================================================
   7. Video gallery
   ========================================================= */
.video-groups { display: grid; gap: 3rem; }
.video-group h3 {
  font-size: 1.5rem;
  display: flex; align-items: center; gap: .8rem;
  margin-bottom: 1.5rem;
}
.video-group h3::before {
  content: "";
  width: 40px; height: 3px;
  border-radius: 3px;
  background: var(--grad);
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.video-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62px; height: 62px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
  transition: transform .25s ease, background .25s ease;
}
.video-card:hover .video-thumb .play { transform: scale(1.08); background: #fff; }
.video-thumb .play svg { width: 24px; height: 24px; margin-left: 3px; fill: var(--purple); }
.video-meta { padding: 1.1rem 1.3rem 1.3rem; }
.video-meta .tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-deep);
}
.video-meta h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  margin: .3rem 0 0;
  line-height: 1.4;
}

/* =========================================================
   8. CTA band
   ========================================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: var(--grad);
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -80px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(240,201,107,.5), transparent 65%);
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 2rem; font-size: 1.12rem; }
.cta-band .btn-primary { background: #fff; color: var(--purple-deep); }
.cta-band .btn-primary:hover { color: var(--purple-deep); }

/* =========================================================
   9. Generic content (page.php / single.php)
   ========================================================= */
.page-hero {
  background: var(--grad-soft);
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.entry { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.entry img { border-radius: var(--radius); margin: 1.5rem 0; }
.entry h2 { margin-top: 2rem; }
.entry blockquote {
  border-left: 3px solid var(--teal);
  margin: 1.5rem 0;
  padding: .5rem 0 .5rem 1.5rem;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
}
.entry ul, .entry ol { padding-left: 1.4rem; }
.entry li { margin-bottom: .5rem; }

/* Posts list */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.post-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 1.4rem 1.5rem 1.6rem; }
.post-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.post-card .date { font-size: .82rem; color: var(--muted); }

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: clamp(3rem, 6vw, 4rem) 0 2rem;
}
.site-footer .foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer .brand .brand-name { color: #fff; }
.site-footer .foot-tag {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,.86);
}
.site-footer nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-footer nav a { color: rgba(255,255,255,.72); font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.site-footer .copy {
  padding-top: 1.8rem; text-align: center;
  font-size: .86rem; color: rgba(255,255,255,.5);
}

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 782px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: .5rem 24px 1.2rem; }
  .main-nav li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: .9rem 0; }
  .main-nav a::after { display: none; }
  .site-footer .foot-top { flex-direction: column; align-items: flex-start; }
}
