/* Algarve Property Guidebooks — Kit-Inspired Editorial */

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

:root {
    --warm-white: #FAF9F6;
    --warm-bg: #F5F4F0;
    --dark: #1C1C1C;
    --dark-soft: #2A2A2A;
    --text: #1C1C1C;
    --text-secondary: #555;
    --text-tertiary: #888;
    --blue: #0EA5E9;
    --blue-deep: #0284C7;
    --blue-light: #BAE6FD;
    --white: #ffffff;
    --border: #E8E6E1;
    --whatsapp: #25D366;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ─── Navigation ─── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2.5rem;
    background: var(--warm-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    background: var(--blue) !important;
    color: var(--white) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 999px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    transition: background 0.2s ease !important;
}

.nav-cta:hover {
    background: var(--blue-deep) !important;
}

/* ─── Hero ─── */
.hero {
    text-align: center;
    padding: 5rem 2rem 0;
    background: var(--warm-white);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    padding-bottom: 3.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 0.98;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--blue);
    color: var(--white);
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hero-cta:hover {
    background: var(--blue-deep);
}

/* Showcase Carousel */
.hero-showcase {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.showcase-window {
    position: relative;
    border-radius: 12px;
    border: 4px solid var(--blue-light);
    overflow: hidden;
    background: var(--dark);
    aspect-ratio: 16 / 9;
}

.showcase-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.showcase-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.showcase-slide.active {
    opacity: 1;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}

.carousel-dot.active {
    background: var(--blue);
}

.carousel-dot:hover {
    background: var(--text-tertiary);
}

/* ─── Section Fade Divider ─── */
.section-fade {
    height: 80px;
    background: linear-gradient(var(--warm-white), var(--white));
}

.section-fade-dark {
    height: 80px;
    background: linear-gradient(var(--white), var(--dark));
}

.section-fade-dark-out {
    height: 80px;
    background: linear-gradient(var(--dark), var(--warm-bg));
}

/* ─── Services ─── */
.services {
    padding: 5rem 0 6rem;
    background: var(--white);
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.services-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.service-main {
    background: var(--warm-white);
    border-radius: 12px;
    padding: 3rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.price-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.price-original {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-decoration: line-through;
    line-height: 1;
}

.service-main .price {
    font-size: 3.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.04em;
    line-height: 1;
}

.service-main .price-note {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.price-urgency {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 600;
    text-align: center;
}

.service-list {
    list-style: none;
    flex: 1;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
}

.service-list .check {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.service-extras {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.service-extra {
    padding: 2rem;
    background: var(--warm-white);
    border-radius: 12px;
    border: 1px solid var(--border);
    flex: 1;
}

.service-extra h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.service-extra p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ─── About Strip (Dark) ─── */
.about-strip {
    padding: 6rem 0;
    background: var(--dark);
    text-align: center;
}

.about-strip h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.about-strip p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    max-width: 580px;
    margin: 0 auto;
}

/* ─── Contact ─── */
.contact {
    padding: 6rem 0;
    background: var(--warm-bg);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.contact-info > p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.contact-info .btn-whatsapp {
    margin-bottom: 1.25rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    background: var(--white);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s ease;
    border: 1px solid var(--border);
}

.contact-method:hover {
    border-color: var(--blue);
}

.contact-method-static {
    cursor: default;
}

.contact-method-static:hover {
    border-color: var(--border);
}

.contact-method svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-method .method-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-method .method-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.75rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--white);
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
}

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

/* ─── Buttons ─── */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-deep);
}

/* ─── Footer ─── */
footer {
    padding: 3rem 2.5rem;
    background: var(--dark);
    text-align: center;
    border-top: 1px solid var(--dark-soft);
}

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

footer a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ─── Page Hero (subpages) ─── */
.page-hero {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--warm-bg);
}

.page-hero h1 {
    color: var(--text);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ─── About Page ─── */
.about-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.about-content h2 {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    margin-top: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.0;
}

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

.about-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

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

.value-item {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.value-item h3 {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.65;
}

/* ─── Team Section ─── */
.team-section {
    padding: 5rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.team-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.team-container h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.0;
}

.team-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    text-align: center;
}

.team-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 1.25rem;
    border: 3px solid var(--border);
}

.team-member h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.team-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    text-align: left;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .team-member p {
        text-align: center;
    }
}

/* ─── CTA ─── */
.cta {
    background: var(--dark);
    padding: 5.5rem 2rem;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.0;
}

.cta p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-bottom: 2.25rem;
}

.btn-sand {
    background: var(--blue);
    color: var(--white);
    border-radius: 999px;
}

.btn-sand:hover {
    background: var(--blue-deep);
}

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

.contact-section .contact-info h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-section .contact-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

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

.contact-details li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--whatsapp);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-whatsapp:hover {
    background: #1da855;
}

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

.contact-section .contact-form h2 {
    font-size: 1.75rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.contact-section .contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

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

/* ─── Divider (legacy) ─── */
.divider {
    border: none;
    margin: 0;
}

/* ─── Mobile toggle ─── */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 1px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .navbar .logo img {
        height: 64px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--warm-white);
        flex-direction: column;
        padding: 1rem 2rem 1.25rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
        padding-top: 0.85rem;
    }

    .nav-cta {
        text-align: center;
        display: block;
    }

    .hero {
        padding: 3.5rem 1.5rem 0;
    }

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

    .hero-content {
        padding-bottom: 2.5rem;
    }

    .hero-showcase {
        padding: 0 0.5rem 3rem;
    }

    .showcase-window {
        border-width: 3px;
        border-radius: 10px;
    }

    .section-fade,
    .section-fade-dark,
    .section-fade-dark-out {
        height: 50px;
    }

    .services {
        padding: 4rem 0 4.5rem;
    }

    .services-header h2 {
        font-size: 1.75rem;
    }

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

    .about-strip {
        padding: 4.5rem 0;
    }

    .about-strip h2 {
        font-size: 1.75rem;
    }

    .contact {
        padding: 4.5rem 0;
    }

    .contact-info h2 {
        font-size: 1.75rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3.5rem 1.5rem;
    }

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

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

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

    .page-hero {
        padding: 4.5rem 1.5rem;
    }

    .page-hero h1 {
        font-size: 1.75rem;
    }

    .about-content {
        padding: 3.5rem 1.5rem;
    }

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

    .cta {
        padding: 4rem 1.5rem;
    }
}
