/* ============================================
   GLOBAL RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #FFFDF7;
  color: #3A2C2A;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   ============================================ */
:root {
  /* Colors */
  --pastel-pink: #FFE4EC;
  --pastel-mint: #DCFCE8;
  --pastel-blue: #E0F2FE;
  --primary-color: #F59E7A;
  --primary-hover: #E88762;
  --primary-dark: #D9765A;
  --text-dark: #3A2C2A;
  --text-medium: #4B3B38;
  --text-light: #666;
  --white: #FFFFFF;
  --off-white: #FFFDF7;
  --cream: #FFF8F0;
  --border-light: #F0DDD2;
  --border-lighter: #F1E3DB;
  --success: #4CAF50;
  --error: #D32F2F;
  --warning: #F4C542;
  
  /* Shadows */
  --soft-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
  --medium-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.1);
  --button-shadow: 0 6px 14px rgba(245, 158, 122, 0.3);
  --button-hover-shadow: 0 8px 25px rgba(245, 158, 122, 0.4);
  
  /* Transitions */
  --hover-transition: all 0.25s ease;
  --smooth-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Border Radius */
  --radius-sm: 0.8rem;
  --radius-md: 1.2rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 60px;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
}

/* ============================================
   LAYOUT & CONTAINER
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

section {
  margin: var(--spacing-xxl) 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 3.2rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.3rem;
}

p {
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: 700;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  position: relative;
  display: inline-block;
  color: var(--text-dark);
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 70%;
  height: 4px;
  background: #FBC8B5;
  border-radius: 4px;
}

/* ============================================
   BUTTONS - GLOBAL
   ============================================ */
button,
.btn-primary,
.btn-outline,
.btn-secondary,
.submit-btn,
[type="submit"],
[type="button"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

/* Primary Button */
.btn-primary {
  background: var(--primary-color);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--white);
  font-size: 1.05rem;
  box-shadow: var(--button-shadow);
  text-decoration: none;
  width: auto;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--button-hover-shadow);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 158, 122, 0.3);
}

/* Outline Button */
.btn-outline {
  border: 2px solid #EECEB9;
  background: var(--white);
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-medium);
  font-size: 0.9rem;
  text-decoration: none;
}

.btn-outline:hover {
  background: #FFE4D6;
  border-color: #E07A5F;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.2);
}

/* ============================================
   TABLES
   ============================================ */
.price-table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-md) 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 400px;
}

th {
  background: #FFF1E6;
  padding: var(--spacing-sm);
  font-weight: 700;
  color: #4D3B36;
  text-align: left;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-lighter);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #FFFAF5;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge-addon {
  background: #E7F5E9;
  border-radius: 40px;
  padding: 0.2rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  color: #2E7D32;
  border: 1px solid rgba(0,0,0,0.04);
}

.badge-addon i {
  margin-right: 4px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 {
  gap: var(--spacing-sm);
}

.gap-2 {
  gap: var(--spacing-md);
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   MOBILE NAVIGATION ICONS
   ============================================ */
.mobile-icon {
  display: none;
  margin-right: 8px;
  width: 20px;
  text-align: center;
  color: #E07A5F;
  font-size: 0.9rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
/* Focus styles for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Remove focus outline for mouse users */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* 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-width: 0;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #F1E3DB;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #F59E7A;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E88762;
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: #FFE4D6;
  color: var(--text-dark);
}

::-moz-selection {
  background: #FFE4D6;
  color: var(--text-dark);
}

/* ============================================
   FORM ELEMENTS (GLOBAL)
   ============================================ */
input, textarea, select {
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(245, 158, 122, 0.1);
  background: var(--white);
}

/* Placeholder styling */
::placeholder {
  color: #C4B5A5;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #C4B5A5;
}

/* ============================================
   TABLET RESPONSIVE (780px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  section {
    margin: var(--spacing-xl) 0;
  }
  
  h1 {
    font-size: 2.8rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}

/* ============================================
   MOBILE RESPONSIVE (320px - 780px)
   ============================================ */
@media (max-width: 780px) {
  body {
    font-size: 0.95rem;
  }
  
  .container {
    padding: 0 1.2rem;
  }
  
  section {
    margin: var(--spacing-lg) 0;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  h3 {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-md);
  }
  
  .section-title:after {
    height: 3px;
    bottom: -6px;
  }
  
  /* Mobile buttons */
  button,
  .btn-primary,
  .btn-outline,
  .submit-btn,
  [type="submit"] {
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-outline {
    padding: 0.7rem 1.2rem;
  }
  
  /* Mobile tables */
  .price-table-wrapper {
    border-radius: var(--radius-md);
    margin: var(--spacing-sm) 0;
  }
  
  td, th {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  table {
    min-width: 350px;
  }
  
  /* Mobile icons */
  .mobile-icon {
    display: inline-block;
  }
  
  /* Mobile form elements */
  input, 
  textarea, 
  select {
    min-height: 48px;
    font-size: 16px !important; /* Prevents iOS zoom */
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }
}

/* ============================================
   SMALL MOBILE RESPONSIVE (320px - 480px)
   ============================================ */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  section {
    margin: var(--spacing-md) 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  /* Smaller buttons */
  button,
  .btn-primary,
  .btn-outline,
  .submit-btn,
  [type="submit"] {
    min-height: 44px;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 50px;
  }
  
  /* Tighter tables */
  td, th {
    padding: 0.6rem;
    font-size: 0.8rem;
  }
  
  .badge-addon {
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
  }
}

/* ============================================
   LANDSCAPE MODE
   ============================================ */
@media (max-width: 900px) and (orientation: landscape) {
  section {
    margin: var(--spacing-md) 0;
  }
  
  .hero {
    padding: 2rem 0 3rem 0;
  }
}

/* ============================================
   HIGH DPI SCREENS (RETINA)
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body {
    background: white;
    color: black;
  }
  
  nav,
  .btn-primary,
  .btn-outline,
  .bundle-banner,
  footer {
    display: none;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  a {
    text-decoration: underline;
  }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* Uncomment if you want dark mode support */
  /*
  :root {
    --text-dark: #F5F0EB;
    --text-medium: #E5DFD8;
    --white: #2A2522;
    --off-white: #1F1B19;
    --cream: #2A2522;
    --border-light: #3A3532;
    --border-lighter: #3A3532;
  }
  
  body {
    background-color: #1F1B19;
    color: #F5F0EB;
  }
  */
}

/* ============================================
   HELPER CLASSES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, #F9A8D4, #93C5FD, #6EE7B7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--soft-shadow);
  transition: var(--hover-transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--medium-shadow);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}