/* 
 * ContaFácil - Serviços de Contabilidade em Lisboa
 * Main stylesheet
 */

/* ===== Variables ===== */
:root {
    /* Colors */
    --color-bg-start: #B2B377;
    --color-bg-end: #D6CDEA;
    --color-accent1: #3E5C76;
    --color-accent2: #FF4081;
    --color-text: #2E2E2E;
    --color-text-light: #FFFFFF;
    --color-card1: #7FFFD4;
    --color-card2: #FF7F50;
    --color-card3: #FFFACD;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Box Shadow */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* This prevents the header from overlapping titles when using anchor links */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-end)) fixed;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-sm);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--color-accent1);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent2);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: var(--space-lg) 0;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent1);
    color: var(--color-text-light);
}

.btn-primary:hover {
    background-color: #2d4459;
    color: var(--color-text-light);
}

.btn-accent {
    background-color: var(--color-accent2);
    color: var(--color-text-light);
}

.btn-accent:hover {
    background-color: #e03070;
    color: var(--color-text-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-accent2);
    margin: var(--space-xs) auto 0;
    border-radius: var(--radius-sm);
}

/* ===== Header ===== */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    height: 80px;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo a {
    display: block;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent1);
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

nav a {
    font-weight: 500;
    padding: var(--space-xs) 0;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent2);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--color-accent1);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('./img/jnSJel.jpg');
    text-align: center;
}

.hero .container {
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ===== About Section ===== */
.about {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ===== Benefits Section ===== */
.benefits-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent1);
    color: var(--color-text-light);
    border-radius: 50%;
    font-size: 1.8rem;
}

/* ===== Services Section ===== */
.services {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('./img/JF4VLt.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: var(--space-xl) 0;
}

.services-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-item {
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--color-accent2);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-item:nth-child(1) {
    background-color: var(--color-card1);
}

.service-item:nth-child(2) {
    background-color: var(--color-card2);
}

.service-item:nth-child(3) {
    background-color: var(--color-card3);
}

.service-item h3 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    color: var(--color-accent1);
    text-align: center;
}

.service-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin: var(--space-sm) 0;
    color: var(--color-accent1);
    text-align: center;
}

.service-features {
    margin: var(--space-md) 0;
    padding-left: 1.5rem;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: var(--space-xs);
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: -1.2rem;
    color: var(--color-accent1);
    font-weight: bold;
}

.service-item .btn {
    width: 100%;
    margin-top: auto;
}

/* ===== Contact Form ===== */
.contact {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    background-image: linear-gradient(135deg, rgba(62, 92, 118, 0.05), rgba(255, 64, 129, 0.05));
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--color-accent1);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent1);
    box-shadow: 0 0 0 2px rgba(62, 92, 118, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
    background-color: rgba(255, 255, 255, 0.7);
    padding: var(--space-xs);
    border-radius: var(--radius-sm);
}

.form-check input {
    margin-top: 0.3rem;
    margin-right: var(--space-xs);
    transform: scale(1.2);
}

.form-check label {
    font-size: 0.9rem;
}

.contact-form .btn {
    width: 100%;
    padding: var(--space-sm) 0;
    font-size: 1.1rem;
    margin-top: var(--space-sm);
}

/* ===== Testimonials ===== */
.testimonials {
    position: relative;
    padding: var(--space-md) 0;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(178, 179, 119, 0.2), transparent);
    z-index: -1;
}

.testimonials-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-sm);
}

.testimonial-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    box-shadow: var(--shadow-sm);
    max-width: 300px;
    margin: 0 auto;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: var(--space-xs);
    position: relative;
    font-size: 0.85rem;
    line-height: 1.4;
}

.testimonial-content::before {
    content: "";
    font-size: 3rem;
    position: absolute;
    left: -5px;
    top: -20px;
    opacity: 0.15;
    color: var(--color-accent1);
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.8rem;
    text-align: right;
    color: var(--color-accent1);
}

/* Client Images */
.clients-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.client-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 250px;
}

.client-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.client-image:hover img {
    transform: scale(1.05);
}

/* ===== Footer ===== */
footer {
    background-color: var(--color-accent1);
    color: var(--color-text-light);
    padding-top: var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-desc {
    margin-top: var(--space-sm);
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-contact address {
    font-style: normal;
    font-size: 0.95rem;
}

.footer-contact p {
    margin-bottom: var(--space-xs);
}

.footer-contact a {
    color: var(--color-text-light);
    text-decoration: underline;
    opacity: 0.9;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--color-text-light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--color-text-light);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(46, 46, 46, 0.95);
    color: var(--color-text-light);
    padding: var(--space-md);
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: bottom 0.5s ease;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    flex: 1;
    margin-right: var(--space-md);
    min-width: 200px;
}

.cookie-content a {
    color: var(--color-accent2);
}

/* ===== Policy Pages ===== */
.policy-page {
    background-color: rgba(255, 255, 255, 0.95);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
}

.policy-page h1 {
    margin-bottom: var(--space-md);
}

.policy-page h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.policy-page p, .policy-page ul, .policy-page ol {
    margin-bottom: var(--space-md);
}

.policy-page ul, .policy-page ol {
    padding-left: 2rem;
}

/* ===== Thanks Page ===== */
.thanks-page {
    text-align: center;
    padding: var(--space-xl) 0;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--color-accent2);
    margin-bottom: var(--space-md);
}

/* Feature Image */
.feature-image {
    padding: var(--space-md) 0;
}

.feature-image .container {
    max-width: 800px;
}

.feature-image img {
    width: 100%;
    max-height: 400px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform 0.5s ease;
    object-fit: cover;
}

.feature-image img:hover {
    transform: scale(1.02);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .feature-image .container {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        padding: var(--space-lg) var(--space-md);
        z-index: 1001;
    }
    
    nav.open {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .services-items, 
    .benefits-items, 
    .testimonials-items,
    .clients-images {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-image .container {
        max-width: 450px;
    }
    
    .feature-image img {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    section {
        padding: var(--space-md) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact, 
    .about, 
    .policy-page {
        padding: var(--space-md);
    }
    
    .feature-image .container {
        max-width: 350px;
    }
    
    .feature-image img {
        max-height: 250px;
    }
} 