/* ==========================================================================
   TROPIKAL LIFE - GLOBAL / COMMON CSS STYLES
   ========================================================================== */

/* 1. Design System & CSS Variables */
:root {
  /* Theme Colors */
  --primary: #101010;
  --secondary-1: #f26901;
  --secondary-2: #faa819;
  --secondary-gradient: linear-gradient(135deg, #f26901 0%, #faa819 100%);
  --secondary-gradient-hover: linear-gradient(135deg, #e05e00 0%, #f99c00 100%);

  /* Neutral Colors */
  --bg-color: #faf8f5;
  --bg-pattern-tint: rgba(0, 0, 0, 0.02);
  --text-dark: #101010;
  --text-muted: #666666;
  --text-light: #ffffff;
  --white: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);

  /* Fonts */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-title: 'Bona Nova', Georgia, serif;

  /* Spacing & Sizing */
  --header-height: 80px;
  --container-max: 1320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 50px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtly patterned background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--bg-pattern-tint) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: -1;
}

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

ul,
ol {
  list-style: none;
}

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

button,
input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* 3. Global Shared Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(2.8rem, 5vw, 4.6rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2.5vw, 1.4rem); }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-family);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.highlight-serif {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--secondary-1);
}

.subtitle-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--secondary-1);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.subtitle-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 3.8vw, 3.2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
}

/* 4. Utility Layout Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.main-content {
  min-height: 80vh;
  padding-top: 0;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 5. Global Scroll Reveal & Shimmer Animations */
.reveal-init {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1), transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Button Shimmer Sweep Effect */
.btn-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--secondary-gradient);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px rgba(242, 105, 1, 0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 30px rgba(242, 105, 1, 0.5);
}

.btn-cta:hover::after {
  left: 140%;
}