/* ============================================================
   Master Styles - Muncie Yorktown Self Storage (YSS)
   Design tokens + BEM component styles
   ============================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Colors */
  --yss-primary: #142759;
  --yss-secondary: #B1AB99;
  --yss-cream: #F1EAD7;
  --yss-light-bg: #F8FAFD;
  --yss-white: #FFFFFF;
  --yss-black: #000000;

  /* Typography (fluid with clamp) */
  --yss-h1: clamp(2.25rem, 5vw, 3.75rem);
  --yss-h2: clamp(1.875rem, 4vw, 2.25rem);
  --yss-h3: 1.25rem;
  --yss-body: 1.125rem;
  --yss-small: 0.875rem;

  /* Spacing */
  --yss-section-py: clamp(4rem, 8vw, 5rem);
  --yss-container-px: clamp(1rem, 3vw, 2rem);
  --yss-gap-sm: 0.5rem;
  --yss-gap-md: 1rem;
  --yss-gap-lg: 1.5rem;
  --yss-gap-xl: 2rem;

  /* Radii */
  --yss-radius-card: 16px;
  --yss-radius-btn: 8px;
  --yss-radius-full: 9999px;
}


/* ===== GLOBAL RESET / BASE ===== */
html {
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #111827;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

address {
  font-style: normal;
}


/* ===== UTILITIES ===== */
.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--yss-container-px);
}

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

.highlight {
  color: var(--yss-primary);
}

.text-primary {
  color: var(--yss-primary);
}

.text-center {
  text-align: center;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--yss-radius-btn);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.5;
  gap: 0.5rem;
}

.btn--primary {
  background-color: var(--yss-primary);
  color: var(--yss-white);
}
.btn--primary:hover {
  opacity: 0.9;
}

.btn--secondary {
  background-color: var(--yss-secondary);
  color: var(--yss-primary);
}
.btn--secondary:hover {
  opacity: 0.9;
}

.btn--white {
  background-color: var(--yss-white);
  color: var(--yss-primary);
}
.btn--white:hover {
  background-color: #f9fafb;
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--yss-primary);
  color: var(--yss-primary);
}
.btn--outline:hover {
  background-color: var(--yss-primary);
  color: var(--yss-white);
}

.btn--sm {
  padding: 0.375rem 1rem;
  font-size: var(--yss-small);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--yss-body);
}


/* ===== HEADER ===== */
.yss-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--yss-cream);
  border-bottom: 2px solid var(--yss-black);
}

.yss-header__mobile-bar {
  background-color: var(--yss-primary);
  color: var(--yss-white);
  padding: 0.5rem 0;
}

.yss-header__mobile-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.yss-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.yss-header__logo img {
  height: 2.5rem;
  width: auto;
}

.yss-header__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.yss-header__links a {
  color: #374151;
  font-weight: 500;
  transition: color 0.2s ease;
}

.yss-header__links a:hover {
  color: var(--yss-primary);
}

.yss-header__links a.is-active {
  color: var(--yss-primary);
  font-weight: 600;
}

.yss-header__cta {
  display: none;
  align-items: center;
  gap: 1rem;
}

.yss-header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
}

.yss-header__phone svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.yss-header__mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #374151;
}

.yss-header__mobile-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.yss-header__mobile-menu {
  display: none;
  flex-direction: column;
  padding-bottom: 1rem;
}

.yss-header__mobile-menu.is-open {
  display: flex;
}

.yss-header__mobile-menu a {
  padding: 0.75rem 0;
  color: #374151;
  font-weight: 500;
  border-bottom: 1px solid #e5e7eb;
  transition: color 0.2s ease;
}

.yss-header__mobile-menu a:hover {
  color: var(--yss-primary);
}

.yss-header__mobile-menu a.is-active {
  color: var(--yss-primary);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .yss-header__mobile-bar {
    display: none;
  }

  .yss-header__links {
    display: flex;
  }

  .yss-header__cta {
    display: flex;
  }

  .yss-header__cta .yss-header__phone {
    color: var(--yss-primary);
  }

  .yss-header__mobile-toggle {
    display: none;
  }
}


/* ===== HERO ===== */
.yss-hero {
  background-color: var(--yss-white);
}

.yss-hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.yss-hero__content {
  order: 2;
}

.yss-hero__media {
  order: 1;
  position: relative;
}

.yss-hero__eyebrow {
  color: var(--yss-primary);
  font-weight: 600;
  font-size: var(--yss-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.yss-hero__title {
  font-size: var(--yss-h1);
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.yss-hero__subtitle {
  font-size: var(--yss-body);
  color: #4b5563;
  margin-bottom: 2rem;
  max-width: 42rem;
}

.yss-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.yss-hero__meta {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: var(--yss-small);
}

.yss-hero__meta svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.yss-hero__image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--yss-radius-card);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.yss-hero__overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: rgba(20, 39, 89, 0.95);
  color: var(--yss-white);
  padding: 1rem;
  border-radius: 12px;
}

.yss-hero__overlay-text {
  font-size: var(--yss-small);
  opacity: 0.9;
}

.yss-hero__overlay-title {
  font-size: 1.25rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .yss-hero__actions {
    flex-direction: row;
  }

  .yss-hero__image {
    height: 400px;
  }
}

@media (min-width: 1024px) {
  .yss-hero__grid {
    grid-template-columns: 7fr 5fr;
  }

  .yss-hero__content {
    order: 1;
  }

  .yss-hero__media {
    order: 2;
  }
}


/* ===== SECTIONS ===== */
.yss-section {
  /* Base section - no background */
}

.yss-section--white {
  background-color: var(--yss-white);
}

.yss-section--light {
  background-color: var(--yss-light-bg);
}

.yss-section--alt {
  background-color: #f9fafb;
}

.yss-section--primary {
  background-color: var(--yss-primary);
  color: var(--yss-white);
}

.yss-section__header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.yss-section__title {
  font-size: var(--yss-h2);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.yss-section--primary .yss-section__title {
  color: var(--yss-white);
}

.yss-section__subtitle {
  font-size: 1.25rem;
  color: #4b5563;
}

.yss-section--primary .yss-section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}


/* ===== GRID ===== */
.yss-grid {
  display: grid;
  gap: 1.5rem;
}

.yss-grid--2 {
  grid-template-columns: 1fr;
}

.yss-grid--3 {
  grid-template-columns: 1fr;
}

.yss-grid--4 {
  grid-template-columns: 1fr;
}

.yss-grid--5 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .yss-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .yss-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .yss-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .yss-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .yss-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .yss-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .yss-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}


/* ===== CARDS ===== */
.yss-card {
  background-color: var(--yss-white);
  border: 2px solid var(--yss-black);
  border-radius: var(--yss-radius-card);
  padding: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.yss-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Service card variant */
.yss-card--service {
  display: block;
  text-align: left;
  text-decoration: none;
  color: inherit;
}

.yss-card--service:hover .yss-card__link {
  color: var(--yss-secondary);
}

/* Feature card variant */
.yss-card--feature {
  text-align: left;
}

/* Location card variant (with image) */
.yss-card--location {
  padding: 0;
  overflow: hidden;
}

.yss-card--location .yss-card__content {
  padding: 1.5rem;
}

/* Contact card variant */
.yss-card--contact {
  /* same as base */
}

/* Map card variant */
.yss-card--map {
  padding: 0;
  overflow: hidden;
  min-height: 300px;
}

/* Card elements */
.yss-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--yss-primary);
  border-radius: var(--yss-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--yss-white);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.yss-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.yss-card__title {
  font-size: var(--yss-h3);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #111827;
}

.yss-card__text {
  font-size: var(--yss-small);
  color: #4b5563;
  line-height: 1.6;
}

.yss-card__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--yss-primary);
  font-weight: 500;
  font-size: var(--yss-small);
  transition: color 0.2s ease;
}

.yss-card__link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.yss-card--service:hover .yss-card__link svg {
  transform: translateX(4px);
}

.yss-card__image {
  position: relative;
  overflow: hidden;
}

.yss-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.yss-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--yss-primary);
  color: var(--yss-white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--yss-radius-full);
}

.yss-card__content {
  padding: 1.5rem;
}

.yss-card__body {
  padding: 1.5rem;
}

.yss-card__highlight {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.yss-card__meta {
  font-size: var(--yss-small);
  color: #6b7280;
  margin-top: 0.5rem;
}

.yss-card__serving {
  font-size: var(--yss-small);
  color: #6b7280;
}

.yss-card__address {
  font-size: var(--yss-small);
  color: #4b5563;
  margin-bottom: 1rem;
}

.yss-card__map {
  border-radius: var(--yss-radius-card);
  overflow: hidden;
  min-height: 200px;
}

.yss-card__map iframe {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border: 0;
}

.yss-card__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .yss-card__actions {
    flex-direction: row;
  }
}


/* ===== AREAS ===== */
.yss-area {
  display: block;
  background-color: var(--yss-white);
  border: 2px solid var(--yss-black);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.yss-area:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

.yss-area__name {
  display: block;
  font-weight: 600;
  color: var(--yss-primary);
  font-size: 1.125rem;
}

.yss-area__location {
  display: block;
  font-size: var(--yss-small);
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Area card with image variant */
.yss-area--card {
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
}

.yss-area__image {
  position: relative;
  height: 10rem;
  overflow: hidden;
}

.yss-area__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yss-area--card:hover .yss-area__image img {
  transform: scale(1.05);
}

.yss-area__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.yss-area__info {
  padding: 1rem;
}

.yss-area--card .yss-area__location {
  color: var(--yss-primary);
  font-weight: 500;
}


/* ===== CTA ===== */
.yss-cta {
  background-color: var(--yss-primary);
  color: var(--yss-white);
  text-align: center;
}

.yss-cta__title {
  font-size: var(--yss-h2);
  font-weight: 700;
  margin-bottom: 1rem;
}

.yss-cta__text {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.yss-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.yss-cta__phone {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.yss-cta__phone a {
  color: var(--yss-white);
  font-weight: 600;
  text-decoration: none;
}

.yss-cta__phone a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .yss-cta__actions {
    flex-direction: row;
  }
}


/* ===== FOOTER ===== */
.yss-footer {
  background-color: var(--yss-primary);
  color: var(--yss-white);
  border-top: 2px solid var(--yss-black);
  border-radius: 24px 24px 0 0;
}

.yss-footer__grid {
  display: grid;
  gap: 2rem;
}

.yss-footer__brand {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.yss-footer__heading {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.yss-footer__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--yss-small);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.yss-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yss-footer__links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--yss-small);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
}

.yss-footer__links a:hover {
  color: var(--yss-white);
}

.yss-footer__links a svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.yss-footer__links li {
  list-style: none;
}

.yss-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yss-footer__contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--yss-small);
  transition: color 0.2s ease;
}

.yss-footer__contact a:hover {
  color: var(--yss-white);
}

.yss-footer__contact a svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.yss-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.yss-footer__bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--yss-small);
}

.yss-footer__bottom-links {
  display: flex;
  gap: 1rem;
}

.yss-footer__bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--yss-small);
  transition: color 0.2s ease;
}

.yss-footer__bottom-links a:hover {
  color: var(--yss-white);
}

@media (min-width: 640px) {
  .yss-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .yss-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .yss-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ===== FAQ ===== */
.yss-faq {
  margin-bottom: 3rem;
}

.yss-faq__category {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.yss-faq__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.yss-faq__item {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.yss-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem;
  font-weight: 600;
  text-align: left;
  color: #111827;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.yss-faq__question:hover {
  background-color: #f9fafb;
}

.yss-faq__question::-webkit-details-marker {
  display: none;
}

.yss-faq__question svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

details[open] .yss-faq__question svg {
  transform: rotate(180deg);
}

.yss-faq__answer {
  padding: 0 1.5rem 1.5rem;
  color: #4b5563;
  line-height: 1.7;
}

.yss-faq__answer p {
  margin-bottom: 0.75rem;
}

.yss-faq__answer ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.yss-faq__answer ul li {
  margin-bottom: 0.25rem;
}

.yss-faq__answer a {
  color: var(--yss-primary);
  font-weight: 500;
  text-decoration: underline;
}


/* ===== LEGAL ===== */
.yss-legal {
  max-width: 48rem;
  margin-inline: auto;
}

.yss-legal__intro {
  font-size: var(--yss-body);
  color: #4b5563;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.yss-legal__intro a {
  color: var(--yss-primary);
  text-decoration: underline;
}

.yss-legal__section {
  margin-bottom: 2rem;
}

.yss-legal__section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}

.yss-legal__section p {
  color: #4b5563;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.yss-legal__section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.yss-legal__section ul li {
  margin-bottom: 0.375rem;
}

.yss-legal__contact {
  font-style: normal;
  background-color: #f9fafb;
  padding: 1.5rem;
  border-radius: 12px;
  line-height: 1.8;
  color: #374151;
}

.yss-legal__contact a {
  color: var(--yss-primary);
  text-decoration: underline;
}

.yss-legal__nav {
  text-align: center;
  margin-top: 3rem;
}


/* ===== SPIDERWEB (Internal Linking) ===== */
.yss-spiderweb {
  margin-top: 2rem;
}

.yss-spiderweb__title {
  font-size: var(--yss-h3);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.yss-spiderweb__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yss-spiderweb__link {
  display: inline-block;
  background-color: #f3f4f6;
  color: var(--yss-primary);
  font-size: var(--yss-small);
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--yss-radius-full);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.yss-spiderweb__link:hover {
  background-color: var(--yss-primary);
  color: var(--yss-white);
}


/* ===== STATE CLASSES ===== */
.is-active {
  color: var(--yss-primary) !important;
  font-weight: 600 !important;
}

.is-open {
  display: flex !important;
}


/* ============================================================
   UTILITY LAYER (replaces Tailwind CSS)
   Direct equivalents for all Tailwind utilities used in HTML
   ============================================================ */

/* --- Display --- */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

/* --- Flexbox --- */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* --- Grid --- */
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* --- Order --- */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* --- Gap --- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* --- Space Between --- */
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* --- Width --- */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }

/* --- Height --- */
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-96 { height: 24rem; }
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-\[300px\] { height: 300px; }
.h-\[400px\] { height: 400px; }

/* --- Min/Max --- */
.min-h-screen { min-height: 100vh; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }

/* --- Padding --- */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pl-6 { padding-left: 1.5rem; }

/* --- Margin --- */
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }

/* --- Typography --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.text-left { text-align: left; }
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: 0.025em; }
.uppercase { text-transform: uppercase; }
.not-italic { font-style: normal; }
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.list-disc { list-style-type: disc; }

/* --- Colors: Text --- */
.text-white { color: #ffffff; }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-red-500 { color: #ef4444; }
.text-red-700 { color: #b91c1c; }

/* --- Colors: Background --- */
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-primary { background-color: var(--yss-primary); }
.bg-primary\/10 { background-color: rgba(20, 39, 89, 0.1); }
.bg-secondary { background-color: var(--yss-secondary); }
.bg-green-500 { background-color: #22c55e; }
.bg-red-50 { background-color: #fef2f2; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }

/* --- Borders --- */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b-2 { border-bottom-width: 2px; }
.border-t { border-top-width: 1px; }
.border-black { border-color: #000000; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-primary { border-color: var(--yss-primary); }
.border-red-200 { border-color: #fecaca; }

/* --- Border Radius --- */
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* --- Shadows --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }

/* --- Positioning --- */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.top-24 { top: 6rem; }
.bottom-3 { bottom: 0.75rem; }
.bottom-4 { bottom: 1rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.right-4 { right: 1rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* --- Layout --- */
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* --- Transitions --- */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }

/* --- Opacity --- */
.opacity-25 { opacity: 0.25; }
.opacity-75 { opacity: 0.75; }

/* --- Misc --- */
.resize-vertical { resize: vertical; }
.cursor-pointer { cursor: pointer; }
.group { /* marker class for group-hover */ }

/* --- Hover States --- */
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-primary:hover { background-color: var(--yss-primary); }
.hover\:bg-primary-700:hover { background-color: var(--yss-primary); opacity: 0.9; }
.hover\:bg-secondary-600:hover { background-color: var(--yss-secondary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:text-primary:hover { color: var(--yss-primary); }
.hover\:text-primary\/80:hover { color: rgba(20, 39, 89, 0.8); }
.hover\:text-primary-600:hover { color: var(--yss-primary); }
.hover\:text-secondary:hover { color: var(--yss-secondary); }
.hover\:text-secondary-400:hover { color: var(--yss-secondary); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:opacity-90:hover { opacity: 0.9; }
.hover\:translate-x-1:hover { transform: translateX(0.25rem); }

/* --- Group Hover States --- */
.group:hover .group-hover\:text-primary { color: var(--yss-primary); }
.group:hover .group-hover\:text-primary-600 { color: var(--yss-primary); }
.group:hover .group-hover\:text-secondary { color: var(--yss-secondary); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* --- Focus States --- */
.focus\:border-primary:focus { border-color: var(--yss-primary); }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--yss-primary); }
.focus\:ring-primary\/20:focus { box-shadow: 0 0 0 3px rgba(20, 39, 89, 0.2); }


/* ===== RESPONSIVE: sm (640px) ===== */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:h-\[400px\] { height: 400px; }
  .sm\:bottom-6 { bottom: 1.5rem; }
  .sm\:right-6 { right: 1.5rem; }
}

/* ===== RESPONSIVE: md (768px) ===== */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:h-auto { height: auto; }
  .md\:mt-0 { margin-top: 0; }
}

/* ===== RESPONSIVE: lg (1024px) ===== */
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:h-\[500px\] { height: 500px; }
}
