/* 
 * Main Stylesheet for Domain.com
 * Accounting Services Website
 * Color Palette:
 * - #1F2022 - Anthracite background
 * - #FF6F61 - Accent (coral-pink)
 * - #F7F4EF - Block background
 * - #1CA9C9 - Services highlight
 * - #41436A - Subheadings
 */

/* --------- Base Styles --------- */
:root {
    --color-anthracite: #1F2022;
    --color-accent: #FF6F61;
    --color-bg-light: #F7F4EF;
    --color-highlight: #1CA9C9;
    --color-subhead: #41436A;
    --font-primary: 'Helvetica', 'Arial', sans-serif;
    --font-secondary: 'Georgia', 'Times New Roman', serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-anthracite);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

/* Adding scroll margin for sections with IDs that are anchor targets */
section[id] {
    scroll-margin-top: 7rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
    color: var(--color-subhead);
    position: relative;
    padding-bottom: 1.5rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6rem;
    height: 3px;
    background-color: var(--color-accent);
}

h3 {
    font-size: 2.2rem;
    color: var(--color-anthracite);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-highlight);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* --------- Buttons --------- */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1.6rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #e45a4d;
    color: white;
}

.btn-secondary {
    background-color: var(--color-highlight);
    color: white;
}

.btn-secondary:hover {
    background-color: #1794b1;
    color: white;
}

/* --------- Header & Navigation --------- */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 18rem;
}

.logo img {
    width: 100%;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 2.5rem;
}

.nav-list a {
    color: var(--color-anthracite);
    font-weight: 500;
    font-size: 1.6rem;
    padding: 0.8rem 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-highlight);
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: var(--border-radius);
}

.nav-cta:hover {
    background-color: var(--color-accent);
}

.nav-cta::after {
    display: none !important;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    width: 3rem;
    height: 2.5rem;
    position: relative;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--color-anthracite);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-icon span:nth-child(1) {
    top: 0;
}

.menu-icon span:nth-child(2) {
    top: 1rem;
}

.menu-icon span:nth-child(3) {
    top: 2rem;
}

/* --------- Hero Section --------- */
.hero {
    background-color: var(--color-anthracite);
    color: white;
    padding: 10rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(120deg, rgba(31, 32, 34, 0.9), rgba(65, 67, 106, 0.8));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.2rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    max-width: 60rem;
    margin: 0 auto 3rem;
}

.hero .btn {
    font-size: 1.8rem;
    padding: 1.5rem 3rem;
}

/* --------- About Section --------- */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
    min-width: 30rem;
}

.about-image {
    flex: 1;
    min-width: 30rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* --------- Services Section --------- */
.services {
    background-color: var(--color-bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 8rem;
    height: 8rem;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-highlight);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------- Benefits Section --------- */
.benefits {
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
}

.benefit-item {
    padding: 2rem;
    border-left: 3px solid var(--color-accent);
    background-color: var(--color-bg-light);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* --------- Testimonials Section --------- */
.testimonials {
    background-color: var(--color-bg-light);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 6rem;
    font-family: var(--font-secondary);
    color: var(--color-accent);
    opacity: 0.2;
    position: absolute;
    top: -3rem;
    left: -1rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-subhead);
}

/* --------- FAQ Section --------- */
.faq {
    background-color: white;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.faq-question {
    cursor: pointer;
    color: var(--color-subhead);
    position: relative;
    padding-right: 3rem;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 2.4rem;
    color: var(--color-accent);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 1.5rem;
    line-height: 1.8;
}

/* --------- Contact Section --------- */
.contact {
    background-color: var(--color-bg-light);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.contact-form {
    flex: 1.5;
    min-width: 30rem;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info {
    flex: 1;
    min-width: 25rem;
}

.contact-item {
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--color-anthracite);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: #f9f9f9;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-highlight);
    box-shadow: 0 0 0 2px rgba(28, 169, 201, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 1rem;
    margin-top: 0.5rem;
}

.checkbox-group label {
    font-weight: normal;
    margin-bottom: 0;
}

/* --------- Map Section --------- */
.map {
    background-color: white;
}

.map-container {
    padding: 3rem;
    border-radius: var(--border-radius);
    background-color: var(--color-bg-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.map-address {
    padding: 1rem;
    line-height: 1.8;
}

.google-map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.google-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media screen and (max-width: 768px) {
    .google-map {
        height: 300px;
    }
}

/* --------- Footer --------- */
.site-footer {
    background-color: var(--color-anthracite);
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3,
.footer-contact h3,
.footer-links h3,
.footer-legal h3 {
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 1rem;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
    color: #ddd;
}

.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------- Cookie Popup --------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 32, 34, 0.95);
    color: white;
    padding: 2rem;
    z-index: 1000;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.cookie-content p {
    flex: 1;
    margin-bottom: 0;
}

.cookie-content .btn {
    flex-shrink: 0;
}

/* --------- Responsive Styles --------- */
@media screen and (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.6rem;
    }
    
    .menu-icon {
        display: block;
        z-index: 200;
    }
    
    .menu-toggle {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -30rem;
        width: 30rem;
        height: 100vh;
        background-color: var(--color-anthracite);
        padding: 10rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .menu-toggle:checked ~ .main-nav {
        right: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-list {
        flex-direction: column;
    }
    
    .nav-list li {
        margin: 1.5rem 0;
        margin-left: 0;
    }
    
    .nav-list a {
        color: white;
        font-size: 1.8rem;
        display: block;
    }
    
    .nav-list a:hover::after {
        display: none;
    }
    
    .nav-cta {
        display: inline-block;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 6rem 0;
    }
    
    .contact-form {
        padding: 2rem;
    }
} 