/* ============================================
   SUBPAGE STYLES
   ============================================ */

/* Subpage Hero */
.subpage-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 1.5rem 4rem;
    background-size: cover;
    background-position: center;
}

.subpage-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 100%);
}

.subpage-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: white;
}

.subpage-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.subpage-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.subpage-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.subpage-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Subpage Sections */
.subpage-section {
    padding: 5rem 0;
}

.subpage-section.bg-alt {
    background: var(--bg-alt);
}

/* Insurance Grid */
.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.insurance-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.insurance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.insurance-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.insurance-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.insurance-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.insurance-card > p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.insurance-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.insurance-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    padding: 0.375rem 0;
}

.insurance-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

/* Quoters Grid */
.quoters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quoter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.quoter-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.quoter-card img {
    height: 48px;
    object-fit: contain;
}

.quoter-card span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--primary);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.benefit-item p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.benefits-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.benefits-image img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .benefits-image {
        order: -1;
    }
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.faq-item p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.subpage-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-card {
    text-align: center;
    color: white;
}

.cta-card h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-card .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-card .btn-primary:hover {
    background: var(--bg-alt);
}

/* Service Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* Dashboard Preview */
.dashboard-preview {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.dashboard-content .section-tag {
    text-align: left;
}

.dashboard-content .section-title {
    text-align: left;
}

.dashboard-description {
    font-size: 1.0625rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.dashboard-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
}

.dashboard-feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--success);
    flex-shrink: 0;
}

.dashboard-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
}

.dashboard-image img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .dashboard-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .dashboard-image {
        order: -1;
    }
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

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

.pricing-card.featured {
    border-color: var(--primary);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
}

.pricing-card .price-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 18px;
    height: 18px;
    stroke: var(--success);
    flex-shrink: 0;
}

/* Two Column Layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-columns.reverse .column-content {
    order: 2;
}

.two-columns.reverse .column-image {
    order: 1;
}

.column-content .section-tag,
.column-content .section-title {
    text-align: left;
}

.column-text {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.column-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.column-image img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-columns .column-image,
    .two-columns.reverse .column-image {
        order: -1;
    }

    .two-columns .column-content,
    .two-columns.reverse .column-content {
        order: 1;
    }
}

/* Alarm Types */
.alarm-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.alarm-type {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.alarm-type:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.alarm-type-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.alarm-type-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.alarm-type-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.alarm-type-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.alarm-type-body {
    padding: 2rem;
}

.alarm-type-body p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.alarm-type-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.alarm-type-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    padding: 0.5rem 0;
}

.alarm-type-features li svg {
    width: 18px;
    height: 18px;
    stroke: var(--success);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .alarm-types {
        grid-template-columns: 1fr;
    }
}

/* Service Highlight Cards */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.highlight-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-card p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    margin-top: 3rem;
}

.stat-box {
    text-align: center;
}

.stat-box-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-box-label {
    font-size: 0.875rem;
    color: var(--text-light);
}
