/* Violet Wexley — Site Styles (v2)
 *
 * Brand system locked from violet-wexley-rebuild-plan-v2.md
 * Editorial restraint: no floods, sentence case, type-driven, generous white space.
 *
 * Colors (changes from v1 noted):
 *   --bg          #F5F3F8   was #FAF7F2 (lavender wash, not cream)
 *   --primary     #5B4B8A   was #4A2D5C (cool violet, not aubergine)
 *   --accent      #C9B8D6   unchanged (lilac)
 *   --text        #2A2429   unchanged (charcoal)
 */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg: #F5F3F8;
  --primary: #5B4B8A;
  --accent: #C9B8D6;
  --text: #2A2429;
  --text-muted: rgba(42, 36, 41, 0.7);
  --border: rgba(201, 184, 214, 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------- Typography ---------------- */

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-weight: 500; font-size: clamp(1.25rem, 2.5vw, 1.5rem); color: var(--text); }

p { line-height: 1.65; }

a { color: var(--primary); text-decoration: none; transition: opacity 150ms ease; }
a:hover { opacity: 0.75; }

::selection { background-color: var(--accent); color: var(--primary); }

.script { font-family: 'Great Vibes', cursive; font-weight: 400; }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---------------- Layout helpers ---------------- */

.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 4rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------- Header ---------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  gap: 2rem;
}

.logotype { display: flex; flex-direction: column; line-height: 1; }
.logotype .script { font-size: 2rem; color: var(--primary); }
.logotype .subtitle {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.nav { display: flex; align-items: center; gap: 2rem; font-size: 0.875rem; }
.nav a { color: var(--text); }
.nav a:hover { color: var(--primary); opacity: 1; }

/* Mobile menu — uses native <details> for no-JS toggle */
.nav-mobile { position: relative; }
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  user-select: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile ul {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 12rem;
  z-index: 10;
}
.nav-mobile li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
}
.nav-mobile li a:hover { background: rgba(201, 184, 214, 0.3); color: var(--primary); }

@media (min-width: 768px) {
  .nav-mobile { display: none; }
}
@media (max-width: 767px) {
  .nav-desktop { display: none; }
}

/* ---------------- Hero ---------------- */

.hero { padding: 5rem 0; }
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero .grid { grid-template-columns: 1.2fr 1fr; }
}

.hero h1 .script { color: var(--primary); font-weight: 400; display: block; margin-top: 0.5rem; }
.hero p.lead {
  font-size: 1.125rem;
  color: rgba(42, 36, 41, 0.85);
  max-width: 36rem;
  margin: 2rem 0;
  line-height: 1.7;
}

.cta-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 500px) { .cta-row { flex-direction: row; } }

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: opacity 150ms ease;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background-color: var(--primary); color: var(--bg); }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background-color: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background-color: var(--primary); color: var(--bg); opacity: 1; }

/* Manual cover mockup — placeholder, replace with real image when ready */
.cover-mockup {
  background-color: var(--primary);
  color: var(--bg);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 2rem;
  max-width: 22rem;
  margin: 0 auto;
}
.cover-mockup .eyebrow { color: rgba(245, 243, 248, 0.7); margin: 0; }
.cover-mockup .title { font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.cover-mockup .rule { border-top: 1px solid rgba(245, 243, 248, 0.3); margin: 1rem 0; }
.cover-mockup .signature { font-family: 'Great Vibes', cursive; font-size: 1.5rem; }

/* ---------------- Banner block (editorial accent, NOT a full flood) ---------------- */

.banner-block {
  background-color: var(--primary);
  color: var(--bg);
  padding: 3rem 2.5rem;
  margin: 3rem 0;
}
.banner-block .eyebrow { color: rgba(245, 243, 248, 0.7); }
.banner-block h2 { color: var(--bg); }
.banner-block p { font-size: 1.25rem; line-height: 1.5; max-width: 48rem; }
.banner-block a { color: var(--bg); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.banner-block a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .banner-block { padding: 4rem 3rem; }
  .banner-block p { font-size: 1.5rem; }
}

/* ---------------- Sections ---------------- */

section { scroll-margin-top: 5rem; }
.section { padding: 5rem 0; }
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 900px) { .section-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- What You Get — counts grid ---------------- */

.counts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}
@media (min-width: 700px) { .counts-grid { grid-template-columns: repeat(3, 1fr); } }

.count-item .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.count-item .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.who-list { margin: 2rem 0; padding-left: 1.25rem; }
.who-list li { margin-bottom: 0.75rem; line-height: 1.6; }

/* ---------------- Forms ---------------- */

.form-card { background: rgba(201, 184, 214, 0.2); padding: 2.5rem; }
.form-card h3 { color: var(--primary); margin-bottom: 0.75rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
@media (min-width: 500px) { .form-row { flex-direction: row; } }

.form-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--primary); }
.form-input::placeholder { color: rgba(42, 36, 41, 0.4); }

textarea.form-input { min-height: 8rem; resize: vertical; }

/* ---------------- Contact ---------------- */

#contact .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 800px) {
  #contact .grid { grid-template-columns: 1fr 1.5fr; }
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}
.site-footer .columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
@media (min-width: 700px) {
  .site-footer .columns { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h4 {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.875rem; }

.site-footer .bottom {
  border-top: 1px solid rgba(201, 184, 214, 0.4);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}
@media (min-width: 500px) {
  .site-footer .bottom { flex-direction: row; justify-content: space-between; }
}
.site-footer .bottom .tagline { color: var(--primary); font-size: 1rem; opacity: 0.8; }

/* ---------------- Carousel ---------------- */

.carousel {
  position: relative;
  max-width: 26rem;
  margin: 0 auto;
  user-select: none;
}

.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(91, 75, 138, 0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  z-index: 2;
  border-radius: 2px;
}

.carousel-btn:hover {
  background: var(--primary);
  color: var(--bg);
}

.carousel-btn-prev { left: -1.4rem; }
.carousel-btn-next { right: -1.4rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  cursor: pointer;
  padding: 0;
  transition: background 150ms ease, transform 150ms ease;
}

.carousel-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

@media (max-width: 500px) {
  .carousel { max-width: 100%; }
  .carousel-btn-prev { left: 0.25rem; }
  .carousel-btn-next { right: 0.25rem; }
}
