/* --- Custom Properties --- */
:root {
    --primary-color: #007bff; /* A professional blue */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --text-color: #212529;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* --- Global & Typography --- */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #fff;
    margin-bottom: 60px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

/* --- Navbar --- */
.navbar {
    transition: background-color 0.3s ease-in-out;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif; /* Apply Montserrat to the entire brand area */
    font-size: 1.8rem; /* Adjust base font size for the brand name */
    line-height: 1.2; /* Improve line spacing */
    display: flex; /* Use flexbox for better alignment of icon and text */
    align-items: center; /* Vertically align icon and text */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
}

.navbar-brand > i { /* Style for the Font Awesome icon */
    font-size: 1.5rem; /* Adjust icon size relative to text */
    line-height: 1; /* Align with text */
}

.navbar-brand span {
    /* Bootstrap's text-primary and fw-bold will handle "Derm" and "Imagem" styling */
    /* Montserrat font is applied from .navbar-brand */
}

.navbar-brand small {
    font-family: 'Roboto', sans-serif; /* Keep the small text in Roboto */
    font-size: 0.6em; /* Define size in CSS */
    font-weight: 400; /* Ensure it's not bold */
    color: var(--secondary-color) !important; /* Ensure it's muted */
    margin-top: 0.2rem; /* Small space between main brand and tagline */
    display: block; /* Ensure it takes its own line below the main brand */
    width: 100%; /* Make it take full width to ensure it's on a new line */
}

.navbar .btn-primary {
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-sm);
}


/* --- Hero Section (for Homepage) --- */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/imagem1.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    text-align: center;
    padding: clamp(4rem, 10vw, 8rem) 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* --- Cards --- */
.feature-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* Consolidated font-size rules - Bootstrap handles this by default */

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* --- Forms --- */
.form-container {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-sm);
}

/* --- Footer --- */
.footer {
    background-color: var(--dark-gray);
    color: rgba(255, 255, 255, 0.8);
}

.footer h5 {
    color: #fff;
    margin-bottom: 1rem;
}