/* ============================================
   GLOBAL.CSS — Steky Studio
   Typography, Buttons, Cards, Utilities
   ============================================ */

/* Prevent horizontal overflow on all pages */
html, body {
  overflow-x: hidden;
}

/* --------------------------------------------
   1. TYPOGRAPHY
   -------------------------------------------- */

h1, .h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-cream);
  margin-bottom: 0.5em;
}

h2, .h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-cream);
  margin-bottom: 0.5em;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-cream);
  margin-bottom: 0.5em;
}

h4, .h4 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-cream);
  margin-bottom: 0.4em;
}

h5, .h5 {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-cream);
  margin-bottom: 0.4em;
}

h6, .h6 {
  font-size: clamp(0.875rem, 1.25vw, 1rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-cream);
  margin-bottom: 0.4em;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-beige);
  background-color: var(--color-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  margin-bottom: 1em;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

strong, b {
  font-weight: 600;
}

.overline {
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.4;
  color: var(--color-teal);
}

.prose {
  max-width: 720px;
}

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

/* Color utilities */
.text-teal { color: var(--color-teal); }
.text-burgundy { color: var(--color-burgundy); }
.text-cream { color: var(--color-cream); }
.text-beige { color: var(--color-beige); }


/* --------------------------------------------
   2. BUTTONS
   -------------------------------------------- */

.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-teal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #005456;
  box-shadow: 0 4px 20px rgba(0, 109, 111, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--color-burgundy);
  border: 1.5px solid var(--color-burgundy);
}

.btn-secondary:hover {
  background: var(--color-burgundy);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(146, 43, 62, 0.25);
}

.btn-inverted {
  background: #FFFFFF;
  color: var(--color-teal);
}

.btn-inverted:hover {
  background: var(--color-cream);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}


/* --------------------------------------------
   3. CARDS
   -------------------------------------------- */

.card-dark {
  background: rgba(246, 242, 236, 0.04);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid rgba(229, 212, 192, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-dark:hover {
  background: rgba(246, 242, 236, 0.07);
  border-color: rgba(0, 109, 111, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.card-light {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(229, 212, 192, 0.5);
  transition: all 0.3s ease;
}

.card-light:hover {
  box-shadow: 0 8px 24px rgba(43, 33, 25, 0.08);
  transform: translateY(-2px);
}


/* --------------------------------------------
   4. UTILITY CLASSES
   -------------------------------------------- */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section spacing */
.section-padding {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 64px 0;
  }
}

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

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.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-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }

/* Grid utilities */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* Tags / Pills */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.tag-teal {
  background: rgba(0, 109, 111, 0.15);
  color: var(--color-teal);
}

.tag-burgundy {
  background: rgba(146, 43, 62, 0.15);
  color: var(--color-burgundy);
}

/* 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;
}


/* --------------------------------------------
   5. SCROLL ANIMATIONS
   -------------------------------------------- */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
