/* ==========================================================
   HET GROOTE LEUGHEN — REFINED GLOBAL STYLESHEET
   Fully Responsive & Mobile-Optimized Design System
========================================================== */

/* --- COLOR & FONT TOKENS --- */
:root {
  --color-yellow: #F9C900;
  --color-yellow-dark: #E5B800;
  --color-black: #000000;
  --color-text: #5A3B3B;
  --color-beige: #FFF7EE;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Spacing tokens */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

html, body {
  min-height: 100%;
  background: #fff;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-black);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { 
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
}

h2 { 
  font-size: clamp(1.5rem, 3vw + 1rem, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
}

p {
  font-size: clamp(0.95rem, 1vw + 0.5rem, 1.125rem);
  color: var(--color-text);
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* --- LINKS --- */
a {
  color: var(--color-black);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* --- BUTTONS --- */
.btn-yellow, 
.btn-black {
  display: inline-block;
  font-weight: 600;
  border-radius: 50px;
  padding: 0.85rem 1.75rem;
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  max-width: 100%;
}

.btn-yellow {
  background: var(--color-yellow);
  color: var(--color-black);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-yellow:hover {
  background: var(--color-yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.btn-black {
  background: var(--color-black);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-black:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Mobile button refinements */
@media (max-width: 640px) {
  .btn-yellow, 
  .btn-black {
    width: 100%;
    padding: 1rem 2rem;
  }
}

/* --- LAYOUT UTILITIES --- */
section {
  padding: 3rem 1.25rem;
  position: relative;
  overflow-x: clip;
}

@media (min-width: 640px) {
  section { 
    padding: 4rem 1.5rem; 
  }
}

@media (min-width: 768px) {
  section { 
    padding: 5rem 2rem; 
  }
}

@media (min-width: 1024px) {
  section { 
    padding: 6rem 2rem; 
  }
}

/* Container utilities */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* --- IMAGES --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
}

/* --- HERO IMAGE HOVER EFFECT --- */
.hero-image {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.hero-image:hover {
  transform: scale(1.02);
  filter: brightness(102%);
}

@media (max-width: 767px) {
  .hero-image:hover {
    transform: none;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--color-black);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
}

@media (min-width: 768px) {
  footer {
    padding: 3rem 1rem;
  }
}

/* --- PAPER TEXTURE (subtle background) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

/* --- GRID / FLEX FIXES --- */
[class*="col-span"], 
.grid, 
.flex {
  min-width: 0;
}

/* --- MOBILE OVERFLOW PREVENTION --- */
@media (max-width: 767px) {
  /* Disable slide transforms that can cause overflow */
  .translate-x-\[40px\],
  .translate-x-\[-40px\],
  [class*="translate-x"] {
    transform: translateX(0) !important;
  }
  
  /* Ensure sections don't overflow */
  section {
    overflow-x: hidden;
  }
  
  /* Prevent grid blowouts */
  .grid {
    grid-template-columns: 1fr !important;
  }
}

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

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 2px;
}

/* --- RESPONSIVE UTILITIES --- */
@media (min-width: 768px) {
  .md\:text-left {
    text-align: left;
  }
}

/* --- SPACING UTILITIES --- */
.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

/* --- SMOOTH ANIMATIONS --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}