/**
 * PodTalk Studio - Base Styles & Resets
 * Authoritative base rules conforming to SKILL.md Section 8
 */

@import url('https://fonts.googleapis.com/css2?family=Epilogue:ital,wght@0,400;0,500;0,600;0,700;0,800;1,600;1,700&family=Golos+Text:wght@400;500;600;700&display=swap');

/* Alpine.js Cloak Utility */
[x-cloak] {
  display: none !important;
}

/* Always Ensure All Content Is Fully Visible Immediately */
.tour-reveal,
.reveal-on-scroll,
.hero-content,
.hero-stats,
.gallery-card,
.package-card,
.reserve-container {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.03em;
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

p {
  color: var(--color-text);
  margin-bottom: var(--space-3);
  font-weight: var(--font-weight-normal);
}

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

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

a:hover {
  color: var(--color-brand-start);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

ul, ol {
  list-style: none;
}

/* Gradient Headline Utility */
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Text Utilities */
.text-muted {
  color: var(--color-text-muted);
}

.text-light {
  color: var(--color-text-light);
}

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

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

.font-medium {
  font-weight: var(--font-weight-medium);
}

.font-semibold {
  font-weight: var(--font-weight-semibold);
}

.font-bold {
  font-weight: var(--font-weight-bold);
}

/* Spacing Utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
  box-sizing: border-box;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

@media (max-width: 480px) {
  .container,
  .container-narrow {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

/* SVG Icon Base */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.icon-xs {
  width: 0.8125rem;
  height: 0.8125rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.75rem;
  height: 1.75rem;
}

.icon-xl {
  width: 2.25rem;
  height: 2.25rem;
}

/* Screen Reader Only Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Matched Ambient Section Gradient Classes */
.bg-gradient-hero {
  background: var(--gradient-section-hero);
  background-color: var(--color-bg);
}

.bg-gradient-experience {
  background: var(--gradient-section-experience);
  background-color: var(--color-bg);
}

.bg-gradient-highlights {
  background: var(--gradient-section-highlights);
}

.bg-gradient-packages {
  background: var(--gradient-section-packages);
  background-color: var(--color-bg);
}

.bg-gradient-pricing {
  background: var(--gradient-section-pricing);
}

.bg-gradient-footer {
  background: var(--gradient-section-footer);
}

/* Section Spacing Utilities */
.section {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }

  .section {
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
  }
}

@media (max-width: 480px) {
  .section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }
}
