/* ============================================
   Casa Sénior - Custom CSS
   Baseado no tema WordPress humanwelfare
   ============================================ */

/* --- Variables (cores do tema original) --- */
:root {
    --primary: #f89406;
    --primary-dark: #e07d00;
    --secondary: #f89d35;
    --text-dark: #333333;
    --text-body: #666666;
    --text-light: #999999;
    --bg-light: #f7f7f7;
    --bg-dark: #222222;
    --white: #ffffff;
    --border: #eeeeee;
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Lato', sans-serif;
}

/* --- Base --- */
body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

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

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

/* --- Header --- */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .navbar {
    padding: 0;
}

.logo-img {
    max-height: 60px;
    padding: 8px 0;
}

.navbar-nav .nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-dark);
    padding: 20px 15px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-nav .dropdown-menu {
    border: none;
    border-top: 3px solid var(--primary);
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 0;
    padding: 10px 0;
    min-width: 240px;
}

.navbar-nav .dropdown-item {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-body);
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Hero Banner --- */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    width: 100%;
    padding: 100px 0;
    background: rgba(0,0,0,0.55);
}

.hero-logo {
    max-height: 80px;
    border-radius: 8px;
}

.hero-title {
    color: var(--white);
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-top: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: var(--white);
    font-size: 20px;
    font-weight: 300;
    margin-top: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* --- Sections --- */
.section-title {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
}

.separator-img {
    max-width: 200px;
    margin: 10px auto;
    display: block;
}

/* --- Welcome --- */
.welcome-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
}

.welcome-closing {
    font-size: 20px;
    color: var(--primary);
    margin-top: 20px;
}

/* --- Area Cards --- */
.area-card {
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.area-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.area-icon i {
    font-size: 28px;
    color: var(--white);
}

.area-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.area-card h3 a {
    color: var(--text-dark);
}

.area-card h3 a:hover {
    color: var(--primary);
}

.area-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
}

.area-links li {
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}

.area-links li:last-child {
    border-bottom: none;
}

.area-links a {
    color: var(--text-body);
    font-size: 14px;
}

.area-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* --- Prémios --- */
.premio-card {
    background: var(--white);
    border-left: 4px solid var(--primary);
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: 100%;
}

.premio-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.premio-card ul {
    padding-left: 20px;
}

.premio-card li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --- Partners --- */
.partner-logo {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
}

/* --- Colaborações --- */
.colab-card {
    background: var(--white);
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%;
}

.colab-card h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.colab-card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* --- Logos Section --- */
.footer-logo {
    max-height: 60px;
    object-fit: contain;
}

.footer-logo-wide {
    max-height: 50px;
    max-width: 250px;
    object-fit: contain;
}

/* --- Page Title (sub-páginas) --- */
.page-title-section {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
}

.page-title-overlay {
    width: 100%;
    padding: 60px 0;
    background: rgba(0,0,0,0.6);
    text-align: center;
}

.page-title-section h1 {
    color: var(--white);
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.page-title-section .breadcrumb {
    background: none;
    margin: 0;
    padding: 0;
}

.page-title-section .breadcrumb-item,
.page-title-section .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.page-title-section .breadcrumb-item.active {
    color: var(--primary);
}

.page-title-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* --- Sidebar --- */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 3px solid var(--primary);
}

.sidebar-nav {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--border);
}

.sidebar-nav li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-nav li a:hover,
.sidebar-nav li.active a {
    color: var(--primary);
    background: rgba(248, 148, 6, 0.05);
    padding-left: 20px;
}

.sidebar-nav li.active a {
    font-weight: 700;
    border-left: 3px solid var(--primary);
}

/* --- Content Area --- */
.content-area {
    min-height: 400px;
}

.content-intro {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.content-block h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
}

.content-block ul {
    padding-left: 25px;
}

.content-block li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --- Footer --- */
.main-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-subtitle {
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
    margin-right: 8px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
}

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

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    padding: 5px 0;
}

.footer-links li a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.newsletter-form .form-control {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-size: 14px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255,255,255,0.5);
}

.newsletter-form .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.newsletter-form .btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
}

/* --- Error Pages --- */
.error-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

.error-section .display-1 {
    font-size: 120px;
    font-weight: 900;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 10px 25px;
    border-radius: 3px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

/* --- Alert --- */
.alert-info {
    background: rgba(248, 148, 6, 0.08);
    border: 1px solid rgba(248, 148, 6, 0.2);
    color: var(--text-body);
    border-radius: 6px;
}

.alert-info i {
    color: var(--primary);
    margin-right: 8px;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-banner {
        min-height: 350px;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
    }

    .page-title-section h1 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .partner-logo {
        max-height: 50px;
    }
}
