/* Algarve Property Guidebooks - Business Card Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0c4a6e;
    --primary-light: #0369a1;
    --accent: #c9a227;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --whatsapp: #25D366;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 600px;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.tagline {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 500;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.sub-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.price-tag {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Work Section */
.work {
    padding: 5rem 0;
    background: var(--white);
}

.work h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 3rem;
    font-weight: 600;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

.work-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.work-item h3 {
    font-size: 1.1rem;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.work-item p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--gray-50);
    text-align: center;
}

.about h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about p {
    max-width: 600px;
    margin: 0 auto 1rem;
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.about .highlight {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: var(--white);
    text-align: center;
}

.contact h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact > .container > p {
    color: var(--gray-500);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--whatsapp);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #1da855;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* About Page Hero */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.about-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Page Content */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.about-content h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-weight: 600;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 12px;
}

.value-item h3 {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    background: var(--gray-50);
    padding: 5rem 2rem;
    text-align: center;
}

.cta h2 {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cta p {
    color: var(--gray-500);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(12, 74, 110, 0.3);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 74, 110, 0.4);
}

/* Contact Page Hero */
.contact-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 5rem 2rem;
    text-align: center;
}

.contact-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.contact-details .icon {
    font-size: 1.25rem;
}

/* Contact Form */
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-400);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(12, 74, 110, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    align-self: flex-start;
}

/* Footer (extended) */
footer {
    padding: 2rem;
    background: var(--primary);
    text-align: center;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 3rem 1.5rem;
    }

    .hero-logo {
        height: 90px;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 400px;
        margin: 0 auto;
    }

    .work, .about, .contact {
        padding: 3.5rem 0;
    }

    .work h2, .about h2, .contact h2 {
        font-size: 1.5rem;
    }

    .about p {
        font-size: 1rem;
    }

    /* Navigation responsive */
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.25rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Page heroes responsive */
    .about-hero,
    .contact-hero {
        padding: 3.5rem 1.5rem;
    }

    .about-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }

    .about-hero p,
    .contact-hero p {
        font-size: 1.1rem;
    }

    /* About content responsive */
    .about-content {
        padding: 3rem 1.5rem;
    }

    .about-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-item {
        padding: 1.5rem;
    }

    /* CTA responsive */
    .cta {
        padding: 3.5rem 1.5rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    /* Contact section responsive */
    .contact-section {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 1.5rem;
    }

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

    .contact-details {
        display: inline-block;
        text-align: left;
    }

    .contact-form .btn {
        align-self: stretch;
    }

    /* Footer responsive */
    .footer-links {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
}
