/* 
    MAIN STYLESHEET
    Color Palette:
    - #2E2A4F (Charcoal Indigo) — background
    - #F2D479 (Sun-kissed Amber) — accents
    - #BDE0FE (Pale Sky Blue) — highlights
    - #8FB8DE (Cool Blue) — interactive elements
    - #F9F7F3 (Ivory White) — text backgrounds
*/

/* RESET & BASE STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #2E2A4F;
    --accent: #F2D479;
    --highlight: #BDE0FE;
    --interactive: #8FB8DE;
    --text-bg: #F9F7F3;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: rgba(0, 0, 0, 0.1);
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--text-bg);
    overflow-x: hidden;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--background);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 4rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 0.4rem;
    background-color: var(--accent);
}

h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 2rem;
}

a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--background);
}

ul {
    list-style: none;
}

/* HEADER & NAVIGATION */
.site-header {
    background-color: var(--background);
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0.2rem 1rem var(--shadow);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: lowercase;
    letter-spacing: -0.1rem;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
}

.desktop-nav a:hover {
    background-color: var(--accent);
    color: var(--background);
}

.mobile-menu-toggle {
    display: none;
}

.mobile-menu-toggle a {
    color: var(--white);
    font-size: 2.4rem;
}

.mobile-nav {
    display: none;
    background-color: var(--background);
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav a {
    color: var(--white);
    font-weight: 600;
    font-size: 1.8rem;
    display: block;
    padding: 1rem;
    border-radius: 0.4rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav a:hover {
    background-color: var(--accent);
    color: var(--background);
    border-left: 3px solid var(--highlight);
}

/* HERO SECTION */
.hero-section {
    background-color: var(--background);
    color: var(--white);
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(46, 42, 79, 0.9), rgba(46, 42, 79, 0.7));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.animated-headline {
    display: inline-block;
    position: relative;
}

.animated-headline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 0.4rem;
    background-color: var(--accent);
    bottom: -1rem;
    left: 0;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.6s ease-out;
    animation: underline 1.5s 0.5s forwards;
}

@keyframes underline {
    0% {
        transform: scaleX(0);
        transform-origin: bottom right;
    }
    100% {
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(2rem);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    animation: fadeInUp 1s 0.3s ease-out forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--background);
    font-size: 1.8rem;
    font-weight: 700;
    padding: 1.5rem 3rem;
    border-radius: 5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s 0.6s ease-out forwards;
    opacity: 0;
    box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: var(--highlight);
    transform: translateY(-0.3rem);
    box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.25);
}

.cta-button:active {
    transform: translateY(-0.1rem);
}

/* SECTIONS GENERAL */
section {
    padding: 8rem 0;
}

section:nth-child(odd) {
    background-color: var(--text-bg);
}

section:nth-child(even) {
    background-color: var(--white);
}

.two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 4rem;
}

/* ABOUT SECTION */
.about-section .values ul {
    list-style: disc;
    padding-left: 2rem;
    margin-top: 1rem;
}

.about-section .values li {
    margin-bottom: 1rem;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem var(--shadow);
}

.service-image {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 2rem;
}

.service-card h3 {
    margin-top: 2rem;
}

.service-link {
    display: inline-block;
    margin: 0 2rem 2rem;
    color: var(--interactive);
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--background);
}

.service-link:hover::after {
    transform: translateX(0.5rem);
}

/* BENEFITS SECTION */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.benefit-card {
    background-color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem var(--shadow);
    transition: transform 0.3s ease;
    border-left: 0.5rem solid var(--accent);
}

.benefit-card:hover {
    transform: translateY(-0.5rem);
}

/* TESTIMONIALS SECTION */
.testimonials-section {
    background-color: var(--background);
    color: #000;
    position: relative;
}

.testimonials-section h2 {
    color: #000;
}

.testimonial-carousel {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    height: 20rem;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.8rem;
    opacity: 0;
    transition: all 0.5s ease;
    visibility: hidden;
}

.testimonial-slide.active {
    opacity: 1;
    visibility: visible;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--accent);
}

.testimonial-author {
    font-weight: 600;
    text-align: right;
    color: #000;
}

/* Auto-cycling testimonials with CSS */
@keyframes testimonialCycle {
    0%, 25% {
        opacity: 1;
        visibility: visible;
    }
    33%, 92% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

.testimonial-slide:nth-child(1) {
    animation: testimonialCycle 15s 0s infinite;
}

.testimonial-slide:nth-child(2) {
    animation: testimonialCycle 15s 5s infinite;
}

.testimonial-slide:nth-child(3) {
    animation: testimonialCycle 15s 10s infinite;
}

/* FAQ SECTION */
.faq-item {
    margin-bottom: 2rem;
    border-radius: 0.8rem;
    background-color: var(--white);
    box-shadow: 0 0.2rem 1rem var(--shadow);
    overflow: hidden;
}

.faq-question {
    background-color: var(--background);
    color: var(--white);
    padding: 1.5rem 2rem;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #3a355d;
}

.faq-question::after {
    content: '+';
    font-size: 2.4rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer-content {
    padding: 2rem;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 50rem;
}

/* FORM SECTION */
.form-section {
    background-color: var(--background);
}


.contact-form {
    background-color: var(--white);
    border-radius: 0.8rem;
    padding: 4rem;
    max-width: 60rem;
    margin: 0 auto;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 0.1rem solid #ddd;
    border-radius: 0.4rem;
    font-size: 1.6rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--interactive);
    box-shadow: 0 0 0 0.2rem rgba(143, 184, 222, 0.3);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1.5rem;
    background-color: var(--interactive);
    color: var(--white);
    border: none;
    border-radius: 0.4rem;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--background);
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.submit-button:active {
    transform: translateY(-0.1rem);
}

/* COMPANY DETAILS SECTION */
.company-details {
    background-color: var(--text-bg);
}

.contact-info p {
    margin-bottom: 1.5rem;
}

.map-image {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 1.5rem var(--shadow);
}

/* FOOTER */
.site-footer {
    background-color: var(--background);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h4 {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-logo {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--accent);
    text-transform: lowercase;
    letter-spacing: -0.1rem;
    margin-bottom: 1.5rem;
}

.company-blurb {
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--highlight);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    opacity: 0.7;
}

/* COOKIE CONSENT */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background-color: var(--background);
    color: var(--white);
    padding: 2rem;
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
    max-width: 35rem;
    z-index: 1000;
    display: none;
}

.cookie-consent.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(10rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent p {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.cookie-consent a {
    color: var(--highlight);
    text-decoration: underline;
}

#accept-cookies {
    background-color: var(--accent);
    color: var(--background);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    background-color: var(--highlight);
}

/* POLICY PAGES */
.policy-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.policy-box {
    background-color: var(--white);
    border-radius: 0.8rem;
    padding: 4rem;
    border: 0.1rem solid #eee;
    box-shadow: 0 0.5rem 2rem var(--shadow);
}

.policy-box h1 {
    margin-bottom: 3rem;
}

.policy-box h2 {
    font-size: 2.4rem;
    text-align: left;
    margin: 4rem 0 2rem;
}

.policy-box h2::after {
    left: 0;
    transform: none;
    width: 6rem;
}

.policy-box p, .policy-box ul {
    margin-bottom: 2rem;
}

.policy-box ul {
    list-style: disc;
    padding-left: 2rem;
}

.policy-box li {
    margin-bottom: 1rem;
}

/* THANK YOU PAGE */
.thank-you-container {
    text-align: center;
    padding: 5rem 4rem;
    max-width: 70rem;
    margin: 5rem auto;
    border: 2px solid var(--background);
    border-radius: 0.8rem;
    box-shadow: 0 0.5rem 2rem var(--shadow);
    background-color: var(--white);
}

.thank-you-container h1 {
    color: var(--background);
    margin-bottom: 3rem;
}

.check-icon {
    display: inline-block;
    width: 8rem;
    height: 8rem;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 4rem;
    line-height: 8rem;
    margin-bottom: 3rem;
}

.back-button {
    display: inline-block;
    background-color: var(--interactive);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 0.4rem;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.back-button:hover {
    background-color: var(--background);
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* MEDIA QUERIES */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav.active {
        display: block;
    }
    
    h1 {
        font-size: 3.6rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .hero-section {
        padding: 8rem 0;
    }
    
    .contact-form {
        padding: 3rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 52%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    section {
        padding: 6rem 0;
    }
    
    .two-column {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        max-width: 40rem;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .policy-box {
        padding: 2.5rem;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        margin-bottom: 3rem;
    }
    
    .animated-headline::after {
        width: 65%;
    }
    
    .cta-button {
        width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .logo a {
        font-size: 2.4rem;
    }
    
    .mobile-menu-toggle a {
        font-size: 2.2rem;
    }
    
    .hero-section {
        padding: 6rem 0;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
}