/* ========================================
   Hashtag M-Cubed - Styles
   Colour palette derived from logo:
   - Teal: #1a8a8a (primary)
   - Pink: #e84a7f (accent)
   - Yellow: #f5c542 (highlight)
   - Sky blue: #5bc0de (secondary)
   - Dark: #2c3e50 (text)
   ======================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #1a8a8a;
    --color-primary-dark: #156d6d;
    --color-primary-light: #e8f4f4;
    --color-accent: #e84a7f;
    --color-highlight: #f5c542;
    --color-secondary: #5bc0de;
    --color-dark: #2c3e50;
    --color-text: #333;
    --color-text-light: #666;
    --color-white: #ffffff;
    --color-bg: #fafafa;
    --color-bg-alt: #f0f7f7;
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--color-white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-white) 50%, #fff5f8 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.math-symbols {
    position: absolute;
    width: 100%;
    height: 100%;
}

.math-symbols span {
    position: absolute;
    font-size: 3rem;
    color: var(--color-primary);
    opacity: 0.06;
    font-family: 'Times New Roman', serif;
}

.math-symbols span:nth-child(1) { top: 10%; left: 5%; font-size: 4rem; }
.math-symbols span:nth-child(2) { top: 20%; right: 10%; font-size: 5rem; }
.math-symbols span:nth-child(3) { top: 60%; left: 8%; font-size: 3.5rem; }
.math-symbols span:nth-child(4) { top: 75%; right: 15%; font-size: 4rem; }
.math-symbols span:nth-child(5) { top: 40%; left: 3%; font-size: 3rem; }
.math-symbols span:nth-child(6) { top: 15%; left: 25%; font-size: 2.5rem; }
.math-symbols span:nth-child(7) { top: 85%; left: 20%; font-size: 3rem; }
.math-symbols span:nth-child(8) { top: 30%; right: 5%; font-size: 2.5rem; }
.math-symbols span:nth-child(9) { top: 50%; right: 8%; font-size: 3.5rem; }
.math-symbols span:nth-child(10) { top: 70%; right: 25%; font-size: 2.5rem; }
.math-symbols span:nth-child(11) { bottom: 15%; left: 35%; font-size: 3rem; }
.math-symbols span:nth-child(12) { top: 5%; right: 30%; font-size: 2.5rem; }
.math-symbols span:nth-child(13) { top: 45%; left: 15%; font-size: 3rem; }
.math-symbols span:nth-child(14) { bottom: 25%; right: 35%; font-size: 2.5rem; }
.math-symbols span:nth-child(15) { top: 35%; left: 40%; font-size: 2rem; }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.qualifications {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.credentials {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credential-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Commitment Cards */
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.commitment-card {
    background: var(--color-bg-alt);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.commitment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: 'Times New Roman', serif;
}

.commitment-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.commitment-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-list {
    list-style: none;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.pricing-list li:last-child {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: var(--color-primary);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* Discounts */
.discounts {
    text-align: center;
    margin-bottom: 3rem;
}

.discounts h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.discount-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.discount-badge {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.discount-amount {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.discount-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Downloads */
.downloads {
    text-align: center;
}

.downloads h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    font-weight: 500;
    transition: all var(--transition);
}

.download-link:hover {
    background: var(--color-primary);
    color: white;
}

.download-icon {
    font-size: 1.2rem;
}

/* Book Section */
.book-section {
    padding: 100px 0;
    background: var(--color-white);
}

.book-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 4rem;
    align-items: center;
}

.book-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.book-content h3 {
    font-size: 1.8rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.book-subtitle {
    color: var(--color-accent);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.book-content > p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.book-video {
    margin-top: 2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg);
}

.book-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-placeholder {
    padding: 3rem;
    text-align: center;
    color: var(--color-text-light);
    font-style: italic;
}

.book-btn {
    margin-top: 1.5rem;
}

.book-grid-reverse {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #eee;
}

@media (min-width: 993px) {
    .book-grid-reverse {
        grid-template-columns: 1fr 350px;
    }
    
    .book-grid-reverse .book-image {
        order: 2;
    }
    
    .book-grid-reverse .book-content {
        order: 1;
    }
}

.affiliate-disclaimer {
    margin-top: 3rem;
    padding: 1rem;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.7;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--color-dark);
}

.author-detail {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-method {
    text-align: center;
    padding: 1.5rem 0.75rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.contact-method h4 {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-method a {
    font-size: 0.95rem;
    font-weight: 500;
}

.cta-box {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.cta-box h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-primary {
    background: white;
    color: var(--color-primary);
}

.cta-box .btn-primary:hover {
    background: var(--color-highlight);
    color: var(--color-dark);
}

/* Footer */
.footer {
    background: var(--color-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img {
        max-width: 300px;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .book-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .book-image {
        text-align: center;
    }
    
    .book-image img {
        max-width: 350px;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        border-bottom: 1px solid #eee;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .discount-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .download-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 580px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-logo {
        width: 120px;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
}