/* 
   Main styles for domain.com
   Color palette:
   - Primary background: #0E3B2E (deep emerald)
   - Accent: #FF6F4F (coral-orange)
   - Secondary: #E6C88A (golden beige)
   - Text: #F5F1E8 (light beige)
   - Block background: #1C1C1C (graphite)
*/

/* Global styles */
:root {
    --primary: #0E3B2E;
    --accent: #FF6F4F;
    --secondary: #E6C88A;
    --text: #F5F1E8;
    --background: #1C1C1C;
    --max-width: 1200px;
    --border-radius: 12px;
    --font-main: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--text);
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #e05e40;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header styles */
.header {
    background-color: var(--background);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary);
}

.logo img {
    max-height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile menu - CSS only */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 59, 46, 0.7); /* Semi-transparent overlay */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Section styles */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--accent);
}

/* About section */
.about {
    background-color: var(--background);
}

/* Benefits section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.5rem;
}

/* Form section */
.form-section {
    background-color: var(--background);
    padding: 3rem 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(230, 200, 138, 0.3);
    background-color: rgba(28, 28, 28, 0.8);
    border-radius: var(--border-radius);
    color: var(--text);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check input {
    margin-right: 10px;
    margin-top: 6px;
}

/* Testimonials section */
.testimonials {
    background-color: var(--primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

/* FAQ section */
.faq {
    background-color: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    position: relative;
    padding: 1rem;
    cursor: pointer;
    background-color: rgba(14, 59, 46, 0.8);
    color: var(--text);
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    background-color: rgba(28, 28, 28, 0.5);
}

.faq-content {
    padding: 1rem;
}

/* CSS-only FAQ accordion */
.faq-checkbox {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 20rem;
}

.faq-toggle {
    transition: var(--transition);
}

.faq-checkbox:checked ~ .faq-question .faq-toggle {
    transform: rotate(180deg);
}

/* Contact section */
.contact {
    background-color: var(--primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--background);
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(245, 241, 232, 0.1);
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* Policy pages */
.policy-container {
    max-width: 800px;
    margin: 8rem auto 5rem;
    padding: 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
}

.policy-title {
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    position: relative;
    width: 100%;
    max-width: 900px;   /* обмеження ширини */
    height: 450px;      /* висота карти */
    margin: 2rem auto;  /* відцентрувати по центру сторінки */
    border: 4px solid #333;  /* рамка навколо */
    border-radius: 12px;     /* заокруглені кути */
    overflow: hidden;        /* обрізає iframe по межі */
    box-shadow: 0 4px 15px rgba(0,0,0,0.25); /* легка тінь */
  }

/* Thank you (merci) page */
.merci-container {
    max-width: 600px;
    margin: 8rem auto 5rem;
    padding: 3rem 2rem;
    background-color: var(--background);
    border-radius: var(--border-radius);
    text-align: center;
    border: 2px solid var(--accent);
}

.merci-icon {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--background);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 90%;
    max-width: 400px;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.5s;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background-color: var(--background);
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* CSS-only mobile menu toggle */
#nav-toggle {
    display: none;
}

#nav-toggle:checked ~ .nav-links {
    left: 0;
}

#nav-toggle:checked ~ .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle:checked ~ .hamburger span:nth-child(2) {
    opacity: 0;
}

#nav-toggle:checked ~ .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}
