/* ==============================================
   JACKSONVILLE HEATING & AIR - CUSTOM STYLES
   K8ssandra-Inspired Design
   ============================================== */


/* ==============================================
   COLOR PALETTE REFERENCE
   ------------------------------------------
   Dark background:    #1a1a2e (navy/purple)
   Secondary dark:     #2d2d44 (charcoal)
   Muted text:         #b8b8d1 (light purple-gray)
   Accent/CTA:         #6366f1 (purple)
   Accent hover:       #8b5cf6 (light purple)
   Accent highlight:   #a78bfa (lavender)
   Light background:   #f8f9fa (off-white)
   Success/CTA alt:    #ff8c00 (orange)
   ============================================== */


/* ==============================================
   IMAGES & MEDIA
   ============================================== */

.custom-image {
  margin: 2rem 0;
  text-align: center;
}

.custom-image img {
  max-width: 100%;
  border-radius: 6px;
}

.image-caption {
  margin-top: 1rem;
  font-style: italic;
  color: #555;
}


/* ==============================================
   HEADER
   ============================================== */

.site-header {
  background: #1a1a2e !important;
  padding: 0.75rem 2rem !important;
  min-height: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 0;
  min-height: 60px;
}

/* Remove any hero image overlap on homepage */
.is-home .site-header {
  position: relative;
  z-index: 100;
}

/* Ensure the banner image doesn't drown out the text */
.header-wrapper {
  background-color: rgba(0, 0, 0, 0.4);
}


/* ==============================================
   LOGO
   ============================================== */

.logo-container img,
.dn.db-l.v-mid img {
  height: 60px !important;
  width: auto;
  background-color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}


/* ==============================================
   NAVIGATION
   ============================================== */

.main-nav a {
  color: #b8b8d1 !important;
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 2rem;
  text-decoration: none;
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav a:hover {
  color: #ffffff !important;
}


/* ==============================================
   PHONE BUTTON (CALL TO ACTION)
   ============================================== */

a[href^="tel:"] {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff !important;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

a[href^="tel:"]:hover {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  transform: translateY(-1px);
}

.main-nav a[href^="tel:"] {
  text-transform: none;
  margin-right: 0;
}

/* ==============================================
   FOOTER PHONE LINK - Override button style
   ============================================== */

section.bg-near-white a[href^="tel:"] {
  background: none !important;
  color: #6366f1 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 600;
  text-decoration: none;
}

section.bg-near-white a[href^="tel:"]:hover {
  background: none !important;
  color: #8b5cf6 !important;
  transform: none;
  text-decoration: underline;
}

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

h1, h2, h3 {
  color: #1a1a2e !important;
  border-bottom: 2px solid #6366f1 !important;
  padding-bottom: 10px;
}

.dark-blue {
  color: #1a1a2e;
  margin-top: 0;
}


/* ==============================================
   BRAND LOGO BAR
   ============================================== */

.logo-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 2rem;
  padding: 1rem 0;
}

.logo-bar img {
  height: 60px;
  width: auto;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.logo-bar img:hover {
  filter: grayscale(0%);
}


/* ==============================================
   CTA BANNER
   ============================================== */

div.bg-light-blue,
div.bg-dark-blue.pv4,
.cta-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%) !important;
}

div.bg-light-blue h3,
div.bg-dark-blue h3,
.cta-banner h3 {
  color: #ffffff !important;
  border-bottom: none !important;
}

div.bg-light-blue p,
.cta-banner p {
  color: #b8b8d1 !important;
}

.bg-orange {
  background: linear-gradient(135deg, #ff8c00, #ff6b00) !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.bg-orange:hover {
  background: linear-gradient(135deg, #ff6b00, #ff5500) !important;
  transform: translateY(-1px);
}


/* ==============================================
   FOOTER - MAIN SECTION
   ============================================== */

section.bg-near-white {
  background: #f8f9fa !important;
  border-top: 1px solid #e9ecef;
}

section.bg-near-white h4 {
  color: #1a1a2e !important;
  border-bottom: none !important;
}

section.bg-near-white .blue {
  color: #6366f1 !important;
}

section.bg-near-white a.blue:hover {
  color: #8b5cf6 !important;
}


/* ==============================================
   FOOTER - BOTTOM BAR
   ============================================== */

footer.bg-dark-blue,
footer.bg-light-blue {
  background: #1a1a2e !important;
}

footer .white-80 {
  color: #b8b8d1 !important;
}

footer a.white-80:hover {
  color: #ffffff !important;
}

section.bg-near-white p,
section.bg-near-white li {
  color: #555555 !important;
}

/* ==============================================
   SOCIAL ICONS
   ============================================== */

.social-icon svg path {
  fill: #6366f1;
  transition: fill 0.3s ease;
}

.social-icon:hover svg path {
  fill: #a78bfa;
}

.facebook-icon svg path {
  fill: #6366f1;
}

.facebook-icon svg:hover path {
  fill: #a78bfa;
}


/* ==============================================
   PAYMENT ICONS
   ============================================== */

.h2 {
  height: 25px;
  width: auto;
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

.h2:hover {
  filter: grayscale(0%);
}


/* ==============================================
   LAYOUT & CONTAINERS
   ============================================== */

.center {
  max-width: 90% !important;
}

article.center,
main.center {
  max-width: 1200px !important;
}

.flex {
  display: flex;
  align-items: center;
}

.gap-2 {
  gap: 1rem;
}


/* ==============================================
   TYPEWRITER EFFECT
   ============================================== */

.typewriter-container {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.typewriter h1 {
  color: #a78bfa !important;
  font-family: monospace;
  font-size: 1.5rem;
  overflow: hidden;
  border-right: 3px solid #a78bfa;
  border-bottom: none !important;
  white-space: nowrap;
  margin: 0 auto;
  width: 0;
  animation: 
    typing-line1 8s steps(24, end) infinite,
    blink-caret 0.75s step-end infinite;
}

.typewriter p {
  color: #b8b8d1;
  font-family: monospace;
  font-size: 1rem;
  overflow: hidden;
  border-right: 3px solid #b8b8d1;
  white-space: nowrap;
  margin: 0.5rem auto 0;
  width: 0;
  animation: 
    typing-line2 8s steps(50, end) infinite,
    blink-caret-white 0.75s step-end infinite;
}

@keyframes typing-line1 {
  0% { width: 0; }
  30% { width: 100%; }
  80% { width: 100%; }
  95% { width: 0; }
  100% { width: 0; }
}

@keyframes typing-line2 {
  0% { width: 0; }
  30% { width: 0; }
  60% { width: 100%; }
  80% { width: 100%; }
  95% { width: 0; }
  100% { width: 0; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: #a78bfa; }
}

@keyframes blink-caret-white {
  from, to { border-color: transparent; }
  50% { border-color: #b8b8d1; }
}


/* ==============================================
   TYPEWRITER EFFECT - LIGHT THEME (SERVICES)
   ============================================== */

.typewriter-light {
  background: transparent;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
}

.typewriter-light h2 {
  color: #1a1a2e !important;
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
  border-right: 3px solid #1a1a2e;
  border-bottom: none !important;
  white-space: nowrap;
  margin: 0 auto;
  width: 0;
  animation: 
    type-line1 14s steps(45, end) infinite,
    blink-caret-dark 0.8s step-end infinite;
}

.typewriter-light p {
  color: #555555;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 500;
  overflow: hidden;
  border-right: 3px solid #555555;
  white-space: nowrap;
  margin: 1rem auto 0;
  width: 0;
  opacity: 0;
  animation: 
    type-line2 14s steps(50, end) infinite,
    blink-caret-gray 0.8s step-end infinite;
}

/* 
   SEQUENCE (14 second cycle):
   0-30%    : Line 1 types (4.2s)
   30-45%   : Line 1 holds, Line 2 waits
   45-70%   : Line 2 types (3.5s)
   70-85%   : Both hold - pause (2.1s)
   85-92%   : Both erase
   92-100%  : Pause before repeat (1.1s)
*/

@keyframes type-line1 {
  0%    { width: 0; }
  30%   { width: 100%; }
  85%   { width: 100%; }
  92%   { width: 0; }
  100%  { width: 0; }
}

@keyframes type-line2 {
  0%    { width: 0; opacity: 0; }
  44%   { width: 0; opacity: 0; }
  45%   { width: 0; opacity: 1; }
  70%   { width: 100%; opacity: 1; }
  85%   { width: 100%; opacity: 1; }
  92%   { width: 0; opacity: 1; }
  93%   { width: 0; opacity: 0; }
  100%  { width: 0; opacity: 0; }
}

@keyframes blink-caret-dark {
  from, to { border-color: transparent; }
  50% { border-color: #1a1a2e; }
}

@keyframes blink-caret-gray {
  from, to { border-color: transparent; }
  50% { border-color: #555555; }
}

/* Mobile - simplified fade */
@media screen and (max-width: 600px) {
  .typewriter-light h2,
  .typewriter-light p {
    white-space: normal;
    width: 100%;
    border-right: none;
    opacity: 1;
    animation: pulse-light 5s ease-in-out infinite;
    font-size: 1.2rem;
  }
  
  .typewriter-light p {
    font-size: 1rem;
    animation-delay: 0.5s;
  }
  
  @keyframes pulse-light {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
  }
}

/* ==============================================
   MOBILE STYLES
   ============================================== */

@media screen and (max-width: 600px) {
  
  /* Header Container */
  .header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px 0 !important;
  }

  /* Logo */
  .logo-container {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 15px !important;
  }

  .logo-container img {
    max-width: 180px !important;
    height: auto !important;
  }

  /* Navigation */
  .main-nav {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
  }

  .main-nav a {
    color: #b8b8d1 !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    padding: 12px 0 !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    margin-right: 0 !important;
    width: 100% !important;
  }

  .main-nav a:hover {
    color: #ffffff !important;
  }

  /* CTA Buttons - Chat and Phone aligned */
  .main-nav .messenger-btn,
  .main-nav a[href^="tel:"] {
    width: 90% !important;
    max-width: 280px !important;
    margin: 10px auto !important;
    padding: 14px 20px !important;
    border-radius: 6px !important;
    border-bottom: none !important;
    font-weight: bold !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  /* Messenger button - blue gradient */
  .main-nav .messenger-btn {
    background: linear-gradient(135deg, #00b2ff, #006aff) !important;
    color: #ffffff !important;
  }

  /* Phone button - orange gradient */
  .main-nav a[href^="tel:"] {
    background: linear-gradient(135deg, #ff8c00, #ff6b00) !important;
    color: #ffffff !important;
  }

  /* Typewriter - simplified for mobile */
  .typewriter h1,
  .typewriter p {
    white-space: normal;
    width: 100%;
    border-right: none;
    animation: pulse 4s ease-in-out infinite;
  }
  
  .typewriter p {
    animation-delay: 0.5s;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
  }

  /* Logo bar - stack on mobile */
  .logo-bar {
    gap: 1.5rem;
  }

  .logo-bar img {
    height: 45px;
  }

  /* Product cards - full width on mobile */
  .product-card {
    max-width: 100%;
  }
  
  .product-card img {
    height: 150px;
  }
}

/* ==============================================
   EXPERIMENTAL / TESTING
   (Uncomment to try different styles)
   ============================================== */

/*
--- ORIGINAL BLUE THEME ---
.site-header {
  background: #00449e !important;
}

.main-nav a {
  color: #ffffff !important;
}

h1, h2, h3 {
  color: #00449e !important;
  border-bottom: 2px solid #ffde00 !important;
}
*/

/*
--- LIGHT HEADER VARIANT ---
.site-header {
  background: #f8f9fa !important;
  border-bottom: 1px solid #e9ecef;
}

.main-nav a {
  color: #1a1a2e !important;
}
*/

/* ==============================================
   MESSENGER BUTTON
   ============================================== */

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #00b2ff, #006aff) !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: none !important;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
}

.messenger-btn:hover {
  background: linear-gradient(135deg, #006aff, #0055cc) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.messenger-btn svg {
  flex-shrink: 0;
}

/* Mobile - stack nicely */
@media screen and (max-width: 600px) {
  .messenger-btn {
    width: 90% !important;
    max-width: 280px !important;
    justify-content: center;
    margin: 10px auto 0 auto !important;
    padding: 12px 20px !important;
  }
}


/* ==============================================
   PRODUCT TIERS / CARDS
   ============================================== */

.product-tier {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  flex: 1 1 280px;
  max-width: 350px;
  background: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-card h4 {
  color: #1a1a2e !important;
  border-bottom: none !important;
  margin: 0 0 0.5rem 0;
  padding: 0;
  font-size: 1.2rem;
}

.product-card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Mobile - single column */
@media screen and (max-width: 600px) {
  .product-card {
    max-width: 100%;
  }
  
  .product-card img {
    height: 150px;
  }
}
/* ==============================================
   FADE-IN INTRO TEXT
   ============================================== */

.fade-in-intro {
  animation: fadeInUp 1.5s ease-out;
}

.fade-in-intro .lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #333;
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==============================================
   TEAM MEMBER CARDS
   ============================================== */

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 2rem 0;
}

.team-card {
  flex: 1 1 280px;
  max-width: 320px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.team-photo {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.team-card:hover .team-photo img {
  opacity: 1;
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  color: #1a1a2e !important;
  font-size: 1.3rem;
  margin: 0 0 0.25rem 0;
  border-bottom: none !important;
  padding-bottom: 0;
}

.team-role {
  color: #6366f1;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 0.75rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-bio {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.team-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f4f4f4;
  border-radius: 50%;
  color: #6366f1;
  transition: all 0.3s ease;
}

.team-social:hover {
  background: #6366f1;
  color: #ffffff;
  transform: scale(1.1);
}

.team-social svg {
  width: 20px;
  height: 20px;
}


/* Mobile - single column */
@media screen and (max-width: 600px) {
  .team-card {
    max-width: 100%;
  }
  
  .fade-in-intro .lead-text {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
}
/* ==============================================
   LOCATION PAGES
   ============================================== */

/* Hero section */
.location-hero {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}

.location-hero h1 {
  color: #1a1a2e !important;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.location-hero .lead {
  font-size: 1.2rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact box */
.location-contact {
  background: #f8f9fa;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  border-left: 4px solid #6366f1;
  margin: 2rem 0;
}

.location-contact p {
  margin: 0.5rem 0;
}

/* Service area grid (hub page) */
.service-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.area-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.area-card h3 {
  color: #1a1a2e !important;
  margin: 0 0 0.5rem 0;
  border-bottom: none !important;
}

.area-card p {
  color: #555;
  margin: 0;
  font-size: 0.95rem;
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
  .location-hero h1 {
    font-size: 1.6rem;
  }
  
  .location-hero .lead {
    font-size: 1rem;
  }
  
  .location-contact {
    padding: 1rem 1.25rem;
  }
}
/* ==============================================
   FINANCING PAGE
   ============================================== */

.financing-cta {
  text-align: center;
  margin: 2.5rem 0;
}

.financing-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff !important;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.financing-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
  color: #ffffff !important;
}

.financing-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #777;
}
/* Footer location links */
.footer-locations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
}

.footer-locations li {
  margin: 0;
}

.footer-locations a {
  color: #b8b8d1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-locations a:hover {
  color: #ffffff;
}

@media screen and (max-width: 600px) {
  .footer-locations {
    flex-direction: column;
    gap: 0.5rem;
  }
}
