/* 
 * Main stylesheet for Domain Accounting Services
 * Mobile-first approach with responsive design
 */

/* 
 * Color palette:
 * - Main background: #F0F8FF (alabaster blue)
 * - Accents: #FF6F61 (salmon red), #00A896 (sea wave)
 * - Text: #2E2E2E (dark gray)
 * - Headings: #14213D (indigo)
 * - Buttons: gradient from #00A896 to #FF6F61
 */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-padding-top: 80px; /* Add padding for anchor links to account for fixed header */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2E2E2E;
    background-color: #F0F8FF;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #14213D;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #00A896, #FF6F61);
    margin: 15px auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 20px;
}

a {
    color: #00A896;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #FF6F61;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

section {
    padding: 80px 0 60px;
    overflow: hidden;
}

section:nth-child(even) {
    background-color: white;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(45deg, #00A896, #FF6F61);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: white;
}

.btn-primary {
    background: linear-gradient(45deg, #00A896, #FF6F61);
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(20, 33, 61, 0.95);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 9999;
    transition: bottom 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cookie-banner.active {
    bottom: 0;
}

.cookie-banner p {
    margin-bottom: 15px;
}

.cookie-banner .btn {
    background: #FF6F61;
}

/* Header styles */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo a {
    color: #14213D;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(45deg, #00A896, #FF6F61);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

/* Mobile menu */
.mobile-menu-toggle {
    position: relative;
}

#menu-toggle {
    display: none;
}

.mobile-menu-toggle label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #14213D;
    display: block;
}

.main-navigation {
    max-height: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100vw;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transition: max-height 0.5s ease;
}

#menu-toggle:checked ~ .main-navigation {
    max-height: 400px;
}

.main-navigation ul {
    list-style: none;
    padding: 20px;
    text-align: center;
}

.main-navigation li {
    margin-bottom: 15px;
}

.main-navigation a {
    color: #14213D;
    font-weight: 600;
    padding: 8px 15px;
    display: block;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: #F0F8FF;
    color: #00A896;
}

/* Hero section */
.hero-section {
    padding: 80px 0 60px;
    position: relative;
    background: linear-gradient(135deg, #F0F8FF 60%, rgba(0,168,150,0.1) 100%);
}

.hero-content {
    text-align: center;
    margin-bottom: 40px;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.hero-image {
    max-width: 90%;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-10px);
}

/* About section */
.about-section {
    background-color: white;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-text {
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature-item {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background-color: #F0F8FF;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card h3, 
.service-card p {
    padding: 0 20px;
}

.service-card h3 {
    margin-top: 20px;
}

.service-card .btn {
    margin: 20px;
    display: block;
}

/* Benefits section */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.benefit-item {
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Testimonials section */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 4rem;
    font-family: serif;
    color: rgba(0,168,150,0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: bold;
    color: #14213D;
}

.testimonial-company {
    color: #666;
    font-size: 0.9rem;
}

/* Contact section */
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-details {
    list-style: none;
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #14213D;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #00A896;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,168,150,0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 0.9rem;
}

/* FAQ section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: white;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f5f5f5;
}

.faq-answer {
    padding: 20px;
    border-top: 1px solid #ddd;
    background-color: #f9f9f9;
}

/* Footer */
.site-footer {
    background-color: #14213D;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-info,
.footer-contact,
.footer-links {
    flex: 1;
}

.footer-info h3,
.footer-contact h3,
.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
}

.footer-contact li,
.footer-links li {
    margin-bottom: 10px;
}

.footer-contact a,
.footer-links a {
    color: #ddd;
}

.footer-contact a:hover,
.footer-links a:hover {
    color: #FF6F61;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content, .about-content, .services-grid,
.benefits-grid, .testimonials-slider, .contact-wrapper,
.faq-list {
    animation: fadeIn 1s ease-out;
}

/* Media queries */
/* Tablet */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .about-features,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        text-align: left;
        padding-right: 20px;
    }
    
    .hero-section .container {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    
    .hero-content,
    .hero-image {
        flex: 1;
    }
    
    .footer-content {
        flex-direction: row;
    }
}

/* Desktop */
@media (min-width: 992px) {
    .mobile-menu-toggle label {
        display: none;
    }
    
    .main-navigation {
        position: static;
        max-height: none;
        width: auto;
        background: none;
        box-shadow: none;
        overflow: visible;
    }
    
    .main-navigation ul {
        padding: 0;
        display: flex;
        gap: 20px;
    }
    
    .main-navigation li {
        margin-bottom: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-wrapper {
        flex-direction: row;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .hero-section {
        min-height: 600px;
        display: flex;
        align-items: center;
    }
    
    .testimonials-slider {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}
