/* 
 * Styles for Dunarethilo - Accounting Services
 * Palette: 
 * - Main background: #f0f9ff (light blue-snow)
 * - Secondary background: #ffe3e0 (soft coral)
 * - Accents: #ff8a5b (peach-orange), #005c78 (deep teal)
 * - Text: #111827 (dark gray), headings: #172554 (rich indigo)
 */

/* === RESET & GENERAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Ajuste para anclajes */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #111827;
    background-color: #f0f9ff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: #172554;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    width: 60%;
    max-width: 200px;
    height: 3px;
    background: linear-gradient(to right, #005c78, #ff8a5b);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #005c78;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff8a5b;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

section {
    padding: 4rem 0;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #005c78;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #004a61;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #ff8a5b;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #ff7a43;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === HEADER === */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 15px;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #005c78, #ff8a5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 1.5rem;
}

.main-nav ul li a {
    color: #172554;
    font-weight: 500;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ff8a5b;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.contact-phone a {
    font-weight: 600;
    color: #005c78;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

.mobile-menu-toggle input {
    display: none;
}

.mobile-menu-toggle label {
    display: flex;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.mobile-menu-toggle label span {
    background: #172554;
    border-radius: 10px;
    height: 3px;
    margin: 3px 0;
    transition: 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* === HERO SECTION === */
.hero {
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.9) 0%, rgba(255, 227, 224, 0.9) 100%);
    text-align: center;
    padding-top: 80px; /* Account for header */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.3s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.6s;
    animation-fill-mode: both;
}

/* === ABOUT SECTION === */
.about {
    background-color: #ffffff;
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.03);
}

/* === SERVICES SECTION === */
.services {
    background-color: #f0f9ff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.service-card h3, .service-card p {
    padding: 0 1.5rem;
}

.service-card h3 {
    margin-top: 1.5rem;
    color: #005c78;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* === WHY US SECTION === */
.why-us {
    background-color: #ffe3e0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    margin-bottom: 1rem;
}

.advantage-item h3 {
    color: #005c78;
    margin-bottom: 1rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: #ffffff;
    text-align: center;
}

.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 2rem;
}

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffe3e0 100%);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0 10px;
    min-width: 300px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.testimonial.active {
    opacity: 1;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 3rem;
    color: #ff8a5b;
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
}

.author-name {
    font-weight: 700;
    color: #172554;
    margin-bottom: 0.3rem;
}

.author-company {
    color: #005c78;
    font-size: 0.9rem;
}

/* === CONTACT FORM === */
.contact-form {
    background-color: #f0f9ff;
}

.contact-form form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #172554;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #005c78;
    box-shadow: 0 0 0 3px rgba(0, 92, 120, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* === FAQ SECTION === */
.faq {
    background-color: #ffffff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 1rem 0;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    color: #172554;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #005c78;
}

.faq-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #005c78;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    width: 2px;
    height: 20px;
    left: 9px;
    top: 0;
}

.faq-icon::after {
    width: 20px;
    height: 2px;
    left: 0;
    top: 9px;
}

.faq-toggle:checked + .faq-question .faq-icon::before {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1rem;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 500px;
    padding-bottom: 1rem;
}

/* === FOOTER === */
.footer {
    background-color: #172554;
    color: #ffffff;
    padding-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #f0f9ff, #ff8a5b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer a {
    color: #f0f9ff;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff8a5b;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    width: 90%;
    max-width: 400px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-popup.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-content {
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1.5rem;
}

/* === ANIMATIONS === */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        height: auto;
        min-height: 500px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-text, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }
    
    .main-nav.active ul {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav.active ul li {
        margin: 0.5rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle input:checked + label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle input:checked + label span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle input:checked + label span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .contact-phone {
        margin-right: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .header .container {
        padding: 0.8rem 15px;
    }
    
    .contact-phone {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
} 