/* =============================================
   COAST TO COAST COMPASSIONATE CARE
   Static Site CSS — Brand Colors Updated
   #AED8E8 Baby Blue / #2A8FB2 Darker Blue
   ============================================= */

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

:root {
  --blue:     #2A8FB2;
  --blue-lt:  #AED8E8;
  --blue-dk:  #1e6d8a;
  --navy:     #0d2137;
  --navy-lt:  #1a3a5c;
  --white:    #ffffff;
  --offwhite: #f4fafc;
  --gray:     #6b7280;
  --gray-lt:  #f0f7fa;
  --text:     #1f2937;
  --phone:    #ff6b00;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- TOP BAR ---- */
.top-bar { background: var(--navy); color: var(--white); text-align: center; padding: 9px 20px; font-size: 14px; letter-spacing: .02em; }
.top-bar a { color: var(--blue-lt); font-weight: 700; font-size: 16px; transition: color .2s; }
.top-bar a:hover { color: #fff; }

/* ---- HEADER ---- */
header { background: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo img { height: 90px; width: auto; }
.footer-brand img { height: 80px !important; width: auto !important; filter: brightness(0) invert(1); }

nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--navy); border-radius: 6px; transition: background .18s, color .18s; white-space: nowrap; }
nav a:hover { background: var(--gray-lt); color: var(--blue); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " ▾"; font-size: 11px; }
.dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.12); min-width: 210px; padding: 8px 0; z-index: 999; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 18px; font-size: 14px; font-weight: 500; border-radius: 0; color: var(--text); }
.dropdown a:hover { background: var(--gray-lt); color: var(--blue); }

/* Phone button */
.btn-phone { background: var(--phone); color: #fff !important; font-size: 17px !important; font-weight: 800 !important; padding: 12px 22px !important; border-radius: 8px !important; white-space: nowrap; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(255,107,0,.35); transition: background .2s, transform .15s; animation: phonePulse 2.5s ease-in-out infinite; }
.btn-phone:hover { background: #e05e00; transform: translateY(-1px); animation: none; }
.btn-phone svg { width: 18px; height: 18px; flex-shrink: 0; }
@keyframes phonePulse { 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.03); } }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .3s; }

/* Mobile Nav */
.mobile-nav { display: none; flex-direction: column; background: #fff; border-top: 1px solid #e5e7eb; padding: 16px 24px 24px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--navy); border-radius: 6px; }
.mobile-nav a:hover { background: var(--gray-lt); }
.mobile-nav .mobile-phone { margin-top: 12px; background: var(--phone); color: #fff !important; text-align: center; font-size: 17px !important; font-weight: 800 !important; padding: 14px !important; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- HERO ---- */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 60%, #1d4a6e 100%); color: #fff; padding: 80px 24px 70px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><circle cx="700" cy="100" r="300" fill="%232A8FB2" opacity="0.07"/><circle cx="100" cy="500" r="200" fill="%23AED8E8" opacity="0.05"/></svg>') no-repeat center/cover; pointer-events: none; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(174,216,232,.15); border: 1px solid rgba(174,216,232,.35); color: var(--blue-lt); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; letter-spacing: .03em; text-transform: uppercase; }
.hero h1 { font-family: 'Merriweather', Georgia, serif; font-size: clamp(2rem,4vw,3rem); font-weight: 900; line-height: 1.18; margin-bottom: 20px; color: #fff; }
.hero h1 em { color: var(--blue-lt); font-style: normal; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.82); margin-bottom: 32px; max-width: 480px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary { background: var(--blue); color: #fff; font-weight: 700; font-size: 15px; padding: 14px 28px; border-radius: 8px; transition: background .2s, transform .15s; display: inline-block; }
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #fff; font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 8px; border: 2px solid rgba(255,255,255,.4); transition: border-color .2s, background .2s; display: inline-block; }
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.hero-phone-callout { display: inline-flex; align-items: center; gap: 12px; background: rgba(255,107,0,.12); border: 2px solid rgba(255,107,0,.4); border-radius: 10px; padding: 14px 20px; margin-bottom: 32px; }
.hero-phone-callout .label { font-size: 12px; color: rgba(255,255,255,.7); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.hero-phone-callout a { display: block; color: #ff6b00; font-size: 26px; font-weight: 900; letter-spacing: .01em; line-height: 1; transition: color .2s; }
.hero-phone-callout a:hover { color: #ff8c33; }
.hero-phone-callout .phone-icon { color: #ff6b00; width: 28px; height: 28px; flex-shrink: 0; }

.hero-reviews { display: flex; gap: 20px; flex-wrap: wrap; }
.review-badge { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px; padding: 10px 16px; font-size: 13px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; }
.review-badge .stars { color: #fbbf24; font-size: 14px; }
.hero-img { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hero-img img { width: 100%; height: 480px; object-fit: cover; }

/* ---- STATS BAR ---- */
.stats-bar { background: var(--blue); padding: 22px 24px; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: center; }
.stat-item { color: #fff; }
.stat-item strong { display: block; font-size: 18px; font-weight: 800; }
.stat-item span { font-size: 13px; font-weight: 600; opacity: .85; }

/* ---- SECTION COMMON ---- */
.section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px; }
.section-title { font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 800; color: var(--navy); line-height: 1.25; margin-bottom: 16px; }
.section-sub { color: var(--gray); font-size: 17px; line-height: 1.7; max-width: 600px; }

/* ---- ABOUT ---- */
.about-section { background: var(--offwhite); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.12); }
.about-img img { width: 100%; height: 420px; object-fit: cover; }
.about-features { display: flex; flex-direction: column; gap: 14px; margin: 28px 0 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text); }
.feature-check { width: 22px; height: 22px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.feature-check svg { width: 13px; height: 13px; color: #fff; }

.about-phone { display: inline-flex; align-items: center; gap: 10px; background: var(--phone); color: #fff; padding: 16px 26px; border-radius: 10px; font-size: 20px; font-weight: 800; box-shadow: 0 6px 20px rgba(255,107,0,.3); transition: background .2s, transform .15s; white-space: nowrap; }
.about-phone:hover { background: #e05e00; transform: translateY(-1px); }
.about-phone svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---- SERVICES ---- */
.services-section { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 20px; margin-top: 40px; }
.service-card { background: var(--offwhite); border: 2px solid #e5e7eb; border-radius: 12px; padding: 28px 20px; text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; display: block; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(42,143,178,.15); border-color: var(--blue); }
.service-icon { margin-bottom: 14px; display: flex; justify-content: center; }
.service-card h3 { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3; }

/* ---- FORM ---- */
.form-section { background: var(--navy); color: #fff; }
.form-section .section-title { color: #fff; }
.form-section .section-sub { color: rgba(255,255,255,.7); }
.form-section .section-label { color: var(--blue-lt); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; }
.form-col-full { grid-column: 1/-1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: .04em; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 12px 16px; color: #fff; font-size: 15px; font-family: inherit; transition: border-color .2s, background .2s; outline: none; width: 100%; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue-lt); background: rgba(255,255,255,.12); }
.form-group select option { background: var(--navy); }
.btn-submit { background: var(--blue); color: #fff; font-weight: 800; font-size: 16px; padding: 16px 40px; border-radius: 8px; border: none; cursor: pointer; transition: background .2s, transform .15s; display: inline-flex; align-items: center; gap: 8px; }
.btn-submit:hover { background: var(--blue-dk); transform: translateY(-1px); }
.form-note { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 12px; }
#form-message { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 8px; font-weight: 600; }
#form-message.success { background: rgba(174,216,232,.15); border: 1px solid var(--blue-lt); color: var(--blue-lt); display: block; }
#form-message.error { background: rgba(255,80,80,.12); border: 1px solid #ff5050; color: #ff8080; display: block; }

/* ---- CTA BANNER ---- */
.cta-banner { background: linear-gradient(135deg, var(--blue-lt) 0%, var(--blue) 100%); padding: 60px 24px; text-align: center; }
.cta-banner h2 { font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.cta-banner p { color: rgba(13,33,55,.8); font-size: 17px; margin-bottom: 28px; }
.cta-banner-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-cta-phone { background: var(--phone); color: #fff; font-size: 20px; font-weight: 800; padding: 16px 32px; border-radius: 10px; display: flex; align-items: center; gap: 10px; box-shadow: 0 6px 22px rgba(255,107,0,.35); transition: background .2s, transform .15s; white-space: nowrap; }
.btn-cta-phone:hover { background: #e05e00; transform: translateY(-1px); }
.btn-cta-phone svg { width: 22px; height: 22px; }
.btn-cta-appt { background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; padding: 16px 32px; border-radius: 10px; transition: background .2s; }
.btn-cta-appt:hover { background: var(--navy-lt); }

/* ---- FOOTER ---- */
footer { background: #060f1a; color: rgba(255,255,255,.75); padding: 60px 24px 30px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.55); margin: 16px 0 12px; }
.footer-brand img { height: 48px; filter: brightness(0) invert(1); }
.footer-phone-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-lt) !important; font-weight: 700; font-size: 17px; transition: color .2s; white-space: nowrap; }
.footer-phone-link:hover { color: #fff !important; }
.footer-badge { display: inline-block; margin-top: 10px; background: rgba(174,216,232,.1); border: 1px solid rgba(174,216,232,.25); color: var(--blue-lt); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 20px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--blue-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.35); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 15px; transition: background .2s, color .2s; }
.footer-social a:hover { background: var(--blue); color: #fff; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%); padding: 60px 24px; text-align: center; color: #fff; }
.page-hero h1 { font-family: 'Merriweather', Georgia, serif; font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 17px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.breadcrumb a { color: var(--blue-lt); }
.breadcrumb a:hover { color: #fff; }

/* ---- LOCATION CARDS phone fix ---- */
.location-card { background: var(--offwhite); border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px; }
.location-card h3 { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.location-card p { color: var(--gray); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.call-link { color: var(--phone) !important; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.call-link svg { flex-shrink: 0; }

/* ---- RESPONSIVE ---- */
@media(max-width:1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-img { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img { display: none; }
}

@media(max-width:768px) {
  /* Nav */
  nav { display: none; }
  .hamburger { display: flex; }

  /* Header */
  .header-inner { padding: 10px 16px; gap: 12px; }
  .logo img { height: 60px; width: auto; }
  .btn-phone { font-size: 14px !important; padding: 10px 14px !important; }

  /* Top bar — allow wrap but keep tidy */
  .top-bar { font-size: 12px; padding: 8px 14px; white-space: normal; line-height: 1.5; }
  .top-bar a { font-size: 13px; font-weight: 800; display: block; margin-top: 2px; }

  /* Hero */
  .hero { padding: 40px 20px; }
  .hero-phone-callout { padding: 12px 16px; }
  .hero-phone-callout a { font-size: 22px; }
  .hero-ctas { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 13px 22px; font-size: 14px; }

  /* Review badges — side by side */
  .hero-reviews { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .review-badge { font-size: 12px; padding: 8px 12px; }

  /* Stats — 2x2 grid showing all 4 */
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item strong { font-size: 15px; }
  .stat-item span { font-size: 12px; }

  /* About section */
  .about-phone { font-size: 17px; padding: 14px 20px; }

  /* Services grid — 2 columns on mobile */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .service-card { padding: 20px 14px; }
  .service-icon { font-size: 26px; }
  .service-card h3 { font-size: 13px; }

  /* Form */
  .form-grid { grid-template-columns: 1fr; }
  .form-col-full { grid-column: 1; }
  .section { padding: 50px 20px; }

  /* CTA banner */
  .cta-banner { padding: 44px 20px; }
  .cta-banner-btns { flex-direction: column; align-items: center; gap: 12px; }
  .btn-cta-phone { font-size: 18px; padding: 14px 28px; justify-content: center; }
  .btn-cta-appt { width: 100%; text-align: center; padding: 14px 28px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-brand img { height: 56px !important; }
}

@media(max-width:480px) {
  /* Header */
  .header-inner { padding: 8px 12px; }
  .logo img { height: 52px; }
  .btn-phone { font-size: 13px !important; padding: 9px 12px !important; gap: 5px !important; }

  /* Top bar */
  .top-bar { font-size: 11px; }
  .top-bar a { font-size: 12px; }

  /* Hero */
  .hero h1 { font-size: 1.65rem; }
  .hero-sub { font-size: 15px; }
  .hero-phone-callout a { font-size: 20px; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
