/* ============================================
   VARIÁVEIS E RESET - IDENTIDADE PORTA PIEMONTE
   ============================================ */

:root {
    /* Cores Principais - Identidade Porta Piemonte */
    --primary-color: #8B6F47;           /* Marrom/Terracota do logo */
    --primary-light: #A0845C;           /* Marrom mais claro */
    --secondary-color: #7CB342;         /* Verde das colinas */
    --accent-color: #F4D03F;            /* Amarelo/Ouro destaque */
    --accent-light: #FFE680;            /* Amarelo mais claro */
    --highlight-color: #E74C3C;         /* Rosa/Vermelho para destaques */
    --blue-accent: #4A90E2;             /* Azul para botões secundários */
    --background: #FFFEF9;              /* Bege/Creme do logo */
    --foreground: #2C3E50;              /* Cinza escuro para texto */
    --muted: #F5F3F0;                   /* Fundo claro */
    --muted-foreground: #666666;        /* Texto secundário */
    --border: #D4C5B9;                  /* Borda suave */
    --gold: #8B6F47;                    /* Ouro/Marrom */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    color: var(--foreground);
}

h2 {
    font-size: 2.5rem;
    color: var(--foreground);
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

p {
    color: var(--muted-foreground);
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    border-bottom: 2px solid var(--border);
    background-color: var(--background);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon img {
    max-width: 100%;
    height: auto;
}

.navbar-nav .nav-link {
    color: var(--foreground) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.25rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--secondary-color) 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.08)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.hero-section img {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.8s ease-out;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--foreground);
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.btn-primary:hover {
    background-color: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--foreground);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 208, 63, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 80px 0;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    border-radius: 2px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.75rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   ROUTE TIMELINE
   ============================================ */

.route-timeline {
    position: relative;
    padding: 2rem 0;
}

.route-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-color), var(--secondary-color));
}

.route-item {
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

.route-item:nth-child(odd) {
    flex-direction: row;
}

.route-item:nth-child(even) {
    flex-direction: row-reverse;
}

.route-marker {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 111, 71, 0.3);
    border: 3px solid white;
}

.route-content {
    flex: 1;
    background: white;
    border: 2px dashed var(--highlight-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.route-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.route-content p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .route-timeline::before {
        left: 20px;
    }

    .route-item {
        flex-direction: column !important;
        margin-left: 100px;
    }

    .route-marker {
        position: absolute;
        left: -10px;
    }
}



/* --- Route phases (Outbound / Return) --- */

.route-phase {
    position: relative;
    padding: 1.25rem 0 0.25rem 0;
}

.route-phase-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.25rem 0;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: white;
    background: linear-gradient(135deg, rgba(0,0,0,0.18), rgba(0,0,0,0.05));
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.route-item--outbound .route-content {
    border-color: var(--highlight-color);
}

.route-item--return .route-content {
    border-color: var(--secondary-color);
}

.route-item--return .route-marker {
    background: linear-gradient(135deg, var(--secondary-color), var(--blue-accent));
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.25);
}

/* Improve mobile alignment for route marker */
@media (max-width: 768px) {
    .route-item {
        position: relative;
    }
    .route-marker {
        left: -80px;
    }
}


/* ============================================
   HIGHLIGHT CARDS
   ============================================ */

.highlight-card {
    background: white;
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

.highlight-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--highlight-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    right: 20px;
}

.highlight-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.highlight-card p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   BOOKING FORM
   ============================================ */

.booking-form {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-form .form-label {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.booking-form .form-control,
.booking-form .form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(244, 208, 63, 0.25);
}

.booking-form .form-check-input {
    border: 2px solid var(--border);
    width: 1.25em;
    height: 1.25em;
    border-radius: 4px;
}

.booking-form .form-check-input:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ============================================
   INFO BOX
   ============================================ */

.info-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.info-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: var(--foreground);
    color: white;
}

footer h5 {
    color: var(--accent-color);
    font-size: 1.1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

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

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.service-card,
.highlight-card,
.info-box {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section .row {
        flex-direction: column-reverse;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }

    .booking-form {
        padding: 2rem;
    }

    section {
        padding: 40px 0;
    }

    .service-card,
    .highlight-card,
    .info-box {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .brand-icon {
        width: 35px;
        height: 35px;
    }

    .btn-primary,
    .btn-outline-light {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .booking-form {
        padding: 1.5rem;
    }

    section {
        padding: 30px 0;
    }

    .route-item {
        margin-left: 80px !important;
    }

    .route-marker {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.img-fluid {
    max-width: 100%;
    height: auto;
}

.rounded-lg {
    border-radius: 12px;
}

.shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5);
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

.list-unstyled li {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.list-unstyled li::before {
    content: '✓ ';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* ============================================
   BG LIGHT
   ============================================ */

.bg-light {
    background-color: var(--muted) !important;
}
