/* state-pages.css - Styles for State/City Pages */

/* =========================================
   Layout Utilities
   ========================================= */
.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
    gap: 30px;
}

.flex-center-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
}

/* Spacing Utilities */

.mb-50 { margin-bottom: 50px; }



/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid-2-columns, .grid-auto-fit {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .flex-center-wrap {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .mb-50 { margin-bottom: 30px; }
    
}

/* =========================================
   FAQ / Accordion Styles
   ========================================= */
.faq-section { padding: 80px 0; }

.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border: 1px solid rgba(0,0,0,0.05);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.accordion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    padding: 1.5em 2em;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accordion button:hover, .accordion button:focus {
    color: #b23256;
}

.accordion button .accordion-title {
    display: block;
    padding-right: 2rem;
}

/* Chevron Icon */
.accordion button .icon {
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 2rem;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23b23256' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.accordion button[aria-expanded="true"] {
    color: #b23256;
    border-bottom: 1px solid #f0f0f0;
}

.accordion button[aria-expanded="true"] .icon {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
      opacity: 0 !important;
  max-height: 0 !important;
  overflow: hidden;
  transition: opacity 300ms cubic-bezier(0.25, 0.8, 0.25, 1), 
              max-height 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: #fafafa;
  will-change: opacity, max-height; /* Performance hint */
}

.accordion button[aria-expanded="true"] + .accordion-content {
  opacity: 1 !important;
  max-height: 1000px !important; /* Approximate max height */
  overflow: visible;
}

/* Explicit closed state for accordion */
.accordion button[aria-expanded="false"] + .accordion-content {
  opacity: 0 !important;
  max-height: 0 !important;
  overflow: hidden;
}

.accordion-content p {
    font-size: 1rem;
    font-weight: 400;
    margin: 0;
    padding: 1.5em 2em;
    line-height: 1.6;
    color: #666;
}

/* =========================================
   State Page Generic Styles
   ========================================= */








/* =========================================
   Benefits & Steps Sections
   ========================================= */
.benefits-section {
    padding: 60px 0;
    background-color: #fff;
}

.benefit-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #f0f0f0;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.benefit-card p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

.steps-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   Cities Section
   ========================================= */
.state-cities-section {
    padding: 60px 0 80px;
    background-color: #fff;
}

.state-city-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

@media (max-width: 992px) {
    .state-city-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .state-city-grid {
        grid-template-columns: 1fr;
    }
}

.state-city-card {
    display: block;
    padding: 18px 18px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    will-change: transform;
}

.state-city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
    border-color: rgba(178, 50, 86, 0.55);
}

.state-city-card:focus-visible {
    outline: 3px solid rgba(178, 50, 86, 0.35);
    outline-offset: 2px;
}

.state-city-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #333;
    font-weight: 700;
}

.state-city-card__desc {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}







/* =========================================
   Print Styles
   ========================================= */

@media print {
    .faq-answer, .accordion-content {
        max-height: none !important;
        display: block !important;
        opacity: 1 !important;
    }
}
