@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Great+Vibes&family=Source+Sans+3:wght@600&display=swap");

:root {
  --bg: #3a0709;
  --bg-deep: #140202;
  --bg-card: #4e1216;
  --bg-elevated: #5c171c;
  --fg: #fff8ee;
  --muted: #f0d4c4;
  --heading: #fff066;
  --heading-bright: #ffff00;
  --nav: #4382ff;
  --brand-blue: #6ea8ff;
  --link: #7eb0ff;
  --accent-fg: #3a0709;
  --border: rgb(255 240 200 / 0.2);
  --border-strong: rgb(255 240 200 / 0.38);
  --font-display: "Cinzel", "Cormorant Garamond", serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Cormorant Garamond", cursive;
  --shadow: 0 0 0 1px rgb(255 240 200 / 0.14), 0 8px 24px -8px rgb(0 0 0 / 0.45);
  --text-brand: clamp(3.4rem, 2rem + 7vw, 7.4rem);
  --text-2xl: clamp(2.1rem, 1.5rem + 2vw, 3.25rem);
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-serif);
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg);
  background-color: var(--bg-deep);
  background-image: radial-gradient(ellipse 90% 70% at 50% 18%, #9b1c1c 0%, #6b1010 32%, #3a0709 62%, #140202 100%);
  background-attachment: fixed;
}
button:not(:disabled), [role="button"]:not(:disabled) { cursor: pointer; }
a { color: var(--nav); }
::selection { background: var(--heading); color: var(--accent-fg); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-serif); }
p { text-wrap: pretty; }

.page-wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.section-title {
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--heading);
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
  margin: 0;
}
.gold-rule {
  height: 1px; width: 7rem; border: 0; margin: 0.75rem 0 2rem;
  background: linear-gradient(90deg, transparent, var(--heading), transparent);
}
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1rem; }
.prose a { text-underline-offset: 3px; }
.prose a:hover { color: var(--link); }

.skip {
  position: absolute; left: -9999px;
}
.skip:focus {
  left: 1rem; top: 1rem; z-index: 80;
  background: var(--heading); color: var(--accent-fg);
  padding: 0.5rem 1rem; border-radius: 8px;
}

header.site {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--bg-deep);
  overflow: visible;
}
.header-inner { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0; }
.brand-link {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--fg); text-decoration: none; flex-shrink: 0;
}
.brand-link img { width: 80px; height: 80px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.04em; color: var(--heading); }
nav.desktop { margin-left: auto; display: none; align-items: center; gap: 1.35rem; }
nav.desktop a {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--nav);
  text-decoration: none;
  padding: 0.5rem 0.2rem;
}
nav.desktop a:hover { color: var(--link); }
nav.desktop a.active { color: var(--heading); }
nav.desktop a.active::after,
nav.desktop a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: var(--heading);
}
.lang-wrap { position: relative; }
.lang-btn, .menu-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; background: none; border: 0; color: var(--nav);
  font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em;
}
.menu-btn { margin-left: auto; color: var(--heading); }
.menu-toggle {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.menu-btn .icon-close { display: none; }
header.site:has(.menu-toggle:checked) .icon-menu { display: none; }
header.site:has(.menu-toggle:checked) .icon-close { display: block; }
header.site:has(.menu-toggle:checked) .mobile-panel { display: block; }
body:has(.menu-toggle:checked) { overflow: hidden; }
.lang-menu {
  display: none; position: absolute; right: 0; top: 100%; z-index: 20;
  min-width: 10rem; background: var(--bg-card); border-radius: 12px;
  box-shadow: var(--shadow); padding: 0.25rem 0; list-style: none; margin: 0;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; min-height: 44px; align-items: center; padding: 0 1rem;
  color: var(--fg); text-decoration: none; font-size: 1.1rem;
}
.lang-menu a:hover { background: var(--bg-elevated); }
.lang-menu a.current { color: var(--heading); }

.mobile-panel {
  display: none;
  position: absolute;
  left: 0; right: 0; top: 100%;
  z-index: 40;
  min-height: calc(100dvh - 100%);
  background: var(--bg-deep);
  overflow: auto;
  padding: 1.5rem 1.25rem;
}
.mobile-panel.open { display: block; }
.mobile-panel nav { max-width: 24rem; margin: 0 auto; display: flex; flex-direction: column; }
.mobile-panel nav > a {
  min-height: 48px; display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display); font-size: 0.9rem; letter-spacing: 0.08em;
  color: var(--nav); text-decoration: none;
}
.mobile-panel nav > a.active { color: var(--heading); }
.lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; }
.lang-grid a {
  min-height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--fg); text-decoration: none;
  box-shadow: 0 0 0 1px var(--border);
}
.lang-grid a.current { background: var(--heading); color: var(--accent-fg); box-shadow: none; }
.lang-label { margin: 1.5rem 0 0.5rem; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--heading); }

main { flex: 1; padding: 2.5rem 0 3.5rem; }

.hero {
  display: flex; flex-direction: column; align-items: center; gap: 2rem;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  letter-spacing: 0.04em; margin: 0;
  white-space: nowrap;
  font-size: clamp(2.15rem, 1rem + 6.2vw, 6.5rem);
}
.hero .linguo {
  color: var(--brand-blue);
  text-shadow: 0 2px 18px rgb(110 168 255 / 0.35);
}
.hero .sofia {
  color: var(--heading-bright);
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.35);
}
.tagline { margin: 0; font-family: var(--font-script); font-size: clamp(1.8rem, 1.2rem + 2vw, 2.4rem); color: var(--fg); }
.tagline.serif { font-family: var(--font-serif); font-style: italic; }
.hero img { width: min(32rem, 100%); border-radius: 0; display: block; margin-inline: auto; }
.language-courses { margin-top: 5rem; }
.intro { margin-top: 4rem; padding-top: 3.5rem; border-top: 1px solid var(--border); }
.intro .prose { max-width: 48rem; font-size: 1.15rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }
.btn {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center;
  padding: 0.6rem 1.5rem; border-radius: 8px; font-family: var(--font-serif);
  font-size: 1.05rem; font-weight: 600; text-decoration: none; border: 0;
  transition: transform 150ms ease;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--heading); color: var(--accent-fg); }
.btn-ghost { color: var(--nav); box-shadow: 0 0 0 1px var(--nav); background: transparent; }
.btn-ghost:hover { background: var(--bg-elevated); }

.split { display: grid; gap: 2.5rem; align-items: start; }
.portrait { border-radius: 12px; box-shadow: var(--shadow); width: 100%; max-width: 28rem; }
.map, .flags-collage {
  display: block; margin: 2.5rem auto 0; width: 100%; max-width: 32rem;
  border-radius: 12px; box-shadow: var(--shadow);
}
.flags-collage { background: var(--fg); }
.flag-row {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.flag-row li { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.flag-row img {
  width: 7.5rem; height: 4.2rem; object-fit: cover; border-radius: 0; box-shadow: var(--shadow);
}
.flag-row span { font-size: 0.95rem; color: var(--heading); }
.pairs { margin: 0.75rem 0 1.5rem; padding: 0; list-style: none; font-weight: 600; color: var(--heading); }
.pairs li { margin: 0.25rem 0; }
.block + .block { margin-top: 5rem; padding-top: 3.5rem; border-top: 1px solid var(--border); }

.contact-grid { display: grid; gap: 3rem; }
form.contact { display: flex; flex-direction: column; gap: 1rem; }
label.field { display: block; font-size: 0.95rem; font-weight: 500; color: var(--heading); }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 44px; margin-top: 0.35rem;
  border: 0; border-radius: 8px; padding: 0.65rem 0.9rem;
  background: rgb(20 2 2 / 0.6); color: var(--fg);
  font-family: var(--font-serif); font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px var(--border);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--heading); }
.file-row {
  display: flex; align-items: center; gap: 0.5rem; margin-top: 0.35rem;
  min-height: 44px; padding: 0.5rem 0.9rem; border-radius: 8px;
  background: rgb(20 2 2 / 0.6); box-shadow: inset 0 0 0 1px var(--border);
  color: var(--muted); font-size: 1rem;
}
.file-row input { color: var(--fg); }
.form-error { color: var(--heading); font-size: 0.95rem; margin: 0; }
.form-ok { color: var(--fg); font-size: 0.95rem; margin: 0; }
.direct { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.25rem; font-size: 1.15rem; }
.direct li { display: flex; gap: 0.75rem; }
.direct svg { margin-top: 0.3rem; color: var(--heading); flex-shrink: 0; }
.direct .lbl { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--heading); margin: 0; }
.direct .direct-value { color: var(--fg); }
.email-address {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9em;
  font-style: normal;
  font-synthesis: none;
  letter-spacing: normal;
}
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.carousel { margin-top: 4rem; }
.carousel-box {
  position: relative; border-radius: 16px;
  background: rgb(78 18 22 / 0.8); padding: 2rem 1.25rem; box-shadow: var(--shadow);
}
.carousel-quote { position: absolute; top: 1.25rem; left: 1.25rem; color: rgb(255 240 102 / 0.25); }
.track { display: block; }
.slide { display: none; padding: 0 0.25rem; }
.slide.on { display: block; }
.slide p { font-size: 1.2rem; line-height: 1.45; font-style: italic; margin: 0; }
.slide cite { font-style: normal; display: block; margin-top: 1.5rem; }
.slide .who { display: block; font-weight: 600; color: var(--heading); }
.slide .role { display: block; margin-top: 0.15rem; font-size: 0.95rem; color: var(--muted); }
.carousel-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; }
.dots { display: flex; gap: 0.5rem; }
.dots button {
  height: 10px; width: 10px; border-radius: 999px; border: 0;
  background: var(--border-strong); padding: 0;
}
.dots button.on { width: 32px; background: var(--heading); }
.arrows { display: flex; gap: 0.25rem; }
.arrows button {
  width: 44px; height: 44px; border: 0; border-radius: 8px;
  background: transparent; color: var(--heading);
}
.arrows button:hover { background: var(--bg-elevated); }

footer.site {
  margin-top: auto; border-top: 1px solid var(--border);
  background: rgb(20 2 2 / 0.7);
}
.footer-inner {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 2rem 0;
}
.footer-inner p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-inner a {
  background: none; border: 0; padding: 0; color: var(--nav);
  font-family: var(--font-serif); font-size: 0.95rem; text-decoration: none;
}
.footer-inner a:hover { color: var(--link); }

.cookie {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 30; padding: 0.75rem;
}
.cookie.show { display: block; }
.cookie-inner {
  max-width: 48rem; margin: 0 auto; background: var(--bg-card);
  border-radius: 16px; padding: 1.15rem 1.25rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.cookie h2 { margin: 0; font-size: 1.15rem; color: var(--heading); }
.cookie p { margin: 0.35rem 0 0; font-size: 0.98rem; }
.cookie-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.updated { font-size: 0.95rem; color: var(--muted); margin: 0 0 2.5rem; }
.privacy-sec { max-width: 48rem; margin-bottom: 2.5rem; }
.privacy-sec h2 { font-size: 1.35rem; color: var(--heading); margin: 0 0 0.75rem; }

@media (min-width: 640px) {
  .flag-row { grid-template-columns: repeat(4, 1fr); }
  .cookie-actions { flex-direction: row; justify-content: flex-end; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .carousel-box { padding: 2rem 2.5rem; }
}
@media (min-width: 768px) {
  .brand-name { display: none; }
}
@media (min-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1.15fr 0.85fr; }
}
@media (min-width: 1024px) {
  nav.desktop { display: flex; }
  .menu-btn, .mobile-panel, .brand-name, .menu-toggle { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
