/* 
* Main Stylesheet for domain.com
* Pure CSS implementation with animations (no JS except cookie popup)
*/

/* ---------- GLOBAL VARIABLES ---------- */
:root {
    /* Color Palette */
    --primary: #004E64;       /* Midnight Teal */
    --secondary: #E5A823;     /* Warm Saffron */
    --accent: #D726A3;        /* Magenta Glow */
    --neutral-bg: #F7F4F0;    /* Soft Porcelain */
    --text: #2A2A2A;          /* Graphite Black */
    --hover: #4ED4A2;         /* Jade Green */
    
    /* Neutral Variants */
    --light-gray: #F0F0F0;
    --mid-gray: #CCCCCC;
    --dark-gray: #666666;
    
    /* Typography */
    --heading-font: 'Montserrat', 'Helvetica Neue', sans-serif;
    --body-font: 'Open Sans', Arial, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Container Sizes */
    --container-width: 1200px;
    --container-padding: 15px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-round: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Anchor Offset */
    --header-height: 80px;
}

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--neutral-bg);
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}

h1 {
    font-size: 2.625rem; /* 42px */
    margin-bottom: var(--space-md);
}

h2 {
    font-size: 2.25rem; /* 36px */
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem; /* 24px */
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--hover);
}

ul, ol {
    list-style-position: inside;
    margin-bottom: var(--space-sm);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
    font-family: var(--body-font);
}

/* ---------- LAYOUT COMPONENTS ---------- */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

/* Fix for section anchors to account for fixed header */
section {
    padding: var(--space-lg) 0;
    scroll-margin-top: var(--header-height);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: var(--space-xs) auto 0;
    border-radius: var(--radius-sm);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: var(--hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-tertiary:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-nav {
    background-color: var(--accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
}

.btn-nav:hover {
    background-color: var(--hover);
    color: white;
}

/* ---------- HEADER & NAVIGATION ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 2rem;
}

.logo a {
    color: var(--primary);
    text-decoration: none;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-links li {
    margin-left: var(--space-md);
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    transition: all var(--transition-medium);
}

/* Mobile menu handling in CSS + PHP */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-medium);
        box-shadow: var(--shadow-lg);
    }
    
    .menu-open .nav-links {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--space-sm) 0;
    }
    
    .menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* ---------- HERO SECTION ---------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content horizontally */
    background: url('../img/YlEdNG.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    margin-top: var(--header-height);
    text-align: center; /* Center text */
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 78, 100, 0.7), rgba(0, 78, 100, 0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center; /* Center text */
}

.hero-content h1 {
    color: white;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

/* ---------- ABOUT SECTION ---------- */
.about-section h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Make image smaller compared to text */
    gap: var(--space-md);
    align-items: center;
}

.about-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 100%;
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.service-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: var(--space-md);
}

.service-content h3 {
    color: var(--primary);
}

/* ---------- WHY CHOOSE US SECTION ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.benefit-item {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    height: 100%; /* Make all items the same height */
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    margin-bottom: var(--space-sm);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CSS Icons */
.icon-expertise, .icon-personalized, .icon-technology, 
.icon-compliance, .icon-time, .icon-cost, 
.icon-support, .icon-security {
    width: 60px;
    height: 60px;
    background-color: var(--light-gray);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-expertise::before {
    content: "\1F4C8"; /* 📈 */
    font-size: 30px;
}

.icon-personalized::before {
    content: "\1F464"; /* 👤 */
    font-size: 30px;
}

.icon-technology::before {
    content: "\1F4BB"; /* 💻 */
    font-size: 30px;
}

.icon-compliance::before {
    content: "\2705"; /* ✅ */
    font-size: 30px;
}

.icon-time::before {
    content: "\23F0"; /* ⏰ */
    font-size: 30px;
}

.icon-cost::before {
    content: "\1F4B0"; /* 💰 */
    font-size: 30px;
}

.icon-support::before {
    content: "\1F4DE"; /* 📞 */
    font-size: 30px;
}

.icon-security::before {
    content: "\1F512"; /* 🔒 */
    font-size: 30px;
}

/* ---------- TESTIMONIALS SECTION ---------- */
.testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    transition: transform var(--transition-medium);
}

.carousel-slide {
    min-width: 100%;
    padding: 0 var(--space-sm);
}

/* CSS-only carousel */
[type="radio"] {
    display: none;
}

#testimonial-0:checked ~ .carousel-slides {
    transform: translateX(0);
}

#testimonial-1:checked ~ .carousel-slides {
    transform: translateX(-100%);
}

#testimonial-2:checked ~ .carousel-slides {
    transform: translateX(-200%);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: var(--space-md);
}

.carousel-control {
    width: 12px;
    height: 12px;
    background-color: var(--mid-gray);
    border-radius: var(--radius-round);
    margin: 0 5px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

#testimonial-0:checked ~ .carousel-controls .carousel-control:nth-child(1),
#testimonial-1:checked ~ .carousel-controls .carousel-control:nth-child(2),
#testimonial-2:checked ~ .carousel-controls .carousel-control:nth-child(3) {
    background-color: var(--accent);
    transform: scale(1.2);
}

.testimonial-card {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
    padding: 0 var(--space-sm);
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 2rem;
    color: var(--secondary);
    position: absolute;
}

.testimonial-quote::before {
    left: -5px;
    top: -10px;
}

.testimonial-quote::after {
    right: -5px;
    bottom: -20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-name {
    font-weight: 600;
    color: var(--primary);
}

.testimonial-business {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.testimonial-rating {
    margin-top: 5px;
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
}

.star::before {
    content: "★";
    color: var(--mid-gray);
    font-size: 20px;
}

.star.filled::before {
    color: var(--secondary);
}

/* ---------- PRICING SECTION ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.pricing-card {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-medium);
    text-align: center;
}

.pricing-card.featured {
    transform: translateY(-20px);
    border: 2px solid var(--secondary);
    box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-header {
    background-color: var(--primary);
    color: white;
    padding: var(--space-md);
}

.pricing-card.featured .pricing-header {
    background-color: var(--secondary);
}

.pricing-header h3 {
    color: white;
    margin-bottom: var(--space-xs);
}

.price {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: var(--space-md);
    text-align: left;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
    position: relative;
    padding-left: 30px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--hover);
    position: absolute;
    left: 0;
}

.pricing-features li.not-included {
    color: var(--dark-gray);
}

.pricing-features li.not-included::before {
    content: "✕";
    color: var(--dark-gray);
}

.pricing-card .btn {
    margin: 0 var(--space-md) var(--space-md);
    width: calc(100% - 2 * var(--space-md));
}

/* ---------- CONTACT SECTION ---------- */
.contact-section h2 {
    text-align: center;
    margin-bottom: var(--space-md);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.address-icon::before {
    content: "📍";
    font-size: 20px;
}

.phone-icon::before {
    content: "📞";
    font-size: 20px;
}

.email-icon::before {
    content: "✉️";
    font-size: 20px;
}

.hours-icon::before {
    content: "🕒";
    font-size: 20px;
}

.contact-text {
    flex-grow: 1;
}

.map-container {
    position: relative;
    height: 100%;
    min-height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.google-map {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    border-radius: var(--radius-md);
}

/* ---------- ORDER FORM SECTION ---------- */
.order-form-section {
    background-color: white;
}

.custom-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    position: relative;
    margin-bottom: var(--space-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius-md);
    background-color: transparent;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all var(--transition-fast);
    /* Fix for phone number input */
    padding-top: 25px;
    padding-bottom: 5px;
}

.form-group label {
    position: absolute;
    top: 8px;
    left: 12px;
    color: var(--dark-gray);
    transition: all var(--transition-fast);
    pointer-events: none;
    font-size: 0.8rem;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width var(--transition-medium);
}

.form-group input:focus ~ .form-border,
.form-group select:focus ~ .form-border,
.form-group textarea:focus ~ .form-border {
    width: 100%;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius-sm);
    position: relative;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
}

.form-checkbox label {
    font-size: 0.9rem;
}

.form-submit {
    margin-top: var(--space-md);
    text-align: center;
}

.form-error {
    background-color: #ffdddd;
    color: #ff0000;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    text-align: center;
}

/* ---------- FAQ SECTION ---------- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    margin: 0;
    background-color: white;
}

.faq-question a {
    display: block;
    padding: var(--space-sm);
    color: var(--primary);
    text-decoration: none;
    position: relative;
}

.faq-question a::after {
    content: "+";
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.open .faq-question a::after {
    content: "-";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: var(--light-gray);
    transition: max-height var(--transition-medium);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer.active {
    padding: var(--space-sm);
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you-content {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--mid-gray);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background-color: var(--primary);
    color: white;
    padding: var(--space-lg) 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Change to 4 columns */
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-logo {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.company-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: var(--space-md);
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    margin-top: 10px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--hover);
}

.legal-links {
    margin-bottom: var(--space-md);
}

.contact-info address {
    font-style: normal;
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-info a:hover {
    color: var(--hover);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-sm) 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}