/* ============================================
   The Fitzroy — Design System
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--night);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* --- Design Tokens --- */
:root {
  --night: #0B0907;
  --paper: #EDE6D8;
  --ink: #221F1C;
  --oxblood: #7E262D;
  --brass: #8B7355;
  --muted: #6B645C;

  /* Spacing */
  --section-pad: clamp(4rem, 10vh, 8rem);
  --section-pad-x: clamp(1.5rem, 5vw, 4rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-slow: 1.2s;
  --dur-med: 0.6s;
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

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

/* ============================================
   Section: Hero
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: max(600px, 100svh);
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- Hero video --- */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Dark overlay for text readability --- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg,
      rgba(11, 9, 7, 0.45) 0%,
      rgba(11, 9, 7, 0.50) 40%,
      rgba(11, 9, 7, 0.65) 70%,
      rgba(11, 9, 7, 0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--section-pad-x);
  animation: heroFadeIn var(--dur-slow) var(--ease-out) forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--paper);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.7;
  margin-bottom: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: scrollPulse 2.5s ease-in-out infinite;
  opacity: 0.5;
}

.hero-scroll span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--brass), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.7; transform: translateX(-50%) translateY(4px); }
}

/* ============================================
   Section: Statements
   ============================================ */
.statements {
  background: var(--night);
  padding: var(--section-pad) var(--section-pad-x);
}

.statements-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.statement-item {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
}

.statement-item:last-child {
  border-bottom: none;
}

.statement-index {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--brass);
  white-space: nowrap;
  min-width: 2.5rem;
}

.statement-text {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  color: var(--paper);
  letter-spacing: -1px;
  line-height: 1.2;
}

/* ============================================
   Section: The Letter (De Brief)
   ============================================ */
.letter {
  background: var(--paper);
  padding: var(--section-pad) var(--section-pad-x);
  position: relative;
}

.letter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--oxblood), var(--brass));
}

.letter-body {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.75;
  color: var(--ink);
}

.letter-body p {
  margin-bottom: 1.5rem;
}

.letter-body p:last-child {
  margin-bottom: 0;
}

.letter-body .letter-signoff {
  margin-top: 2rem;
  font-style: italic;
  color: var(--brass);
}

/* --- Placeholder stijl voor Ries' tekst --- */
.letter-placeholder {
  opacity: 0.6;
  font-style: italic;
}

/* ============================================
   Section: What There Is
   ============================================ */
.offerings {
  background: var(--paper);
  padding: 0 var(--section-pad-x) var(--section-pad);
}

.offerings-list {
  max-width: 680px;
  margin: 0 auto;
}

.offering-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(34, 31, 28, 0.08);
}

.offering-item:last-child {
  border-bottom: none;
}

.offering-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  min-width: 7rem;
}

.offering-desc {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ============================================
   Section: Invitation CTA
   ============================================ */
.invitation {
  background: var(--night);
  padding: var(--section-pad) var(--section-pad-x);
  text-align: center;
}

.invitation-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.invitation-link {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oxblood);
  padding: 1rem 2.5rem;
  border: 1px solid var(--oxblood);
  transition: all var(--dur-med) var(--ease-out);
  position: relative;
}

.invitation-link:hover,
.invitation-link:focus {
  background: var(--oxblood);
  color: var(--paper);
  outline: none;
}

.invitation-note {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ============================================
   Section: Footer
   ============================================ */
.site-footer {
  background: var(--night);
  padding: 2.5rem var(--section-pad-x);
  border-top: 1px solid rgba(139, 115, 85, 0.1);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-links a {
  transition: color var(--dur-med) var(--ease-out);
}

.footer-links a:hover {
  color: var(--brass);
}

.footer-copy {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: rgba(107, 100, 92, 0.5);
}

/* ============================================
   Admission Page
   ============================================ */
.page-hero {
  background: var(--night);
  padding: clamp(5rem, 12vh, 8rem) var(--section-pad-x) clamp(3rem, 6vh, 5rem);
  text-align: center;
}

.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--paper);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.page-hero .page-sub {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass);
}

.page-body {
  background: var(--paper);
  padding: var(--section-pad) var(--section-pad-x);
}

.page-body .container {
  max-width: 640px;
}

.page-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.page-body p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.page-body .intro-text {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--brass);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

/* --- Admission Form --- */
.admission-form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 31, 28, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ink);
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(34, 31, 28, 0.15);
  border-radius: 0;
  transition: border-color var(--dur-med) var(--ease-out);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brass);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--oxblood);
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
  -webkit-appearance: none;
}

.submit-btn:hover,
.submit-btn:focus {
  background: #9a2e35;
  outline: none;
}

.form-success {
  display: none;
  padding: 2rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--brass);
  font-style: italic;
  text-align: center;
}

.form-success.visible {
  display: block;
}

.form-error {
  display: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--oxblood);
  margin-top: 0.5rem;
}

.form-error.visible {
  display: block;
}

/* --- After-submit info --- */
.after-submit-info {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(34, 31, 28, 0.1);
}

.after-submit-info h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.after-submit-info .close-note {
  font-style: italic;
  color: var(--brass);
  margin-top: 1.5rem;
}

/* ============================================
   Legal Pages (Privacy / Terms)
   ============================================ */
.legal-content {
  background: var(--paper);
  padding: var(--section-pad) var(--section-pad-x);
}

.legal-content .container {
  max-width: 720px;
}

.legal-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ink);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 1rem;
}

.legal-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content li {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.legal-placeholder {
  opacity: 0.5;
  font-style: italic;
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .statement-item {
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0;
  }

  .statement-index {
    min-width: auto;
  }

  .offering-item {
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
  }

  .offering-label {
    min-width: auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .hero-title {
    letter-spacing: -1px;
  }

  .page-hero {
    padding-top: clamp(4rem, 10vh, 6rem);
  }
}

@media (max-width: 480px) {
  .hero-scroll {
    bottom: 1.5rem;
  }

  .invitation-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}

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