/* Palm Harbor Smiles brand overrides */
:root {
  --phs-blue: #2f51a8;
  /* Pantone 7685 C from PDF metadata */
  --phs-gray: #777878;
  /* Cool Gray 9 */
  --primary: #2f51a8;
  --primary-50: #f0f3fb;
  --primary-100: #e0e7f6;
  --primary-200: #c1cfed;
  --primary-300: #92aade;
  --primary-400: #5c7fcc;
  --primary-600: #2f51a8;
  --primary-700: #274490;
  --primary-800: #233a78;
  --primary-900: #223464;
  --primary-950: #17213e;

  /* Accent & Neutrals */
  /* --accent: #3da9a5; */
  /* --accent-dark: #2d8784; */
  --accent: #3da9a5;
  --accent-dark: #1f2937;
  --gray: #777878;
  --dark: #1f2937;
}

body {
  background-color: #ffffff;
}

/* Buttons - Apply only to .btn class, not all buttons */
.btn {
  background: var(--phs-blue);
  color: #fff;
}

/* Reset button styling for non-.btn buttons */
button:not(.btn) {
  background: transparent;
  color: inherit;
  border: none;
}

/* FAQ Button Overrides - White background for FAQ sections */
button.faq-toggle,
button[class*="faq-"],
button[x-on\:click],


/* ================================
   PALM HARBOR SMILES - RAW CSS
   Typography, Buttons, Forms
================================ */



/* Layout Container */
.layout {
  width: 90%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {font-size: 2.5rem;}
h2 {font-size: 2rem;}
h3 {font-size: 1.5rem;}
h4 {font-size: 1.25rem;}
@media (min-width: 768px) {
  h1 {font-size: 3.5rem;}
  h2 {font-size: 2.5rem;}
  h3 {font-size: 1.75rem;}
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: var(--primary-400) !important;
  border-color: var(--primary) !important;
  color: white !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(47, 81, 168, 0.35) !important;
}

.btn-outline {
  background-color: transparent !important;
  color: white !important;
  border: 2px solid white !important;
}

.btn-outline:hover {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: white !important;
  transform: translateY(-1px) !important;
}

.btn-accent {
  background-color: var(--accent) !important;
  color: var(--dark) !important;
  border-color: var(--accent) !important;
}

.btn-accent:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35) !important;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ========================== Navbar ======================= */

/* Navigation Link Styles */
.nav-link {
  color: #374151;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.2s;
  outline: none !important;
}

.nav-link:focus {
  outline: none !important;
  box-shadow: none !important;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Active page highlighting */
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-link.active::after {
  width: 100%;
}

.dropdown-link {
  display: block;
  padding: 0.625rem 1.25rem;
  color: #374151;
  font-size: 0.9375rem;
  transition: background-color 0.15s, color 0.15s;
  outline: none !important;
}

.dropdown-link:focus {
  outline: none !important;
  box-shadow: none !important;
}

.dropdown-link:hover {
  background-color: #f3f4f6;
  color: var(--primary);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0;
  color: #374151;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

/* Header scroll behavior - REMOVED to keep top bar always visible */
/* .top-bar-hidden {
  transform: translateY(-100%);
} */

/* Remove compact class - we don't want extra padding changes on scroll */
.header-compact {
  /* Explicitly prevent any padding changes */
  padding-top: inherit !important;
  padding-bottom: inherit !important;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--dark);
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 81, 168, 0.1);
}

/* ===== MOBILE RESPONSIVENESS FIXES ===== */
/* Reduce excessive padding, gaps, and margins on small screens */

@media (max-width: 768px) {
  /* Global adjustments */
  .layout { width: 94%; }
  
  /* Reduce section padding on mobile */
  section[class*="py-"] { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  
  /* Navbar mobile adjustments */
  #main-header nav { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
  
  /* Hero section */
  .hero-section { min-height: 70vh; padding-top: 3rem; padding-bottom: 3rem; }
  .hero-section h1 { font-size: 2rem !important; }
  .hero-section p { font-size: 1.125rem !important; }
  
  /* Grid spacing */
  .grid { gap: 1rem !important; }
  
  /* Buttons */
  .btn { padding: 0.675rem 1.25rem; font-size: 0.9rem; }
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
  
  /* Content padding */
  h1 { font-size: 2rem !important; margin-bottom: 1rem; }
  h2 { font-size: 1.75rem !important; margin-bottom: 0.875rem; }
  h3 { font-size: 1.375rem !important; }
  
  /* Card spacing */
  .space-y-4 > * + * { margin-top: 0.75rem !important; }
  .space-y-6 > * + * { margin-top: 1rem !important; }
  .gap-4 { gap: 0.75rem !important; }
  .gap-8 { gap: 1.25rem !important; }
  .gap-12 { gap: 1.5rem !important; }
  
  /* Remove large bottom margins */
  .mb-14 { margin-bottom: 2rem !important; }
  .mb-10 { margin-bottom: 1.5rem !important; }
  .mb-8 { margin-bottom: 1.25rem !important; }
  .mb-6 { margin-bottom: 1rem !important; }
}


.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 81, 168, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Focus states - Remove default browser outline boxes */
a:focus,
button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Keep focus visible for accessibility via subtle color change */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary-200) !important;
  outline-offset: 2px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none !important;
}

/* Alpine.js cloak */
[x-cloak] {
  display: none !important;
}

/* ========================== Media Grid ======================= */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.media-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}

.media-grid picture {
  display: block;
  width: 100%;
  height: 100%;
}

.media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  display: block;
  transition: transform 0.3s ease;
}

.media-grid a:hover img {
  transform: scale(1.03);
}

@media (max-width: 480px) {
  .media-grid { gap: 0.5rem; }
}


/* membership page css */


/* Service table styles */
.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.service-table thead th {
  background: linear-gradient(135deg, #2f51a8 0%, #274490 100%);
  color: white;
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.service-table thead th:first-child {
  border-radius: 0 0 0 0;
}

.service-table thead th:last-child {
  border-radius: 0 0 0 0;
}

.service-table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
  vertical-align: top;
}

.service-table tbody td:first-child {
  width: 62%;
  padding-right: 1.1rem;
}

.service-table tbody td:nth-child(2) {
  width: 16%;
  white-space: nowrap;
}

.service-table tbody td:nth-child(3) {
  width: 22%;
  white-space: nowrap;
}

.service-table tbody tr:last-child td {
  border-bottom: none;
}

.service-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.service-table tbody tr:hover {
  background: #f0f3fb;
  transition: background 0.2s ease;
}

/* Credit item hover */
.credit-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 81, 168, 0.15);
}

/* Plan card glow */
.plan-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(47, 81, 168, 0.2);
}

/* Terms accordion */
.terms-item {
  transition: background 0.2s ease;
}

.terms-item:hover {
  background: #f0f3fb;
}

/* Family table */
.family-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  table-layout: fixed;
}

.family-table thead th {
  background: linear-gradient(135deg, #2f51a8 0%, #274490 100%);
  color: white;
  font-weight: 600;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e5e7eb;
}

.family-table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
}

.family-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.family-table tbody tr:hover {
  background: #f0f3fb;
  transition: background 0.2s ease;
}

.family-table tbody tr:last-child {
  background: #f0f3fb;
  border-top: 2px solid #2f51a8;
}

.family-table tbody tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.1rem 1rem;
}

/* Shared top row label for table cards */
.table-card-title {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

/* Sticky nav shadow */
.sticky-nav {
  transition: box-shadow 0.3s ease;
}

/* Savings table */
.savings-table tbody tr {
  transition: background 0.2s ease;
}

.savings-table tbody tr:hover {
  background: #f0f3fb !important;
}

.sticky-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Keep all membership card gradient headers visually aligned */
.plan-card-header {
  min-height: 21rem;
  display: flex;
  flex-direction: column;
}

 @media (min-width: 1280px) {
  .plan-card-header {
    min-height: 25rem;
  }
}


/* Services tabs */
.service-tab-btn {
  border: 2px solid #9fb3ea;
  background: #ffffff;
  color: #2f51a8;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-tab-btn:hover {
  border-color: #2f51a8;
  transform: translateY(-1px);
}

.service-tab-btn.active {
  background: linear-gradient(135deg, #2f51a8 0%, #274490 100%);
  color: #ffffff;
  border: 2px solid #2f51a8;
  box-shadow: 0 8px 20px rgba(47, 81, 168, 0.2);
}

.service-tab-panel {
  animation: fadeInUp 0.3s ease;
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.service-tab-panel.hidden {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

/* Fade in up animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Savings table */
.savings-table tbody td {
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.savings-table tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive table scroll */
@media (max-width: 1024px) {
  .service-table,
  .family-table {
    min-width: 620px;
  }
}

@media (max-width: 768px) {
  .table-card-title {
    padding: 0.85rem 1rem;
  }

  .service-tab-btn {
    font-size: 0.85rem;
    padding: 0.55rem 0.85rem;
  }

  .savings-table tbody td {
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .service-table,
  .family-table {
    min-width: 560px;
  }
}



/*  */