/* ==========================================================================
   MODERN CSS - Main Entry Point
   Mobile-First Design System for P4NR Website
   ========================================================================== */

/* -------------------------------------------------------------------------
   IMPORTS - Order matters!
   ------------------------------------------------------------------------- */

/* 1. Design Tokens & Variables */
@import url('./variables.css');

/* 2. Reset & Base Styles */
@import url('./reset.css');

/* 3. Typography System */
@import url('./typography.css');

/* 3.5. Utility Classes */
@import url('./utilities.css');

/* 4. Component Styles */
@import url('./components/navbar.css');
@import url('./components/buttons.css');
@import url('./components/hero.css');
@import url('./components/cards/base-card.css');
@import url('./components/cards/pricing-cards.css');
@import url('./components/cards/feature-cards.css');
@import url('./components/cards/team-cards.css');
@import url('./components/cards/legacy-cards.css');
@import url('./components/sections.css');
@import url('./components/footer.css');

/* 5. Animations */
@import url('./components/animations.css');

/* -------------------------------------------------------------------------
   FONT FACE DECLARATIONS
   ------------------------------------------------------------------------- */

@font-face {
  font-family: 'OPTIHandelGothic';
  font-weight: 900;
  font-style: normal;
  src: url('../assets/fonts/Handel_Gothic_D_Bold.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'OPTIHandelGothic';
  font-weight: 700;
  font-style: normal;
  src: url('../assets/fonts/Handel_Gothic_D_Bold.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'OPTIHandelGothic';
  font-weight: 500;
  font-style: normal;
  src: url('../assets/fonts/Handel_Gothic_D_Medium.otf') format('opentype');
  font-display: swap;
}

@font-face {
  font-family: 'OPTIHandelGothic';
  font-weight: 400;
  font-style: normal;
  src: url('../assets/fonts/Handel_Gothic_D_Regular.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'OPTIHandelGothic';
  font-weight: 300;
  font-style: normal;
  src: url('../assets/fonts/OPTIHandelGothic-Light.otf') format('opentype');
  font-display: swap;
}

/* -------------------------------------------------------------------------
   GLOBAL OVERRIDES & POLISH
   ------------------------------------------------------------------------- */

/* Skip link for keyboard navigation accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent-primary);
  color: white;
  text-decoration: none;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Smooth scrolling with navbar offset */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

/* Default text colors for dark/light sections */
.section--light p,
.section--light h1,
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6 {
  color: var(--text-dark);
}

.section--light .text-muted,
.section--light p {
  color: var(--text-dark-muted);
}

/* Image loading optimization */
img {
  content-visibility: auto;
}

/* Better touch targets on mobile */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .button,
  .navbar__link,
  .footer__link {
    min-height: 44px;
    min-width: 44px;
  }
}

/* -------------------------------------------------------------------------
   LEGACY BROWSER SUPPORT
   ------------------------------------------------------------------------- */

/* Fallback for browsers without clamp() support */
@supports not (font-size: clamp(1rem, 2vw, 3rem)) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem; }
  h5 { font-size: 1.25rem; }
  h6 { font-size: 1rem; }
  p { font-size: 1rem; }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(12px)) {
  .navbar {
    background: var(--bg-dark);
  }
}

/* -------------------------------------------------------------------------
   PRINT STYLES
   ------------------------------------------------------------------------- */

@media print {
  .navbar,
  .footer,
  .btn,
  .button {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    padding-top: 0;
  }
  
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
}

