/* Apple-Inspired Modern Design for Unwired Access */

:root {
    --primary: #018692;
    --primary-dark: #016C74;
    --secondary: #D9A441;
    --accent: #FF7746;
    --supporting: #016C74;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F4F4F4;
    --bg-dark: #000000;
    --border: #D2D2D7;
    --success: #34C759;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Notice Bar */
.notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notice-bar.show {
    transform: translateY(0);
}

.notice-bar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notice-bar-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
    text-align: center;
}

.notice-bar-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notice-bar-text {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
}

.notice-bar-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
    opacity: 0.8;
}

.notice-bar-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
}

/* Notice Bar Types */
.notice-bar-info {
    background: linear-gradient(135deg, #018692 0%, #016C74 100%);
    color: white;
}

.notice-bar-warning {
    background: linear-gradient(135deg, #FF7746 0%, #E85D2A 100%);
    color: white;
}

.notice-bar-success {
    background: linear-gradient(135deg, #34C759 0%, #28A745 100%);
    color: white;
}

.notice-bar-promo {
    background: linear-gradient(135deg, #D9A441 0%, #C8942A 100%);
    color: white;
}

/* Adjust header position when notice bar is visible */
body.notice-bar-visible .header {
    top: 48px;
}

body.notice-bar-visible .hero {
    padding-top: 112px; /* 64px header + 48px notice bar */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 50px;
}

.logo img {
    height: 100%;
    width: auto;
    max-height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

.nav-menu .phone-link {
    color: var(--accent);
    font-weight: 500;
}

.nav-menu .phone-link:hover {
    color: var(--accent);
    opacity: 0.8;
}

.nav-menu .phone-link::after {
    background: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #018692 0%, #016C74 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 2.5rem;
}

/* Address Form */
.address-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.address-input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.address-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.125rem;
    border: none;
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    outline: none;
}

.address-input:focus {
    box-shadow: 0 0 0 4px rgba(1, 134, 146, 0.2), var(--shadow-lg);
    transform: translateY(-2px);
}

.address-input.flash {
    animation: flashAddressBox 1.5s ease-in-out;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 119, 70, 0.2), var(--shadow-lg);
}

@keyframes flashAddressBox {
    0%, 100% {
        border-color: transparent;
        box-shadow: 0 0 0 0 rgba(255, 119, 70, 0), var(--shadow-lg);
    }
    25%, 75% {
        border-color: var(--accent);
        box-shadow: 0 0 0 4px rgba(255, 119, 70, 0.3), var(--shadow-lg);
    }
    50% {
        border-color: var(--accent);
        box-shadow: 0 0 0 8px rgba(255, 119, 70, 0.2), var(--shadow-lg);
    }
}

.address-input::placeholder {
    color: var(--text-secondary);
}

.address-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.address-result-item {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    font-size: 1rem;
}

.address-result-item:last-child {
    border-bottom: none;
}

.address-result-item:hover {
    background: var(--bg-secondary);
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: var(--accent);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #E6683A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

/* Features Section */
.features {
    padding: 100px 20px;
    background: var(--bg-primary);
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
}

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

.feature-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Pricing Section */
.pricing {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.pricing-card.popular {
    border: 2px solid var(--accent);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent);
    color: white;
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.pricing-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

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

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.pricing-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 1.25rem;
}

.pricing-cta {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(5, 1fr);
    }
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {
        padding: 100px 20px 60px;
    }
    
    body.notice-bar-visible .hero {
        padding-top: 148px; /* 100px base + 48px notice bar */
    }
    
    .notice-bar-container {
        padding: 10px 16px;
    }
    
    .notice-bar-text {
        font-size: 0.875rem;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .header-container {
        padding: 0 16px;
    }

    .logo img {
        max-height: 40px;
    }

    .features,
    .pricing {
        padding: 60px 20px;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .how-it-works-image {
        order: 1 !important;
    }

    .how-it-works-text {
        order: 2 !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .address-input {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .btn {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 2rem;
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .logo img {
        max-height: 35px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Comparison Pages */
.comparison-hero {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, #018692 0%, #016C74 100%);
    text-align: center;
    color: white;
}

.comparison-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.comparison-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

.comparison-section {
    padding: 80px 20px;
    background: var(--bg-primary);
}

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

.comparison-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.comparison-card {
    padding: 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.comparison-card.positive {
    border-left: 4px solid var(--primary);
}

.comparison-card.negative {
    border-left: 4px solid var(--accent);
}

.comparison-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comparison-card.positive h3 {
    color: var(--primary);
}

.comparison-card.negative h3 {
    color: var(--accent);
}

.comparison-card h3::before {
    font-size: 1.5rem;
}

.comparison-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table thead {
    background: var(--primary);
    color: white;
}

.comparison-table thead th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: var(--bg-secondary);
}

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

.comparison-table td {
    padding: 1.25rem;
    color: var(--text-primary);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table .positive {
    color: var(--primary);
    font-weight: 600;
}

.comparison-table .negative {
    color: var(--accent);
}

.comparison-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 3rem;
}

.comparison-cta h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.comparison-cta p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: auto;
    }

    .comparison-table {
        min-width: 600px;
    }

    .comparison-intro {
        grid-template-columns: 1fr;
    }

    .comparison-hero {
        padding: 120px 20px 60px;
    }

    .comparison-section {
        padding: 60px 20px;
    }
}

/* Reviews Carousel */
.reviews-carousel-container {
    position: relative;
    padding: 0 60px;
}

.reviews-carousel {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-secondary) transparent;
}

.reviews-carousel::-webkit-scrollbar {
    height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.carousel-nav {
    font-size: 2rem;
    color: var(--text-primary);
    background: white;
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

@media (max-width: 768px) {
    .reviews-carousel-container {
        padding: 0 20px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .reviews-carousel {
        padding-bottom: 1rem;
    }
}

/* Sticky Rating Widget */
#stickyRatingWidget {
    animation: slideInRight 0.3s ease-out;
}

#stickyRatingWidget:hover {
    transform: scale(1.05);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    #stickyRatingWidget {
        right: 10px;
        bottom: 80px;
        max-width: 160px;
        padding: 1rem;
    }
    
    #stickyRatingWidget .sticky-rating-stars {
        font-size: 1.25rem;
    }
    
    /* Optionally hide on mobile entirely - uncomment if preferred */
    /* #stickyRatingWidget {
        display: none !important;
    } */
}

