/* 
* SpeakBold Canada - Main Stylesheet
* A clean, modern theme for a public speaking courses website
*/

/* ------- Base Styles and Variables ------- */
:root {
    /* Primary color palette */
    --primary-color: #ff6b35; /* Bright orange for main CTAs and accents */
    --secondary-color: #1e3d59; /* Deep blue for headers and important sections */
    --tertiary-color: #f5f0e1; /* Warm off-white for backgrounds */
    --text-color: #333333; /* Dark gray for main text */
    --light-text: #ffffff; /* White text for dark backgrounds */
    --accent-color: #2ec4b6; /* Teal for secondary accents */
    
    /* UI Elements */
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

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

/* ------- Reset & Base Styles ------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px for easier calculations */
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
    overflow-x: hidden;
}

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

h1 {
    font-size: 4.2rem;
    font-weight: 700;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #e04b17; /* Darker version of primary for hover states */
}

ul, ol {
    margin-left: 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ------- Layout & Containers ------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: 1.8rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
}

/* ------- Buttons ------- */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: var(--border-radius);
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background-color: #e04b17;
    color: var(--light-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

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

.btn-tertiary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 1rem 2rem;
    font-size: 1.4rem;
}

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

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ------- Header & Navigation ------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

header.scrolled {
    padding: 1.2rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    margin-right: 1rem;
}

.logo span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 3rem;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 1.6rem;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

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

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ------- Hero Section ------- */
.hero {
    padding: 18rem 0 10rem;
    background-color: var(--tertiary-color);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    margin-bottom: 2rem;
    font-size: 4.8rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #555;
}

.hero-image {
    flex: 1;
    text-align: right;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 90%;
    margin-left: auto;
}

/* ------- About Section ------- */
.about {
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-image,
.about-text {
    flex: 1;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    margin-bottom: 3rem;
}

.feature-list {
    list-style: none;
    margin: 0;
}

.feature-list li {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.feature-icon {
    margin-right: 2rem;
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
}

.feature-icon img {
    width: 24px;
    height: 24px;
}

.feature-description h4 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.feature-description p {
    color: #666;
    margin-bottom: 0;
}

/* ------- Courses Section ------- */
.courses {
    background-color: var(--tertiary-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.course-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.course-icon {
    margin-bottom: 2rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
}

.course-icon img {
    width: 35px;
    height: 35px;
}

.course-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.course-duration {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

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

.course-features li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}

.course-features li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.course-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ------- Testimonials Section ------- */
.testimonials {
    background-color: #fff;
    position: relative;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonial {
    padding: 0 2rem;
    text-align: center;
    display: none;
}

.testimonial.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.testimonial-content {
    background-color: #f7f7f7;
    padding: 3rem;
    border-radius: var(--border-radius);
    position: relative;
    margin-bottom: 4rem;
}

.testimonial-content:after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 20px 20px 0;
    border-style: solid;
    border-color: #f7f7f7 transparent transparent;
}

.testimonial-content p {
    font-style: italic;
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 0;
}

.testimonial-content p:before {
    content: '\201C';
    font-size: 4rem;
    line-height: 0;
    vertical-align: -20px;
    color: var(--primary-color);
    margin-right: 5px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1.5rem;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 0.3rem;
    font-size: 1.8rem;
}

.author-info p {
    color: #666;
    font-size: 1.4rem;
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.prev-testimonial,
.next-testimonial {
    background-color: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 1rem;
    transition: var(--transition);
}

.prev-testimonial:hover,
.next-testimonial:hover {
    color: var(--primary-color);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
    margin: 0 2rem;
}

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

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ------- Blog Preview Section ------- */
.blog-preview {
    background-color: var(--tertiary-color);
}

.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.blog-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

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

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 2rem;
}

.blog-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

.blog-cta {
    text-align: center;
}

/* ------- Contact Section ------- */
.contact {
    background-color: #fff;
}

.contact-container {
    display: flex;
    gap: 5rem;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-image {
    margin-bottom: 3rem;
}

.contact-image img {
    max-width: 80%;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.contact-item p {
    color: #666;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--tertiary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    margin-bottom: 1rem;
}

.contact-form p {
    margin-bottom: 2rem;
    color: #666;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
    margin-top: 5px;
}

.form-group.checkbox label {
    font-weight: 400;
    margin-bottom: 0;
}

.error-message {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-top: 0.5rem;
    display: none;
}

/* ------- Footer ------- */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text);
    padding: 5rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-right: 1rem;
    /* Removed filter to show colored logo */
}

.footer-logo span {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--light-text);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--light-text);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* ------- Cookie Banner ------- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(30, 61, 89, 0.95);
    color: var(--light-text);
    padding: 2rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-content h3 {
    color: var(--light-text);
    margin-bottom: 1rem;
}

.cookie-content p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.cookie-options {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-settings-panel {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    display: none;
}

.cookie-setting {
    margin-bottom: 2rem;
}

.cookie-setting:last-child {
    margin-bottom: 2rem;
}

.cookie-setting label {
    font-weight: 600;
    margin-left: 1rem;
}

.cookie-setting p {
    margin-left: 3rem;
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* ------- Legal Pages ------- */
.legal-page {
    padding: 14rem 0 8rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 5rem;
}

.legal-header h1 {
    margin-bottom: 1rem;
}

.legal-header p {
    color: #666;
}

.legal-content {
    display: flex;
    flex-direction: column;
}

.legal-toc {
    position: relative;
    margin-bottom: 3rem;
}

.legal-toc h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.legal-toc ul {
    list-style: none;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 1rem;
}

.legal-toc a {
    color: var(--secondary-color);
    transition: var(--transition);
}

.legal-toc a:hover {
    color: var(--primary-color);
}

.legal-section {
    margin-bottom: 4rem;
}

.legal-section h2 {
    margin-bottom: 2rem;
    font-size: 2.4rem;
}

.legal-section h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info-list {
    list-style: none;
    margin: 0;
}

.contact-info-list li {
    margin-bottom: 1rem;
}

/* ------- Thank You Page ------- */
.thank-you {
    padding: 16rem 0 8rem;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    font-size: 8rem;
    color: var(--accent-color);
    margin-bottom: 3rem;
}

.thank-you-content h1 {
    margin-bottom: 2rem;
}

.thank-you-content p {
    font-size: 1.8rem;
    margin-bottom: 4rem;
    color: #666;
}

.next-steps {
    background-color: var(--tertiary-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    text-align: left;
}

.next-steps h2 {
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

.next-steps ul {
    list-style: none;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.next-steps li i {
    color: var(--primary-color);
    font-size: 2rem;
    margin-right: 1.5rem;
}

.return-home {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

/* ------- Animations ------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ------- Responsive Styles ------- */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .legal-content {
        flex-direction: column;
    }
    
    .legal-toc {
        position: static;
        flex: 0 0 100%;
        margin-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 0;
    }
    
    .hero {
        padding: 12rem 0 6rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 4rem;
    }
    
    .hero-image img {
        margin: 0 auto;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 4rem;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 4rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .main-nav li {
        margin: 1.5rem 0;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .mobile-nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .mobile-nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .cookie-options {
        flex-direction: column;
    }
    
    .cookie-options .btn {
        width: 100%;
    }
    
    .return-home {
        flex-direction: column;
    }
    
    .return-home .btn {
        width: 100%;
    }
}
