/* 
==============================================
TABLE OF CONTENTS
==============================================
1. General Styles
2. Typography
3. Layout & Container
4. Header & Navigation
5. Banner
6. Sections
7. Cards
8. Forms
9. Buttons
10. Footer
11. Blog Styles
12. Responsive Design
==============================================
*/

/* ==================== 1. General Styles ==================== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #333;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

ul {
    list-style-type: none;
}

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

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

.bg-light {
    background-color: var(--light-color);
}

.bg-primary {
    background-color: var(--primary-color);
    color: white;
}

.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 50px 0;
    }
}

/* ==================== 2. Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* ==================== 3. Layout & Container ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    flex: 1;
}

/* ==================== 4. Header & Navigation ==================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-weight: 700;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--secondary-color);
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
    }
}

/* ==================== 5. Banner ==================== */
.banner {
    padding: 80px 0;
    background-color: var(--light-color);
    overflow: hidden;
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-content {
    flex: 1;
    max-width: 600px;
}

.banner-content h1 {
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.banner-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 500px;
}

@media (max-width: 992px) {
    .banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-content {
        margin-bottom: 30px;
    }
    
    .banner-image {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .banner {
        padding: 50px 0;
    }
    
    .banner-content h1 {
        font-size: 2.2rem;
    }
}

/* ==================== 6. Sections ==================== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.stat-item img {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
}

.stat-item h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.offer-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.offer-image {
    height: 200px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100px;
    height: 100px;
}

.offer-details {
    padding: 20px;
}

.offer-details h3 {
    margin-bottom: 10px;
}

.location {
    color: var(--text-light);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.location::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../img/location-icon.svg');
    background-size: contain;
    margin-right: 5px;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.description {
    margin-bottom: 20px;
}

.offers-more {
    text-align: center;
    margin-top: 40px;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 10px;
}

.quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
}

.quote::before {
    content: '"';
    font-size: 50px;
    color: var(--secondary-color);
    opacity: 0.3;
    position: absolute;
    left: -10px;
    top: -15px;
}

.client {
    display: flex;
    flex-direction: column;
}

.client-name {
    font-weight: 700;
}

.client-location {
    color: var(--text-light);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-dots span {
    width: 12px;
    height: 12px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-dots span.active {
    background-color: var(--secondary-color);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.blog-image {
    height: 200px;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-image img {
    max-height: 100%;
    width: auto;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    color: var(--text-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.blog-excerpt {
    margin-bottom: 15px;
}

.read-more {
    font-weight: 700;
    color: var(--secondary-color);
}

.blog-more {
    text-align: center;
    margin-top: 40px;
}

.subscribe-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}

.subscribe-content h2 {
    color: white;
}

.subscribe-content p {
    color: rgba(255, 255, 255, 0.8);
}

.subscribe-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.social-media {
    grid-column: 1 / -1;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.social-icons a:hover svg path {
    fill: white;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ==================== 7. Cards ==================== */
.thank-you-content {
    text-align: center;
    padding: 60px 0;
}

.thank-you-content img {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.thank-you-content h1 {
    margin-bottom: 20px;
}

.thank-you-content p {
    max-width: 600px;
    margin: 0 auto 20px;
}

.thank-you-content .btn-primary {
    margin-top: 20px;
}

/* ==================== 8. Forms ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-label span {
    flex: 1;
    font-size: 0.9rem;
}

.checkbox-label a {
    text-decoration: underline;
}

.checkbox-group {
    margin-top: 30px;
}

/* ==================== 9. Buttons ==================== */
.btn-primary,
.btn-secondary,
.btn-white {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    color: white;
}

.btn-secondary {
    background-color: var(--light-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #e9ecef;
    color: var(--text-color);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* ==================== 10. Footer ==================== */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 30px;
}

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

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== 11. Blog Styles ==================== */
.blog-banner {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.blog-banner h1 {
    color: white;
    margin-bottom: 15px;
}

.blog-banner p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.blog-list .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.blog-list .blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-list .blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-list .blog-content h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.blog-list .blog-content .btn-secondary {
    margin-top: auto;
    align-self: flex-start;
}

.blog-subscribe {
    margin-top: 50px;
}

.blog-subscribe .subscribe-box {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.blog-subscribe .subscribe-content {
    margin-bottom: 30px;
}

.blog-subscribe .subscribe-content h2 {
    color: var(--primary-color);
}

.blog-subscribe .subscribe-content p {
    color: var(--text-light);
}

.blog-article {
    padding-top: 40px;
}

.article-header {
    margin-bottom: 30px;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-light);
    font-weight: 500;
}

.article-date {
    display: block;
    color: var(--text-light);
    margin-bottom: 10px;
}

.article-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.article-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.article-featured-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.article-featured-image img {
    max-height: 400px;
    width: auto;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-content ul li,
.article-content ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-quote {
    background-color: var(--light-color);
    padding: 30px;
    border-left: 5px solid var(--secondary-color);
    margin: 30px 0;
    border-radius: 0 5px 5px 0;
}

.article-quote p {
    font-style: italic;
    margin-bottom: 10px;
}

.article-quote cite {
    font-weight: 700;
    display: block;
}

.article-infobox {
    background-color: rgba(52, 152, 219, 0.1);
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.article-infobox h3 {
    color: var(--secondary-color);
    margin-top: 0;
}

.article-tags {
    margin-top: 40px;
}

.article-tags span {
    font-weight: 700;
    margin-right: 10px;
}

.article-tags ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-tags ul li a {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
}

.article-tags ul li a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-share span {
    font-weight: 700;
    margin-right: 20px;
}

.social-share {
    display: flex;
    gap: 15px;
}

.related-articles {
    margin-top: 50px;
}

.related-articles h3 {
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-article {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.related-article:hover {
    transform: translateY(-5px);
}

.related-article img {
    height: 150px;
    width: 100%;
    object-fit: cover;
}

.related-article h4 {
    padding: 15px;
    font-size: 1rem;
    line-height: 1.4;
}

.legal-section {
    padding-top: 40px;
}

.legal-section h1 {
    margin-bottom: 30px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.legal-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul li,
.legal-content ol li {
    margin-bottom: 10px;
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

.legal-content address {
    font-style: normal;
    margin: 20px 0;
}

.last-updated {
    margin-top: 40px;
    font-style: italic;
    color: var(--text-light);
}

/* ==================== 12. Responsive Design ==================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .about-content,
    .offers-grid,
    .blog-posts {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-list .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}
