/*
Theme Name: InGlobEn
Theme URI: https://example.com/ingloben
Author: InGlobEn
Description: Lightweight bilingual Gutenberg-ready theme for the InGlobEn online English school.
Version: 1.0.0
Text Domain: ingloben
Requires at least: 6.5
Requires PHP: 8.0
*/

:root {
  --wine: #9d173b;
  --wine-dark: #4a0820;
  --wine-deep: #270511;
  --blush: #f7dfe0;
  --rose: #eaaeb4;
  --cream: #fff8f3;
  --paper: #fffdfb;
  --ink: #25131a;
  --muted: #735e66;
  --gold: #e9a514;
  --line: rgba(157, 23, 59, .17);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 18px 60px rgba(74, 8, 32, .11);
  --shadow-sm: 0 8px 26px rgba(74, 8, 32, .09);
  --container: 1200px;
  --space: clamp(72px, 8vw, 120px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { min-height: 46px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.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; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space); position: relative; }
.eyebrow { margin: 0 0 10px; color: var(--wine); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-title { margin: 0 auto 42px; max-width: 760px; font: 700 clamp(2rem, 4vw, 3.6rem)/1.08 var(--serif); text-align: center; letter-spacing: -.025em; }
.section-heading { text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--wine); border-radius: 999px; background: var(--wine); color: white; font-weight: 750; cursor: pointer; box-shadow: 0 9px 24px rgba(157,23,59,.2); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 30px rgba(157,23,59,.28); }
.button--outline { color: var(--wine); background: transparent; box-shadow: none; }
.button--light { color: var(--wine-dark); border-color: white; background: white; }

.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid transparent; background: rgba(255,248,243,.9); backdrop-filter: blur(16px); transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(74,8,32,.07); }
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 26px; }
.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { width: 39px; aspect-ratio: 1; border-radius: 50%; background: var(--wine); box-shadow: inset 0 0 0 7px var(--blush); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: -5px; border: 1px dashed var(--wine); border-radius: 50%; clip-path: inset(45% 0 0); }
.brand-name { color: var(--wine); font: 500 1.65rem/1 var(--serif); letter-spacing: .02em; }
.primary-nav ul { display: flex; align-items: center; gap: clamp(15px, 2vw, 30px); padding: 0; margin: 0; list-style: none; }
.primary-nav a { font-size: .89rem; font-weight: 650; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--wine); }
.header-cta { font-size: .83rem; padding: 11px 18px; }
.language-switcher { display: flex; gap: 7px; font-size: .78rem; font-weight: 800; }
.language-switcher a[aria-current="page"] { color: var(--wine); }
.menu-toggle { display: none; width: 46px; padding: 0; border: 0; background: transparent; color: var(--wine); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s; }

.hero { overflow: hidden; padding: clamp(65px, 7vw, 100px) 0 75px; background: radial-gradient(circle at 80% 25%, rgba(234,174,180,.45), transparent 30%), linear-gradient(115deg, #fffaf6, #fff2ee); }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: 120px; opacity: .42; background-image: radial-gradient(var(--wine) 1px, transparent 1px); background-size: 12px 12px; mask-image: linear-gradient(to left, #000, transparent); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr); align-items: center; gap: 50px; }
.hero-copy { position: relative; z-index: 2; }
.hero-badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--blush); color: var(--wine); font-size: .74rem; font-weight: 800; letter-spacing: .08em; }
.hero h1 { max-width: 650px; margin: 20px 0; font: 700 clamp(3rem, 5.8vw, 5.7rem)/.98 var(--serif); letter-spacing: -.045em; }
.hero h1 em { display: block; color: var(--wine); font-weight: 500; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 9px; }
.hero-lead { max-width: 570px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 24px; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.stars { color: var(--gold); letter-spacing: .11em; }
.avatars { display: flex; padding-left: 8px; }
.avatar { width: 34px; height: 34px; margin-left: -8px; display: grid; place-items: center; border: 3px solid var(--cream); border-radius: 50%; color: white; background: linear-gradient(145deg, var(--wine), var(--rose)); font-size: .68rem; font-weight: 800; }
.trust-copy { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.hero-visual { min-height: 545px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 76%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, #f2a5aa, #9d173b); z-index: -2; }
.orbit { position: absolute; width: 92%; aspect-ratio: 1.3; border: 2px dashed rgba(157,23,59,.45); border-radius: 50%; transform: rotate(10deg); z-index: -1; }
.laptop { width: 80%; transform: perspective(900px) rotateY(-4deg) rotateX(2deg); filter: drop-shadow(0 30px 25px rgba(42,7,19,.28)); }
.laptop-screen { padding: 13px 13px 35px; border: 9px solid #242020; border-radius: 20px 20px 8px 8px; background: #111; }
.laptop-screen img { width: 100%; aspect-ratio: 16/10; border-radius: 7px; object-fit: cover; }
.video-controls { height: 24px; margin-top: -31px; position: relative; display: flex; justify-content: center; gap: 8px; }
.video-controls i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.85); }
.video-controls i:last-child { background: #dd234e; }
.laptop-base { width: 116%; height: 38px; margin-left: -8%; border-radius: 3px 3px 70px 70px; background: linear-gradient(#d9d4d1, #8d8989); transform: perspective(220px) rotateX(48deg); transform-origin: top; }
.float-card { position: absolute; z-index: 4; width: 176px; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-sm); background: rgba(255,253,251,.94); box-shadow: var(--shadow-sm); font: 750 .82rem/1.25 var(--sans); opacity: 0; }
.float-card .icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--wine); background: var(--blush); font-size: 1.2rem; }
.card-live { left: 0; top: 105px; }
.card-flex { left: -10px; top: 230px; }
.card-progress { left: 25px; bottom: 70px; }
.card-path { right: -3px; top: 155px; }
.card-interactive { right: -10px; bottom: 125px; }

.benefits { background: var(--paper); }
.benefit-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative; }
.benefit-grid::before { content: ""; position: absolute; left: 5%; right: 5%; top: -20px; border-top: 2px dashed var(--rose); }
.benefit-card { min-height: 230px; padding: 24px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(#fff, #fffaf8); text-align: center; box-shadow: 0 12px 30px rgba(74,8,32,.04); }
.benefit-icon { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; color: var(--wine); background: var(--blush); font-size: 1.55rem; }
.benefit-card h3 { margin: 0 0 10px; font: 700 1.1rem/1.15 var(--serif); }
.benefit-card p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.55; }

.courses { background: linear-gradient(#fff8f3, #fff); }
.course-grid { max-width: 100%; overflow: hidden; }
.course-grid > .swiper-wrapper { min-width: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.course-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.course-image { position: relative; overflow: hidden; }
.course-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-image img { transform: scale(1.04); }
.course-icon { position: absolute; left: 18px; bottom: -23px; width: 52px; height: 52px; display: grid; place-items: center; border: 4px solid white; border-radius: 50%; color: white; background: var(--wine); font-size: 1.25rem; }
.course-body { padding: 36px 22px 24px; }
.course-body h3 { margin: 0 0 8px; font: 700 1.35rem var(--serif); }
.course-body p { min-height: 74px; margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.text-link { color: var(--wine); font-weight: 800; font-size: .85rem; }

.marquee { overflow: hidden; padding: 18px 0; color: white; background: var(--wine); }
.marquee-track { display: flex; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee span { padding: 0 34px; font: 500 1.2rem var(--serif); white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 68px; color: var(--rose); }
@keyframes marquee { to { transform: translateX(-50%); } }

.stats { padding: 38px 0; color: white; background: radial-gradient(circle at 90% 0, rgba(234,174,180,.25), transparent 25%), var(--wine); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 10px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.2); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font: 700 clamp(2rem, 4vw, 3.25rem)/1 var(--serif); }
.stat span { font-size: .82rem; opacity: .86; }
.demo-note { margin-top: 8px; display: block; color: rgba(255,255,255,.75); font-size: .65rem; }

.steps { background: var(--paper); }
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.step-grid::before { content: ""; position: absolute; left: 8%; right: 8%; top: 34px; border-top: 2px dashed var(--rose); }
.step { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 15px; }
.step-number { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid var(--rose); border-radius: 50%; color: var(--wine); background: var(--cream); font: 700 1.5rem var(--serif); z-index: 1; }
.step h3 { margin: 4px 0 6px; font: 700 1.05rem var(--serif); }
.step p { margin: 0; color: var(--muted); font-size: .82rem; }

.testimonials { overflow: hidden; background: linear-gradient(90deg, #fbe5e5, #fff6f1); }
.testimonial-slider { max-width: 100%; position: relative; overflow: hidden; }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { padding: 27px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); background: rgba(255,255,255,.82); box-shadow: var(--shadow-sm); }
.testimonial-head { display: flex; align-items: center; gap: 13px; }
.testimonial-photo { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, var(--wine), var(--rose)); font: 700 1rem var(--serif); }
.testimonial h3 { margin: 0; font: 700 1rem var(--serif); }
.testimonial small { color: var(--muted); }
.testimonial blockquote { margin: 20px 0; color: var(--muted); font-size: .93rem; }
.slider-controls { margin-top: 24px; display: flex; justify-content: center; gap: 10px; }
.slider-controls button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: white; cursor: pointer; }

.story { padding: 75px 0; color: white; background: radial-gradient(circle at 75% 20%, rgba(234,174,180,.2), transparent 25%), linear-gradient(135deg, var(--wine-deep), var(--wine)); }
.story-grid { display: grid; grid-template-columns: .9fr 1fr .42fr; align-items: center; gap: 45px; }
.story-media { min-height: 340px; position: relative; overflow: hidden; border-radius: 50% 50% 30% 30%; background: url("assets/images/course-general.webp") center/cover; }
.play { position: absolute; right: 22px; bottom: 25px; width: 70px; height: 70px; border: 5px solid rgba(255,255,255,.45); border-radius: 50%; color: white; background: var(--wine); font-size: 1.4rem; cursor: pointer; }
.story h2 { margin: 0 0 18px; font: 700 clamp(2.1rem,4vw,3.6rem)/1 var(--serif); }
.story-copy p { color: rgba(255,255,255,.8); }
.story-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; padding: 0; list-style: none; font-size: .84rem; }
.story-list li::before { content: "✓"; margin-right: 7px; color: var(--rose); }
.progress-card { padding: 28px 18px; border-radius: var(--radius); color: var(--wine-dark); background: white; text-align: center; }
.progress-ring { width: 112px; height: 112px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--wine) 85%, var(--blush) 0); position: relative; }
.progress-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: white; }
.progress-ring strong { z-index: 1; font: 700 1.65rem var(--serif); }
.progress-card b { display: block; font: 700 1.12rem var(--serif); }
.progress-card small { color: var(--muted); }

.cta { padding: 38px 0; background: #fff7f3; }
.cta-inner { padding: 25px 35px; display: flex; align-items: center; gap: 24px; border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.cta-icon { flex: 0 0 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--wine); font-size: 1.7rem; }
.cta-copy { margin-right: auto; }
.cta h2 { margin: 0; font: 700 clamp(1.6rem,3vw,2.4rem) var(--serif); }
.cta p { margin: 2px 0 0; color: var(--muted); }

.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 55px; align-items: start; }
.contact-copy h2 { margin: 0 0 18px; font: 700 clamp(2.2rem,4vw,3.6rem)/1.05 var(--serif); }
.contact-copy p { color: var(--muted); }
.contact-form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-weight: 750; font-size: .84rem; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #d8c8cb; border-radius: 11px; color: var(--ink); background: #fffdfc; }
.field textarea { min-height: 125px; resize: vertical; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: .82rem; color: var(--muted); }
.consent input { margin-top: 5px; }
.form-status { padding: 12px 15px; margin-bottom: 18px; border-radius: 10px; background: #eef8ef; color: #155a24; }
.hp-field { position: absolute; left: -9999px; }

.site-footer { color: rgba(255,255,255,.78); background: var(--wine-deep); }
.footer-main { padding: 58px 0 38px; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 35px; }
.footer-brand .brand-name { color: white; }
.footer-brand p { max-width: 250px; font-size: .84rem; }
.footer-col h2 { margin: 0 0 14px; color: white; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { padding: 0; margin: 0; list-style: none; font-size: .82rem; }
.footer-col a:hover { color: white; }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .74rem; }

.modal { width: min(680px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); color: white; background: var(--wine-dark); box-shadow: 0 30px 100px rgba(0,0,0,.4); }
.modal::backdrop { background: rgba(25,5,12,.75); backdrop-filter: blur(4px); }
.modal-inner { padding: 40px; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; color: white; background: transparent; font-size: 1.8rem; cursor: pointer; }
.video-placeholder { aspect-ratio: 16/9; display: grid; place-items: center; border-radius: var(--radius-sm); background: linear-gradient(135deg, #7d1232, #260711); text-align: center; }

.page-hero { padding: 90px 0; background: linear-gradient(115deg, #fffaf6, #fbe3e3); text-align: center; }
.page-hero h1 { margin: 0; font: 700 clamp(2.8rem,6vw,5rem) var(--serif); }
.entry-content { width: min(calc(100% - 40px), 850px); margin: 70px auto; }
.entry-content h2 { font-family: var(--serif); font-size: 2rem; }

@media (max-width: 1100px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .primary-nav.is-open { position: fixed; inset: 78px 0 0; display: block; padding: 35px; background: var(--cream); }
  .primary-nav.is-open ul { flex-direction: column; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; text-align: center; margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { width: min(100%, 750px); margin-inline: auto; }
  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
  .benefit-grid::before { display: none; }
  .story-grid { grid-template-columns: .9fr 1fr; }
  .progress-card { grid-column: 1 / -1; width: min(280px,100%); justify-self: center; }
  .footer-main { grid-template-columns: 2fr repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --space: 72px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 68px; }
  .primary-nav.is-open { inset-block-start: 68px; }
  .brand-name { font-size: 1.4rem; }
  .hero { padding-top: 50px; }
  .hero-grid { gap: 15px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4rem); }
  .hero-visual { min-height: 430px; transform: scale(.92); }
  .laptop { width: 87%; }
  .float-card { width: 145px; padding: 11px; font-size: .7rem; }
  .float-card .icon { flex-basis: 29px; height: 29px; }
  .card-live { left: -8px; top: 70px; }
  .card-flex { left: -14px; top: 175px; }
  .card-progress { left: 0; bottom: 55px; }
  .card-path { right: -12px; top: 120px; }
  .card-interactive { right: -17px; bottom: 90px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-card { min-height: 210px; }
  .course-grid > .swiper-wrapper { display: flex; gap: 0; }
  .course-card { flex: 0 0 84%; scroll-snap-align: start; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,.2); }
  .stat:nth-child(2) { border-right: 0; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .step-grid::before { display: none; }
  .testimonial-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .testimonial { flex: 0 0 88%; scroll-snap-align: center; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .story-media { min-height: 300px; }
  .story-list { grid-template-columns: 1fr; }
  .cta-inner { text-align: center; flex-direction: column; padding: 28px 20px; }
  .cta-copy { margin: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 460px) {
  .language-switcher { margin-left: auto; }
  .hero-visual { margin-inline: -20px; }
  .benefit-grid, .step-grid, .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .float-card { opacity: 1; }
}
