/* 
 * TrueNorth Insight - Main Stylesheet
 * 
 * Color Palette:
 * - Primary: #007C74 (Deep Jade)
 * - Accent: #FF6B35 (Mandarin)
 * - Background: #F5F3EE (Ivory)
 * - Text: #2B2B2B (Coal Black)
 * - Hover: #FFD166 (Bright Yellow)
 */

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #007C74;
    --color-accent: #FF6B35;
    --color-background: #F5F3EE;
    --color-text: #2B2B2B;
    --color-hover: #FFD166;
    --color-light: #FFFFFF;
    --color-grey: #E0E0E0;
    --color-dark-grey: #707070;
    
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header p {
    font-size: 1.8rem;
    color: var(--color-dark-grey);
    max-width: 60rem;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-light);
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: slideUp 0.5s ease forwards;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 23rem;
}

.cookie-content form {
    display: flex;
    gap: 1rem;
}

.cookie-link {
    color: var(--color-accent);
    font-weight: 600;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== HEADER & NAVIGATION ===== */
.main-header {
    background-color: var(--color-primary);
    color: var(--color-light);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
}

.logo {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-light);
    font-weight: 500;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--color-hover);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 3rem;
    height: 2.5rem;
    position: relative;
    z-index: 100;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-light);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0;
    background: linear-gradient(to right, rgba(0, 124, 116, 0.1), rgba(255, 107, 53, 0.05));
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 5.2rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--color-dark-grey);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: rgba(0, 124, 116, 0.05);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 3rem;
}

.benefit-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    margin-bottom: 2rem;
}

.benefit-card h3 {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 4rem 3rem;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-header {
    margin-bottom: 3rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 2rem;
}

.amount {
    font-size: 3.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.period {
    color: var(--color-dark-grey);
}

.service-features {
    margin-bottom: 3rem;
    flex-grow: 1;
}

.service-features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-grey);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-card.featured {
    background-color: var(--color-primary);
    color: var(--color-light);
    transform: scale(1.05);
    z-index: 1;
}

.service-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.service-card.featured h3,
.service-card.featured .amount {
    color: var(--color-light);
}

.service-badge {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: var(--color-light);
    padding: 0.5rem 1.5rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1.4rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background: linear-gradient(to right, rgba(255, 107, 53, 0.05), rgba(0, 124, 116, 0.05));
}

.testimonial-slider {
    display: flex;
    gap: 3rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    min-width: 20rem;
    flex: 1;
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.testimonial-content {
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 8rem;
    color: rgba(0, 124, 116, 0.1);
    position: absolute;
    top: -4rem;
    left: -1rem;
    font-family: var(--font-heading);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-author img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.5rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--color-dark-grey);
    font-size: 1.4rem;
}

/* ===== FAQ SECTION ===== */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.faq-item {
    background-color: var(--color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    padding: 2rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    list-style: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    transition: var(--transition);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-answer {
    padding: 0 2rem 2rem;
}

.faq-answer p {
    margin-bottom: 0;
}

/* ===== ORDER FORM SECTION ===== */
.order-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.order-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.order-form {
    flex: 1;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--color-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1.6rem;
    transition: var(--transition);
    background-color: var(--color-light);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 116, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group.checkbox input {
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-light);
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 2rem;
    opacity: 0.8;
}

.footer-logo {
    display: inline-block;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact a,
.footer-links a,
.footer-legal a {
    color: var(--color-light);
    opacity: 0.8;
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover,
.footer-legal a:hover {
    opacity: 1;
    color: var(--color-hover);
}

.footer-links ul,
.footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    margin-bottom: 0;
    opacity: 0.7;
    font-size: 1.4rem;
}

/* ===== THANKS PAGE ===== */
.thanks {
    padding: 10rem 0;
    text-align: center;
}

.thanks-content {
    max-width: 60rem;
    margin: 0 auto;
}

.checkmark {
    margin: 0 auto 3rem;
    animation: scaleIn 0.5s ease forwards;
}

.thanks-actions {
    margin-top: 4rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    }
    
    .service-card.featured {
        transform: scale(1);
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 900px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 40rem;
        flex-direction: column;
        background-color: var(--color-primary);
        padding: 10rem 3rem 3rem;
        transition: var(--transition);
        z-index: 90;
    }
    
    .menu-toggle:checked ~ .nav-links {
        right: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero .container,
    .about-content,
    .order-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    .hero-image,
    .about-image,
    .order-image {
        order: -1;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 55%;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content form {
        width: 100%;
        justify-content: space-between;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
} 