/* =========================================================
   CV Dinasty Books — Tema Buku Anak
   Palet diambil dari logo (db.jpg)
   ========================================================= */
:root {
  --navy: #1e2a8a;
  --navy-dark: #141d63;
  --sky: #1ba3e3;
  --sky-light: #bfe7fa;
  --pink: #e0127a;
  --pink-light: #fde0ee;
  --red: #e3101b;
  --sun: #ffd23f;
  --sun-light: #fff3c4;
  --green: #4cb944;
  --cream: #fff9ec;
  --paper: #fffdf7;
  --ink: #23264a;
  --muted: #5a5f86;

  --radius: 28px;
  --radius-sm: 16px;
  --border: 3px solid var(--navy);
  --shadow: 6px 6px 0 var(--navy);
  --shadow-sm: 4px 4px 0 var(--navy);

  --font-head: "Baloo 2", "Comic Sans MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream);
  /* tekstur kertas: titik-titik halus */
  background-image: radial-gradient(rgba(30, 42, 138, 0.06) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px dashed var(--pink); outline-offset: 3px; }

/* ---------- Teks pelangi untuk judul ---------- */
.rainbow span:nth-child(4n+1) { color: var(--pink); }
.rainbow span:nth-child(4n+2) { color: var(--sky); }
.rainbow span:nth-child(4n+3) { color: var(--red); }
.rainbow span:nth-child(4n+4) { color: var(--navy); }

/* ---------- Tombol "bubble" ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
  padding: .75rem 1.5rem;
  border: var(--border); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  background: #fff; color: var(--navy);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--navy); }
.btn svg { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.btn--pink { background: var(--pink); color: #fff; }
.btn--sun { background: var(--sun); color: var(--navy); }
.btn--sky { background: var(--sky); color: #fff; }
.btn--green { background: var(--green); color: #fff; }
.btn--orange { background: #ee4d2d; color: #fff; }
.btn--sm { font-size: .95rem; padding: .5rem 1.1rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.navbar__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img {
  width: 54px; height: 54px; border-radius: 50%;
  border: var(--border); background: #fff; object-fit: cover;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--red); letter-spacing: .5px; }
.brand__tag { font-size: .78rem; font-weight: 800; color: var(--navy); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-menu { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  display: block; padding: .45rem .95rem; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  color: var(--navy); text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-menu a:hover, .nav-menu a.active { background: var(--sky); color: #fff; }

.nav-toggle {
  display: none; width: 50px; height: 50px; border: var(--border); border-radius: 16px;
  background: var(--sun); box-shadow: var(--shadow-sm); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); border-radius: 3px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #7fd0f5 0%, var(--sky) 100%);
  padding: 4.5rem 0 7.5rem;
  color: #fff;
}
.hero__inner { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1.15fr .85fr; }
.hero__eyebrow {
  display: inline-block; background: var(--sun); color: var(--navy);
  font-family: var(--font-head); font-weight: 800; padding: .3rem 1rem;
  border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
  transform: rotate(-2deg); margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem); color: #fff; margin-bottom: .3em;
  text-shadow: 3px 3px 0 var(--navy), -1px -1px 0 var(--navy), 1px -1px 0 var(--navy), -1px 1px 0 var(--navy);
}
.hero h1 .accent { color: var(--sun); }
.hero__lead { font-size: 1.18rem; font-weight: 600; max-width: 34em; color: #fff; text-shadow: 0 1px 2px rgba(20, 29, 99, .35); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.hero__logo {
  position: relative; justify-self: center;
  width: min(380px, 80vw); aspect-ratio: 1;
  border-radius: 50%; background: #fff;
  border: 5px solid var(--navy); box-shadow: 10px 10px 0 var(--navy);
  display: grid; place-items: center; overflow: hidden;
  animation: wobble 6s ease-in-out infinite;
}
.hero__logo img { width: 92%; }

.hero__deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cloud { position: absolute; fill: #fff; opacity: .9; }
.cloud--1 { width: 170px; top: 8%; left: -40px; animation: drift 28s linear infinite; }
.cloud--2 { width: 120px; top: 18%; right: 6%; animation: drift 34s linear infinite reverse; }
.cloud--3 { width: 90px; bottom: 26%; left: 42%; opacity: .7; animation: drift 40s linear infinite; }
.star { position: absolute; fill: var(--sun); stroke: var(--navy); stroke-width: 2; animation: twinkle 3s ease-in-out infinite; }
.star--1 { width: 34px; top: 14%; left: 46%; }
.star--2 { width: 24px; top: 60%; left: 6%; animation-delay: .8s; }
.star--3 { width: 28px; top: 10%; right: 32%; animation-delay: 1.5s; }
.star--4 { width: 20px; bottom: 30%; right: 4%; animation-delay: 2.1s; }
.letter {
  position: absolute; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem;
  width: 62px; height: 62px; display: grid; place-items: center;
  border: var(--border); border-radius: 18px; box-shadow: var(--shadow-sm);
  animation: bob 4s ease-in-out infinite;
}
.letter--a { background: var(--pink); color: #fff; bottom: 22%; left: 3%; transform: rotate(-10deg); }
.letter--b { background: var(--sun); color: var(--navy); top: 70%; left: 48%; animation-delay: .7s; }
.letter--c { background: var(--green); color: #fff; top: 6%; right: 3%; animation-delay: 1.4s; }

/* Gelombang pemisah */
.wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 3; }
.wave path { fill: var(--cream); }

/* ---------- Section umum ---------- */
.section { padding: 5rem 0; position: relative; }
.section--alt { background: var(--sky-light); }
.section--pink { background: var(--pink-light); }
.section--sun { background: var(--sun-light); }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__label {
  display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: .95rem;
  letter-spacing: 2px; text-transform: uppercase;
  color: #fff; background: var(--red); padding: .2rem 1rem; border-radius: 999px;
  border: var(--border); transform: rotate(-2deg); margin-bottom: .8rem;
}
.section__title { font-size: clamp(2rem, 4vw, 2.9rem); }
.section__desc { color: var(--muted); font-size: 1.1rem; }

/* Kartu "halaman buku" */
.card {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; position: relative;
}
.card--fold::after {
  /* sudut kertas terlipat */
  content: ""; position: absolute; top: -3px; right: -3px; width: 46px; height: 46px;
  background: linear-gradient(225deg, var(--cream) 50%, var(--sun) 50%);
  border-left: var(--border); border-bottom: var(--border);
  border-radius: 0 var(--radius) 0 14px;
}

/* ---------- Profil ---------- */
.profile-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: stretch; }
.profile-history h3, .profile-vision h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.6rem; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: inline-grid; place-items: center; border: var(--border);
  font-size: 1.5rem; line-height: 1;
}
.icon-badge--pink { background: var(--pink); }
.icon-badge--sky { background: var(--sky); }
.icon-badge--sun { background: var(--sun); }
.icon-badge--green { background: var(--green); }
.icon-badge--red { background: var(--red); }

.facts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.fact {
  background: var(--sun-light); border: 2px dashed var(--navy); border-radius: 14px;
  padding: .4rem .9rem; font-weight: 700; font-size: .95rem; color: var(--navy);
}

.profile-vision { background: var(--navy); color: #fff; }
.profile-vision h3 { color: var(--sun); }
.profile-vision blockquote {
  margin: 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.5;
  position: relative; padding-top: 1.2rem;
}
.profile-vision blockquote::before {
  content: "\201C"; position: absolute; top: -1.6rem; left: -.4rem;
  font-size: 5rem; color: var(--pink); font-family: Georgia, serif;
}

.mission-title { text-align: center; margin: 3.5rem 0 1.8rem; font-size: 2rem; }
.mission-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.mission {
  padding: 1.6rem 1.4rem; text-align: left; transition: transform .25s;
}
.mission:nth-child(odd) { transform: rotate(-1.2deg); }
.mission:nth-child(even) { transform: rotate(1.2deg); }
.mission:hover { transform: rotate(0) translateY(-6px); }
.mission .icon-badge { margin-bottom: 1rem; width: 58px; height: 58px; font-size: 1.8rem; }
.mission h4 { font-size: 1.25rem; }
.mission p { font-size: .98rem; margin: 0; color: var(--muted); }

/* ---------- Buku ---------- */
.books-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
.book {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.6rem; align-items: start;
  padding: 1.6rem;
}
.book__cover {
  perspective: 900px; position: relative;
}
.book__cover img {
  border-radius: 6px 14px 14px 6px; border: var(--border);
  box-shadow: 8px 8px 0 var(--navy);
  transform-origin: left center;
  transition: transform .45s ease;
}
.book:hover .book__cover img { transform: rotateY(-18deg) scale(1.02); }
.book__ribbon {
  position: absolute; top: -12px; right: -12px; z-index: 2;
  background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: .85rem;
  padding: .3rem .8rem; border: var(--border); border-radius: 999px; transform: rotate(8deg);
}
.book__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .7rem; }
.tag {
  font-size: .8rem; font-weight: 800; padding: .2rem .7rem; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--sky-light); color: var(--navy);
}
.tag--pink { background: var(--pink-light); }
.tag--sun { background: var(--sun-light); }
.book h3 { font-size: 1.55rem; margin-bottom: .35rem; }
.book__meta { list-style: none; padding: 0; margin: 0 0 .9rem; font-size: .95rem; }
.book__meta li { display: flex; gap: .4rem; }
.book__meta strong { color: var(--navy); min-width: 92px; }
.book__summary { color: var(--muted); font-size: .98rem; }
.book__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Modal sinopsis ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 1.2rem;
  background: rgba(20, 29, 99, .6);
}
.modal.open { display: flex; animation: fade .2s ease; }
.modal__dialog {
  width: min(760px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--navy); padding: 2.2rem;
  animation: pop .3s cubic-bezier(.34, 1.56, .64, 1);
}
.modal__close {
  float: right; width: 44px; height: 44px; border-radius: 50%;
  border: var(--border); background: var(--pink); color: #fff;
  font-size: 1.5rem; font-weight: 800; line-height: 1; cursor: pointer;
  margin: -1rem -1rem .5rem .8rem;
}
.modal h3 { font-size: 1.8rem; }
.modal__author { color: var(--pink); font-weight: 800; margin-bottom: 1rem; }
.chapter-list { list-style: none; padding: 0; margin: 1rem 0 1.2rem; display: grid; gap: .7rem; }
.chapter-list li {
  display: flex; gap: .9rem; align-items: flex-start;
  background: var(--cream); border: 2px solid var(--navy); border-radius: 16px; padding: .8rem 1rem;
}
.chapter-list .num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 800; color: #fff; background: var(--sky); border: 2px solid var(--navy);
}
.chapter-list li:nth-child(4n+2) .num { background: var(--pink); }
.chapter-list li:nth-child(4n+3) .num { background: var(--green); }
.chapter-list li:nth-child(4n+4) .num { background: var(--red); }
.chapter-list .page { font-size: .82rem; font-weight: 800; color: var(--pink); white-space: nowrap; }
body.modal-open { overflow: hidden; }

/* ---------- Layanan ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service { display: flex; flex-direction: column; padding-top: 3rem; margin-top: 2rem; }
.service__icon {
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 76px; border-radius: 50%; border: var(--border);
  display: grid; place-items: center; font-size: 2.2rem; box-shadow: var(--shadow-sm);
}
.service h3 { text-align: center; font-size: 1.4rem; }
.service ul { padding-left: 0; list-style: none; margin: 0 0 1.4rem; flex: 1; }
.service li { position: relative; padding-left: 1.8rem; margin-bottom: .8rem; font-size: .98rem; }
.service li::before {
  content: "\2605"; position: absolute; left: 0; top: 0; color: var(--sun);
  -webkit-text-stroke: 1px var(--navy); font-size: 1.15rem;
}
.service li strong { color: var(--navy); display: block; }
.service .btn { align-self: center; }

/* ---------- Legalitas ---------- */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.certificate {
  border: 4px double var(--navy); outline: 3px solid var(--navy); outline-offset: 6px;
  margin: 10px;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box;
}
.certificate__seal {
  position: absolute; top: -26px; right: 24px; width: 70px; height: 70px; border-radius: 50%;
  background: var(--red); border: var(--border); color: #fff; display: grid; place-items: center;
  font-size: 1.9rem; box-shadow: var(--shadow-sm);
}
.certificate__seal::after {
  content: ""; position: absolute; bottom: -26px; left: 50%; width: 34px; height: 30px; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red) 50%, transparent 50%) left / 50% 100% no-repeat,
              linear-gradient(225deg, var(--red) 50%, transparent 50%) right / 50% 100% no-repeat;
  z-index: -1;
}
.certificate h3 { font-size: 1.5rem; padding-right: 80px; }
.certificate__number {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; letter-spacing: 2px;
  color: var(--pink); margin-bottom: .8rem;
}
.legal-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.legal-table th, .legal-table td { text-align: left; padding: .45rem 0; vertical-align: top; border-bottom: 2px dotted rgba(30, 42, 138, .2); }
.legal-table th { color: var(--navy); width: 42%; padding-right: .8rem; }
.legal-table tr:last-child th, .legal-table tr:last-child td { border-bottom: 0; }

.kbli { margin-top: 2.6rem; }
.kbli h3 { text-align: center; font-size: 1.6rem; }
.kbli-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.kbli-list li {
  background: var(--paper); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  padding: 1rem 1.1rem; font-weight: 700; font-size: .95rem;
}
.kbli-list code {
  display: inline-block; font-family: var(--font-head); font-size: 1.05rem; font-weight: 800;
  background: var(--sun); color: var(--navy); border: 2px solid var(--navy); border-radius: 10px;
  padding: 0 .55rem; margin-bottom: .4rem;
}

/* ---------- Kontak ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list h4 { margin: 0 0 .1rem; font-size: 1.15rem; }
.contact-list p { margin: 0; }
.contact-list a { color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--pink); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.map {
  padding: 0; overflow: hidden; min-height: 380px;
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Media sosial ---------- */
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.social {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem;
  text-decoration: none; color: var(--ink); padding: 1.6rem 1rem;
  transition: transform .2s;
}
.social:hover { transform: translateY(-6px) rotate(-1.5deg); }
.social__icon {
  width: 74px; height: 74px; border-radius: 50%; border: var(--border); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); margin-bottom: .4rem;
}
.social__icon svg { width: 36px; height: 36px; fill: #fff; }
.social--ig .social__icon { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.social--tt .social__icon { background: #111; }
.social--fb .social__icon { background: #1877f2; }
.social--shopee .social__icon { background: #ee4d2d; }
.social h4 { margin: 0; font-size: 1.2rem; }
.social span { font-weight: 700; color: var(--pink); font-size: .95rem; word-break: break-word; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--navy); color: #dfe4ff; padding: 6rem 0 2rem; margin-top: 3rem; }
.footer .wave { top: -1px; bottom: auto; transform: rotate(180deg); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.2rem; }
.footer h4 { color: var(--sun); font-size: 1.25rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--sun); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer__brand { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.footer__brand img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #fff; background: #fff; }
.footer__brand strong { font-family: var(--font-head); font-size: 1.5rem; color: #fff; display: block; line-height: 1.1; }
.footer__bottom { border-top: 2px dashed rgba(255, 255, 255, .25); margin-top: 2.5rem; padding-top: 1.4rem; text-align: center; font-size: .92rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%; background: #25d366;
  border: var(--border); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; animation: bob 3s ease-in-out infinite;
}
.wa-float svg { width: 34px; height: 34px; fill: #fff; }
.wa-float:hover { animation-play-state: paused; transform: scale(1.08); }

/* ---------- Animasi ---------- */
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(110vw); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.75) rotate(20deg); opacity: .7; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.reveal { opacity: 0; translate: 0 30px; transition: opacity .6s ease, translate .6s ease; }
.reveal.visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1080px) {
  .mission-grid { grid-template-columns: repeat(2, 1fr); }
  .books-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-menu {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: .2rem; padding: 1rem 1.25rem 1.4rem;
    background: var(--cream); border-bottom: var(--border);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1.15rem; padding: .7rem 1rem; }

  .hero { padding: 3rem 0 6.5rem; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__logo { order: -1; width: min(260px, 70vw); }
  .hero__lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .letter { display: none; }

  .profile-grid, .legal-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 3.8rem 0; }
  .card { padding: 1.5rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book__cover { max-width: 240px; margin: 0 auto .5rem; }
  .brand__tag { display: none; }
  .certificate__number { font-size: 1.5rem; }
  .legal-table th { width: 46%; }
  .modal__dialog { padding: 1.6rem; }
}
