/*
  Inner Page Unified Stylesheet
  
  Provides consistent base styles for ALL inner pages (service areas, core services, 
  AC tune-up, service redesign, etc.). Ensures:
  - Consistent typography hierarchy
  - Standardized spacing
  - Unified color palette
  - WCAG AA contrast ratios
  - Mobile-responsive layout (375px+)
  
  This stylesheet is enqueued on all inner pages (not homepage, not blog).
  Page-specific CSS files can override these styles for unique layouts.
*/

/* ===================================
   Color Palette (Unified)
   =================================== */
:root {
  /* Navy/Dark Blues */
  --inner-navy-dark: #011635;
  --inner-navy-medium: #042452;
  --inner-navy-light: #062d5e;
  --inner-blue-primary: #d4af37;
  --inner-blue-light: #011635;
  
  /* Neutrals */
  --inner-white: #ffffff;
  --inner-gray-light: #f9fafb;
  --inner-gray-lighter: #f0f7fb;
  --inner-gray-medium: #e5e5e5;
  --inner-gray-dark: #4b5563;
  --inner-text-dark: #1f2937;
  --inner-text-body: #374151;
  
  /* Accent Colors */
  --inner-gold: #d4af37;
  --inner-gold-light: #f6e27f;
  --inner-orange: #d4af37;
  
  /* Shadows */
  --inner-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --inner-shadow-md: 0 8px 24px rgba(1, 22, 53, 0.08);
  --inner-shadow-lg: 0 14px 34px rgba(1, 22, 53, 0.12);
}

/* ===================================
   Typography (Unified Hierarchy)
   =================================== */

/* Headings */
h1, .h1 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--inner-text-dark);
  margin: 0 0 16px;
}

h2, .h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--inner-text-dark);
  margin: 0 0 12px;
  position: relative;
}

h2::after, h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--inner-blue-primary);
  margin-top: 12px;
}

/* Cancel decorative underlines inside ACF flexible blocks that have their own styling */
.fx-block.icons-buttons h2::after,
.fx-block.icons-buttons h3::after,
.fx-block.image-text h2::after,
.fx-block.image-text h3::after,
.full-width-cta h2::after,
.full-width-cta h3::after,
.fx-block.contained-image-text h2::after,
.fx-block.contained-image-text h3::after,
.hales-v6-booking-cta h2::after,
.hales-v6-booking-cta h3::after,
.FxAccordion h2::after,
.FxAccordion h3::after,
.comfort-club h2::after,
.comfort-club h3::after {
  content: none;
  display: none;
}

h3, .h3 {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--inner-text-dark);
  margin: 18px 0 8px;
}

h4, .h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--inner-text-dark);
  margin: 14px 0 6px;
}

h5, .h5 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--inner-text-dark);
  margin: 12px 0 4px;
}

h6, .h6 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--inner-text-dark);
  margin: 10px 0 4px;
}

/* Body Text */
p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--inner-text-body);
  margin: 0 0 16px;
  max-width: 74ch;
}

/* Small Text */
small, .small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--inner-gray-dark);
}

/* ===================================
   Spacing System (Unified)
   =================================== */

/* Section Padding */
section {
  padding: 42px 0;
}

@media (max-width: 767px) {
  section {
    padding: 32px 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  section {
    padding: 56px 0;
  }
}

@media (min-width: 1200px) {
  section {
    padding: 70px 0;
  }
}

/* ===================================
   Masthead (Enhanced - Navy Gradient)
   =================================== */

.masthead--innerpage {
  position: relative;
  background: linear-gradient(135deg, var(--inner-navy-dark) 0%, var(--inner-navy-medium) 40%, var(--inner-navy-light) 70%, var(--inner-navy-dark) 100%);
  background-size: 200% 200%;
  animation: masthead-gradient 20s ease infinite;
  overflow: hidden;
}

@keyframes masthead-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.masthead--innerpage {
  overflow: hidden;
}

.masthead--innerpage::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.masthead--innerpage__bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  mix-blend-mode: normal;
}

.masthead--innerpage__bg img {
  position: relative;
  z-index: 1;
  filter: saturate(1.1) contrast(1.08) brightness(1.02);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.masthead--innerpage:hover .masthead--innerpage__bg img {
  transform: scale(1.02);
  filter: saturate(1.15) contrast(1.1) brightness(1.04);
}

.masthead--innerpage__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(1, 22, 53, 0.88) 0%,
    rgba(4, 36, 82, 0.6) 45%,
    rgba(6, 45, 94, 0.3) 70%,
    rgba(0, 0, 0, 0) 100%
  );
}

.masthead--innerpage__wrapper {
  position: relative;
  z-index: 4;
  padding: 32px 0 40px;
}

@media (min-width: 768px) {
  .masthead--innerpage__wrapper {
    padding: 40px 0 50px;
  }
}

@media (min-width: 1200px) {
  .masthead--innerpage__wrapper {
    padding: 50px 0 60px;
  }
}

.masthead--innerpage__text {
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
  text-align: center;
}

.masthead--innerpage__text h1 {
  margin-bottom: 0;
  color: var(--inner-white) !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--inner-white) !important;
  background-clip: unset !important;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  font-weight: 800;
}

.masthead--innerpage__text p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.6;
  max-width: 540px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .masthead--innerpage__text p {
    font-size: 18px;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0 0 11px;
}

.breadcrumbs ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 0 16px;
}

.breadcrumbs ul li {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  display: block;
}

.breadcrumbs ul li a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  border: none;
  background: transparent;
  display: block;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs ul li a:hover {
  color: var(--inner-white);
  text-decoration: underline;
}

.breadcrumbs ul li::before {
  display: none;
}

.breadcrumbs ul li::after {
  content: '';
  font-weight: normal;
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translate(0, -50%);
  width: 1.5px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

/* ===================================
   Content Sections (White/Light)
   =================================== */

.content-section {
  background: var(--inner-white);
  padding: 42px 0;
}

.content-section p {
  color: var(--inner-text-body);
}

.content-section h2,
.content-section h3 {
  color: var(--inner-text-dark);
}

/* Alternating sections */
.content-section:nth-of-type(even) {
  background: var(--inner-gray-light);
}

/* ===================================
   CTA Sections (Navy/Dark)
   =================================== */

.cta-section {
  background: linear-gradient(135deg, var(--inner-navy-dark) 0%, var(--inner-navy-medium) 100%);
  color: var(--inner-white);
  padding: 56px 0;
}

.cta-section h2,
.cta-section h3 {
  color: var(--inner-white);
}

.cta-section h2::after,
.cta-section h3::after {
  background: linear-gradient(90deg, var(--inner-gold), var(--inner-gold-light));
}

.cta-section p {
  color: rgba(255, 255, 255, 0.92);
}

/* ===================================
   Cards & Components
   =================================== */

.card {
  background: var(--inner-white);
  border: 1px solid rgba(1, 22, 53, 0.12);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--inner-shadow-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--inner-shadow-lg);
}

.card h4 {
  margin: 0 0 6px;
  color: var(--inner-text-dark);
}

.card p {
  margin: 0;
  color: var(--inner-text-body);
}

/* Chips/Pills */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(1, 22, 53, 0.06);
  border: 1px solid rgba(1, 22, 53, 0.10);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--inner-text-dark);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.chip:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--inner-gold) 0%, var(--inner-gold-light) 50%, var(--inner-gold) 100%);
  color: var(--inner-navy-dark);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(212, 175, 55, 0.6);
  color: var(--inner-gold-light);
  border-radius: 12px;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--inner-gold);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--inner-white);
  color: var(--inner-navy-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ===================================
   Lists & Proof Points
   =================================== */

.proof-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.proof-list li {
  position: relative;
  padding-left: 22px;
  margin: 8px 0;
  color: var(--inner-text-body);
}

.proof-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--inner-blue-primary);
  font-weight: 800;
  font-size: 16px;
}

/* ===================================
   Accessibility & Contrast
   =================================== */

/* Ensure all text meets WCAG AA standards (4.5:1 for normal text, 3:1 for large text) */

/* Dark text on white/light backgrounds */
.content-section p,
.content-section li,
.card p {
  color: var(--inner-text-body); /* #374151 on white = 8.5:1 contrast */
}

/* White text on dark backgrounds */
.cta-section p,
.masthead--innerpage__text p {
  color: rgba(255, 255, 255, 0.92); /* White on navy = 13.5:1 contrast */
}

/* Links */
a {
  color: var(--inner-blue-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--inner-blue-light);
  text-decoration: underline;
}

/* ===================================
   Mobile Responsive (375px+)
   =================================== */

@media (max-width: 575px) {
  h1, .h1 {
    font-size: 28px;
  }
  
  h2, .h2 {
    font-size: 24px;
  }
  
  h3, .h3 {
    font-size: 20px;
  }
  
  p {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .masthead--innerpage__text p {
    font-size: 15px;
  }
  
  .breadcrumbs ul {
    gap: 0 8px;
  }
  
  .breadcrumbs ul li {
    font-size: 10px;
  }
  
  .breadcrumbs ul li::after {
    display: none;
  }
  
  section {
    padding: 24px 0;
  }
  
  .cta-section {
    padding: 32px 0;
  }
}

/* ===================================
   Utility Classes
   =================================== */

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

.text-white {
  color: var(--inner-white);
}

.text-dark {
  color: var(--inner-text-dark);
}

.text-muted {
  color: var(--inner-gray-dark);
}

.bg-white {
  background: var(--inner-white);
}

.bg-light {
  background: var(--inner-gray-light);
}

.bg-dark {
  background: var(--inner-navy-dark);
}

.shadow-sm {
  box-shadow: var(--inner-shadow-sm);
}

.shadow-md {
  box-shadow: var(--inner-shadow-md);
}

.shadow-lg {
  box-shadow: var(--inner-shadow-lg);
}

/* ===================================
   Custom Hero Headings (H2 styled as H1)
   =================================== */
/* Visually style custom hero headings as H1 even though they're semantically H2
   (masthead already provides the page's canonical H1) */
.anniversary-hero__title,
.hero-v2__text h2,
.ac-hero-content h2 {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Suppress the h2::after underline rule for hero headings */
.anniversary-hero__title::after,
.hero-v2__text h2::after,
.ac-hero-content h2::after {
  display: none;
}

