/*
Theme Name: Ancré
Theme URI: https://ancre-studio.khanhmei583.chatgpt.site
Author: Ancré
Description: Theme WordPress dành cho Ancré — Mat Pilates & Body Alignment.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ancre
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, responsive-layout, blog
*/

:root {
  --green: #354024;
  --green-2: #4f5b3b;
  --moss: #889063;
  --tan: #cfbb99;
  --bone: #e5d7c4;
  --cream: #f5f0e6;
  --paper: #faf7f0;
  --ink: #263018;
  --line: rgba(53, 64, 36, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.55; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 4.2vw; background: rgba(246, 241, 231, .95); border-bottom: 1px solid rgba(53, 64, 36, .1); backdrop-filter: blur(14px); }
.site-branding { min-width: 150px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 180px; max-height: 46px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 26px; letter-spacing: .16em; }
.nav-list { display: flex; gap: 34px; align-items: center; padding: 0; margin: 0; list-style: none; font-size: 12px; }
.nav-list a { position: relative; display: block; padding: 28px 0 24px; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 19px; height: 1px; background: var(--green); transition: right .25s ease; }
.nav-list a:hover::after, .nav-list a:focus-visible::after { right: 0; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }

.button, .wp-block-button__link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: #fffdf7; font-size: 12px; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover, .wp-block-button__link:hover { transform: translateY(-2px); background: #465231; color: #fff; }
.button.secondary { background: rgba(250, 247, 240, .76); color: var(--green); }

.hero { position: relative; min-height: 760px; padding: 76px 5vw 0; display: flex; align-items: center; overflow: hidden; background-image: var(--hero-image); background-size: cover; background-position: center 44%; }
.hero::before { content: ""; position: absolute; inset: 76px 0 0; background: linear-gradient(90deg, #f8f4ea 0%, #f8f4ea 50%, rgba(248, 244, 234, .86) 59%, rgba(248, 244, 234, 0) 78%); }
.hero-copy { position: relative; z-index: 2; width: min(610px, 53vw); padding: 66px 0 84px; }
.eyebrow { margin: 0 0 24px; display: flex; align-items: center; gap: 13px; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--green); }
h1, h2, .manifesto-quote, .entry-content h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; line-height: 1.05; }
h1 { font-size: clamp(48px, 5.25vw, 76px); }
h2 { font-size: clamp(38px, 4vw, 60px); }
.hero-intro, .section-copy > p, .method-copy > p { max-width: 520px; margin: 28px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.micro-note { margin-top: 20px; font-size: 11px; line-height: 1.65; }
.micro-note span { margin-right: 7px; font-size: 16px; }
.hero-caption { position: absolute; z-index: 2; left: 5vw; right: 5vw; bottom: 26px; display: flex; align-items: center; gap: 20px; font: italic 17px Georgia, serif; }
.hero-caption span { height: 1px; flex: 1; background: var(--line); }

.section-shell { padding: 110px 5vw; }
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 7vw; align-items: center; background: linear-gradient(105deg, #f8f3e8, #faf7f1 70%); }
.section-copy > p { max-width: 610px; }
.body-line { margin: 0; justify-self: center; }
.body-line img { width: min(400px, 34vw); mix-blend-mode: multiply; opacity: .86; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.mini-grid article, .method-grid article { border: 1px solid var(--line); background: rgba(255,255,255,.3); border-radius: 4px; padding: 22px 18px; }
.mini-icon, .method-grid span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--green); border-radius: 50%; font: 12px Georgia, serif; }
.mini-grid h3, .method-grid h3 { margin: 15px 0 6px; font: 17px Georgia, serif; font-weight: 400; }
.mini-grid p, .method-grid p { margin: 0; font-size: 11px; color: #526044; }

.method-section { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 5vw; overflow: hidden; background: #e9ddc8; padding-right: 0; }
.method-copy { padding-right: 1vw; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }
.method-grid article { padding: 18px 14px; background: rgba(250,247,240,.72); }
.method-photo { min-height: 560px; background-position: center; background-size: cover; background-repeat: no-repeat; box-shadow: inset 45px 0 55px -55px var(--green); }

.journey { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.journey-grid article { position: relative; overflow: hidden; min-height: 470px; padding: 30px 30px 230px; border: 1px solid var(--line); border-radius: 8px; background: #f5eddf; }
.journey-grid h3 { margin: 0 0 10px 42px; font: 23px Georgia, serif; font-weight: 400; }
.journey-grid p { margin-left: 42px; max-width: 280px; }
.journey-grid .step { position: absolute; top: 28px; left: 25px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: white; font: 13px Georgia, serif; }
.journey-grid img { position: absolute; inset: auto 18px 18px; width: calc(100% - 36px); height: 205px; object-fit: cover; border-radius: 5px; }

.difference { background: #f7f2e9; border-top: 1px solid var(--line); }
.difference-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.difference-grid article { padding: 0 32px; border-left: 1px solid var(--line); }
.difference-grid article:first-child { padding-left: 0; border-left: 0; }
.difference-grid article:last-child { padding-right: 0; }
.line-icon { display: block; min-height: 55px; font: 43px/1 Georgia, serif; color: var(--green-2); }
.difference-grid h3 { min-height: 54px; margin: 15px 0 12px; font: 21px/1.22 Georgia, serif; font-weight: 400; }
.difference-grid p { margin: 0; font-size: 12px; color: #4f5b47; }

.proof { background: #eee4d4; }
.proof-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; }
.proof-note { max-width: 320px; margin: 0; padding-left: 22px; border-left: 1px solid var(--line); font-size: 12px; }
.proof-layout { display: grid; grid-template-columns: 2.2fr .6fr .7fr; gap: 18px; margin-top: 52px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quotes blockquote, .progress-card, .before-after { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: rgba(250,247,240,.72); }
.quotes blockquote { font: 15px/1.55 Georgia, serif; }
.quotes cite { display: block; margin-top: 22px; font: 10px/1.4 "Helvetica Neue", Arial, sans-serif; }
.progress-card, .before-after { text-align: center; }
.progress-card > p, .before-after > p { margin: 0 0 15px; font-size: 10px; font-weight: 600; }
.progress-ring { width: 94px; height: 94px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 68%, rgba(53,64,36,.14) 68% 100%); position: relative; }
.progress-ring::after { content: ""; position: absolute; inset: 7px; border-radius: inherit; background: #f7f2e9; }
.progress-ring strong { position: relative; z-index: 1; font: 24px Georgia, serif; }
.progress-card span { display: block; font: 15px Georgia, serif; }
.progress-card small { font-size: 9px; color: #68705e; }
.before-after img { width: 100%; height: 145px; object-fit: cover; object-position: center; }
.before-after div { display: flex; justify-content: space-between; margin-top: 12px; font-size: 9px; }

.practice { text-align: center; background: var(--paper); }
.practice .eyebrow { justify-content: flex-start; text-align: left; }
.practice > h2 { font-size: clamp(38px, 4.4vw, 64px); }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; text-align: left; }
.practice-grid article { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f7f0e4; }
.practice-grid img { display: block; width: 100%; height: 185px; object-fit: cover; }
.practice-grid div { min-height: 150px; padding: 24px; }
.practice-grid h3 { margin: 0 0 8px; font: 24px Georgia, serif; font-weight: 400; }
.practice-grid p { margin: 0; color: #536047; }
.practice-cta { margin-top: 30px; }
.practice-note { margin: 14px 0 0; font-size: 11px; }

.manifesto { display: grid; grid-template-columns: 1fr .9fr; gap: 5vw; align-items: center; background: #f8f4eb; }
.manifesto > div > p:last-child { max-width: 610px; margin-top: 32px; }
.manifesto-quote { font-size: clamp(45px, 5.2vw, 76px); }
.manifesto figure { margin: 0; justify-self: center; }
.manifesto img { display: block; width: min(430px, 38vw); mix-blend-mode: multiply; }
.brand-line { min-height: 150px; padding: 30px 5vw; display: flex; justify-content: center; align-items: center; gap: 20px; background: linear-gradient(90deg, #e3d5bd, #f0e6d5, #d9c7a7); text-align: center; }
.brand-line strong { font: 26px Georgia, serif; letter-spacing: .12em; }
.brand-line p { margin: 0; font: 22px Georgia, serif; }
.brand-line em { font-size: 15px; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: center; background: var(--paper); }
.contact-copy > p:not(.eyebrow) { max-width: 550px; margin: 28px 0; }
.contact-form { position: relative; padding: 34px; border: 1px solid var(--line); border-radius: 8px; background: #f8f1e5; }
.contact-form h3 { margin: 0 0 22px; font: 24px Georgia, serif; font-weight: 400; }
.contact-form label { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .04em; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border: 1px solid rgba(53,64,36,.24); border-radius: 3px; background: rgba(255,255,255,.52); color: var(--ink); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(53,64,36,.08); }
.contact-form .button { width: 100%; margin-top: 16px; }
.hp-field { position: absolute !important; left: -9999px !important; }
.form-message { margin: 14px 0 0; font-size: 11px; }
.form-message.success { color: #345128; }
.form-message.error { color: #8b3027; }

.footer { display: grid; grid-template-columns: 2fr repeat(3, .7fr); gap: 5vw; padding: 65px 5vw 24px; border-top: 1px solid var(--line); background: #eee3d2; }
.footer-brand p { max-width: 340px; margin: 18px 0 0; font-size: 11px; }
.footer h3 { margin: 0 0 16px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.footer > div:not(.footer-brand):not(.footer-bottom) a { display: block; margin: 9px 0; font-size: 11px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 9px; }

.content-shell { min-height: 70vh; max-width: 1220px; margin: 0 auto; padding: 150px 5vw 110px; }
.content-header, .entry-content { max-width: 820px; }
.entry-content h1, .content-header h1 { margin-bottom: 34px; font-size: clamp(44px, 6vw, 76px); }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1220px; }
.entry-content > .alignfull { max-width: none; width: 100vw; margin-left: calc(50% - 50vw); }
.entry-content p, .entry-content li { font-size: 17px; line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f7f0e4; }
.post-card > *:not(a) { margin-left: 22px; margin-right: 22px; }
.post-card img { display: block; width: 100%; height: 230px; object-fit: cover; }
.post-card h2 { font: 28px/1.1 Georgia, serif; }
.post-meta { margin-top: 22px; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.error-page { text-align: center; }
.error-page .eyebrow { justify-content: center; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { grid-template-columns: 1fr auto; height: 68px; padding: 0 22px; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; width: 40px; height: 40px; place-content: center; gap: 7px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 1px; background: var(--green); }
  .nav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 20px 24px 30px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { padding: 13px 0; font: 25px Georgia, serif; }
  .nav-list a::after { display: none; }
  .hero { min-height: 820px; padding-inline: 24px; background-position: 67% center; align-items: end; }
  .hero::before { background: linear-gradient(180deg, rgba(248,244,234,.18) 18%, rgba(248,244,234,.95) 55%, #f8f4ea 77%); }
  .hero-copy { width: 100%; padding: 390px 0 90px; }
  .hero-copy h1 { font-size: clamp(39px, 11vw, 58px); }
  .about, .method-section { grid-template-columns: 1fr; padding: 86px 24px; }
  .body-line { grid-row: 1; }
  .body-line img { width: min(330px, 80vw); }
  .method-section { padding-right: 24px; }
  .method-photo { min-height: 440px; grid-row: 1; }
  .journey, .section-shell { padding-inline: 24px; }
  .mini-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .difference-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .difference-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof-layout { grid-template-columns: 1fr 1fr; }
  .quotes { grid-column: 1 / -1; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-grid img { height: 250px; }
  .manifesto, .contact { grid-template-columns: 1fr; }
  .manifesto figure { grid-row: 1; }
  .manifesto img { width: min(410px, 84vw); }
  .footer { grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  #wpadminbar { position: fixed; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .brand { font-size: 22px; }
  .actions { display: grid; }
  .button { width: 100%; }
  .mini-grid, .method-grid { grid-template-columns: 1fr; }
  .journey-grid article { min-height: 430px; padding-inline: 22px; }
  .difference-grid { grid-template-columns: 1fr; }
  .difference-grid article, .difference-grid article:nth-child(3) { padding: 0 0 30px; border-left: 0; border-bottom: 1px solid var(--line); }
  .difference-grid article:last-child { border-bottom: 0; }
  .difference-grid h3 { min-height: 0; }
  .proof-heading { align-items: start; flex-direction: column; }
  .quotes, .proof-layout { grid-template-columns: 1fr; }
  .quotes { grid-column: auto; }
  .practice-grid img { height: 190px; }
  .manifesto-quote { font-size: 39px; }
  .brand-line { flex-wrap: wrap; gap: 7px 14px; }
  .brand-line p { font-size: 18px; }
  .contact-form { padding: 24px; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

