/*==========================
  Base Reset and Variables
==========================*/
:root {
    --primary-color: #509adb;
    --accent-color: #016fce;
    --light-bg: #f9f9f9;
    --dark-bg: #1c1c1c;
    --text-dark: #1e1e1e;
    --text-light: #ffffff;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/*==========================
  Header & Navigation
==========================*/
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.brand-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.brand-logo .accent {
    color: var(--accent-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.main-navigation a {
    font-weight: 500;
    padding: 0.5rem 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
}

/*==========================
  Hero Section
==========================*/
.hero-full-width {
    position: relative;
    background: url('../images/hero.webp') center/cover no-repeat;
    color: #fff;
    padding: 6rem 1rem;
}

.hero-background-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    margin: 0 0.5rem;
}

/*==========================
  Buttons
==========================*/
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background var(--transition);
    font-weight: bold;
}

.primary-action-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
}

.secondary-action-btn {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.outline-btn {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.text-btn {
    background: none;
    color: var(--primary-color);
    font-weight: bold;
}

/*==========================
  About Us
==========================*/
.about-us-alternate .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text-content h3 {
    margin-bottom: 1rem;
}

.section-padding {
    padding: 4rem 0;
}

/*==========================
  Services Grid
==========================*/
.categories-cards-section {
    background: linear-gradient(to right, #509adb, #016fce);
    color: #fff;
    text-align: center;
}

.section-subtitle {
    margin: 0.5rem 0 2rem;
    font-size: 1.1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem 1rem;
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

/*==========================
  Features Section
==========================*/
.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 6px;
}

/*==========================
  Testimonials
==========================*/
/* === Testimonials Carousel Section === */
.testimonial-carousel-section {
    background-color: #f9f9f9;
    padding: 60px 20px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    scroll-snap-type: x mandatory;
    scroll-padding: 20px;
    padding: 20px 0;
}

.testimonial-slide {
    flex: 0 0 80%;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    scroll-snap-align: start;
    text-align: center;
}

.testimonial-slide .client-quote {
    font-style: italic;
    font-size: 1.1em;
    color: #333;
}

.testimonial-slide .client-name {
    font-weight: bold;
    margin-top: 10px;
    color: #555;
}

.stars {
    color: #f5a623;
    font-size: 1.2em;
    margin-top: 5px;
}

.carousel-nav-dots {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.carousel-nav-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 6px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-nav-dots span.active {
    background-color: var(--accent-color);
}

/* === FAQ Accordion === */
.faq-accordion-section details {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    background: #fff;
}

.faq-accordion-section summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    list-style: none;
    position: relative;
}

.faq-accordion-section summary::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.faq-accordion-section details[open] summary::after {
    content: '-';
}

/* === Quote & Contact Section === */
.quote-contact-combined {
    background-color: #f4f7fa;
}

.two-column-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.column {
    flex: 1 1 400px;
}

.quote-form-column form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modern-quote-form input,
.modern-quote-form select,
.modern-quote-form textarea {
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    width: 100%;
    background: #fff;
}

.submit-quote-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-quote-btn:hover {
    background-color: var(--accent-color);
}

.form-footer-note {
    font-size: 0.85em;
    color: #666;
}

.contact-info-column address {
    font-style: normal;
    line-height: 1.7;
}

.contact-info-column a {
    color: var(--primary-color);
    text-decoration: none;
}

/* === Newsletter CTA === */
.newsletter-cta-banner {
    background: linear-gradient(135deg, #509adb, #016fce);
    color: white;
    padding: 60px 20px;
}

.newsletter-inline-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.newsletter-inline-form input[type="email"] {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    flex: 1 1 300px;
}

/* === Footer Section === */
.site-footer {
    background-color: #1c1f24;
    color: #bbb;
    padding: 60px 20px 20px;
}

.footer-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4,
.footer-col h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-circles a img {
    margin-right: 10px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-circles a:hover img {
    transform: scale(1.1);
}

.footer-bottom-bar {
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9em;
    text-align: center;
}

/* === Popup Module === */
.popup-module {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-module .popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

.popup-module .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5em;
    cursor: pointer;
    color: #444;
}

.popup-module h2 {
    margin-top: 0;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .cards-grid,
    .feature-list-grid,
    .about-grid,
    .two-column-layout {
        grid-template-columns: 1fr !important;
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
    }
}
