/* ============================================================
   Rhino Thai Boxing Gym — Base typography, buttons & components
   Ported from the concept-1 prototype (assets/styles.css).
   All values reference tokens.css — no hardcoded brand hex here.
   Header styles live in header.css, footer styles in footer.css.
   ============================================================ */

/* === Base typography ===
   Weight, case, and line-height are set on the ELEMENT (not the
   font shorthand) so they survive the web-font swap window and the
   system-ui fallback if Anton/Archivo/Be Vietnam Pro fail to load
   within 3000ms. (Req 2.3, 2.4) */
body {
    font-family: var(--font-body);
    background: var(--atmo0);
    color: var(--text);
    line-height: 1.7;                 /* body 1.7 (Req 2.4) */
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: var(--font-display);
    text-transform: uppercase;        /* Anton ALL-CAPS (Req 2.4) */
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: var(--tracking-tight);
}
h1 { font-size: clamp(40px, 7vw, 72px); }   /* display up to 72px (Req 2.4) */
h2 { font-size: clamp(30px, 4.5vw, 40px); } /* H2 40px (Req 2.4) */
h3 { font-size: clamp(22px, 3vw, 28px); }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 20px; }

body { font-size: 16px; }             /* body 16px (Req 2.4) */

/* === Vietnamese display-font switch (Req 2.5) ===
   Anton ships without Vietnamese diacritics, so when the active language is
   Vietnamese (i18n.php adds the .locale-vi body class) we reorder the display
   stack to prefer Be Vietnam Pro. Redefining the --font-display token on the
   scope means every element that already uses var(--font-display) — headings,
   .display, price figures, schedule headers, rating badge, avatars — switches
   automatically with no per-element overrides. Anton stays as the fallback so
   non-VI text is unaffected. A 700 weight keeps the heading impact since Be
   Vietnam Pro at 400 reads lighter than Anton. */
body.locale-vi {
    --font-display: 'Be Vietnam Pro', 'Anton', system-ui, -apple-system, sans-serif;
}
body.locale-vi h1,
body.locale-vi h2,
body.locale-vi h3,
body.locale-vi .display { font-weight: 700; }

p { color: #D8D8D8; }
a { color: var(--link); text-decoration: none; transition: color var(--dur-fast); }
a:hover { color: var(--link-hover); }

/* === Responsiveness safety net (Req 23.1) ===
   Global guards that keep every page free of horizontal scroll / content
   clipping across the 320–767, 768–1023, and 1024+ bands, independent of the
   per-component breakpoints below:
     - Fluid images: never exceed their container, preserve aspect ratio.
     - overflow-x:hidden on html/body suppresses any incidental sideways
       scroll from a full-bleed element or wide embed (intentional scroll
       regions like .schedule-wrap scope their own overflow-x).
     - Long unbroken strings (URLs, long words) wrap instead of forcing width. */
img { max-width: 100%; height: auto; display: block; }
html, body { overflow-x: hidden; max-width: 100%; }
body { overflow-wrap: break-word; }

/* === Layout helpers === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-16) 0; }
.section-cream { background: var(--light-relief); }
.section-cream h1, .section-cream h2, .section-cream h3 { color: var(--atmo0); }
.section-cream p { color: #3A3A3A; }

.overline {
    font-weight: 700; font-size: 13px; text-transform: uppercase;
    letter-spacing: var(--tracking-wider); color: var(--brand);
    display: inline-block; margin-bottom: 14px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { margin-top: 16px; font-size: 17px; }
.text-brand { color: var(--brand); }

/* === Buttons ===
   Always pill-shaped (radius 9999px, Req 2.6). Hover transitions
   to vivid orange within 200ms (Req 2.10). The primary CTA uses an
   orange bg / black text (Req 2.7) and is the only element that
   carries the accent glow (Req 2.8); the urgent "Book Now" CTA uses
   combat red bg / white text (Req 2.9). */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-weight: 700; font-size: 15px;
    text-transform: uppercase; letter-spacing: var(--tracking-wide);
    padding: 16px 36px; border-radius: var(--radius-pill);
    border: 2px solid transparent; cursor: pointer;
    transition: background-color 200ms ease, color 200ms ease, transform var(--dur-base) ease, box-shadow var(--dur-base) ease;
    line-height: 1;
}
.btn-primary { background: var(--brand); color: #000; }            /* orange bg / black text (Req 2.7) */
.btn-primary:hover { background: var(--brand-vivid); color: #000; transform: translateY(-2px); box-shadow: var(--glow); } /* vivid orange + glow (Req 2.8, 2.10) */
.btn-red { background: var(--red); color: #fff; }                  /* urgent Book Now: red bg / white text (Req 2.9) */
.btn-red:hover { background: var(--red-bright); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(224,26,26,0.4); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #000; }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: #000; }
.btn-ghost { background: transparent; color: var(--brand); padding: 8px 12px; }
.btn-ghost:hover { color: var(--brand-vivid); text-decoration: underline; }
.btn-dark { background: #000; color: #fff; }
.btn-dark:hover { background: var(--atmo2); color: var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 10px 24px; font-size: 13px; }
.btn-lg { padding: 20px 48px; font-size: 17px; }
.btn:disabled, .btn.disabled { background: var(--atmo3); color: var(--disabled); cursor: not-allowed; transform: none; box-shadow: none; border-color: transparent; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(229,151,68,0.5); }
.btn-icon { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: var(--radius-full); background: var(--atmo2); color: var(--brand); }
.btn-icon:hover { background: var(--brand); color: #000; }

/* === Hero ===
   Full-bleed action photo with a scrim overlay so overlaid white
   text stays legible (Req 2.11). */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.3) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding-top: 60px; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 .text-brand { display: block; }
.hero-content .lead { font-size: 19px; color: #E8E8E8; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* === Page hero (inner pages) ===
   Uses --gradient-scrim over the background photo for legibility. (Req 2.11) */
.page-hero { position: relative; padding: 180px 0 80px; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--gradient-scrim); }
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 13px; color: var(--placeholder); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.breadcrumb a { color: var(--placeholder); }
.breadcrumb a:hover { color: var(--brand); }

/* === Grid === */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Cards === */
.card { background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--dur-slower) ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); border-color: var(--brand); }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slower) ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 10px; }
.card-body h4 { margin-bottom: 8px; }
.card-body p { font-size: 14px; margin-bottom: 14px; }
.card-tags { list-style: none; }
.card-tags li { font-size: 13px; color: var(--brand); padding: 3px 0 3px 18px; position: relative; }
.card-tags li::before { content: '\f0a9'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; font-size: 11px; }
.card-meta { font-size: 13px; color: var(--brand); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }

/* === Feature === */
.feature { text-align: center; padding: 32px 20px; }
.feature .feat-icon { width: 72px; height: 72px; border-radius: var(--radius-full); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; font-size: 28px; background: rgba(229,151,68,0.12); color: var(--brand); border: 2px solid var(--brand); transition: all var(--dur-slow); }
.feature:hover .feat-icon { background: var(--brand); color: #000; transform: scale(1.08); }
.feature h4 { margin-bottom: 8px; }
.feature p { font-size: 14px; }
.section-cream .feature .feat-icon { background: rgba(229,151,68,0.15); }

/* === Split === */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.split-img img { width: 100%; height: 440px; object-fit: cover; }
.split-content h2 { margin-bottom: 18px; }
.split-content p { margin-bottom: 16px; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 36px 28px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--glow); }
.price-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 16px; border-radius: var(--radius-pill); white-space: nowrap; }
.price-card .tier { font-family: var(--font-display); text-transform: uppercase; font-size: 22px; margin-bottom: 6px; }
.price-card .price { font-family: var(--font-display); font-size: 40px; color: var(--brand); line-height: 1; margin-bottom: 4px; }
.price-card .price small { font-family: var(--font-body); font-size: 14px; color: var(--placeholder); font-weight: 500; }
.price-card .per { font-size: 13px; color: var(--placeholder); margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card ul li { font-size: 14px; padding: 7px 0 7px 24px; position: relative; border-bottom: 1px solid var(--atmo3); color: #D8D8D8; }
.price-card ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 8px; color: var(--brand); font-size: 12px; }
.price-card .btn { width: 100%; justify-content: center; }

/* === Tabs === */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.tab { background: var(--atmo2); border: 1px solid var(--border); color: var(--placeholder); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 22px; border-radius: var(--radius-pill); cursor: pointer; transition: all var(--dur-base); }
.tab:hover { color: #fff; border-color: var(--brand); }
.tab.active { background: var(--brand); color: #000; border-color: var(--brand); }

/* === Schedule === */
.schedule-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table.schedule { width: 100%; border-collapse: collapse; min-width: 760px; }
table.schedule th { background: var(--atmo0); color: var(--brand); font-family: var(--font-display); text-transform: uppercase; font-size: 14px; font-weight: 400; padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--border); }
table.schedule td { padding: 10px; text-align: center; border-bottom: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--atmo2); vertical-align: top; }
.time-col { color: var(--placeholder); font-weight: 600; font-size: 13px; white-space: nowrap; background: var(--atmo1) !important; }
.class-chip { display: block; background: rgba(229,151,68,0.1); border: 1px solid var(--brand); border-radius: var(--radius-md); padding: 8px 6px; cursor: pointer; transition: all var(--dur-base); }
.class-chip:hover { background: var(--brand); }
.class-chip:hover .cc-name, .class-chip:hover .cc-meta { color: #000; }
.cc-name { display: block; font-weight: 700; font-size: 12px; color: #fff; text-transform: uppercase; }
.cc-meta { display: block; font-size: 11px; color: var(--placeholder); }

/* === Transformations === */
.ba-card { background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-images figure { position: relative; }
.ba-images img { width: 100%; height: 280px; object-fit: cover; }
.ba-images figcaption { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.7); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: var(--radius-pill); }
.ba-images figure:last-child figcaption { background: var(--brand); color: #000; }
.ba-body { padding: 22px 24px; }
.ba-body .ba-meta { font-size: 13px; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.ba-body h4 { margin-bottom: 8px; }
.ba-body p { font-size: 14px; }

/* === Testimonials === */
.review-card { background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; border-left: 3px solid var(--brand); }
.section-cream .review-card { background: #fff; }
.review-stars { color: var(--brand-amber); margin-bottom: 14px; font-size: 14px; }
.review-card p { font-style: italic; color: #D8D8D8; margin-bottom: 18px; font-size: 15px; }
.section-cream .review-card p { color: #3A3A3A; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author .avatar { width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--brand); color: #000; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; }
.review-author .ra-name { font-weight: 700; font-size: 15px; color: #fff; }
.section-cream .review-author .ra-name { color: #000; }
.review-author .ra-src { font-size: 12px; color: var(--placeholder); }
.rating-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 10px 22px; margin: 0 auto 40px; }
.section-cream .rating-badge { background: #fff; }
.rating-badge .big { font-family: var(--font-display); font-size: 28px; color: var(--brand); line-height: 1; }
.rating-badge .stars { color: var(--brand-amber); font-size: 13px; }

/* === CTA band === */
.cta-band { background: var(--gradient-heat); padding: 72px 0; text-align: center; }
.cta-band h2 { color: #000; margin-bottom: 14px; }
.cta-band p { color: rgba(0,0,0,0.75); font-size: 18px; margin-bottom: 28px; font-weight: 500; }

/* === Blog === */
.blog-card .card-img { aspect-ratio: 16/9; display: block; }
.blog-meta { font-size: 12px; color: var(--placeholder); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.blog-meta a { color: var(--brand); }
.blog-meta a:hover { color: var(--brand-vivid); }
.blog-card h4 a { color: #fff; }
.blog-card:hover h4 a { color: var(--brand); }
.blog-card .btn-ghost .rhino-arrow { font-size: 13px; margin-left: 4px; }

/* Featured-image placeholder (Req 18.1): a Design-System block shown when a
   post has no featured image, keeping every card's 16:9 media slot consistent
   without requiring an external image asset. */
.rhino-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; aspect-ratio: 16/9;
    background:
        radial-gradient(circle at 30% 20%, rgba(229,151,68,0.18), transparent 60%),
        linear-gradient(135deg, var(--atmo2) 0%, var(--atmo0) 100%);
    border-bottom: 1px solid var(--border);
}
.rhino-img-placeholder__mark {
    font-family: var(--font-display); text-transform: uppercase;
    letter-spacing: 0.18em; font-size: 26px; color: var(--brand);
    opacity: 0.55;
}

/* Blog pagination */
.rhino-blog-pagination { margin-top: 56px; }
.rhino-blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; }
.rhino-blog-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 14px;
    background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-pill);
    color: #fff; font-weight: 700; font-size: 14px; transition: all var(--dur-base);
}
.rhino-blog-pagination a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.rhino-blog-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #000; }
.rhino-blog-pagination .page-numbers.dots { background: none; border-color: transparent; }

/* Empty-state (no posts) */
.rhino-blog-empty { text-align: center; padding: 60px 0; }
.rhino-blog-empty p { color: var(--placeholder); font-size: 17px; }

/* === Single post === */
.rhino-single__content { max-width: 760px; }
.rhino-single__content > p,
.rhino-single__content > ul,
.rhino-single__content > ol,
.rhino-single__content > blockquote { margin-bottom: 20px; font-size: 17px; }
.rhino-single__content h2,
.rhino-single__content h3,
.rhino-single__content h4 { margin: 32px 0 14px; }
.rhino-single__content img { border-radius: var(--radius-lg); margin: 24px 0; }
.rhino-single__content blockquote {
    border-left: 4px solid var(--brand); padding: 4px 0 4px 20px; color: #D8D8D8; font-style: italic;
}
.rhino-single__content a { color: var(--link); text-decoration: underline; }
.rhino-single__content a:hover { color: var(--link-hover); }
.rhino-single__tags { margin-top: 32px; }
.rhino-single__nav { padding-top: 0; }
.rhino-single__nav .nav-links { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rhino-single__nav a { display: block; max-width: 48%; }
.rhino-single__nav-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); margin-bottom: 4px; }
.rhino-single__nav-title { color: #fff; font-weight: 700; }

/* === 404 === */
.rhino-404 { text-align: center; min-height: 60vh; display: flex; align-items: center; }
.rhino-404 .container { max-width: 640px; }
.rhino-404 .overline { color: var(--red-bright); }
.rhino-404__search { margin: 28px auto 8px; max-width: 420px; }
.rhino-404__search form { display: flex; gap: 8px; }
.rhino-404__search input[type="search"] {
    flex: 1; height: 52px; padding: 0 16px; background: var(--atmo2);
    border: 1px solid var(--atmo4); border-radius: var(--radius-md); color: #fff;
    font-family: var(--font-body); font-size: 16px;
}
.rhino-404__search input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(229,151,68,0.5); }
.rhino-404__search input[type="submit"] {
    height: 52px; padding: 0 24px; background: var(--brand); color: #000; border: none;
    border-radius: var(--radius-pill); font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.rhino-404__actions { margin-top: 24px; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info li { list-style: none; display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info i { color: var(--brand); font-size: 20px; width: 28px; text-align: center; margin-top: 4px; }
.contact-info .ci-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--placeholder); }
.contact-info .ci-val { font-size: 16px; color: #fff; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); height: 260px; margin-top: 24px; filter: grayscale(0.3) invert(0.9) hue-rotate(180deg); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* Contact details (Req 19.1) */
.contact-heading { margin-bottom: 24px; }
.contact-info .ci-val a { color: #fff; transition: color var(--dur-fast); }
.contact-info .ci-val a:hover { color: var(--brand); }
.ci-hours { list-style: none; margin: 4px 0 0; padding: 0; }
.ci-hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 280px; font-size: 15px; color: #fff; padding: 3px 0; }
.ci-hours .ci-day { color: var(--placeholder); }
.ci-social { display: flex; gap: 12px; }
.ci-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: #fff; }
.ci-social a:hover { background: var(--brand); border-color: var(--brand); color: #000; }

/* Google Map fallback (Req 19.6) — hidden until the map fails/times out */
.map-embed { position: relative; }
.map-fallback { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--atmo1, #141414); filter: none; }
.map-embed.map-failed .map-fallback { display: flex; }
.map-embed.map-failed iframe { display: none; }
.map-fallback i { color: var(--brand); font-size: 28px; }
.map-fallback__addr { color: #fff; font-size: 15px; margin: 0; }

/* Legal prose — Privacy Policy / Terms of Use (Req 20.5, 20.6) */
.rhino-prose { max-width: 820px; margin: 0 auto; color: var(--muted, #B8B8B8); font-size: 16px; line-height: 1.7; }
.rhino-prose h2 { margin: 32px 0 12px; color: #fff; }
.rhino-prose p { margin: 0 0 16px; }
.rhino-prose a { color: var(--brand); }
.rhino-prose ul, .rhino-prose ol { margin: 0 0 16px 20px; }
.rhino-prose li { margin-bottom: 8px; }

/* === Forms === */
.form-wrap { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); margin-bottom: 8px; }
.form-field .req { color: var(--red-bright); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; height: 52px; padding: 0 16px; background: var(--atmo2); border: 1px solid var(--atmo4);
    border-radius: var(--radius-md); color: #fff; font-family: var(--font-body); font-size: 16px; transition: all var(--dur-fast);
}
.form-field textarea { height: 120px; padding: 14px 16px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--placeholder); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(229,151,68,0.5); }
.form-field.error input, .form-field.error select { border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(224,26,26,0.3); }
.form-field.success input { border-color: var(--positive); }
.form-field .err-msg { display: none; color: var(--red-bright); font-size: 12px; margin-top: 6px; }
.form-field.error .err-msg { display: block; }
.form-field .help-msg { color: var(--placeholder); font-size: 12px; margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--placeholder); margin-bottom: 20px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }

/* === Modal === */
.modal-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.open { display: flex; animation: fadeIn var(--dur-base) ease; }
.modal { background: var(--atmo2); border: 1px solid var(--border); border-radius: var(--radius-xl); width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; padding: 36px; position: relative; }
.modal h3 { margin-bottom: 6px; }
.modal .modal-sub { font-size: 14px; color: var(--placeholder); margin-bottom: 24px; }
.modal-close { position: absolute; top: 18px; right: 18px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.modal-close:hover { color: var(--brand); }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success i { font-size: 48px; color: var(--positive); margin-bottom: 16px; }

/* === Badges / Tags === */
.badge { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 12px; border-radius: var(--radius-pill); }
.badge-success { background: var(--positive-20); color: #1E6B3C; }
.badge-warning { background: var(--warning-20); color: #8A5400; }
.badge-error { background: var(--negative-20); color: var(--red); }
.badge-info { background: var(--info-20); color: #1B47B0; }
.badge-neutral { background: var(--atmo3); color: var(--placeholder); }
.badge-promo { background: var(--red); color: #fff; }

/* === Alerts === */
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: var(--radius-md); padding: 14px 18px; border-left: 4px solid; margin-bottom: 14px; font-size: 14px; }
.alert i { font-size: 18px; margin-top: 2px; }
.alert-success { background: #0F2A1A; border-color: var(--positive); color: var(--positive-20); }
.alert-success i { color: var(--positive); }
.alert-warning { background: #2A2008; border-color: var(--warning); color: var(--warning-20); }
.alert-warning i { color: var(--warning); }
.alert-error { background: #2A0B0B; border-color: var(--negative); color: var(--negative-20); }
.alert-error i { color: var(--negative); }
.alert-info { background: #0C1730; border-color: var(--info); color: var(--info-20); }
.alert-info i { color: var(--info); }

/* === Reveal (scroll-in animation) === */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--dur-slower) ease, transform var(--dur-slower) ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Misc === */
mark { background: rgba(229,151,68,0.32); color: #fff; padding: 0 2px; }
::selection { background: var(--brand); color: #000; }
.callout { background: var(--atmo2); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: var(--radius-md); }

/* === Responsive ===
   Mobile-first breakpoints aligned to the Req 23.1 bands; no horizontal
   scroll across any band. Tablet (768–1023): multi-column grids drop to two
   columns and split layouts stack. Mobile (≤767, down to the 320 floor): every
   grid, pricing table, and form row collapses to a single column. */
@media (max-width: 1023px) {
    .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .split-img img { height: 320px; }
    .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .section { padding: 64px 0; }
    .grid-2, .grid-3, .grid-4, .pricing-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .ba-images img { height: 200px; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* === Home page composition helpers (front-page.php / template-home.php) ===
   Layout-only utilities for the Home section rhythm ported from concept-1
   (the prototype used inline styles; these replace them). (Req 14) */
.home-section-cta { text-align: center; margin-top: 40px; }
.home-ba-grid { max-width: 900px; margin: 0 auto; }
.home-rating-wrap { text-align: center; }
.home-rating-src { color: var(--placeholder); font-size: 12px; }

/* Program cards on Home are anchor links to the Services page — keep the
   card text colours rather than the default link colour. */
a.card { color: inherit; display: block; }
a.card:hover { color: inherit; }
a.ba-card { color: inherit; display: block; }
a.ba-card:hover { color: inherit; }

/* === Composed page templates (About / Services / Success Stories — Task 13.2) === */

/* Page-hero lead paragraph (inner pages). */
.page-hero-lead { margin-top: 14px; font-size: 18px; color: #E8E8E8; max-width: 620px; }

/* Services hero anchor-link row (exactly 3 links — Req 16.1). */
.page-anchor-nav { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Anchored sections land below the fixed header for both JS smooth-scroll and
   native #fragment jumps (Req 16.5, 16.6). */
.rhino-anchor-section { scroll-margin-top: 96px; }

/* Per-section / per-filter placeholder message (Req 16.8, 17.5). */
.rhino-section-empty {
    text-align: center; color: var(--placeholder); font-size: 16px;
    padding: 40px 0; margin: 0;
}
.section-cream .rhino-section-empty { color: #6D6D6D; }

/* Display-only schedule notice on the Services hub. */
.rhino-timetable__notice {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: var(--placeholder); font-size: 14px; margin: 0 0 24px;
}
.rhino-timetable__notice i { color: var(--brand); }

/* Why-Choose-Rhino feature titles sit on the cream relief background. */
.section-cream .feature h4, .about-feature-title { color: var(--atmo0); }

/* Aggregate rating badge wrapper (centered, Success Stories). */
.rhino-rating-wrap { text-align: center; }
.rhino-rating-src { color: #6D6D6D; font-size: 12px; }

/* Testimonial avatar rendered from a member photo (Req 17.6). */
.review-author .avatar--photo { overflow: hidden; padding: 0; }
.review-author .avatar--photo img { width: 100%; height: 100%; object-fit: cover; }

/* Hidden filtered transformation cards (goal filter — Req 17.4). */
[data-rhino-filter-grid] .ba-card[hidden] { display: none; }

/* === Vietnamese fallback indicator (Req 21.6) ===
   Shown once near the top of <main> (header.php) when the page has no
   translation in the active (non-default) language and is therefore served
   in Vietnamese. Tells the visitor the content is the fallback language. */
.rhino-lang-fallback {
    display: flex; align-items: center; gap: 10px;
    max-width: 1280px; margin: 0 auto; padding: 12px 24px;
    background: #2A2008; border-bottom: 1px solid var(--warning);
    color: var(--warning-20); font-size: 14px;
}
.rhino-lang-fallback i { color: var(--warning); font-size: 16px; }
