:root {
  --purple: #6c4474;
  --purple-dark: #412746;
  --gray-bg: #f6f6f6;
  --line: #e2e2e2;
  --ink: #1b1b1b;
  --muted: #595959;
}

/* Cabin and Lato, Latin and Latin-ext, SIL Open Font License. See assets/fonts/*-OFL.txt */
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/cabin-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cabin";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/cabin-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 100;
  background: #000;
  color: #fff;
  padding: 0.55rem 1rem;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--purple);
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  font-weight: 400;
}

.container {
  width: min(1140px, 100% - 3rem);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-family: "Lato", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-white { background: #fff; color: var(--ink); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-black { background: #000; color: #fff; }
.btn-block { display: block; width: 100%; }

/* Header */
.site-header {
  position: relative;
  z-index: 40;
  background: #fff;
  height: 64px;
}

.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 1.5rem;
}

.logo-box {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  background: #fff;
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.logo-box img {
  width: 300px;
  height: auto;
}

.header-book {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}

.header-book:hover {
  color: var(--purple);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.hero-image {
  background: url("assets/stock/hero-books.jpg") center / cover no-repeat;
}

.hero-panel {
  background: var(--purple);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 3rem 3rem;
}

.hero-panel h1 {
  font-family: "Cabin", Arial, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  max-width: 10em;
}

.hero-panel p {
  font-size: 1.1rem;
  margin: 1.2rem 0 1.8rem;
  max-width: 18em;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-gray {
  background: var(--gray-bg);
  border-top: 1px solid var(--line);
}

.section-purple {
  background: var(--purple);
  color: #fff;
}

.section-title {
  font-family: "Cabin", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--purple);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: 0.02em;
  margin-bottom: 2.2rem;
}

.section-purple .section-title {
  color: #fff;
}

h4 {
  font-size: 1.3rem;
  color: var(--ink);
}

/* Intro */
.intro-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.intro-text {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 1100px;
  margin: 1.5rem auto 0;
}

.intro-text h3,
.about-item h3,
.contact-form h3,
.contact-info h3 {
  font-size: 1.3rem;
  color: var(--ink);
}

.intro-text h3 {
  margin-bottom: 1.2rem;
}

.intro-text p {
  margin: 0 0 0.3rem;
}

.intro-text .btn {
  margin-top: 1.5rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.about-item {
  text-align: center;
}

.about-item img {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
}

.about-item h3 {
  margin-bottom: 1rem;
}

.clamp {
  color: var(--muted);
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.clamp p {
  margin: 0 0 0.6rem;
}

.about-item.expanded .clamp {
  display: block;
}

.show-more {
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  cursor: pointer;
}

.show-more::before {
  content: "+ ";
}

.about-item.expanded .show-more::before {
  content: "\2212  ";
}

.show-more[hidden] {
  display: none;
}

/* Slider */
.slider {
  position: relative;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 50%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 560px;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}

.slide.active {
  opacity: 1;
}

.slider-track.no-anim,
.slider-track.no-anim .slide {
  transition: none;
}

.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-card {
  width: 100%;
  height: 100%;
  background: #ececec;
  padding: 2.2rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-logo {
  width: 170px;
  position: relative;
  top: -1rem;
}

.quote-card blockquote {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.45;
  color: #222;
  text-align: center;
}

.quote-card figcaption {
  margin-top: 1.4rem;
  text-align: center;
  font-weight: 700;
  color: var(--purple);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}

.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

.slider-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.8rem;
}

.slider-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.slider-pause {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
}

.slider-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slider-thumbs button {
  width: 70px;
  height: 70px;
  padding: 0;
  border: 2px solid transparent;
  background: #ececec center / cover no-repeat;
  cursor: pointer;
  opacity: 0.75;
}

.slider-thumbs button.active {
  border-color: var(--purple);
  opacity: 1;
}

/* Services */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.4rem;
  margin: -0.8rem 0 2rem;
}

.filter {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.2rem 0;
  cursor: pointer;
  opacity: 0.85;
}

.filter.active {
  font-weight: 700;
  opacity: 1;
  border-bottom-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.service {
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

.service[hidden] {
  display: none;
}

.service img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-body {
  padding: 1rem 1rem 1.4rem;
}

.service h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.service-meta {
  font-size: 0.85rem;
  margin: 0 0 0.9rem;
}

.service-meta span {
  margin: 0 0.4rem;
  color: #999;
}

.service .btn {
  padding: 0.7rem 1.4rem;
}

/* Modals */
.service-modal {
  width: min(620px, 100% - 2rem);
  max-height: 85vh;
  border: 0;
  padding: 2.2rem;
  color: var(--ink);
}

.service-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.service-modal h3 {
  font-family: "Cabin", Arial, sans-serif;
  font-size: 1.5rem;
  color: var(--purple);
  margin-bottom: 0.4rem;
  padding-right: 2rem;
}

.service-modal ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.service-modal p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-actions {
  margin-top: 1.6rem;
}

.modal-note {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.9rem;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
}

.modal-links a {
  font-weight: 700;
  font-size: 0.9rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form h3,
.contact-info h3 {
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}

.field {
  display: block;
  position: relative;
  margin-bottom: 1.1rem;
}

.field span {
  position: absolute;
  top: 0.55rem;
  left: 0.9rem;
  font-size: 0.72rem;
  color: var(--ink);
  pointer-events: none;
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 1.6rem 0.9rem 0.6rem;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: var(--gray-bg);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--purple);
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.2rem 0 1rem;
}

.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 0 0 0.2rem;
}

.consent input {
  margin-top: 0.3rem;
  accent-color: var(--purple);
}

.contact-form .btn {
  margin-top: 1.4rem;
  padding: 1rem;
}

.contact-form {
  position: relative;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-status {
  font-size: 0.9rem;
  text-align: center;
  margin: 0.8rem 0 0;
}

.contact-info h4 {
  font-size: 1.1rem;
  margin: 1.4rem 0 0.8rem;
}

.contact-info p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.contact-info a {
  text-decoration: none;
}

.hours summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1rem;
  list-style: none;
}

.hours summary::-webkit-details-marker {
  display: none;
}

.hours summary::after {
  content: " \25BE";
}

.hours table {
  font-size: 0.88rem;
  color: var(--muted);
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.hours td {
  padding: 0.2rem 1.5rem 0.2rem 0;
}

.hours tr.today td {
  font-weight: 700;
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 3rem 0 2.5rem;
  font-size: 0.9rem;
}

.footer-link {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.footer-name {
  font-weight: 700;
  margin: 1.4rem 0 0;
}

.footer-name + .footer-name {
  margin-top: 0.6rem;
}

.footer-copy {
  text-align: left;
  color: #ccc;
  margin: 2.2rem 0 0;
}

/* Simple page (privacy) */
.page {
  padding: 6rem 0 4rem;
}

.page .narrow {
  width: min(800px, 100% - 3rem);
  margin-inline: auto;
  color: var(--muted);
}

.page .center {
  text-align: center;
}

.page h1 {
  font-family: "Cabin", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--purple);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.page h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 1.8rem 0 0.5rem;
}

.page ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

/* Mobile */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 260px;
  }

  .hero-panel {
    padding: 3rem 1.5rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide {
    flex-basis: 100%;
    height: 380px;
  }

  .quote-card {
    padding: 1.5rem;
  }

  .quote-card blockquote {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slider-track,
  .slide,
  .btn {
    transition: none;
  }
}

@media (max-width: 600px) {
  .logo-box img {
    width: 220px;
  }

  .header-inner {
    justify-content: center;
  }

  .header-book {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: center;
  }
}
