@import url('https://fonts.googleapis.com/css2?family=Trirong:wght@200;400;700&family=Red+Hat+Display:wght@400;600;700&display=swap');

:root {
    --color-background: rgba(249 248 246 / 1.0);
    --color-foreground: rgba(0 0 0 / 1.0);
    --color-primary: rgba(0 0 0 / 1.0);
    --color-secondary: rgba(0 15 159 / 1.0);
    --color-accent: rgba(228 223 181 / 1.0);
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-muted: rgba(0 0 0 / 0.6);
    --color-border: rgba(0 0 0 / 0.15);
    --color-bg-2: rgba(255 255 255 / 1.0);
    --color-bg-3: rgba(247 247 247 / 1.0);
    --color-bg-dark: rgba(46 46 46 / 1.0);

    --font-heading: 'Trirong', serif;
    --font-body: 'Red Hat Display', sans-serif;

    --h1-size: clamp(3.0rem, 8.8vw, 5.5rem);
    --h2-size: clamp(2.25rem, 4.8vw, 3.0rem);
    --h3-size: 2.0rem;

    --page-width: 1200px;
    --section-padding: clamp(3rem, 6vw, 6rem);

    --radius-sm: 0.2rem;
    --radius-md: 0.6rem;
    --radius-pill: 40px;

    --transition: 0.2s ease-in-out;
    --shadow: 0 2px 3px rgba(0 0 0 / 0.2);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: 0;
    margin-bottom: 0.25em;
}

h1 { font-size: var(--h1-size); line-height: 1; }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); line-height: 1.15; }
h4 { font-family: var(--font-body); font-size: 1.5rem; font-weight: 600; }
h5 { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
h6 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; }

p { margin-bottom: 0.5em; line-height: 1.4; }

/* =====================
   LAYOUT
   ===================== */
.container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.section--accent {
    background-color: var(--color-accent);
}

.section--white {
    background-color: var(--color-white);
}

.section--gray {
    background-color: var(--color-bg-3);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =====================
   HEADER / NAV
   ===================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 12px rgba(0 0 0 / 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: var(--page-width);
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 200;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.header-logo svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    padding-bottom: 2px;
    transition: color var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background-color var(--transition);
}

.nav-cta:hover {
    background-color: var(--color-secondary) !important;
}

.nav-cta::after {
    display: none !important;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background-color: var(--color-background);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 200;
}

.mobile-nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
}

/* =====================
   BUTTONS
   ===================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: rgba(222 222 222 / 1.0);
}

/* =====================
   HERO
   ===================== */
.hero {
    position: relative;
    min-height: 90svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    color: var(--color-white);
}

.hero-content h1 {
    max-width: 14ch;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1rem;
    max-width: 50ch;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.hero-badge {
    background: rgba(255 255 255 / 0.12);
    border: 1px solid rgba(255 255 255 / 0.3);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =====================
   SECTION GENERIC
   ===================== */
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 60ch;
}

.section-text.center {
    margin: 0 auto;
    text-align: center;
}

.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* =====================
   CARDS
   ===================== */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0 0 0 / 0.1);
}

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted);
}

/* =====================
   COURSES PRICING
   ===================== */
.price-card {
    border: 1px solid var(--color-border);
    padding: 2rem;
    text-align: center;
    transition: box-shadow var(--transition);
    background-color: var(--color-white);
}

.price-card:hover {
    box-shadow: 0 8px 30px rgba(0 0 0 / 0.1);
}

.price-card.featured {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.price-card.featured .card-text,
.price-card.featured .section-label {
    color: rgba(255 255 255 / 0.7);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 200;
    line-height: 1;
    margin: 1rem 0;
}

.price-period {
    font-size: 0.875rem;
    opacity: 0.6;
}

.price-features {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
}

.price-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-card.featured .price-features li {
    border-color: rgba(255 255 255 / 0.2);
}

.price-features li i {
    color: var(--color-secondary);
    font-size: 0.75rem;
}

.price-card.featured .price-features li i {
    color: var(--color-accent);
}

/* =====================
   STATS
   ===================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(255 255 255 / 0.15);
    text-align: center;
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(255 255 255 / 0.15); }
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonial-card {
    background-color: var(--color-bg-2);
    padding: 2rem;
    border: 1px solid var(--color-border);
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 200;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--color-accent);
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.stars {
    color: #c9a84c;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* =====================
   FAQ
   ===================== */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.25rem 0;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: var(--color-foreground);
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--color-secondary);
}

.faq-icon {
    font-size: 1.25rem;
    line-height: 1;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--color-muted);
    max-width: 70ch;
}

.faq-item.open .faq-answer {
    display: block;
}

/* =====================
   CONTACT FORM
   ===================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-input {
    background-color: rgba(0 0 0 / 0.05);
    border: 1px solid transparent;
    padding: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-foreground);
    transition: background-color var(--transition), border-color var(--transition);
    width: 100%;
    outline: none;
    border-radius: 0;
}

.form-input:hover {
    background-color: rgba(230 230 230 / 1.0);
}

.form-input:focus {
    border-color: var(--color-primary);
    background-color: var(--color-white);
}

.form-input::placeholder {
    color: rgba(0 0 0 / 0.4);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

/* =====================
   IMAGE BLOCK
   ===================== */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-ratio-4-3 { aspect-ratio: 4/3; }
.img-ratio-3-4 { aspect-ratio: 3/4; }
.img-ratio-16-9 { aspect-ratio: 16/9; }
.img-ratio-1-1 { aspect-ratio: 1/1; }

/* =====================
   FOOTER
   ===================== */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    padding: var(--section-padding) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255 255 255 / 0.65);
    margin-bottom: 1.5rem;
    max-width: 36ch;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255 255 255 / 0.65);
    margin-bottom: 0.75rem;
}

.footer-contact-item i {
    color: var(--color-accent);
    margin-top: 0.1rem;
    flex-shrink: 0;
    width: 1rem;
    text-align: center;
}

.footer-menu-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 1.25rem;
    color: var(--color-white);
}

.footer-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-menu-list a {
    font-size: 0.875rem;
    color: rgba(255 255 255 / 0.65);
    transition: color var(--transition);
}

.footer-menu-list a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255 255 255 / 0.12);
    padding: 1rem 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255 255 255 / 0.45);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255 255 255 / 0.25);
    color: rgba(255 255 255 / 0.65);
    font-size: 0.875rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

/* =====================
   ABOUT PAGE
   ===================== */
.about-hero {
    padding: calc(var(--section-padding) * 1.5) 0;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.page-hero {
    padding: 5rem 0 3rem;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1rem;
    opacity: 0.75;
    max-width: 55ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* =====================
   COOKIES
   ===================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    z-index: 999;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255 255 255 / 0.1);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-inner {
    max-width: var(--page-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-text {
    font-size: 0.8125rem;
    color: rgba(255 255 255 / 0.8);
    max-width: 70ch;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-accent);
    text-decoration: underline;
}

.cookie-btns {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* =====================
   POLICY PAGE TEXT
   ===================== */
.policy-section {
    max-width: 780px;
    margin: 0 auto;
    padding: var(--section-padding) 1.5rem;
}

.policy-section h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.policy-section h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-family: var(--font-body);
}

.policy-section p,
.policy-section li {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.policy-section ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-date {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

/* =====================  
   RESPONSIVE UTILS
   ===================== */
@media (max-width: 768px) {
    :root { --section-padding: clamp(2rem, 5vw, 4rem); }

    .hero-content h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
}
