/* 
** Main Stylesheet for domain.com
** Color Palette:
** - #1E1B4B (deep indigo) - Primary
** - #F8D210 (sunny yellow) - Accent
** - #EC0868 (bright magenta) - Secondary Accent
** - #FF6F61 (coral) - Tertiary
** - #EFFFFA (milky white) - Light Background
** - #121212 (near black) - Text
*/

/* === Base Styles === */
:root {
    --primary: #1E1B4B;
    --accent: #F8D210;
    --secondary-accent: #EC0868;
    --tertiary: #FF6F61;
    --light-bg: #EFFFFA;
    --text: #121212;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --dark-gray: #444444;
    --box-shadow: 0 4px 20px rgba(30, 27, 75, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Add scroll-margin-top for anchor links */
section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--secondary-accent);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 4rem 0;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--secondary-accent);
    color: var(--white);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--tertiary);
    color: var(--white);
    text-decoration: none;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.large-text {
    font-size: 1.2rem;
}

/* === Header === */
.site-header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon {
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
    color: var(--secondary-accent);
    text-decoration: none;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover:after, .main-nav a:focus:after, .main-nav a.active:after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-icon {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 24px;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    transition: var(--transition);
    left: 0;
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 10px;
}

.menu-icon span:nth-child(3) {
    top: 20px;
}

.menu-icon.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.menu-icon.open span:nth-child(2) {
    opacity: 0;
}

.menu-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* === Hero Section === */
.hero {
    background-color: var(--light-bg);
    color: var(--primary);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1rem;
    font-size: 3rem;
    animation: fadeInDown 1s ease-out;
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

/* === About Section === */
.about {
    background-color: var(--white);
}

.about-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.about-text {
    width: 50%;
    text-align: left;
}

.about-image {
    width: 45%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* === Services Section === */
.services {
    background-color: var(--light-bg);
    text-align: center;
}

.services h2 {
    margin-left: auto;
    margin-right: auto;
}

.services h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 27, 75, 0.2);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1rem;
}

.service-card p {
    padding-bottom: 1.5rem;
    color: var(--dark-gray);
}

/* === Benefits Section === */
.benefits {
    text-align: center;
    background-color: var(--primary);
    color: var(--white);
}

.benefits h2 {
    color: var(--white);
    margin-left: auto;
    margin-right: auto;
}

.benefits h2:after {
    background-color: var(--accent);
    left: 50%;
    transform: translateX(-50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.benefit-item {
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.benefit-item h3 {
    color: var(--accent);
}

.benefit-item p {
    color: var(--light-bg);
}

/* === Testimonials Section === */
.testimonials {
    background-color: var(--light-bg);
    text-align: center;
}

.testimonials h2 {
    margin-left: auto;
    margin-right: auto;
}

.testimonials h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-slider {
    margin-top: 2rem;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin-right: 1rem;
}

.testimonial:last-child {
    margin-right: 0;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.testimonial cite {
    font-style: normal;
    font-weight: bold;
    color: var(--primary);
}

/* === CTA Section === */
.cta {
    background-color: var(--tertiary);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
}

.cta h2 {
    color: var(--white);
    margin-left: auto;
    margin-right: auto;
}

.cta h2:after {
    background-color: var(--accent);
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === Contact Form Section === */
.contact {
    background-color: var(--white);
}

.contact-form {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray);
    border-radius: 4px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.required {
    color: var(--secondary-accent);
}

/* === Footer === */
.site-footer {
    background-color: var(--primary);
    color: var(--light-bg);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-about h3,
.footer-contact h3,
.footer-legal h3 {
    color: var(--accent);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-about h3:after,
.footer-contact h3:after,
.footer-legal h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-contact ul,
.footer-legal ul {
    list-style: none;
}

.footer-contact li,
.footer-legal li {
    margin-bottom: 0.5rem;
}

.footer-contact a,
.footer-legal a {
    color: var(--light-bg);
    transition: var(--transition);
}

.footer-contact a:hover,
.footer-contact a:focus,
.footer-legal a:hover,
.footer-legal a:focus {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* === Cookie Popup === */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: var(--primary);
    color: var(--white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: var(--transition);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-popup p {
    margin-bottom: 0;
    margin-right: 1rem;
}

/* === Thank You Page === */
.thank-you {
    background-color: var(--light-bg);
    text-align: center;
    padding: 6rem 0;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-illustration {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.button-group {
    margin-top: 2rem;
}

.button-group .btn {
    margin: 0 0.5rem 1rem;
}

/* === Legal Pages === */
.legal-content {
    padding: 4rem 0;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
}

.legal-text h2 {
    margin-top: 2rem;
}

.legal-text ul, .legal-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.last-updated {
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 2rem;
}

/* === Animations === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Responsive Styles === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--box-shadow);
        height: 0;
        overflow: hidden;
        transition: var(--transition);
        visibility: hidden;
    }
    
    .main-nav.open {
        height: auto;
        padding: 1rem 0;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .main-nav li {
        margin: 1rem 0;
        margin-left: 0;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.2rem;
    }
    
    .testimonial {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .service-card img {
        height: 160px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-popup p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

.centered-heading {
    text-align: center;
}

.centered-heading:after {
    left: 50%;
    transform: translateX(-50%);
} 