:root {
    /* Brand Colors */
    --brand-pine-teal: #1b4332;
    --brand-emerald: #2dcc70;
    --brand-amber-gold: #ffbf00;
    --brand-orange: #fb8500;
    --brand-off-white: rgb(255 249 236 / 42%);

    /* Semantic Mappings */
    --primary: var(--brand-pine-teal);
    --secondary: var(--brand-emerald);
    --accent: var(--brand-amber-gold);
    --warning: var(--brand-orange);
    --bg-main: var(--brand-off-white);
    
    /* Text Colors */
    --text-dark: #0f261c;
    --text-light: #ffffff;

    --max-width: 1024px;
}

html,
body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
}

.nav-link.active {
    color: var(--brand-emerald) !important; 
    border-bottom: 2px solid var(--brand-emerald);
    font-weight: 700;
}

.nav-link:hover:not(.active) {
    color: var(--brand-pine-teal);
    border-bottom: 2px solid var(--brand-amber-gold);
}

.user-greeting {
    border-left: 1px solid #dee2e6;
    padding-left: 1rem;
}

/* Comportamiento Base (Móvil) */
.nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    position: absolute;
    top: 70px; /* Ajustar a la altura de tu header */
    left: 0;
    z-index: 1000;
}

.nav-list.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.nav-list.expanded {
    max-height: 400px; /* Suficiente para todos los links */
    opacity: 1;
    padding: 1rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-link {
    padding: 1.2rem 2rem;
    width: 100%;
    text-align: left;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

/* Efecto al estar activo en modo lista */
.nav-link.active {
    background-color: var(--brand-off-white);
    color: var(--brand-emerald) !important;
    border-left-color: var(--brand-emerald);
}

/* Adaptación para Escritorio (Desktop) */
@media (min-width: 992px) {
    .menu-trigger {
        display: none;
    }

    .nav-list {
        position: static;
        flex-direction: row;
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: auto;
        background: transparent;
        box-shadow: none;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .nav-link.active {
        background-color: transparent;
        border-bottom-color: var(--brand-emerald);
    }
}

/* Comportamiento Base (Móvil) */
.nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    position: absolute;
    top: 70px; /* Ajustar a la altura de tu header */
    left: 0;
    z-index: 1000;
}

.nav-list.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.nav-list.expanded {
    max-height: 400px; /* Suficiente para todos los links */
    opacity: 1;
    padding: 1rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-link {
    padding: 1.2rem 2rem;
    width: 100%;
    text-align: left;
    border-left: 4px solid transparent;
    transition: all 0.2s;
}

/* Efecto al estar activo en modo lista */
.nav-link.active {
    background-color: var(--brand-off-white);
    color: var(--brand-emerald) !important;
    border-left-color: var(--brand-emerald);
}

/* Adaptación para Escritorio (Desktop) */
@media (min-width: 992px) {
    .menu-trigger {
        display: none;
    }

    .nav-list {
        position: static;
        flex-direction: row;
        max-height: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: auto;
        background: transparent;
        box-shadow: none;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .nav-link.active {
        background-color: transparent;
        border-bottom-color: var(--brand-emerald);
    }
}

.menu-trigger {
    background: transparent;
    border: none;
    color: var(--brand-pine-teal); 
    font-size: 1.8rem; 
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.menu-trigger:active {
    transform: scale(0.9);
}

.menu-trigger:focus {
    outline: none;
    box-shadow: none;
}

header.top-row {
    position: sticky;
    top: 0;
    z-index: 1050; /* Por encima de todo el contenido */
}

/* Estado base del menú en móvil */
.nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 100%; /* Se posiciona justo debajo del header */
    left: 0;
    z-index: 1040;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease;
}

/* El menú debe estar oculto por defecto */
.nav-list.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
    border: none;
}

/* Esta es la clase que Blazor activa al hacer clic */
.nav-list.expanded {
    max-height: 500px !important; /* Altura suficiente para los links */
    opacity: 1 !important;
    pointer-events: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--brand-orange);
    padding: 1rem 0;
}

/* Ajuste en app.css */

/* Asegurar que el contenedor padre tenga posición relativa para el menú absoluto */
header.top-row {
    position: sticky;
    top: 0;
    z-index: 1050; /* Por encima de todo el contenido */
}

/* Estado base del menú en móvil */
.nav-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background-color: #ffffff;
    position: absolute;
    top: 100%; /* Se posiciona justo debajo del header */
    left: 0;
    z-index: 1040;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.2s ease;
}

/* El menú debe estar oculto por defecto */
.nav-list.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    pointer-events: none;
    border: none;
}

/* Esta es la clase que Blazor activa al hacer clic */
.nav-list.expanded {
    max-height: 500px !important; /* Altura suficiente para los links */
    opacity: 1 !important;
    pointer-events: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-bottom: 2px solid var(--brand-orange);
    padding: 1rem 0;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px; 
}

.brand-text {
    display: flex;
    flex-direction: column; 
    line-height: 1.1;
    font-weight: 700;
    color: var(--brand-pine-teal);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.brand-text .line-2 {
    color: var(--brand-emerald); 
}

/* --- RESPONSIVE DESIGN (BRANDING) --- */

@media (max-width: 640px) {
    .brand-text {
        display: none; 
    }
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header > .container-centered {
    padding: 1.5rem 1rem;
}

h1 {
    text-align: center;
}

.top-row {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);

    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.container-centered {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.content {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1.5rem; 
}

.top-row-left {
    flex: 1; 
    display: flex;
    align-items: center;
}

.brand-link:hover {
    filter: brightness(1.1);
    transition: 0.2s;
}


.brand-text .line-1 {
    color: var(--brand-pine-teal);
}

.brand-text .line-2 {
    color: var(--brand-orange); 
}

.top-row ::deep .nav-link {
    color: var(--brand-pine-teal); 
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 1rem;
    transition: all 0.2s ease;
    position: relative;
}

.top-row ::deep .nav-link:hover {
    color: var(--brand-orange);
    text-decoration: none;
}

.top-row ::deep .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-orange);
}

.signin-link.btn-outline-primary {
    border-color: var(--brand-orange) !important;
    color: var(--brand-orange) !important;
    font-weight: 700;
    border-radius: 50px; 
    padding: 0.5rem 1.5rem;
}

.signin-link.btn-outline-primary:hover {
    background-color: var(--brand-orange) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(251, 133, 0, 0.3);
}


/* HOME */

.hero-split {
    padding: 0 0;
    min-height: calc(100vh - var(--header-height));
}

.hero-text-section h1 {
    color: var(--brand-pine-teal);
    line-height: 1.2;
    text-align: left; 
}

.text-highlight {
    color: var(--brand-orange);
}

.hero-text-section p, .mission-text p {
    color: #4b5563;
    font-size: 1.2rem;
}

.selector-wrapper {
    max-width: 500px; 
}

.hero-image {
  mix-blend-mode: multiply;
  filter: contrast(120%) brightness(90%);
}

.rounded-custom {
    border-radius: 30px; 
}

@media (max-width: 991px) {
    .hero-text-section h1 {
        text-align: center;
        font-size: 2.5rem;
    }
    .hero-text-section p {
        text-align: center;
    }
    .selector-wrapper {
        margin: 0 auto;
    }
    .hero-split {
        padding: 2rem 0;
    }
}

/* END HOME */

/* --- HERO ANIMATIONS --- */

.appearing-image {
    opacity: 0; 
    animation: fadeInIntro 1s ease-out forwards;
    animation-delay: 0.3s; 
    transition: transform 0.1s ease-out; 
}

@keyframes fadeInIntro {
    to {
        opacity: 1;
        transform: translateY(0); 
    }
}

/* END HERO ANIMATIONS */

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.nav-container {
    padding: 1.5rem 1rem;
}

.nav-header h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.4rem;
}

.nav-header p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-menu a,
.pets-menu span {
    padding: 10px 12px;
    text-decoration: none;
    color: #111827;
    border-radius: 8px;
    cursor: pointer;
    display: block;
}

.nav-menu a:hover,
.pets-menu span:hover {
    background-color: #f3f4f6;
}

.nav-menu a.active {
    background-color: #e5e7eb;
    font-weight: 600;
}

.pets-list {
    display: none;
    flex-direction: column;
    margin-left: 15px;
}

.pets-menu:hover .pets-list {
    display: flex;
}

.home-hero {
    text-align: center;
    padding: 2rem 1rem 3rem 1rem;
}

.home-hero h1 {
    margin-bottom: 0.75rem;
    font-size: 2.5rem;
}

.home-hero p {
    margin: 0 auto;
    max-width: 650px;
    font-size: 1.1rem;
    color: #4b5563;
}

.home-categories h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

.pets-grid,
.shelter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    justify-items: center;


    .pet-card,
    .shelter-card {
        display: block;
        text-decoration: none;
        color: inherit;
        background-color: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        padding: 1.5rem;
        text-align: center;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
        max-width: 250px;

        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        }

        h3 {
            margin: 0.5rem 0;
            font-size: 1.25rem;
        }

        p {
            margin: 0;
            color: #6b7280;
            font-size: 0.95rem;
        }

        .pet-image-container {
            width: 100%;
            max-width: 150px;
            margin: 0 auto 15px auto;
    
            img {
                width: 100%;
                height: auto;
                border-radius: 12px;
            }
        }    
    }
}

.pet-filters,
.shelter-filters {
    display: flex;
    flex-flow: wrap;
    margin-top: 1rem;
    justify-content: center;
    gap: 0.5rem;

    a {
        padding: 0.5rem 2rem;
        text-decoration: none;
        background-color: white;
        border: 1px solid black;
        border-radius: 1rem;
        color: black;
    }
}

.pets-container,
.shelters-container {
    margin: 1rem;
    padding: 1rem;
}

.pet-details {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
}

.pet-details-image {
    width: 100%;
    max-width: 500px;
    border-radius: 16px;
    margin: 0 auto 20px auto;
    display: block;
}

.pet-help-box {
    margin-top: 2rem;
    padding: 1.25rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.signin-button {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.75rem 1.25rem;
    background-color: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
}

.signin-button:hover {
    background-color: #1d4ed8;
}

.help-buttons {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-button {
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    border: none;
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.help-button:hover {
    background-color: #1d4ed8;
}

.about-page {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 2rem;
    line-height: 1.7;
}

.about-page h1 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.about-page p {
    margin-bottom: 1rem;
    color: #4b5563;
}

.about-text {
    max-width: 800px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

input.invalid,
select.invalid {
    border: 2px solid red;
}

.validation-message {
    color: red;
    size: 10px;
}

.energy-picker {
    display: flex;
    gap: 6px;
}

.energy-icon {
    font-size: 1.8rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.energy-icon.empty {
    opacity: 0.2;
}

.energy-icon.filled {
    opacity: 1;
}

/* Card layout for each pet */
.pet-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Pet image inside each card */
.pet-image-container img {
    width: 100%;
    max-width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* About Me button styling */
.about-button {
    margin-top: 12px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background-color: #6c63ff;
    color: white;
    cursor: pointer;
    font-weight: 600;
}

.about-button:hover {
    opacity: 0.9;
}

/* Dark overlay behind the modal */
.modal-backdrop-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 999;
}

/* Modal wrapper */
.pet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Modal content box */
.pet-modal-content {
    position: relative;
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Modal image styling */
.pet-modal-image-container img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Close button in modal */
.modal-close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

/* About Us */
.about-hero {
    background: linear-gradient(135deg, #fff7f2 0%, #ffe9dc 100%);
    padding: 5rem 1.5rem 4rem;
}

.about-hero-content {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.form-check-input,
input[type="checkbox"] {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    cursor: pointer;
}

.accessible-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin-bottom: 0.5rem;
}

.form-check-label {
    cursor: pointer;
    line-height: 1.4;
}

.form-control,
select,
textarea,
input[type="file"] {
    min-height: 44px;
}

.about-tag,
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a3f1d;
    margin-bottom: 0.75rem;
}

.about-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #222;
}

.about-lead {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-section {
    padding: 4rem 1.5rem;
}

.alt-section {
    background-color: #fafafa;
}

.about-grid {
    max-width: 1150px;
    margin: 0 auto;
    gap: 2rem;
}

.two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.about-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
} 

.about-card h2,
.about-section h2,
.team-wrapper h2,
.about-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #222;
}

.about-card p,
.about-section p,
.about-cta p,
.team-intro {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
}

.feature-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    padding: 1.25rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item h3 {
    margin-bottom: 0.5rem;
    color: #222;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.highlight-card {
    background: linear-gradient(135deg, #fffaf7 0%, #fff 100%);
}

.values-list {
    padding-left: 1.2rem;
    margin: 0;
}

.values-list li {
    margin-bottom: 0.9rem;
    color: #555;
    line-height: 1.7;
}

.team-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    text-align: center;
}

.team-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.team-member {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1rem;
    font-weight: 600;
    color: #333;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeUp 0.6s ease forwards;
}

.about-cta {
    padding: 4.5rem 1.5rem 5rem;
    background: linear-gradient(135deg, #ffefe5 0%, #fff8f4 100%);
}

.about-cta-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.team-member:nth-child(1) { animation-delay: 0.1s; }
.team-member:nth-child(2) { animation-delay: 0.2s; }
.team-member:nth-child(3) { animation-delay: 0.3s; }
.team-member:nth-child(4) { animation-delay: 0.4s; }
.team-member:nth-child(5) { animation-delay: 0.5s; }
.team-member:nth-child(6) { animation-delay: 0.6s; }
.team-member:nth-child(7) { animation-delay: 0.7s; }
.team-member:nth-child(8) { animation-delay: 0.8s; }

.feature-item,
.team-member {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active .feature-item:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal.active .feature-item:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal.active .feature-item:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal.active .feature-item:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

.reveal.active .team-member:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
.reveal.active .team-member:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .two-column {
        grid-template-columns: 1fr;
    }

    .feature-panel {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .about-hero {
        padding: 4rem 1rem 3rem;
    }

    .about-section,
    .about-cta {
        padding: 3rem 1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Us */

.contact-hero {
    background: linear-gradient(135deg, #fff7f2 0%, #ffe9dc 100%);
    padding: 5rem 1.5rem 4rem;
}

.contact-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-tag,
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a3f1d; /* fixed contrast */
    margin-bottom: 0.8rem;
}

.contact-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    color: #222;
}

.contact-lead {
    max-width: 720px;
    margin: 0 auto;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-section {
    padding: 4rem 1.5rem;
}

.contact-grid {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-info-card:hover,
.contact-form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.contact-info-card h2,
.contact-form-card h2 {
    margin-bottom: 1rem;
    color: #222;
}

.contact-info-card p,
.contact-form-card p {
    color: #555;
    line-height: 1.7;
}

.contact-details {
    margin-top: 1.5rem;
    display: grid;
    gap: 1rem;
}

.contact-item h3 {
    margin-bottom: 0.3rem;
    color: #222;
    font-size: 1rem;
}


.contact-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.submit-btn {
    padding: 0.9rem 1.6rem;
    border: none;
    border-radius: 999px;
    background: #c65d2e;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.submit-btn:hover {
    background: #a94d25;
    transform: translateY(-2px);
}

.secondary-btn {
    padding: 0.9rem 1.6rem;
    border: 1px solid #c65d2e;
    border-radius: 999px;
    background: transparent;
    color: #c65d2e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.secondary-btn:hover {
    background: #fff3ec;
    transform: translateY(-2px);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.topic-card {
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 1rem;
    cursor: pointer;
    background: #fff;
    transition: all 0.25s ease;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.topic-card.selected {
    border-color: #c65d2e;
    background: #fff7f2;
}

.topic-display {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #eee;
}


.faq-section {
    padding-top: 0;
}

.faq-wrapper {
    max-width: 950px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.2rem;
    background: #fff;
    border: none;
    font-weight: 600;
    color: #222;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.2rem 1rem;
    color: #555;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-hero {
        padding: 4rem 1rem 3rem;
    }

    .contact-section {
        padding: 3rem 1rem;
    }

    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
}

.management-options {
    display: flex;
    flex-direction: column;
    text-align: center;
    

    .management-link {
        margin: 1rem;
        padding: 1rem;
        font-size: 1.2rem;
        text-decoration: none;
        color: black;
        background-color: white;
        width: 100%;
        max-width: 320px;
        border: 1px solid black;
        align-self: center;
    }
}

.management-link-back {
    margin: 1rem;
    padding: 0.2rem;
    font-size: 1.2rem;
    text-decoration: none;
    color: black;
    background-color: white;
    width: 100%;
    max-width: 320px;
    border: 1px solid black;
}

.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
a.footer-nav-link {
    color: #ffbf00 !important;
    font-weight: 600;
    text-decoration: none;
}