/**
 * Client-Specific Theming — Paige Mead Recruiting
 *
 * Elegant, modern design with red accents on white/gray.
 * Serif headings (Cormorant Garamond) + clean sans-serif body.
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  /* ===== PRIMARY BRAND COLORS ===== */
  --primary-color: #c41230;
  --primary-color-dark: #9a0e26;
  --primary-color-light: #d4455e;
  --primary-color-bright: #e05a72;

  --bs-primary: #c41230;
  --bs-primary-rgb: 196, 18, 48;

  /* ===== SECONDARY COLORS ===== */
  --secondary-color: #6c757d;
  --accent-color: #c41230;

  /* ===== UI ELEMENT COLORS ===== */
  --link-color: var(--primary-color);
  --link-hover-color: var(--primary-color-dark);
  --button-color: var(--primary-color);
  --button-hover-color: var(--primary-color-dark);

  /* ===== BACKGROUND COLORS ===== */
  --bg-primary: var(--primary-color);
  --bg-secondary: #f8f7f5;
  --bg-light: #f8f7f5;
  --hero-bg-color: #1a1a1a;
  --sidebar-bg: rgba(26, 26, 26, 0.95);

  /* ===== TEXT COLORS ===== */
  --text-primary: #2d2d2d;
  --text-secondary: #6c757d;
  --text-light: #6c757d;
  --text-white: #ffffff;

  /* ===== TYPOGRAPHY ===== */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                      "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-family-headings: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-size-base: 1rem;
  --line-height-base: 1.7;

  --heading-font-weight: 400;

  /* ===== SPACING ===== */
  --section-padding: 5rem;
  --section-padding-mobile: 3rem;

  /* ===== BORDER RADIUS ===== */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-pill: 30px;

  /* ===== SHADOWS ===== */
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
  --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}


/* ========================================================================
   GLOBAL TYPOGRAPHY
   ======================================================================== */

body {
  font-family: var(--font-family-base);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-headings);
  font-weight: var(--heading-font-weight);
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; line-height: 1.2; }
h2 { font-size: 2.25rem; line-height: 1.25; }
h3 { font-size: 1.75rem; line-height: 1.3; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

p {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
}


/* ========================================================================
   BUTTONS
   ======================================================================== */

.btn {
  border-radius: var(--border-radius-pill);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 18, 48, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 18, 48, 0.3);
}


/* ========================================================================
   SECTION UTILITIES
   ======================================================================== */

.section-warm {
  background-color: var(--bg-secondary);
}

.section-dark {
  background-color: #1a1a1a;
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

.section-dark .lead {
  color: rgba(255, 255, 255, 0.7);
}

.section-padding {
  padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--section-padding-mobile) 0;
  }
}

.section-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 1.5rem auto;
}

.section-divider-left {
  width: 60px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 1.5rem 0;
}


/* ========================================================================
   CARD STYLES
   ======================================================================== */

.service-card {
  background: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: all 0.4s ease;
  overflow: hidden;
  height: 100%;
}

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

.service-card .card-body {
  padding: 2.5rem 2rem;
}

.service-card .card-title {
  font-family: var(--font-family-headings);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}


/* ========================================================================
   TESTIMONIALS
   ======================================================================== */

.testimonial-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-sm);
  border-left: 3px solid var(--primary-color);
  height: 100%;
}

.testimonial-card blockquote {
  font-family: var(--font-family-headings);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.testimonial-card .testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}


/* ========================================================================
   HERO OVERRIDES (for Paige's consultant site)
   ======================================================================== */

#homepage-cover {
  background-color: #1a1a1a;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

#homepage-cover .bg-cover {
  position: relative;
  z-index: 2;
}

#homepage-cover h1 {
  font-family: var(--font-family-headings);
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ffffff;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  #homepage-cover h1 {
    font-size: 2.25rem;
  }
}

#homepage-cover .lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hide template elements we don't need */
.hero-search-wrapper,
.hero-service-boxes,
.hero-scroll-indicator {
  display: none !important;
}

/* Logo swap: color by default, white on homepage transparent header */
.header-logo-white {
  display: none;
}

.homepage:not(.header-not-at-top) .header-logo-color {
  display: none;
}

.homepage:not(.header-not-at-top) .header-logo-white {
  display: block;
}


/* ========================================================================
   INSIDE PAGE HEADER
   ======================================================================== */

#inside-header {
  background: linear-gradient(135deg, rgba(60,6,16,1) 0%, rgba(150,12,36,1) 100%);
  color: #ffffff;
  padding: 3rem 0;
}

#inside-header h1 {
  color: #ffffff;
  font-size: 2.75rem;
  font-weight: 300;
  margin-bottom: 0;
}

#inside-header .lead {
  color: rgba(255, 255, 255, 0.7);
}


/* ========================================================================
   FOOTER OVERRIDES
   ======================================================================== */

#footer {
  background-color: #1a1a1a;
}

#footer-bottom {
  background-color: #111111;
}

.footer-heading {
  font-family: var(--font-family-headings);
  font-weight: 400;
  font-size: 1.5rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-social-link:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}


/* ========================================================================
   MIDWINTER BANNER
   ======================================================================== */

.midwinter-banner {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.midwinter-banner h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.midwinter-banner .btn {
  border-color: #ffffff;
  color: #ffffff;
  margin-top: 1rem;
}

.midwinter-banner .btn:hover {
  background: #ffffff;
  color: var(--primary-color);
}


/* ========================================================================
   CONTACT FORM
   ======================================================================== */

.contact-form .form-control {
  border: 1px solid #dee2e6;
  border-radius: var(--border-radius);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(196, 18, 48, 0.15);
}

.contact-form label {
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}


/* ========================================================================
   HERO FADE-IN ANIMATION
   ======================================================================== */

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-fade-in {
  opacity: 0;
  animation: heroFadeIn 0.8s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .hero-fade-in {
    opacity: 1;
    animation: none;
  }
}


/* ========================================================================
   SCROLL DOWN INDICATOR
   ======================================================================== */

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  margin-left: -20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.4rem;
  animation: heroFadeIn 0.8s ease forwards, scrollBounce 2s ease-in-out 3s infinite;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: rgba(255, 255, 255, 1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator {
    animation: none;
    opacity: 0.6;
  }
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 1.5rem;
  }
}


/* ========================================================================
   SCROLL ANIMATIONS
   ======================================================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade"] {
  transform: none;
}

[data-animate="fade"].in-view {
  opacity: 1;
}

/* Stagger delays for grid children */
[data-animate-stagger] > *:nth-child(1) { transition-delay: 0s; }
[data-animate-stagger] > *:nth-child(2) { transition-delay: 0.1s; }
[data-animate-stagger] > *:nth-child(3) { transition-delay: 0.2s; }
[data-animate-stagger] > *:nth-child(4) { transition-delay: 0.3s; }
[data-animate-stagger] > *:nth-child(5) { transition-delay: 0.4s; }
[data-animate-stagger] > *:nth-child(6) { transition-delay: 0.5s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ========================================================================
   LOGO SIGNATURE DRAW-IN ANIMATION
   ======================================================================== */

@keyframes signatureReveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes recruitingFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.homepage:not(.header-not-at-top) .logo-signature {
  clip-path: inset(0 100% 0 0);
  animation: signatureReveal 2s ease-out 0.3s forwards;
}

.homepage:not(.header-not-at-top) .logo-recruiting {
  opacity: 0;
  animation: recruitingFadeIn 0.8s ease forwards;
  animation-delay: 2.2s;
}

@media (prefers-reduced-motion: reduce) {
  .homepage:not(.header-not-at-top) .logo-signature {
    clip-path: none;
    animation: none;
  }
  .homepage:not(.header-not-at-top) .logo-recruiting {
    opacity: 1;
    animation: none;
  }
}


/* ========================================================================
   ACCESSIBILITY WIDGET OVERRIDES
   ======================================================================== */

html body .asw-menu-btn {
  background: #9a0e26 !important;
  background: linear-gradient(96deg, #9a0e26, #7a0b1e) !important;
  outline-color: #7a0b1e !important;
}
