/* 
 * Main Stylesheet for Domain.com
 * Color Palette:
 * - Primary: #26d7a0 (luzurno-mint)
 * - Secondary: #2b2b2b (dark anthracite)
 * - Accent: #ffa600 (sunny orange)
 * - Background: #f7f7f7 (smoky white)
 * Fonts: Poppins, Roboto
 */

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #26d7a0;
    --secondary: #2b2b2b;
    --accent: #ffa600;
    --background: #f7f7f7;
    --light: #ffffff;
    --dark: #1a1a1a;
    --grey: #6c757d;
    --light-grey: #e9ecef;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--background);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--secondary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

button:hover, .btn:hover {
    background-color: var(--accent);
    color: var(--light);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-accent {
    background-color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    text-align: center;
}

/* ===== HEADER & NAVIGATION ===== */
.site-header {
    position: sticky;
    top: 0;
    background-color: var(--light);
    box-shadow: var(--box-shadow);
    z-index: 100;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
}

.desktop-menu {
    display: flex;
}

.desktop-menu li {
    margin: 0 15px;
}

.desktop-menu a {
    color: var(--secondary);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.desktop-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.desktop-menu a:hover::after,
.desktop-menu li.active a::after {
    width: 100%;
}

.header-contact .phone-number {
    color: var(--secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.header-contact .phone-number::before {
    content: '📞';
    margin-right: 5px;
}

/* Mobile Menu using CSS & PHP only */
.mobile-toggle {
    display: none;
}

.mobile-toggle-label {
    display: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--secondary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.mobile-menu {
    display: none;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(rgba(43, 43, 43, 0.7), rgba(43, 43, 43, 0.7)), url(../img/A2Jp6H.jpg);
    background-size: cover;
    background-position: center;
    min-height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light);
    padding: 100px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-icon {
    background-color: rgba(38, 215, 160, 0.1);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.feature-text h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary);
    opacity: 0.05;
    z-index: -1;
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(38, 215, 160, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    background-color: var(--light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.benefit-item:hover {
    background-color: rgba(38, 215, 160, 0.05);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(38, 215, 160, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.benefit-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--background);
    position: relative;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 30px;
    padding: 20px 0;
    max-width: 100%; /* Ensure it doesn't overflow */
    scroll-behavior: smooth;
    position: relative;
}

.testimonial-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
    min-width: 350px;
    width: 350px;
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    scroll-snap-align: center;
}

.testimonial-content {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: rgba(38, 215, 160, 0.2);
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0;
}

.author-title {
    font-size: 0.9rem;
    color: var(--grey);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--light-grey);
    cursor: pointer;
    transition: var(--transition);
}

.nav-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Testimonial navigation arrows */
.testimonial-arrows {
    display: none; /* Hidden by default, will be shown in mobile */
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    padding: 0 15px;
    pointer-events: none; /* Don't block access to cards */
    z-index: 5;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    pointer-events: auto; /* Make arrows clickable */
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .testimonial-arrows {
        display: flex;
    }
    
    .testimonial-card {
        min-width: 280px;
        width: 280px;
        scroll-snap-align: center;
    }
    
    .testimonial-nav {
        margin-top: 20px;
    }
    
    .nav-dot {
        width: 30px;
        height: 5px;
        border-radius: 2.5px;
    }
    
    .testimonial-slider {
        gap: 15px;
        padding: 25px 0;
    }
    
    .testimonial-slider::after {
        content: "";
        min-width: 15px;
    }
}

@media (max-width: 576px) {
    .testimonial-slider {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .testimonial-card {
        min-width: calc(100% - 30px);
        width: calc(100% - 30px);
        padding: 20px;
    }
    
    /* Card indicators for small screens */
    .swipe-indicator {
        display: block;
        text-align: center;
        font-size: 0.8rem;
        color: var(--grey);
        padding: 10px 0;
        position: relative;
    }
    
    .swipe-indicator::after {
        content: "←";
        margin-left: 5px;
        animation: swipeAnimation 1.5s infinite;
    }
    
    .swipe-indicator::before {
        content: "→";
        margin-right: 5px;
        animation: swipeAnimation 1.5s infinite;
    }
    
    @keyframes swipeAnimation {
        0% { opacity: 0.3; }
        50% { opacity: 1; }
        100% { opacity: 0.3; }
    }
}

/* ===== PRICING SECTION ===== */
.pricing {
    background-color: var(--light);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-btn {
    background: none;
    color: var(--grey);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--light-grey);
    position: relative;
    overflow: hidden;
}

.pricing-card.popular {
    transform: scale(1.05);
    border-color: var(--primary);
}

.popular-tag {
    background-color: var(--accent);
    color: var(--light);
    font-size: 0.8rem;
    padding: 5px 10px;
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    width: 150px;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.pricing-duration {
    font-size: 0.9rem;
    color: var(--grey);
}

.pricing-features {
    margin-bottom: 30px;
    min-height: 200px;
}

.pricing-features li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-grey);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===== CONTACT FORM SECTION ===== */
.contact {
    background-color: var(--background);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(38, 215, 160, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
}

/* ===== FOOTER ===== */
.site-footer {
    background-color: var(--secondary);
    color: var(--light);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.company-info p {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #26d7a0;
}

.contact-info a:hover {
    color: var(--primary);
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--light);
}

.footer-column ul li a:hover {
    color: var(--primary);
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0 15px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links-bottom a {
    color: var(--light);
    margin-left: 20px;
    font-size: 0.9rem;
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 20px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-buttons a {
    color: var(--grey);
    text-decoration: underline;
    padding: 5px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .pricing-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-toggle-label {
        display: block;
    }
    
    .mobile-toggle:checked ~ .mobile-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu li {
        margin-bottom: 15px;
    }
    
    .mobile-toggle:checked ~ .mobile-toggle-label .hamburger {
        background-color: transparent;
    }
    
    .mobile-toggle:checked ~ .mobile-toggle-label .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .mobile-toggle:checked ~ .mobile-toggle-label .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .testimonial-card {
        min-width: 280px;
        width: 280px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Fix horizontal scrolling issues */
    .container {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .legal-links-bottom a:first-child {
        margin-left: 0;
    }
    
    /* Further mobile fixes */
    .testimonial-slider {
        padding-left: 0;
        padding-right: 0;
    }
    
    .testimonial-card {
        min-width: 260px;
        width: 260px;
        padding: 20px;
    }
} 