/* Main CSS file for SleepEz Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary: #2b5797;
    --secondary: #5b9bd5;
    --accent: #41b6e6;
    --light: #f8f9fa;
    --dark: #343a40;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
    color: var(--secondary);
    
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand img {
    height: 40px;
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: #1e4080;
    border-color: #1e4080;
}

.btn-secondary {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #4a8bc0;
    border-color: #4a8bc0;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2b5797 0%, #41b6e6 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0% 100%);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #2b5797 0%, #41b6e6 100%);
    color: white;
    padding: 5rem 0 6rem;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0% 100%);
}

/* Section Styles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--primary);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Feature Box */
.feature-box {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Process Steps */
.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.process-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 600;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.process-content {
    flex-grow: 1;
}

.process-line {
    position: relative;
}

.process-line::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 25px;
    width: 2px;
    height: calc(100% - 50px);
    background: var(--primary);
    opacity: 0.3;
}

.process-step:last-child .process-line::before {
    display: none;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Testimonials */
.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    position: relative;
}

/*.testimonial::before {*/
/*    content: '\201C';*/
/*    font-size: 5rem;*/
/*    position: absolute;*/
/*    top: -20px;*/
/*    left: 20px;*/
/*    color: var(--primary);*/
/*    opacity: 0.2;*/
/*}*/

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2b5797 0%, #41b6e6 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 100px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 80%);
}

/* Footer */
.footer {
    background: #343a40;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    width: auto;
}

.footer h5 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15.3px;
}

.footer-links a:hover {
    color: white;
    padding-left: 3px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: rgba(43, 87, 151, 0.1);
    color: var(--primary);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(43, 87, 151, 0.25);
}

/* Tabs */
.nav-pills .nav-link {
    color: var(--dark);
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
}

/* Audience Tabs */
.audience-tabs .nav-link {
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    color: var(--dark);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.audience-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
    z-index: -1;
}

.audience-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-color: transparent;
}

.audience-tabs .nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Badges */
.badge-custom {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-weight: 500;
}

/* Trust Badges */
.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.trust-badge img {
    max-height: 60px;
    max-width: 100%;
}

/* Animations */
.floating-animation {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .process-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .process-line::before {
        display: none;
    }
    
    .integration-icon {
        width: 60px;
        height: 60px;
    }
    
    .integration-icon i {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* Accessibility Enhancements */
:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Print Styles */
@media print {
    .navbar, .footer, .cta-section, .sticky-cta {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    .hero, .page-header {
        background: none;
        color: #000;
        padding: 1rem 0;
    }
    
    .hero::after, .page-header::after, .cta-section::before {
        display: none;
    }
    
    .card, .feature-box, .testimonial {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .card:hover, .feature-box:hover, .testimonial:hover {
        transform: none;
        box-shadow: none;
    }
}

/** Menu hover effect and focus remove **/
:focus {
     outline:none; 
     outline-offset: none; 
}
a.nav-link:hover {
    text-decoration: none !important;
}

.text-sleepez{
    color: #2b5797;
}
.bg-sleepez{
    background: #2b5797;
}

article.blog-content h2 {
    font-size: 22px;
}
.quiz-options > .form-check > input.form-check-input{
    margin-top: 1.3rem !important;
}
ul.sleepez_list{
    padding-left: 1px !important;
}    
ul.sleepez_list li {
    list-style: none;
}
ul.sleepez_list li::before {
  content: "✔"; /* or "✔", "✓", "•", "🔹" */
  color: #2c3e50;
  margin-right: 7px;
  font-size: 14px;
}

.sleep-card ul {
    padding-left: 0.1rem;
    margin-bottom: 0;
}
.sleep-card ul li {
    margin-bottom: 0.35rem;
    list-style: none;
}
.sleep-card ul li::before {
    content: "✔"; /* or "✔", "✓", "•", "🔹" */
    color: #2c3e50;
    margin-right: 10px;
    font-size: 14px;
}
aside.sidebar h4 {
    color: #2e61ad;
}
aside.sidebar ul.list_unstyled {
    list-style: none;
    padding-left: 3px;
    line-height: 1.8rem;
}
.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}
