/* 
   domain - Serviços de Contabilidade em Portugal
   Main Stylesheet
*/

/* Color palette 
   Main: #353535 (graphite)
   Accent: #FF7755 (coral)
   Background: #F9F9F6 (cream)
   Text: #222222
   Button gradient: #FF7755 to #F95C00
   Form elements: #FFFFFF with #DDDDDD border
*/

/* ===== RESETS & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #F9F9F6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #FF7755;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #F95C00;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #353535;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #FF7755, #F95C00);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-bg {
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 2.5rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-gradient {
    background: linear-gradient(to right, #FF7755, #F95C00);
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 119, 85, 0.3);
}

.btn-gradient:hover {
    background: linear-gradient(to right, #F95C00, #FF7755);
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 7px 20px rgba(255, 119, 85, 0.4);
}

.btn-outline {
    background: transparent;
    color: #FF7755;
    border: 2px solid #FF7755;
}

.btn-outline:hover {
    background: #FF7755;
    color: #fff;
}

/* ===== HEADER STYLES ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0; /* Reduced from 1.2rem to make header smaller */
}

.logo a {
    font-size: 1.7rem; /* Reduced from 2rem to make logo smaller */
    font-weight: 900;
    color: #353535;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo a:hover {
    color: #FF7755;
}

.desktop-nav {
    display: flex;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 2rem;
}

.desktop-nav a {
    color: #353535;
    font-weight: 600;
    position: relative;
}

.desktop-nav a:hover {
    color: #FF7755;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #FF7755, #F95C00);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 20px;
    height: 15px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #353535;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background-color: #fff;
    padding: 1rem;
    width: 100%;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 1rem;
}

.mobile-nav a {
    color: #353535;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav a:hover {
    color: #FF7755;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 1.5rem;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: #FF7755;
    text-decoration: underline;
}

.cookie-content .btn-gradient {
    margin-top: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to right, rgba(53, 53, 53, 0.85), rgba(53, 53, 53, 0.7)), url('./img/FuFNpM.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 1s ease forwards;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* ===== ABOUT SECTION ===== */
.about {
    position: relative;
    overflow: hidden;
}

.about-title {
    text-align: center;
    margin-bottom: 2rem;
}

.about-title h2 {
    text-decoration: none;
}

.about-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-img {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: all 0.5s ease;
}

.about-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px rgba(0,0,0,0.15);
}

.about-text h2 {
    margin-bottom: 2rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    margin-bottom: 1rem;
    color: #353535;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages {
    background: linear-gradient(to bottom right, #F9F9F6, #fff);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, #FF7755, #F95C00);
    transition: all 0.5s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.advantage-card:hover::before {
    height: 100%;
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF7755;
    color: #fff;
    border-radius: 50%;
    font-size: 2rem;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.advantage-card:hover h3 {
    color: #FF7755;
}

/* ===== ORDER FORM SECTION ===== */
.order-form-section {
    position: relative;
    padding: 5rem 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #FF7755, #F95C00);
}

.form-header {
    padding: 2rem;
    text-align: center;
    background-color: #F9F9F6;
    border-bottom: 1px solid #ececec;
}

.form-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #353535;
}

.form-control {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 1px solid #DDDDDD;
    border-radius: 0.5rem;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #FF7755;
    box-shadow: 0 0 0 3px rgba(255, 119, 85, 0.2);
}

.checkbox-group {
    margin-top: 2rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-item input {
    margin-top: 5px;
    margin-right: 10px;
}

.checkbox-item label {
    font-weight: 400;
    font-size: 0.95rem;
}

.form-footer {
    padding: 1.5rem 2rem;
    background-color: #F9F9F6;
    border-top: 1px solid #ececec;
    text-align: center;
}

.form-footer .btn {
    padding: 1rem 3rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: #fff;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background-color: #F9F9F6;
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(255, 119, 85, 0.2);
    font-family: Georgia, serif;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    font-weight: 700;
    color: #353535;
}

.testimonial-position {
    color: #FF7755;
    font-size: 0.9rem;
}

/* ===== FAQ SECTION ===== */
.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.faq-question {
    background-color: #fff;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
}

.faq-question span {
    font-size: 1.5rem;
    color: #FF7755;
    transition: all 0.3s ease;
}

.faq-answer {
    background-color: #F9F9F6;
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-question {
    background-color: #FF7755;
    color: #fff;
}

.faq-item.active .faq-question h3 {
    color: #fff;
}

.faq-item.active .faq-question span {
    color: #fff;
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    position: relative;
    background-color: #fff;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-details strong {
    min-width: 100px;
    display: inline-block;
}

.contact-image {
    margin-top: 2rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

.contact-form {
    background-color: #F9F9F6;
    padding: 2rem;
    border-radius: 1rem;
}

.contact-form .form-group:last-child {
    margin-bottom: 0;
}

.contact-map {
    margin-top: 3rem;
    border-radius: 1rem;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FOOTER ===== */
footer {
    background-color: #353535;
    color: #fff;
    padding: 5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-contact h3, .footer-links h3, .footer-navigation h3 {
    color: #fff; /* Changed to white as requested */
}

.footer-contact ul, .footer-links ul, .footer-navigation ul {
    list-style: none;
}

.footer-contact li, .footer-links li, .footer-navigation li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer-navigation a {
    color: #ccc;
}

.footer-links a:hover, .footer-navigation a:hover {
    color: #FF7755;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== POLICY PAGES ===== */
.policy-page {
    padding: 5rem 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.policy-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #ececec;
}

.policy-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-right: 1rem;
}

.policy-title {
    flex-grow: 1;
}

.policy-title h1 {
    margin-bottom: 0.5rem;
}

.policy-date {
    color: #888;
    font-size: 0.9rem;
}

.policy-content h2 {
    margin-top: 2rem;
}

.policy-content ul, .policy-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ececec;
    font-size: 0.9rem;
    color: #888;
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background-color: #FF7755;
    color: #fff;
    font-size: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-img {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
    
    /* Make mobile header smaller */
    header {
        position: relative; /* Change from sticky to allow text to start immediately after header */
    }
    
    .header-content {
        padding: 0.5rem 0; /* Reduced padding for mobile */
    }
    
    .logo a {
        font-size: 1.5rem; /* Smaller logo text for mobile */
    }

    /* Add space between header and first block for mobile */
    .hero {
        padding: 4rem 0; /* Reduced padding after header */
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }
    
    .mobile-nav {
        max-height: 0;
        overflow: hidden;
    }
    
    .mobile-nav.active {
        max-height: 10px;
    }
    
    .mobile-nav a {
        font-size: 0;
        padding: 0;
        height: 0;
        visibility: hidden;
        margin: 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-bg {
        padding: 1.5rem;
    }

    .form-container {
        border-radius: 0.5rem;
    }

    .form-body,
    .form-header,
    .form-footer {
        padding: 1.5rem;
    }

    .policy-container {
        padding: 1.5rem;
    }

    .policy-header {
        flex-direction: column;
        text-align: center;
    }

    .policy-logo {
        margin-right: 0;
        margin-bottom: 1rem;
    }
} 