/**
 * Safety+ Alert Devices Product Page Styles
 * Connected Caregiver - Custom Product Page
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --sp-primary: #0066CC;
    --sp-primary-dark: #0052A3;
    --sp-primary-light: #EBF5FF;
    --sp-secondary: #E53E3E;
    --sp-yellow: #FFC107;
    --sp-yellow-light: #FFF8E1;
    --sp-success: #22C55E;
    --sp-error: #EF4444;
    --sp-text: #1F2937;
    --sp-text-light: #6B7280;
    --sp-border: #E5E7EB;
    --sp-white: #FFFFFF;
    --sp-gray-50: #F9FAFB;
    --sp-gray-100: #F3F4F6;
    --sp-gray-200: #E5E7EB;
    --sp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sp-transition: all 0.3s ease;
    --sp-radius: 8px;
    --sp-radius-lg: 12px;
}

/* ========================================
   Reset & Base
   ======================================== */
#safety-plus-product-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--sp-text);
    line-height: 1.6;
    background: var(--sp-white);
}

#safety-plus-product-page *,
#safety-plus-product-page *::before,
#safety-plus-product-page *::after {
    box-sizing: border-box;
}

#safety-plus-product-page img {
    max-width: 100%;
    height: auto;
}

#safety-plus-product-page a {
    color: var(--sp-primary);
    text-decoration: none;
    transition: var(--sp-transition);
}

#safety-plus-product-page a:hover {
    color: var(--sp-primary-dark);
}

#safety-plus-product-page ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#safety-plus-product-page h1,
#safety-plus-product-page h2,
#safety-plus-product-page h3,
#safety-plus-product-page h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

/* ========================================
   Container
   ======================================== */
.sp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Top Banner
   ======================================== */
.sp-top-banner {
    background: var(--sp-yellow);
    color: var(--sp-text);
    padding: 12px 0;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.sp-top-banner p {
    margin: 0;
}

/* ========================================
   Header
   ======================================== */
.sp-header {
    background: var(--sp-white);
    box-shadow: var(--sp-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    gap: 20px;
}

.sp-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--sp-text);
}

.sp-logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.sp-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--sp-primary);
}

/* Navigation */
.sp-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.sp-nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.sp-nav-menu > li > a {
    color: var(--sp-text);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-nav-menu > li > a:hover {
    color: var(--sp-primary);
}

.sp-dropdown-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

/* Dropdown */
.sp-has-dropdown {
    position: relative;
}

.sp-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--sp-white);
    box-shadow: var(--sp-shadow-lg);
    border-radius: var(--sp-radius);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--sp-transition);
}

.sp-has-dropdown:hover .sp-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sp-has-dropdown:hover .sp-dropdown-arrow {
    transform: rotate(180deg);
}

.sp-dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--sp-text);
    font-size: 14px;
}

.sp-dropdown li a:hover {
    background: var(--sp-gray-50);
    color: var(--sp-primary);
}

/* Header CTA */
.sp-header-cta {
    flex-shrink: 0;
}

/* Buttons */
.sp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--sp-radius);
    cursor: pointer;
    transition: var(--sp-transition);
    border: 2px solid transparent;
    text-decoration: none;
}

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

.sp-btn-primary:hover {
    background: var(--sp-primary-dark);
    border-color: var(--sp-primary-dark);
    color: var(--sp-white);
}

.sp-btn-outline {
    background: transparent;
    color: var(--sp-primary);
    border-color: var(--sp-primary);
}

.sp-btn-outline:hover {
    background: var(--sp-primary);
    color: var(--sp-white);
}

.sp-btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.sp-phone-icon {
    width: 18px;
    height: 18px;
}

/* Mobile Toggle */
.sp-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.sp-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--sp-text);
    border-radius: 2px;
    transition: var(--sp-transition);
}

/* ========================================
   Hero Section
   ======================================== */
.sp-hero {
    padding: 60px 0 80px;
    background: var(--sp-gray-50);
}

.sp-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.sp-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-hero-image img {
    max-width: 450px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.sp-hero-title {
    font-size: 42px;
    color: var(--sp-primary);
    margin-bottom: 20px;
}

.sp-hero-description {
    font-size: 17px;
    color: var(--sp-text-light);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Product Selector */
.sp-product-selector {
    margin-bottom: 24px;
}

.sp-product-selector label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-text);
    margin-bottom: 8px;
}

.sp-select {
    width: 100%;
    max-width: 300px;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    border: 2px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background: var(--sp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 24px;
    appearance: none;
    cursor: pointer;
    transition: var(--sp-transition);
}

.sp-select:hover,
.sp-select:focus {
    border-color: var(--sp-primary);
    outline: none;
}

/* Price Section */
.sp-price-section {
    margin-bottom: 24px;
}

.sp-price {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--sp-text);
}

.sp-price-subtitle {
    display: block;
    font-size: 14px;
    color: var(--sp-text-light);
    margin-top: 4px;
}

/* What's Included */
.sp-whats-included {
    margin-bottom: 30px;
}

.sp-whats-included h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--sp-text);
}

.sp-whats-included > ul > li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.sp-check-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.sp-sub-list {
    margin-top: 8px;
    margin-left: 32px;
}

.sp-sub-list li {
    position: relative;
    padding-left: 16px;
    color: var(--sp-text-light);
    font-size: 14px;
    margin-bottom: 4px;
}

.sp-sub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--sp-primary);
    border-radius: 50%;
}

/* Hero Buttons */
.sp-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Features Section
   ======================================== */
.sp-features {
    padding: 80px 0;
    background: transparent;
}

.sp-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sp-feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--sp-radius-lg);
    transition: var(--sp-transition);
    border: 1px solid var(--sp-primary);
    background: var(--sp-white);
}

.sp-feature-card:hover {
    background: var(--sp-primary-light);
    transform: translateY(-5px);
}

.sp-feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.sp-feature-card h3 {
    font-size: 18px;
    color: var(--sp-text);
    margin-bottom: 10px;
}

.sp-feature-card p {
    font-size: 14px;
    color: var(--sp-text-light);
    margin: 0;
}

/* ========================================
   Comparison Section
   ======================================== */
.sp-comparison {
    padding: 80px 0;
    background: var(--sp-gray-50);
}

.sp-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sp-section-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sp-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.sp-section-header h2 {
    font-size: 36px;
    color: var(--sp-text);
}

.sp-comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-comparison-table {
    width: 100%;
    min-width: 800px;
    border-collapse: collapse;
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    overflow: hidden;
    box-shadow: var(--sp-shadow);
}

.sp-comparison-table th,
.sp-comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--sp-border);
}

.sp-comparison-table th {
    background: var(--sp-primary-light);
    font-weight: 600;
}

.sp-comparison-table th:first-child,
.sp-comparison-table td:first-child {
    text-align: left;
}

.sp-product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sp-product-header img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.sp-product-header span {
    font-size: 13px;
    line-height: 1.3;
}

.sp-product-header.sp-featured {
    background: var(--sp-primary);
    color: var(--sp-white);
    padding: 10px;
    border-radius: var(--sp-radius);
    margin: -10px;
}

.sp-feature-name {
    font-weight: 600;
    color: var(--sp-text);
}

.sp-check {
    color: var(--sp-success);
    font-size: 20px;
    font-weight: bold;
}

.sp-cross {
    color: var(--sp-error);
    font-size: 20px;
    font-weight: bold;
}

.sp-comparison-table tr:last-child td {
    border-bottom: none;
}

.sp-comparison-table tbody tr:hover {
    background: var(--sp-gray-50);
}

/* ========================================
   FAQ Section
   ======================================== */
.sp-faq {
    padding: 80px 0;
    background: var(--sp-white);
}

.sp-faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.sp-faq-item {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.sp-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: var(--sp-white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--sp-text);
    text-align: left;
    cursor: pointer;
    transition: var(--sp-transition);
}

.sp-faq-question:hover {
    background: var(--sp-gray-50);
}

.sp-faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--sp-primary);
    transition: transform 0.3s;
}

.sp-faq-item.active .sp-faq-icon {
    transform: rotate(180deg);
}

.sp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sp-faq-item.active .sp-faq-answer {
    max-height: 500px;
}

.sp-faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    color: var(--sp-text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ========================================
   Testimonials Section
   ======================================== */
.sp-testimonials {
    padding: 80px 0;
    background: var(--sp-gray-50);
}

.sp-testimonials-carousel {
    position: relative;
    overflow: hidden;
}

.sp-testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
}

.sp-testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
    min-width: 300px;
    background: var(--sp-white);
    border-radius: var(--sp-radius-lg);
    padding: 30px;
    box-shadow: var(--sp-shadow);
}

.sp-testimonial-content {
    margin-bottom: 20px;
}

.sp-testimonial-content p {
    font-size: 15px;
    color: var(--sp-text);
    line-height: 1.7;
    margin: 0 0 12px;
}

.sp-read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-primary);
}

.sp-testimonial-rating {
    margin-bottom: 12px;
}

.sp-stars {
    color: #FBBF24;
    font-size: 18px;
    letter-spacing: 2px;
}

.sp-testimonial-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--sp-text);
}

.sp-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.sp-carousel-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sp-white);
    border: 2px solid var(--sp-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--sp-transition);
}

.sp-carousel-btn:hover {
    border-color: var(--sp-primary);
    background: var(--sp-primary);
    color: var(--sp-white);
}

.sp-carousel-btn svg {
    width: 20px;
    height: 20px;
}

.sp-carousel-dots {
    display: flex;
    gap: 8px;
}

.sp-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sp-border);
    cursor: pointer;
    transition: var(--sp-transition);
}

.sp-carousel-dot.active {
    background: var(--sp-primary);
    width: 30px;
    border-radius: 5px;
}

/* ========================================
   Footer
   ======================================== */
.sp-footer {
    background: var(--sp-text);
    color: var(--sp-white);
    padding: 60px 0 0;
}

.sp-footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-footer .sp-logo {
    margin-bottom: 24px;
}

.sp-footer .sp-logo a {
    color: var(--sp-white);
}

.sp-footer .sp-logo-text {
    color: var(--sp-white);
}

.sp-app-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sp-app-badge img {
    height: 40px;
    width: auto;
}

.sp-badge-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--sp-radius);
    font-size: 14px;
}

.sp-footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.sp-footer-column h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--sp-white);
}

.sp-footer-column ul li {
    margin-bottom: 12px;
}

.sp-footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.sp-footer-column ul li a:hover {
    color: var(--sp-white);
}

.sp-social-icons {
    display: flex;
    gap: 16px;
}

.sp-social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--sp-white);
    transition: var(--sp-transition);
}

.sp-social-icons a:hover {
    background: var(--sp-primary);
}

.sp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.sp-footer-bottom p {
    margin: 0;
}

.sp-footer-legal {
    display: flex;
    gap: 12px;
}

.sp-footer-legal a {
    color: rgba(255, 255, 255, 0.6);
}

.sp-footer-legal a:hover {
    color: var(--sp-white);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .sp-hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sp-hero-image {
        order: 1;
    }

    .sp-hero-content {
        order: 2;
    }

    .sp-hero-title {
        font-size: 36px;
    }

    .sp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sp-testimonial-card {
        flex: 0 0 calc(50% - 12px);
    }

    .sp-footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .sp-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--sp-white);
        box-shadow: var(--sp-shadow);
        padding: 20px;
    }

    .sp-nav.active {
        display: block;
    }

    .sp-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .sp-nav-menu > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--sp-border);
    }

    .sp-dropdown {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
    }

    .sp-has-dropdown.active .sp-dropdown {
        display: block;
    }

    .sp-header-cta {
        display: none;
    }

    .sp-mobile-toggle {
        display: flex;
    }

    .sp-hero {
        padding: 40px 0 60px;
    }

    .sp-hero-title {
        font-size: 28px;
    }

    .sp-hero-description {
        font-size: 15px;
    }

    .sp-price {
        font-size: 28px;
    }

    .sp-hero-buttons {
        flex-direction: column;
    }

    .sp-hero-buttons .sp-btn {
        width: 100%;
    }

    .sp-features {
        padding: 60px 0;
    }

    .sp-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sp-comparison {
        padding: 60px 0;
    }

    .sp-section-header h2 {
        font-size: 28px;
    }

    .sp-faq {
        padding: 60px 0;
    }

    .sp-faq-question {
        font-size: 15px;
        padding: 16px 20px;
    }

    .sp-testimonials {
        padding: 60px 0;
    }

    .sp-testimonial-card {
        flex: 0 0 calc(100% - 24px);
    }

    .sp-footer {
        padding: 40px 0 0;
    }

    .sp-footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sp-footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sp-container {
        padding: 0 15px;
    }

    .sp-top-banner {
        font-size: 13px;
        padding: 10px 0;
    }

    .sp-hero-image img {
        max-width: 280px;
    }

    .sp-hero-title {
        font-size: 24px;
    }

    .sp-select {
        max-width: 100%;
    }

    .sp-comparison-table th,
    .sp-comparison-table td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .sp-product-header img {
        width: 40px;
        height: 40px;
    }

    .sp-product-header span {
        font-size: 11px;
    }

    .sp-testimonial-card {
        padding: 24px 20px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .sp-top-banner,
    .sp-header,
    .sp-carousel-controls,
    .sp-footer {
        display: none;
    }

    .sp-hero-inner {
        grid-template-columns: 1fr;
    }

    .sp-testimonials-track {
        flex-wrap: wrap;
    }

    .sp-testimonial-card {
        flex: 0 0 100%;
        page-break-inside: avoid;
    }
}
