@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --text: #1f1f1f;
  --muted: #4d5a70;
  --primary: #1e73be;
  --accent: #f56e28;
  --card: #ffffff;
  --surface: #f0f4fa;
  --shadow: 0 10px 32px rgba(15, 37, 68, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Lato', 'Roboto', 'Segoe UI', Tahoma, Geneva, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: .5rem .75rem; border-radius: .25rem; }

.container { width: min(1280px, 94%); margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.site-header { position: sticky; top: 0; backdrop-filter: saturate(160%) blur(8px); background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(15,37,68,.08); z-index: 10; padding: 0.35rem 0; }
.header-inner { display: flex; align-items: center; justify-content: center; gap: 1.25rem; padding: 1.15rem 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .4px; }
.nav { display: flex; gap: 1.2rem; align-items: center; justify-content: center; }
.nav a { color: var(--text); text-decoration: none; opacity: .85; transition: color .2s ease, opacity .2s ease; font-weight: 500; display: inline-flex; align-items: center; }
.nav a.btn { color: inherit; background: transparent; box-shadow: none; padding: 0; border-radius: 0; border: none; }
.nav a:hover { color: var(--primary); opacity: 1; }
.nav a.btn:hover { color: var(--primary); background: transparent; box-shadow: none; }
.nav-toggle { display: none; }
@media (max-width: 800px) {
  .nav { position: absolute; right: 4%; top: 58px; background: #ffffff; padding: .75rem; border-radius: .75rem; box-shadow: var(--shadow); display: none; }
  .nav.open { display: grid; gap: .65rem; }
  .nav-toggle { display: inline-flex; background: transparent; border: 1px solid rgba(15,37,68,.2); color: var(--text); padding: .4rem .6rem; border-radius: .5rem; }
}

.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section-title { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
:is(#services, #experience, #about, #education, #contact) {
  scroll-margin-top: clamp(84px, 10vh, 128px);
}
.section-intro { max-width: min(720px, 100%); margin: 0 auto 2.5rem; text-align: center; }
.section-intro h2 { margin-bottom: .85rem; }
.section-intro p { margin: 0; color: var(--muted); }

.hero .hero-copy h1 { margin: 0 0 .75rem; font-size: clamp(1.8rem, 1.25rem + 2.4vw, 3rem); line-height: 1.15; }
.hero p { color: var(--muted); max-width: 52ch; }
.actions { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.hero .actions { gap: .5rem; }
.credibility { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 1.25rem 0 0; color: var(--muted); flex-wrap: wrap; }

.hero-visual { display: grid; place-items: center; }
.visual-card { position: relative; width: clamp(280px, 60vw, 420px); height: clamp(220px, 45vw, 320px); background: linear-gradient(135deg, rgba(30,115,190,.1), rgba(12,66,124,.25)); border: 1px solid rgba(30,115,190,.12); border-radius: 18px; box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.visual-card .hero-image { width: 100%; height: 100%; object-fit: cover; opacity: .9; filter: saturate(1.05); }
.visual-card .badge { position: absolute; bottom: 14px; right: 14px; background: rgba(255,255,255,.9); border: 1px solid rgba(30,115,190,.2); padding: .35rem .7rem; border-radius: 999px; font-size: .85rem; color: var(--primary); font-weight: 600; letter-spacing: .2px; }
.burst { position: absolute; width: 160%; height: 160%; background: radial-gradient(circle at 20% 30%, rgba(30,115,190,.35), transparent 35%),
  radial-gradient(circle at 80% 70%, rgba(245,110,40,.25), transparent 40%),
  radial-gradient(circle at 60% 20%, rgba(255,255,255,.28), transparent 35%);
  animation: float 12s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .burst { animation: none; } }
@keyframes float { 0% { transform: translateY(-2%); } 50% { transform: translateY(2%); } 100% { transform: translateY(-2%); } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid rgba(15,37,68,.08); border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--muted); }

.books,
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), min(320px, 100%)));
  gap: 1.2rem;
  align-items: stretch;
  justify-content: center;
  justify-items: center;
  grid-auto-rows: 1fr;
}
@media (max-width: 900px) {
  .books,
  .books-grid {
    gap: 1rem;
  }
}
.book {
  background: var(--card);
  border: 1px solid rgba(15,37,68,.08);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  height: 100%;
  min-height: 520px;
  width: min(100%, 320px);
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.books-grid--single {
  max-width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
}
.books-grid--double {
  max-width: min(100%, calc(640px + 1.2rem));
  margin-left: auto;
  margin-right: auto;
}
.cover {
  height: 96px;
  background: linear-gradient(135deg, rgba(30,115,190,.12), rgba(12,66,124,.2));
  border: 1px solid rgba(30,115,190,.22);
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #1a3f66;
  font-weight: 600;
  padding: .25rem;
}
.cover span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 .25rem;
  font-size: clamp(.78rem, .75vw + .45rem, .95rem);
  line-height: 1.15;
  max-width: 100%;
  word-break: break-word;
}
.book img.cover-img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(15,37,68,.08); display: block; }
.book-title { margin: .25rem 0 0; }
.book-meta { color: var(--muted); margin: 0 0 .25rem; }
.book-price { margin: 0 0 .4rem; font-weight: 600; color: var(--primary); }
.book .btn.btn--secondary { margin-top: auto; align-self: stretch; text-align: center; }
@media (max-width: 900px) { .book { min-height: 420px; } }

.highlights { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: min(520px, 100%); width: min(100%, 520px); justify-self: start; }
@media (max-width: 900px) { .highlights { width: 100%; max-width: 100%; } }
.highlights li {
  background: rgba(30,115,190,.1);
  border: 1px solid rgba(30,115,190,.2);
  border-radius: 999px;
  padding: .75rem 1.25rem;
  width: fit-content;
  color: var(--primary);
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(15, 37, 68, 0.12);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  will-change: transform, box-shadow, background-color;
  outline: 2px solid transparent;
  outline-offset: 4px;
  cursor: pointer;
}
.highlights li:hover {
  background: rgba(30,115,190,.3);
  box-shadow: 0 12px 26px rgba(15,37,68,.2);
  transform: translateY(-2px);
}
.highlights li:focus,
.highlights li:focus-visible {
  background: rgba(30,115,190,.2);
  box-shadow: 0 12px 28px rgba(15,37,68,.22);
  transform: translateY(-2px);
  outline-width: 2px;
  outline-style: solid;
  outline-color: var(--accent);
  outline-offset: 4px;
}
#about .highlights li { /* lock about highlights; no hover/click motion */
  cursor: default;
  transition: none;
  background: rgba(30,115,190,.1);
  box-shadow: 0 6px 18px rgba(15, 37, 68, 0.12);
  transform: none;
  outline-color: transparent;
}
#about .highlights li:hover,
#about .highlights li:focus,
#about .highlights li:focus-visible,
#about .highlights li:active {
  background: rgba(30,115,190,.1);
  box-shadow: 0 6px 18px rgba(15, 37, 68, 0.12);
  transform: none;
  outline-color: transparent;
}
@media (prefers-reduced-motion: reduce) {
  .highlights li { transition: background-color .2s ease, box-shadow .2s ease; }
  .highlights li:hover,
  .highlights li:focus-visible { transform: none; }
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  align-items: stretch;
}
.course-card {
  background: var(--card);
  border: 1px solid rgba(15,37,68,.08);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  min-height: 280px;
}
.course-card h3 { margin: .35rem 0 0; font-size: 1.1rem; }
.course-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.course-summary { margin: 0; color: var(--text); line-height: 1.5; }
.course-tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(245,110,40,.12);
  color: var(--accent);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.course-card .btn { margin-top: auto; align-self: stretch; text-align: center; width: 100%; justify-content: center; }
@media (max-width: 720px) {
  .section-intro { text-align: left; margin-bottom: 2rem; }
}

.timeline { display: grid; gap: 1.5rem; }
.timeline-item { background: var(--card); border: 1px solid rgba(15,37,68,.08); border-radius: 18px; padding: 1.25rem 1.5rem; box-shadow: var(--shadow); }
.timeline-period { display: block; font-size: .95rem; color: var(--muted); margin-bottom: .35rem; letter-spacing: .2px; }
.timeline-item h3 { margin: .2rem 0 .4rem; }
.timeline-item p { margin: 0; color: var(--muted); line-height: 1.55; }

.cta { text-align: center; background: linear-gradient(160deg, rgba(30,115,190,.08), rgba(245,110,40,.12)); border-top: 1px solid rgba(15,37,68,.08); border-bottom: 1px solid rgba(15,37,68,.08); }
.contact-form { text-align: left; max-width: 860px; margin: 1rem auto 0; display: grid; gap: .75rem; }
.contact-form label { display: grid; gap: .35rem; color: var(--text); }
.contact-form input, .contact-form textarea { background: #f8fbff; color: var(--text); border: 1px solid rgba(15,37,68,.12); border-radius: .55rem; padding: .65rem .75rem; }
.form-note { color: var(--muted); margin: .25rem 0 0; }
.form-success { background: rgba(30,115,190,.12); border: 1px solid rgba(30,115,190,.2); padding: .6rem .7rem; border-radius: .55rem; color: var(--primary); }

.site-footer { border-top: 1px solid rgba(15,37,68,.08); background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; color: var(--muted); }
.site-footer a { color: var(--primary); text-decoration: none; font-weight: 500; }
.site-footer a:hover { color: #0c3a6d; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .68rem 1.05rem; border-radius: .85rem; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease; font-weight: 600; letter-spacing: .2px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #ffffff; border-color: rgba(30,115,190,.2); box-shadow: 0 8px 18px rgba(30,115,190,.25); }
.btn--primary:hover { background: #155a93; box-shadow: 0 10px 22px rgba(21,90,147,.3); }
.btn--secondary { background: rgba(30,115,190,.08); color: var(--primary); border-color: rgba(30,115,190,.18); }
.btn--secondary:hover { background: rgba(30,115,190,.18); }
.btn--ghost { background: transparent; color: var(--primary); border-color: rgba(30,115,190,.2); }
.btn--ghost:hover { background: rgba(30,115,190,.08); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Locale suggestion bar */
.suggest-bar { position: sticky; top: 0; z-index: 20; background: #122a4d; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--text); }
.suggest-inner { width: min(1100px, 92%); margin: 0 auto; padding: .6rem .5rem; display: flex; gap: .75rem; align-items: center; justify-content: space-between; }
.suggest-actions { display: flex; gap: .5rem; }
.suggest-dismiss { background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--text); border-radius: .4rem; padding: .3rem .6rem; }
.book-controls { display:flex; justify-content:center; margin-bottom:1.5rem; }
.book-filters { display:flex; flex-wrap:wrap; gap:.6rem; justify-content:center; }
.book-filters button { border:1px solid var(--primary); color: var(--primary); background: transparent; padding: .55rem 1.2rem; border-radius: 999px; cursor:pointer; font-weight:600; transition: all .2s ease; }
.book-filters button.active, .book-filters button:hover { background: var(--primary); color: #031919; }

.hero-visual { display:flex; justify-content:center; }
