/* ============================================
   CHROCHELY CREATIONS — Base & Reset Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Quicksand:wght@400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--brown);
  background-color: var(--cream-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

body.no-scroll { overflow: hidden; }
body.drawer-open { overflow: hidden; }

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--warm-tan); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--brown-light); }

/* ── Selection ── */
::selection { background: var(--blush); color: var(--brown-dark); }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Links ── */
a { color: var(--brown); text-decoration: none; transition: color var(--duration-fast) var(--ease-smooth); }
a:hover { color: var(--brown-dark); }

/* ── Images ── */
img, video { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--brown-dark);
  letter-spacing: var(--ls-tight);
}

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

.display-font {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
}

p { margin-bottom: var(--space-4); color: var(--brown-light); line-height: var(--lh-relaxed); }
p:last-child { margin-bottom: 0; }

small { font-size: var(--fs-xs); }
strong { font-weight: var(--fw-semibold); }
em { font-style: italic; }

/* ── Lists ── */
ul, ol { list-style: none; }

/* ── Buttons Reset ── */
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

/* ── Inputs Reset ── */
input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--brown-dark);
  border: none;
  outline: none;
  background: none;
  width: 100%;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--space-5); }
.container-md { max-width: var(--container-md); margin: 0 auto; padding: 0 var(--space-5); }
.container-lg { max-width: var(--container-lg); margin: 0 auto; padding: 0 var(--space-5); }

/* ── Section Spacing ── */
.section {
  padding: var(--space-20) 0;
  position: relative;
}

.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: var(--space-32) 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: var(--space-3);
  background: var(--blush);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--fs-base);
  color: var(--brown-light);
  max-width: 480px;
  margin: 0 auto;
}

/* ── Divider ── */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--warm-tan), transparent);
  margin: var(--space-6) auto;
  border: none;
}

/* ── Background Variants ── */
.bg-cream { background-color: var(--cream); }
.bg-cream-light { background-color: var(--cream-light); }
.bg-white { background-color: var(--white); }
.bg-warm { background: linear-gradient(135deg, var(--cream-light), var(--cream), var(--soft-pink-light)); }

/* ── Text Utilities ── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-brown { color: var(--brown); }
.text-brown-dark { color: var(--brown-dark); }
.text-brown-light { color: var(--brown-light); }
.text-blush { color: var(--blush); }

/* ── Flex Utilities ── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── Grid Utilities ── */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Visibility ── */
.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;
}
.hidden { display: none !important; }
.mobile-only { display: none; }
.desktop-only { display: block; }

/* ── Responsive Grid ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 var(--space-4); }
  .section { padding: var(--space-16) 0; }
  .section-header h2 { font-size: var(--fs-2xl); }
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  .mobile-only { display: block; }
  .desktop-only { display: none; }
}
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  html { font-size: 15px; }
}
