/* =======================================================
   SAYONARA V2 — BASE STYLES
   Reset, global typography, layout utilities.
   ======================================================= */

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

/* ── RESET ───────────────────────────────────────────── */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-base);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--text-base);
}

/* ── TYPOGRAPHY ─────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--clr-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-md); }
h6 { font-size: var(--text-base); }

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

strong { font-weight: var(--weight-semibold); }
em { font-style: italic; }

/* Section title style (used across all sections) */
.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--clr-text-muted);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* Eyebrow label above headings */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--clr-red);
  margin-bottom: var(--space-3);
}

/* Richtext content rendered from TinyMCE */
.richtext h1, .richtext h2, .richtext h3,
.richtext h4, .richtext h5, .richtext h6 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-4);
  margin-top: var(--space-6);
}
.richtext p { margin-bottom: var(--space-4); line-height: var(--leading-loose); }
.richtext ul, .richtext ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.richtext ul { list-style: disc; }
.richtext ol { list-style: decimal; }
.richtext li { margin-bottom: var(--space-2); }
.richtext a { color: var(--clr-red); text-decoration: underline; }
.richtext blockquote {
  border-left: 4px solid var(--clr-gold);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--clr-text-mid);
}
.richtext img { border-radius: var(--radius-md); margin: var(--space-6) 0; }

/* ── LAYOUT ──────────────────────────────────────────── */

.container {
  width: 90%;
  max-width: var(--container-max);
  margin-inline: auto;
}

.container--wide {
  width: 93%;
  max-width: var(--container-wide);
  margin-inline: auto;
}

section {
  padding-block: var(--section-py);
}

/* Grid utilities */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-8); }

/* Flex utilities */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text alignment */
.text-center { text-align: center; }
.text-left  { text-align: left; }
.text-right { text-align: right; }

/* Visually hidden (accessible) */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── SECTION BACKGROUNDS ─────────────────────────────── */

.bg-light { background-color: var(--clr-bg); }
.bg-mid   { background-color: var(--clr-bg-mid); }
.bg-dark  {
  background-color: var(--clr-bg-dark);
  color: var(--clr-text-light);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3,
.bg-dark h4, .bg-dark h5, .bg-dark h6 {
  color: var(--clr-text-light);
}
.bg-dark p, .bg-dark span {
  color: rgba(253, 251, 245, 0.82);
}
.bg-dark .eyebrow { color: var(--clr-gold); }

/* Dark parallax wrapper — used for book & events sections */
.dark-wrapper {
  position: relative;
  background-image: url('../assets/images/main.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--clr-text-light);
}
.dark-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--clr-overlay-mid);
  z-index: 1;
}
.dark-wrapper > * {
  position: relative;
  z-index: 2;
}
.dark-wrapper section { background: transparent; }
.dark-wrapper h1, .dark-wrapper h2, .dark-wrapper h3 { color: var(--clr-text-light); }
.dark-wrapper p { color: rgba(253,251,245,0.82); }
.dark-wrapper .eyebrow { color: var(--clr-gold); }
.dark-wrapper .section-title { color: var(--clr-text-light); }

/* ── DIVIDER ─────────────────────────────────────────── */

.divider {
  width: 60px;
  height: 3px;
  background: var(--clr-red);
  border-radius: var(--radius-full);
  margin-block: var(--space-6);
}
.divider--gold { background: var(--clr-gold); }
.divider--center { margin-inline: auto; }

/* ── LOADING STATE ───────────────────────────────────── */

.skeleton {
  background: linear-gradient(90deg, #e8e0d0 25%, #f0e9dd 50%, #e8e0d0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── TOAST NOTIFICATIONS ─────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toast {
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  background: var(--clr-navy);
  color: var(--clr-text-light);
  font-size: var(--text-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toast-in var(--duration-slow) var(--ease-spring) forwards;
  max-width: 360px;
}
.toast.toast--success { background: var(--clr-success); }
.toast.toast--error   { background: var(--clr-error); }
.toast.toast--warning { background: var(--clr-warning); }
.toast.toast--out     { animation: toast-out var(--duration-slow) var(--ease-in) forwards; }

@keyframes toast-in  { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: translateX(0); } }
@keyframes toast-out { from { opacity:1; transform: translateX(0); } to { opacity:0; transform: translateX(20px); } }

/* ── RESPONSIVE BREAKPOINTS ──────────────────────────── */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  :root { --section-py: var(--space-16); }
}

@media (max-width: 768px) {
  :root {
    --section-py: var(--space-12);
    --header-h: 65px;
  }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  .section-title { font-size: var(--text-2xl); }
  .grid-2, .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  :root { --section-py: var(--space-10); }
  h1 { font-size: var(--text-2xl); }
}
