/* ====== MobileNotary - Professional Legal Theme ====== */

:root {
    --navy: #1B2A4A;
    --navy-light: #243B5E;
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --cream: #F8F7F4;
    --charcoal: #2C2C2C;
    --body-bg: #ffffff;
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 15px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ====== Headings ====== */
h1, h2, h3, h4, h5, h6,
.display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy);
}

/* ====== NAVBAR ====== */
.navbar-dark {
    background: linear-gradient(135deg, var(--navy) 0%, #0F1D35 100%);
    padding: 0.75rem 0;
    border-bottom: 3px solid var(--gold);
}

.navbar-brand {
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.brand-icon {
    color: var(--gold);
    font-size: 1.6rem;
    margin-right: 6px;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: var(--gold-light);
}

.admin-link {
    font-size: 1.3rem !important;
    padding: 0.25rem 0.5rem !important;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.admin-link:hover {
    opacity: 1 !important;
}

.sign-out-link {
    color: var(--gold-light) !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.sign-out-link:hover {
    opacity: 1;
}

.text-gold {
    color: var(--gold-light) !important;
}

/* ====== CONTACT MODAL ====== */
.modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.btn-outline-navy {
    color: var(--navy);
    border-color: var(--navy);
}

.btn-outline-navy:hover {
    background-color: var(--navy);
    color: #fff;
}

.contact-row:hover {
    background-color: rgba(27, 42, 74, 0.04) !important;
}

/* ====== ADMIN DASHBOARD ====== */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}

.bg-navy { background-color: var(--navy) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-week { background-color: #4a6741 !important; }
.bg-today { background-color: #6b4c8a !important; }

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--charcoal);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ====== HERO / PAGE HERO ====== */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0F1D35 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.page-hero .page-title {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero .page-subtitle {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
}

/* ====== SECTIONS ====== */
section {
    padding: 3rem 0;
}

.section {
    padding: 3rem 0;
}

/* ====== HERO BANNER (home page) ====== */
.hero-banner {
    background: linear-gradient(135deg, var(--navy) 0%, #0F1D35 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
    border-bottom: 4px solid var(--gold);
}

.hero-banner h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-banner .lead {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

.hero-banner .gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* ====== SECTION TITLES ====== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--gold);
    margin-top: 0.5rem;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ====== HOME PAGE CARDS ====== */
.feature-card {
    background: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    padding: 1.75rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: 0 8px 25px rgba(27, 42, 74, 0.08);
    transform: translateY(-2px);
}

.feature-card .icon {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.feature-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ====== PRICING TABLE ====== */
.pricing-row {
    background: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    overflow: hidden;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #f0eee9;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item .label {
    font-weight: 500;
}

.pricing-item .price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
}

/* ====== CONTACT INFO CARD ====== */
.contact-info {
    background: var(--cream);
    border-radius: 8px;
    padding: 1.5rem;
}

/* ====== BUTTONS ====== */
.btn-primary {
    background-color: var(--navy);
    border-color: var(--navy);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
}

.btn-outline-gold {
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--navy);
}

/* ====== FOOTER ====== */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    margin-top: auto;
    border-top: 3px solid var(--gold);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.6);
}

.site-footer a:hover {
    color: var(--gold-light);
}

/* ====== FORMS ====== */
.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

.form-label {
    font-size: 0.9rem;
    color: var(--charcoal);
}

/* ====== ALERTS ====== */
.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

/* ====== BADGES ====== */
.bg-primary {
    background-color: var(--navy) !important;
}

/* ====== LISTS ====== */
ul.check-list {
    list-style: none;
    padding-left: 0;
}

ul.check-list li {
    padding: 0.3rem 0;
    padding-left: 1.8rem;
    position: relative;
}

ul.check-list li::before {
    content: '\2713';
    color: var(--gold);
    font-weight: 700;
    position: absolute;
    left: 0;
}

/* ====== INLINE EDITING ====== */
.edit-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    opacity: 0.4;
    transition: opacity 0.2s;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1;
}
.edit-btn:hover {
    opacity: 1;
}
.hero-banner .edit-btn {
    top: 0.75rem;
    right: 0.75rem;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .hero-banner h1 { font-size: 2.2rem; }
    .hero-banner .lead { font-size: 1.1rem; }
    .page-hero .page-title { font-size: 2rem; }
    section { padding: 2rem 0; }
}