/* ==========================================================================
   main.css — Global Design System
   A Perfect Choice Home Care WordPress Theme
   ========================================================================== */

/* Google Fonts — loaded via wp_enqueue_style in enqueue.php for better LCP */

/* Design Tokens */
:root {
  --navy: #1B2B4B;
  --navy-light: #2A3F65;
  --navy-deep: #131F36;
  --coral: #C44A3F;
  --coral-hover: #A83D33;
  --coral-light: rgba(196, 74, 63, 0.08);
  --coral-glow: rgba(196, 74, 63, 0.15);
  --cream: #FDF8F3;
  --cream-dark: #F5EDE4;
  --sage: #6B8F71;
  --sage-light: rgba(107, 143, 113, 0.1);
  --white: #FFFFFF;
  --text: #3D3D3D;
  --text-light: #555555;
  --text-lighter: #888888;
  --border: #E8E0D8;
  --shadow-sm: 0 2px 8px rgba(27, 43, 75, 0.06);
  --shadow-md: 0 4px 24px rgba(27, 43, 75, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 43, 75, 0.12);
  --shadow-xl: 0 20px 60px rgba(27, 43, 75, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --star: #F5A623;
}

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

html {
  scrollbar-gutter: stable;
}

/* Base Typography */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  background: var(--white);
  font-feature-settings: 'kern' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
  font-family: 'Lora', serif;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h3, h4 {
  font-family: 'Lora', serif;
  line-height: 1.25;
  color: var(--navy);
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
  color: inherit;
}

/* Subtle underline animation for text links (not buttons) */
p a, .apch-faq-a-inner a, li a:not(.apch-btn):not(.apch-service-card-link) {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
  padding-bottom: 1px;
}
p a:hover, .apch-faq-a-inner a:hover, li a:not(.apch-btn):not(.apch-service-card-link):hover {
  background-size: 100% 1.5px;
  color: var(--coral);
}

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

/* Container */
.apch-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Label */
.apch-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.apch-section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--coral);
}

/* Buttons */
.apch-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}
.apch-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196, 74, 63, 0.2);
}
.apch-btn-primary {
  background: linear-gradient(135deg, var(--coral) 0%, #D4574C 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(196, 74, 63, 0.3);
}
.apch-btn-primary:hover {
  background: linear-gradient(135deg, var(--coral-hover) 0%, #C44A3F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 74, 63, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  color: var(--white) !important;
}
.apch-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196, 74, 63, 0.2);
}
.apch-btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white) !important;
  border: 2.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.apch-btn-outline:hover {
  background: var(--white);
  color: var(--navy) !important;
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.15);
}
.apch-btn-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}
.apch-btn-navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white) !important;
  box-shadow: 0 4px 16px rgba(27, 43, 75, 0.25);
}
.apch-btn-navy:hover {
  background: linear-gradient(135deg, var(--navy-light) 0%, #2A3F65 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(27, 43, 75, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  color: var(--white) !important;
}
.apch-btn-navy:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(27, 43, 75, 0.2);
}
.apch-btn-coral-outline {
  background: transparent;
  color: var(--coral) !important;
  border: 2.5px solid var(--coral);
}
.apch-btn-coral-outline:hover {
  background: linear-gradient(135deg, var(--coral) 0%, #D4574C 100%);
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 74, 63, 0.3);
}
.apch-btn-coral-outline:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(196, 74, 63, 0.2);
}

/* Animations */
@keyframes apch-fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes apch-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes apch-slideRight {
  from { width: 0; }
  to { width: 100%; }
}

.apch-animate {
  animation: apch-fadeUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}
.apch-delay-1 { animation-delay: 0.1s; }
.apch-delay-2 { animation-delay: 0.2s; }
.apch-delay-3 { animation-delay: 0.3s; }
.apch-delay-4 { animation-delay: 0.4s; }
.apch-delay-5 { animation-delay: 0.5s; }
.apch-delay-6 { animation-delay: 0.6s; }

/* Screen reader only */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

/* Skip Link — visible on keyboard focus */
.apch-skip-link {
  clip: rect(1px, 1px, 1px, 1px);
  position: fixed !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.apch-skip-link:focus {
  clip: auto;
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 24px;
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

/* Reduced Motion */
@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;
  }
}

/* Print Styles */
@media print {
  .apch-header, .apch-menu-toggle, .apch-hero, .apch-trust-bar,
  .apch-bottom-strip, .apch-cta-section, .apch-cta-strip, .apch-footer,
  .apch-blog-sidebar, nav, .apch-btn, .apch-skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  main { padding: 0 !important; }
  a { color: #000; text-decoration: underline; }
  .apch-container { max-width: 100%; padding: 0; }
  img { max-width: 100% !important; page-break-inside: avoid; }
  h1, h2, h3 { page-break-after: avoid; }
}
