/*
Theme Name: Tinnitus Relief Solutions
Theme URI: http://example.com/your-theme
Author: Your Name or Company
Author URI: http://example.com
Description: A short description of the theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-theme-text-domain
Tags: light, clean, responsive
*/

/* 
   Tinnitus Relief Solutions - Main Stylesheet
   A single-page website for tinnitus treatments directory
*/

/* ===== Base Styles ===== */
:root {
    /* Color scheme */
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent: #38b2ac;
    --background: #f7fafc;
    --text: #2d3748;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --success: #48bb78;
    --warning: #ed8936;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --accent-font: 'Merriweather', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%), var(--background);
    background-attachment: fixed;
    line-height: 1.6;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0.8rem auto;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--heading-font);
}

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

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

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

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

.btn-text {
    color: var(--primary);
    padding: 0;
    position: relative;
}

.btn-text:after {
    content: '→';
    margin-left: 5px;
    transition: all 0.3s ease;
}

.btn-text:hover:after {
    margin-left: 10px;
}

/* ===== Header Bar ===== */
.header-bar {
    background: transparent;
    color: var(--white);
    padding: 1.2rem 0 1.2rem 0;
    position: relative;
    z-index: 10;
}
.header-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-logo h1 {
    color: var(--white);
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}
.header-nav .nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
}
.header-nav .nav-links li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}
.header-nav .nav-links li a:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

/* ===== Hero Section (Preferred Layout) ===== */
.hero {
    background: transparent;
    color: var(--white);
    padding: 4rem 0 3rem 0;
    position: relative;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}
.hero-text {
    flex: 1.2;
}
.hero-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--white);
    line-height: 1.1;
}
.hero-subheadline {
    font-size: 1.3rem;
    margin-bottom: 2.2rem;
    color: var(--white);
    opacity: 0.95;
}
.hero .btn-primary {
    font-size: 1.2rem;
    padding: 1rem 2.2rem;
    border-radius: 30px;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.hero-image {
    flex: 1;
    text-align: right;
}
.hero-image img {
    max-width: 420px;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .hero-image {
        text-align: center;
    }
    .hero-image img {
        max-width: 320px;
    }
}
@media (max-width: 768px) {
    .header-logo h1 {
        font-size: 1.3rem;
    }
    .header-nav .nav-links {
        gap: 1.2rem;
    }
    .hero-text h2 {
        font-size: 2rem;
    }
    .hero-subheadline {
        font-size: 1rem;
    }
    .hero-image img {
        max-width: 220px;
    }
}
@media (max-width: 576px) {
    .header-bar-row {
        flex-direction: column;
        gap: 0.7rem;
    }
    .hero {
        padding: 2rem 0 1.5rem 0;
    }
    .hero-content {
        gap: 1.2rem;
    }
    .hero-text h2 {
        font-size: 1.3rem;
    }
    .hero-image img {
        max-width: 100%;
    }
}

/* ===== About Section ===== */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-text {
    flex: 3;
}

.about-image {
    flex: 2;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.treatment-types {
    margin-top: 3rem;
}

.treatment-cards {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

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

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===== Products Section ===== */
.products {
    background-color: var(--background);
}

.product-categories {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.category-btn {
    background: none;
    border: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--text);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background-color: var(--primary);
    color: var(--white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    width: auto;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.rating {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.stars {
    color: #f6ad55;
    margin-right: 0.5rem;
}

.rating-text {
    font-size: 0.9rem;
    color: #718096;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.benefits h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.benefits ul {
    list-style-type: none;
    margin-bottom: 1rem;
}

.benefits li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

.benefits li:before {
    content: '✓';
    color: var(--success);
    position: absolute;
    left: 0;
}

.review {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    font-family: var(--accent-font);
    font-style: italic;
    font-size: 0.9rem;
}

/* ===== Testimonials Section ===== */
.testimonials {
    background-color: var(--white);
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background-color: var(--background);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-image {
    flex: 1;
    max-width: 120px;
    min-width: 120px;
    min-height: 120px;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    background: #f3f3f3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    display: block;
}

.testimonial-content {
    flex: 3;
    text-align: center;
}

.testimonial-content p {
    font-family: var(--accent-font);
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-content h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.testimonial-product {
    font-size: 0.9rem;
    color: #718096;
}

/* ===== Resources Section ===== */
.resources {
    background-color: var(--background);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

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

.resource-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ===== FAQ Section ===== */
.faq {
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 2rem;
}

.faq-item {
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

/* ===== Footer ===== */
footer {
    background-color: #2c3e50;
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: var(--white);
    text-align: left;
    margin-bottom: 0.5rem;
}

.footer-logo h2:after {
    display: none;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links h3, .footer-contact h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: var(--white);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

.footer-disclaimer p {
    margin-bottom: 0.5rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .treatment-cards {
        flex-direction: column;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    section {
        padding: 3rem 0;
    }
}

main, section:not(.hero) {
    color: var(--text);
    background: var(--white);
}

.product-testimonials {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.product-testimonials h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-testimonials .testimonial {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product-testimonials .testimonial:last-child {
    margin-bottom: 0;
}

.product-testimonials .testimonial p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    font-style: italic;
    margin: 0;
}

.success-stories {
    background-color: var(--background);
    padding: 4rem 0;
}

.success-stories h2 {
    color: var(--primary);
}

.success-stories .testimonial {
    background: var(--white);
    border-left: 4px solid var(--primary);
}

.success-stories .testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.success-stories .testimonial-content h4 {
    color: var(--secondary);
    font-size: 1.2rem;
}

.success-stories .testimonial-product {
    color: var(--primary);
    font-weight: 500;
}
