/* ==========================================================================
   Luxora Blinds - Base Styles
   Reset, typography, and foundational styles
   ========================================================================== */

/* -------------------------------------------------------------------------
   CSS Reset / Normalization
   ------------------------------------------------------------------------- */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--color-charcoal);
  background-color: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-wide);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Lead text - larger intro paragraphs */
.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-grey);
}

/* Small/Caption text */
.small,
small {
  font-size: var(--fs-small);
}

.caption {
  font-size: var(--fs-caption);
  color: var(--color-grey);
  letter-spacing: var(--ls-wide);
}

/* UI Labels - Uppercase style */
.label {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-grey);
}

/* -------------------------------------------------------------------------
   Links
   ------------------------------------------------------------------------- */

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
}

/* -------------------------------------------------------------------------
   Images
   ------------------------------------------------------------------------- */

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

/* -------------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------------- */

ul, ol {
  list-style: none;
}

/* Styled lists (when needed) */
.list-styled {
  padding-left: var(--space-lg);
}

.list-styled li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}

.list-styled li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
}

/* -------------------------------------------------------------------------
   Form Elements (Base)
   ------------------------------------------------------------------------- */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* -------------------------------------------------------------------------
   Tables (Base)
   ------------------------------------------------------------------------- */

table {
  width: 100%;
  border-collapse: collapse;
}

/* -------------------------------------------------------------------------
   Utility Classes
   ------------------------------------------------------------------------- */

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

/* Text colors */
.text-gold { color: var(--color-gold); }
.text-teal { color: var(--color-teal); }
.text-grey { color: var(--color-grey); }
.text-white { color: var(--color-white); }

/* Background colors */
.bg-ivory { background-color: var(--color-ivory); }
.bg-dark { background-color: var(--color-dark); }
.bg-teal { background-color: var(--color-teal); }
.bg-light-grey { background-color: var(--color-light-grey); }
.bg-white { background-color: var(--color-white); }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: var(--space-md); }
.mb-md { margin-bottom: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Display utilities */
.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Screen reader only */
.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;
}

/* -------------------------------------------------------------------------
   Selection
   ------------------------------------------------------------------------- */

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

/* -------------------------------------------------------------------------
   Focus States (Accessibility)
   ------------------------------------------------------------------------- */

:focus {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

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

/* -------------------------------------------------------------------------
   Skip Link (Accessibility)
   ------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-teal);
  color: var(--color-white);
  z-index: var(--z-tooltip);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-md);
}
