/* Custom CSS for Alignbliss */
:root {
    --primary: #4B0082; /* Indigo */
    --secondary: #0047AB; /* Cobalt Blue */
    --accent: #FF7F50; /* Coral */
    --light: #F9FAFB;
    --dark: #1F2937;
    --gray: #6B7280;
    --white: #FFFFFF;
    --font-family: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent);
}

/* Banner */
.banner {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary);
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.banner-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 600px;
    padding-left: 20px;
}

@media (min-width: 1200px) {
    .banner-content {
        padding-left: calc((100vw - 1160px) / 2);
    }
}

.banner h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    border: 2px solid var(--accent);
    cursor: pointer;
    font-size: 16px;
    text-align: center;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-2px);
}

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

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

.btn.text-only {
    background-color: transparent;
    border-color: transparent;
    color: var(--gray);
}
.btn.text-only:hover {
    color: var(--primary);
}

/* Content Blocks */
.content-block {
    padding: 80px 0;
}

.content-block.bg-light {
    background-color: var(--light);
}

.content-block .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.image-left .block-img,
.image-right .block-img,
.image-left .block-text,
.image-right .block-text {
    flex: 1;
}

.image-right .container {
    flex-direction: row-reverse;
}

.block-img img {
    width: 100%;
    min-height: 300px;
    background-color: #E5E7EB; /* Placeholder color in case img is 1x1 transparent */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    object-fit: cover;
}

.block-text h2, .no-image h2 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.block-text p, .no-image p {
    margin-bottom: 16px;
    color: var(--gray);
    font-size: 16px;
}

.block-text ul {
    margin-left: 20px;
    color: var(--gray);
    margin-bottom: 16px;
}

.block-text li {
    margin-bottom: 8px;
}

.text-center-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.text-center-block p {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 18px;
}

/* Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.accordion-item {
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 10px;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    color: var(--accent);
    font-size: 24px;
    line-height: 1;
}

.accordion-item.active .accordion-header::after {
    content: '−';
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 20px;
    color: var(--gray);
    margin: 0;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    max-width: 1000px;
    margin: 0 auto;
}

.schedule-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    margin-top: 30px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table th, .schedule-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.schedule-table th {
    background-color: var(--secondary);
    color: var(--white);
    font-weight: 600;
}

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

.schedule-table tr:hover td {
    background-color: var(--light);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.price-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #E5E7EB;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

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

.price-card.featured {
    border: 2px solid var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.price-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.price-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 24px;
}

.price-card .price {
    font-size: 36px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 20px;
}

.price-card p {
    color: var(--gray);
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Reviews */
.reviews {
    background-color: var(--light);
    padding: 80px 0;
    text-align: center;
}

.reviews h2 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: left;
}

.star-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 15px;
    background-color: #FFD700; /* Placeholder color for stars */
}

.review-card p {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 20px;
}

.review-card h4 {
    color: var(--secondary);
    font-size: 18px;
}

/* Form */
.subscription-section {
    padding: 80px 0;
    background-color: var(--primary);
    color: var(--white);
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-container h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.form-container p {
    margin-bottom: 30px;
    color: #E5E7EB;
}

.sub-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.sub-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.sub-form input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    outline: none;
}

.sub-form input:focus {
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.5);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 18px;
    padding: 15px;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: var(--light);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-col p, .footer-col li {
    margin-bottom: 10px;
    color: #9CA3AF;
}

.footer-col a {
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links img {
    width: 30px;
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s;
    background-color: #9CA3AF;
    border-radius: 4px;
}

.social-links a:hover img {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
}

/* Legal Pages */
.legal-page {
    padding: 80px 0;
}

.legal-page h1 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 36px;
}

.legal-page h2 {
    color: var(--secondary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.legal-page p {
    margin-bottom: 15px;
    color: var(--gray);
}

.legal-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--gray);
}

.legal-page li {
    margin-bottom: 8px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.hidden {
    transform: translateY(100%);
    display: block !important; /* Keep display block to animate, transform moves it out */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s;
}

.cookie-modal.hidden {
    opacity: 0;
    pointer-events: none;
    display: flex !important; /* Keep flex to animate */
}

.cookie-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: scale(1);
    transition: transform 0.3s;
}

.cookie-modal.hidden .cookie-modal-content {
    transform: scale(0.95);
}

.cookie-modal-content h3 {
    color: var(--primary);
}

.cookie-option {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E5E7EB;
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--gray);
    font-size: 14px;
}

.cookie-option input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* Utilities */
.hidden-hard {
    display: none !important;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .content-block .container,
    .image-right .container {
        flex-direction: column;
        gap: 40px;
    }
    
    .image-left .block-img,
    .image-right .block-img {
        width: 100%;
        order: -1;
    }
    
    .banner h1 {
        font-size: 36px;
    }
    
    .price-card.featured {
        transform: scale(1);
    }
    .price-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}
