/*
Theme Name: Landing Pro
Theme URI: https://edwardyoungdigital.com
Description: Minimal modular WordPress theme for custom Google Ads landing pages. Built with CoreFramework CSS and ACF Pro.
Version: 1.0.0
Author: Edward Young Digital
Author URI: https://edwardyoungdigital.com
Text Domain: landing-pro
*/

/* ==========================================================================
   Web Fonts
   ========================================================================== */

/**
 * Satoshi Variable Font - Normal/Regular
 * Variable font supporting weights 300-900
 * font-display: swap prevents invisible text during font load (FOIT)
 * Format: woff2 for modern browser support and optimal compression
 */
@font-face {
  font-family: 'Satoshi Variable';
  font-style: normal;
  font-weight: 300 900; /* Variable font weight range */
  font-display: swap; /* Show fallback font while loading, then swap */
  src: url('../assets/fonts/Satoshi-Variable.woff2') format('woff2');
}

/**
 * Satoshi Variable Font - Italic
 * Variable font supporting weights 300-900 in italic style
 */
@font-face {
  font-family: 'Satoshi Variable';
  font-style: italic;
  font-weight: 300 900; /* Variable font weight range */
  font-display: swap; /* Show fallback font while loading, then swap */
  src: url('../assets/fonts/Satoshi-VariableItalic.woff2') format('woff2');
}

/**
 * Root CSS Custom Properties
 * Define font family variable for consistent usage throughout theme
 */
:root {
  --font-family-primary: 'Satoshi Variable', -apple-system, BlinkMacSystemFont, 
                         'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 
                         'Helvetica Neue', sans-serif;
}

/**
 * Apply font family to body
 * System font stack provides accessible fallbacks if custom font fails to load
 */
body {
  font-family: var(--font-family-primary);
  /* Improve font rendering on macOS/iOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Site Header
   ========================================================================== */

/**
 * Site Header Block
 * Main header container with vertical padding
 */
.site-header {
  padding: var(--space-m) 0;
}

/**
 * Header Container Element
 * Centers content and provides horizontal padding
 * Max-width matches CoreFramework design system
 */
.site-header__container {
  max-width: var(--max-screen-width);
  margin: 0 auto;
  padding: 0 var(--space-s);
}

/**
 * Site Logo Element
 * Container for logo image or text
 */
.site-header__logo {
  display: inline-block;
}

/**
 * Logo Link Element
 * Accessible link wrapper for logo
 * Increased font size for better readability
 */
.site-header__logo-link {
  display: inline-block;
  font-size: var(--text-l);
  font-weight: 700;
  color: var(--base);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/**
 * Logo Link Hover/Focus State
 * Provides visual feedback for interaction
 */
.site-header__logo-link:hover,
.site-header__logo-link:focus {
  opacity: 0.8;
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

/**
 * Logo Image Element
 * Responsive image with fixed max-height
 * Auto width maintains aspect ratio
 */
.site-header__logo-img {
  max-height: 60px;
  height: auto;
  width: auto;
  display: block;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

/**
 * Site Footer Block
 * Main footer container with top spacing and border
 */
.site-footer {
  margin-top: var(--space-3xl);
  padding: var(--space-l) 0;
  border-top: 1px solid var(--primary-20);
}

/**
 * Footer Container Element
 * Centers content and provides horizontal padding
 */
.site-footer__container {
  max-width: var(--max-screen-width);
  margin: 0 auto;
  padding: 0 var(--space-s);
  text-align: center;
}

/**
 * Copyright Text Element
 * Small text with reduced opacity for visual hierarchy
 * Ensures minimum readable font size
 */
.site-footer__copyright {
  color: var(--base);
  font-size: var(--text-s);
  margin: 0;
  opacity: 0.7;
  /* Ensure minimum 14px for readability (14px / 10 = 1.4rem) */
  min-font-size: 1.4rem;
}

/**
 * Footer Navigation Element
 * Flexbox layout for footer links
 * Wraps on smaller screens for responsive behavior
 */
.site-footer__nav {
  display: flex;
  gap: var(--space-m);
  justify-content: center;
  align-items: center;
  margin-top: var(--space-s);
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

/**
 * Footer Link Element
 * Individual footer navigation links
 * WCAG AA compliant color contrast with opacity
 */
.site-footer__link {
  color: var(--base);
  text-decoration: none;
  font-size: var(--text-s);
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  /* Ensure minimum 14px for readability */
  min-font-size: 1.4rem;
  /* Increase click target size for accessibility */
  padding: var(--space-3xs) var(--space-2xs);
}

/**
 * Footer Link Hover/Focus State
 * Enhanced visibility and clear focus indicator
 * Meets WCAG 2.1 focus visible requirements
 */
.site-footer__link:hover,
.site-footer__link:focus {
  opacity: 1;
  color: var(--primary);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/**
 * Skip to Content Link
 * Accessibility feature for keyboard navigation
 * Hidden until focused, then appears at top of page
 */
.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  background: var(--primary);
  color: white;
  padding: var(--space-xs) var(--space-s);
  text-decoration: none;
  font-size: var(--text-m);
  font-weight: 700;
  z-index: 9999;
  border-radius: 0 0 4px 4px;
}

/**
 * Skip Link Focus State
 * Brings link into view when tabbed to
 */
.skip-link:focus {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  outline: 2px solid white;
  outline-offset: 2px;
}
