/* ==========================================================================
   PINKLADY ENTERPRISE — BASE STYLES
   ========================================================================== */

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-dark);
}

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

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

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* ---- Layout Containers ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}

section { padding-block: var(--space-xl); position: relative; }

.section-light { background: var(--color-light); }
.section-dark { background: var(--color-dark); color: rgba(255,255,255,0.85); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--color-white); }

/* ---- Section Heading Pattern ---- */
.section-head {
  max-width: 680px;
  margin-bottom: var(--space-lg);
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-xs);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}

.section-head h2 { margin-bottom: var(--space-xs); }
.section-head p { color: var(--color-text-muted); font-size: var(--fs-md); }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }

/* ---- Body Scroll Lock (mobile menu open) ---- */
body.no-scroll { overflow: hidden; }

/* ---- Skip Link (Accessibility) ---- */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-sm);
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top var(--t-fast) var(--ease-smooth);
}
.skip-link:focus { top: var(--space-sm); }

/* ---- Loading Screen ---- */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: var(--z-loading);
  background: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--t-slow) var(--ease-smooth), visibility var(--t-slow);
}
.loading-screen.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-mark {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.loading-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(233, 30, 99, 0.15);
  border-top-color: var(--color-primary);
  animation: spin 0.9s linear infinite;
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient-primary);
  z-index: 1000;
}
