/*
* Auto Ekspert Warszawa - Main Stylesheet
* Version: 1.0
*/

/* ======================================
   Table of Contents:
   
   1. CSS Reset & Base Styles
   2. Typography
   3. Layout & Containers
   4. Navigation
   5. Buttons
   6. Header
   7. Banner
   8. Content Sections
   9. Forms
   10. Footer
   11. Cookie Banner
   12. Modal
   13. Blog & Articles
   14. Utilities
   15. Legal Pages
====================================== */

/* 1. CSS Reset & Base Styles
====================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 10px base for easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', 'Helvetica Neue', sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: #1e88e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0d47a1;
}

ul, ol {
    list-style-position: inside;
}

/* 2. Typography
====================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #212121;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.3rem;
    background-color: #1e88e5;
    position: absolute;
    bottom: -1rem;
    left: 0;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.6rem;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* 3. Layout & Containers
====================================== */
.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1.5rem;
}

.col {
    flex: 1;
    padding: 0 1.5rem;
}

/* 4. Navigation
====================================== */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
}

nav ul li a:hover,
nav ul li a.active {
    color: #1e88e5;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1e88e5;
    transition: width 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 2.5rem;
    height: 0.3rem;
    background-color: #333;
    margin-bottom: 0.5rem;
    border-radius: 0.2rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:last-child {
    margin-bottom: 0;
}

/* 5. Buttons
====================================== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: 0.4rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: #1e88e5;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0d47a1;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #1e88e5;
    border: 1px solid #1e88e5;
}

.btn-secondary:hover {
    background-color: #1e88e5;
    color: #fff;
}

.btn-tertiary {
    background-color: transparent;
    color: #757575;
    border: 1px solid #bdbdbd;
}

.btn-tertiary:hover {
    background-color: #f5f5f5;
    color: #424242;
}

/* 6. Header
====================================== */
header {
    padding: 2rem 0;
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 4rem;
    margin-right: 1rem;
}

.logo span {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

/* 7. Banner
====================================== */
.banner {
    padding: 8rem 0;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

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

.banner-content {
    flex: 0 0 50%;
    padding-right: 4rem;
}

.banner-image {
    flex: 0 0 50%;
    text-align: center;
}

.banner h1 {
    margin-bottom: 2rem;
    font-size: 4rem;
}

.banner p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

/* 8. Content Sections
====================================== */
/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 0 0 60%;
}

.about-image {
    flex: 0 0 40%;
}

/* Services Section */
.services {
    background-color: #f9f9f9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: 2rem;
}

.service-icon img {
    height: 7rem;
    margin: 0 auto;
}

.service-card h3 {
    margin-bottom: 1.5rem;
}

/* How We Work Section */
.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    counter-reset: step-counter;
}

.step {
    flex: 0 0 18%;
    text-align: center;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background-color: #1e88e5;
    color: #fff;
    border-radius: 50%;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 auto 2rem;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: -10%;
    width: 20%;
    height: 0.2rem;
    background-color: #e0e0e0;
}

/* Testimonials Section */
.testimonials {
    background-color: #f5f5f5;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
}

.testimonial {
    background-color: #fff;
    border-radius: 0.8rem;
    padding: 3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.testimonial-content {
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background-color: #bdbdbd;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #1e88e5;
}

/* Blog Preview Section */
.blog-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.blog-image {
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-card h3 {
    padding: 2rem 2rem 1rem;
    font-size: 2rem;
}

.blog-card p {
    padding: 0 2rem 2rem;
}

.read-more {
    display: block;
    padding: 0 2rem 2rem;
    color: #1e88e5;
    font-weight: 500;
}

.blog-cta {
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: #f9f9f9;
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 0 0 40%;
}

.contact-form {
    flex: 0 0 60%;
    background-color: #fff;
    padding: 3rem;
    border-radius: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-item {
    margin-bottom: 2.5rem;
}

.contact-item h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.social-media {
    margin-top: 3rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #757575;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #1e88e5;
    color: #fff;
}

/* 9. Forms
====================================== */
.form-group {
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.4rem;
    font-size: 1.6rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e88e5;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    flex: 1;
}

/* 10. Footer
====================================== */
footer {
    background-color: #212121;
    color: #fff;
    padding: 5rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 0 0 calc(25% - 3rem);
}

.footer-logo img {
    height: 4rem;
    margin-bottom: 1.5rem;
}

.footer-links,
.footer-contact {
    flex: 0 0 calc(25% - 3rem);
}

.footer-links h4,
.footer-contact h4 {
    color: #fff;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #bdbdbd;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover,
.footer-links ul li a.active {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #424242;
    padding-top: 2rem;
    text-align: center;
    color: #bdbdbd;
}

/* 11. Cookie Banner
====================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: 120rem;
    margin: 0 auto;
}

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 12. Modal
====================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: 0.8rem;
    max-width: 60rem;
    margin: 4rem auto;
    padding: 3rem;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 2rem;
    font-size: 2.4rem;
    color: #757575;
    cursor: pointer;
}

.cookie-options {
    margin: 2rem 0;
}

.cookie-option {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-option-header h4 {
    margin-bottom: 0;
}

.modal-buttons {
    text-align: center;
    margin-top: 2rem;
}

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 5rem;
    height: 2.6rem;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.8rem;
    width: 1.8rem;
    left: 0.4rem;
    bottom: 0.4rem;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #1e88e5;
}

input:focus + .slider {
    box-shadow: 0 0 1px #1e88e5;
}

input:checked + .slider:before {
    transform: translateX(2.4rem);
}

.slider.round {
    border-radius: 3.4rem;
}

.slider.round:before {
    border-radius: 50%;
}

/* 13. Blog & Articles
====================================== */
/* Blog Header */
.blog-header {
    background-color: #f5f5f5;
    padding: 6rem 0;
    text-align: center;
}

.blog-header h1 {
    margin-bottom: 1.5rem;
}

/* Blog Articles Section */
.blog-articles-section {
    padding: 6rem 0;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.blog-article {
    display: flex;
    background-color: #fff;
    border-radius: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.blog-article .blog-image {
    flex: 0 0 30%;
    height: auto;
}

.blog-content {
    flex: 1;
    padding: 3rem;
}

.blog-meta {
    color: #757575;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.blog-excerpt {
    margin-bottom: 2rem;
}

/* Single Article */
.article {
    padding: 6rem 0;
}

.article-header {
    margin-bottom: 4rem;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 2rem;
    color: #757575;
}

.article-meta {
    color: #757575;
    font-size: 1.4rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
}

.article-feature-image {
    margin-bottom: 4rem;
    border-radius: 0.8rem;
    overflow: hidden;
}

.article-content {
    max-width: 80rem;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 4rem;
}

.article-content h3 {
    margin-top: 3rem;
}

.article-content ul, 
.article-content ol {
    margin-bottom: 2rem;
}

.article-content li {
    margin-bottom: 1rem;
}

.article-cta {
    background-color: #f5f5f5;
    padding: 3rem;
    border-radius: 0.8rem;
    margin: 4rem 0;
    text-align: center;
}

.article-cta h3 {
    margin-bottom: 2rem;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 4rem 0;
}

.social-share {
    display: flex;
    gap: 1rem;
}

/* Related Articles */
.related-articles {
    margin-top: 6rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.related-article {
    background-color: #fff;
    border-radius: 0.8rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

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

.related-article h4 {
    padding: 1.5rem 1.5rem 1rem;
    font-size: 1.8rem;
}

.related-article a {
    display: block;
    padding: 0 1.5rem 1.5rem;
    color: #1e88e5;
    font-weight: 500;
}

/* Thank You Page */
.thank-you {
    padding: 8rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 60rem;
    margin: 0 auto;
}

.thank-you-image {
    height: 15rem;
    margin: 0 auto 3rem;
}

.thank-you-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

/* 14. Utilities
====================================== */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

/* 15. Legal Pages
====================================== */
.legal-document {
    padding: 6rem 0;
}

.legal-document h1 {
    margin-bottom: 1rem;
}

.last-updated {
    color: #757575;
    margin-bottom: 4rem;
}

.legal-content {
    max-width: 80rem;
}

.legal-content h2 {
    margin-top: 4rem;
    font-size: 2.4rem;
}

.legal-content h3 {
    margin-top: 3rem;
    font-size: 2rem;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: 2rem;
}

.legal-content li {
    margin-bottom: 1rem;
}

.legal-content address {
    font-style: normal;
    margin-bottom: 2rem;
}

.article-feature-image img {
    margin: 0 auto;
}