/* 
 * Main CSS for domain.com
 * Color palette:
 * - Primary: #302B63 (indigo)
 * - Accent: #FFD460 (golden-lemon)
 * - Background: #FAF9F6 (milk-white)
 * - Text: #1E1E1E (graphite)
 * - Buttons: gradient from #FFD460 to #FF6F61
 * - Highlight: #6DD5FA (neon blue)
 */

/* Base */
:root {
    --color-primary: #302B63;
    --color-accent: #FFD460;
    --color-background: #FAF9F6;
    --color-text: #1E1E1E;
    --color-button-start: #FFD460;
    --color-button-end: #FF6F61;
    --color-highlight: #6DD5FA;
    --font-primary: 'Arial', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Prevents header overlap with anchors */
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

h2:after {
    content: "";
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--color-accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 15px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background: linear-gradient(45deg, var(--color-button-start), var(--color-button-end));
    color: white;
    box-shadow: var(--shadow);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.secondary-btn {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.secondary-btn:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Header */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    position: relative;
}

.main-nav a:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary), #24243e);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 3.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-icon {
    background-color: var(--color-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.service-title {
    margin-bottom: 15px;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.benefit-card:hover {
    transform: scale(1.03);
}

.benefit-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 15px;
}

/* Form Section */
.form-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.form-content {
    padding-right: 20px;
}

.form-content h2:after {
    left: 0;
    transform: none;
}

.form-content h2 {
    text-align: left;
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23302B63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px;
    background-color: white;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question.active {
    background-color: var(--color-primary);
    color: white;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-icon {
    font-size: 1.5rem;
    margin-left: 15px;
}

.faq-answer {
    display: none;
    padding: 20px;
    background-color: white;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

/* Testimonials */
.testimonials-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin: 10px;
}

.testimonial-content {
    position: relative;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.testimonial-content:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 30px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #f9f9f9 transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.author-name {
    font-weight: bold;
}

.author-title {
    color: #777;
    font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    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: 25px;
}

.blog-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-company .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-contact h3,
.footer-links h3 {
    color: white;
    font-size: 1.4rem;
}

.footer-contact ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.footer-contact ul li svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 20px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 20px;
}

/* Policy Pages */
.policy-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 50px;
    box-shadow: var(--shadow);
    margin: 50px auto;
    max-width: 900px;
}

.policy-container h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.policy-container h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    text-align: left;
}

.policy-container h2:after {
    left: 0;
    transform: none;
    width: 50px;
}

.policy-container ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-container ul li {
    margin-bottom: 10px;
}

/* Thank You Page */
.thank-you-container {
    text-align: center;
}

.thank-you-container h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background-color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.thank-you-icon svg {
    width: 60px;
    height: 60px;
    color: white;
}

/* Animations - Pure CSS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations with delay to create scroll effect */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

.slide-in-left {
    opacity: 0;
    animation: slideInLeft 1.2s ease-out forwards;
}

.slide-in-right {
    opacity: 0;
    animation: slideInRight 1.2s ease-out forwards;
}

/* Delay animations based on position to simulate scroll effect */
.hero .fade-in, .hero .slide-in-left, .hero .slide-in-right {
    animation-delay: 0.2s;
}

.about .fade-in, .about .slide-in-left, .about .slide-in-right {
    animation-delay: 0.4s;
}

.services .fade-in, .services .slide-in-left, .services .slide-in-right {
    animation-delay: 0.6s;
}

.benefits .fade-in, .benefits .slide-in-left, .benefits .slide-in-right {
    animation-delay: 0.8s;
}

.form .fade-in, .form .slide-in-left, .form .slide-in-right {
    animation-delay: 1s;
}

.testimonials .fade-in, .testimonials .slide-in-left, .testimonials .slide-in-right {
    animation-delay: 1.2s;
}

.blog .fade-in, .blog .slide-in-left, .blog .slide-in-right {
    animation-delay: 1.4s;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0;
    }
    
    .services-grid,
    .benefits-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu-button {
        background: none;
        border: none;
        cursor: pointer;
        color: var(--color-primary);
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.mobile-open {
        max-height: 500px;
        padding: 20px 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav ul li {
        width: 100%;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
    }
    
    .header-cta {
        display: none;
    }
    
    .hero-content,
    .about-content {
        flex-direction: column;
    }
    
    .hero-image,
    .about-image {
        margin-top: 30px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-content {
        padding-right: 0;
    }
    
    .services-grid,
    .benefits-grid,
    .blog-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .policy-container,
    .form-section {
        padding: 30px 20px;
    }
}
