/* 
* Domain - Księgowość w Polsce
* Main stylesheet
*/

/* Base styles and variables */
:root {
    --color-bg: #0D1B2A;
    --color-accent: #FF5F5D;
    --color-secondary: #F4F1DE;
    --color-heading: #1A659E;
    --color-text: #E0E1DD;
    --radius: 2rem;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    margin-bottom: 2rem;
    line-height: 1.2;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 6rem;
    height: 0.3rem;
    background-color: var(--color-accent);
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 2rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

/* Header styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(13, 27, 42, 0.9);
    z-index: 1000;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--color-text);
    text-transform: lowercase;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-nav li {
    margin-left: 3rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        width: 3rem;
        height: 3rem;
        position: relative;
        z-index: 1001;
    }

    .menu-icon {
        position: relative;
        width: 100%;
        height: 0.3rem;
        background-color: var(--color-text);
        display: block;
        transition: var(--transition);
    }

    .menu-icon::before,
    .menu-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 0.3rem;
        background-color: var(--color-text);
        transition: var(--transition);
    }

    .menu-icon::before {
        top: -0.8rem;
    }

    .menu-icon::after {
        top: 0.8rem;
    }

    .menu-icon.active {
        background-color: transparent;
    }

    .menu-icon.active::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-icon.active::after {
        transform: rotate(-45deg);
        top: 0;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg);
        padding: 8rem 3rem 3rem;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .main-nav.visible {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 1rem 0;
    }
}

/* Hero section styles */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #0D1B2A 0%, #1D3557 100%);
    overflow: hidden;
    padding: 0;
    margin-top: 6rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background-color: rgba(255, 95, 93, 0.1);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background-color: rgba(26, 101, 158, 0.1);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5.6rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #fff;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent), #F77F7E);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 95, 93, 0.3);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Section styles */
.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    width: 10rem;
}

/* About section */
.about {
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -5%;
    width: 20%;
    height: 20%;
    background-color: rgba(244, 241, 222, 0.05);
    border-radius: 50%;
}

.about-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 90%;
    margin-left: auto;
}



@media (max-width: 768px) {
    .about-grid, .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image, .why-us-image {
        order: -1;
        max-width: 100%;
        margin: 0 auto 2rem;
    }
    
    .footer-section {
        border-right: none;
        border-bottom: 1px solid rgba(224, 225, 221, 0.1);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
}

/* Services section */
.services {
    background-color: rgba(26, 101, 158, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
}

.service-card {
    background-color: var(--color-bg);
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    display: block;
    width: 100%;
    height: 180px;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.05);
}

/* Why us section */
.why-us {
    position: relative;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 3rem;
    align-items: center;
}

.why-us-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 90%;
    margin-left: auto;
}

.why-us-list {
    list-style: none;
    margin-left: 0;
}

.why-us-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.why-us-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

/* Testimonials section */
.testimonials {
    background-color: rgba(244, 241, 222, 0.05);
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--color-bg);
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
    text-align: center;
    display: none;
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-quote {
    font-style: italic;
    font-size: 2rem;
    position: relative;
    padding: 0 2rem;
}

.testimonial-quote::before,
.testimonial-quote::after {
    content: '"';
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.5;
    position: absolute;
}

.testimonial-quote::before {
    left: -1rem;
    top: -1rem;
}

.testimonial-quote::after {
    right: -1rem;
    bottom: -4rem;
}

.testimonial-author {
    margin-top: 3rem;
    font-weight: 600;
}

.testimonial-role {
    color: var(--color-accent);
    font-size: 1.4rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.testimonial-nav a {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-color: var(--color-text);
    opacity: 0.3;
    border-radius: 50%;
    margin: 0 0.5rem;
}

.testimonial-nav a.active {
    opacity: 1;
    background-color: var(--color-accent);
}

/* FAQ section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: rgba(26, 101, 158, 0.1);
    border-radius: var(--radius);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.faq-question {
    display: block;
    padding: 2rem;
    font-weight: 600;
    color: #fff;
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    font-size: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #fff;
}

.faq-answer.visible {
    padding: 0 2rem 2rem;
    max-height: 500px;
}

/* Contact form section */
.contact {
    position: relative;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(13, 27, 42, 0.8);
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(224, 225, 221, 0.3);
    background-color: rgba(13, 27, 42, 0.6);
    color: var(--color-text);
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px rgba(255, 95, 93, 0.3);
}

.form-select {
    width: 100%;
    padding: 1.2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--color-accent);
    background-color: rgba(26, 101, 158, 0.2);
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23FF5F5D' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    box-shadow: 0 0 10px rgba(255, 95, 93, 0.2);
    transition: all 0.3s ease;
}

.form-select:focus,
.form-select:hover {
    background-color: rgba(26, 101, 158, 0.4);
    box-shadow: 0 0 15px rgba(255, 95, 93, 0.4);
}

.form-select option {
    background-color: #0D1B2A;
    color: #ffffff;
    padding: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-checkbox input {
    margin-top: 0.5rem;
    margin-right: 1rem;
}

.form-checkbox label {
    font-size: 1.4rem;
}

.form-checkbox a {
    text-decoration: underline;
}

/* Contact info */
.contact-info {
    margin-top: 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.contact-card {
    text-align: center;
    padding: 3rem;
    background-color: rgba(26, 101, 158, 0.05);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    margin-bottom: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #F77F7E);
    color: var(--color-text);
    font-size: 2.5rem;
}

/* Map */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 4rem;
    box-shadow: var(--shadow);
}

.map-img {
    width: 100%;
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, #0D1B2A 0%, #1A4064 100%);
    padding: 6rem 0 0;
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="rgba(255,255,255,0.03)" width="50" height="50" x="0" y="0"/><rect fill="rgba(255,255,255,0.03)" width="50" height="50" x="50" y="50"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.main-footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    padding: 0 1.5rem;
    border-right: 1px solid rgba(224, 225, 221, 0.1);
}

.footer-section:last-child {
    border-right: none;
}

.footer-section h3 {
    color: var(--color-text);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5rem;
    height: 0.2rem;
    background-color: var(--color-accent);
}

.contact-list,
.legal-links {
    list-style: none;
    margin: 0;
}

.contact-list li,
.legal-links li {
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(224, 225, 221, 0.1);
    padding: 2rem 0;
    text-align: center;
    font-size: 1.4rem;
}

/* Policy pages */
.policy-container {
    max-width: 900px;
    margin: 10rem auto 5rem;
    background-color: rgba(13, 27, 42, 0.8);
    border-radius: var(--radius);
    padding: 5rem;
    box-shadow: var(--shadow);
}

.policy-container > h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-section {
    margin-bottom: 4rem;
}

.policy-section:last-child {
    margin-bottom: 0;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(13, 27, 42, 0.95);
    padding: 2rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 2000;
}

.cookie-popup.visible {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

#accept-cookies {
    background-color: var(--color-accent);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

#accept-cookies:hover {
    background-color: #e54c4a;
}

.cookie-content a {
    text-decoration: underline;
}

/* Thank you page */
.thank-you {
    text-align: center;
    padding: 10rem 0;
}

.thank-you-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 5rem;
    background-color: rgba(26, 101, 158, 0.1);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 2px solid var(--color-accent);
}

.thank-you h1 {
    font-size: 6rem;
    color: var(--color-accent);
}

.thank-you-icon {
    font-size: 10rem;
    margin-bottom: 3rem;
    color: var(--color-accent);
    display: inline-block;
    width: 15rem;
    height: 15rem;
    line-height: 15rem;
    border-radius: 50%;
    background-color: rgba(255, 95, 93, 0.1);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 768px) {
    section {
        padding: 6rem 0;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .hero p {
        font-size: 1.8rem;
    }
    
    .policy-container {
        padding: 3rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.8rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .section-title {
        margin-bottom: 4rem;
    }
    
    .form-container {
        padding: 2.5rem;
    }
}
