/* =====================
   ZEIA FUNERAL HOME
   Main Stylesheet
   ===================== */

:root {
    --primary-color: #1a5f7a;
    --secondary-color: #6c757d;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #333;
}

body {
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #555;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0f3d51;
    text-decoration: underline;
}

/* Navbar Customization */
.navbar-dark {
    background: linear-gradient(135deg, #1a5f7a 0%, #0f3d51 100%) !important;
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.navbar-brand i {
    margin-right: 0.5rem;
    color: var(--warning-color);
}

.nav-link {
    margin: 0 0.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--warning-color) !important;
}


/* Hero Section */
.hero-section {
    position: relative;
    min-height: 680px;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(245, 238, 230, 0.9) 0%, rgba(245, 238, 230, 0.78) 40%, rgba(245, 238, 230, 0.32) 100%),
        url('../images/bg.png') center center / cover no-repeat;
    background-size: cover;
    background-position: center center;
    border-bottom: 3px solid var(--primary-color);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.08));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-copy {
    max-width: 760px;
    position: relative;
    z-index: 1;
    margin-left: auto;
    margin-right: 1%;
}

@media (max-width: 991.98px) {
    .hero-copy {
        margin-left: 0;
        margin-right: 0;
    }
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: clamp(90px, 12vw, 180px);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.12));
}

.brand-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -0.08em;
    text-transform: uppercase;
}

.brand-wordmark .zeia {
    font-size: clamp(3.5rem, 7vw, 8rem);
    color: #0d3850;
}

.brand-wordmark .cares {
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #b88f5d;
    align-self: flex-start;
    margin-left: 0.45rem;
}

.hero-section h1 {
    color: var(--primary-color);
    margin-bottom: 1.75rem;
    font-size: clamp(2.2rem, 3vw, 4rem);
    line-height: 1.1;
    max-width: 620px;
    text-shadow: 0 2px 10px rgba(255,255,255,0.5);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: black;
    margin-bottom: 2rem;
    max-width: 680px;
}

.hero-actions {
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0f3d51;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    font-weight: 600;
    border: none;
}

.card-body {
    padding: 1.5rem;
}

/* Service Cards */
.service-card {
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    border-left-color: var(--warning-color);
    box-shadow: 0 5px 25px rgba(26, 95, 122, 0.2);
}

.service-image-wrap {
    width: 100%;
    height: 150px;
    flex: 0 0 150px;
    overflow: hidden;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid rgba(26, 95, 122, 0.12);
}

.service-image-wrap > a {
    display: block;
    width: 100%;
    height: 100%;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.service-bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 560px;
    gap: 1.5rem;
}

.service-bento-grid .card {
    height: 560px;
    margin-bottom: 0;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.service-bento-grid .service-grid-empty {
    grid-column: 1 / -1;
}

@media (min-width: 576px) {
    .service-bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .service-bento-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Memorial Cards */
.memorial-card {
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.memorial-card:hover {
    border-top-color: var(--warning-color);
    transform: translateY(-3px);
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 0.7rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 95, 122, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Input Groups */
.input-group-text {
    background-color: #f8f9fa !important;
    border: 2px solid #e0e0e0 !important;
    color: var(--primary-color);
}

/* Tables */
.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--light-color);
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

.table tbody td {
    vertical-align: middle;
    padding: 0.75rem;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.badge-primary {
    background-color: var(--primary-color);
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: var(--danger-color);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: var(--warning-color);
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

/* Sections */
section {
    padding: 60px 0;
}

section.py-5 {
    padding: 3rem 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a5f7a 0%, #0f3d51 100%);
    color: white;
    margin-top: 5rem;
    border-top: 3px solid var(--warning-color);
}

footer h6 {
    color: var(--warning-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

footer p {
    color: #b0bec5;
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--warning-color);
}

footer a:hover {
    color: #ffeb3b;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        margin-bottom: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    
    .card {
        margin-bottom: 1.5rem;
    }
    
    .form-control,
    .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Container Customization */
.container-lg {
    max-width: 1200px;
}

/* Icons */
i.fa-3x {
    color: var(--primary-color);
}

/* Utility Classes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f3d51 100%);
}

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }

/* Sticky Navbar */
.sticky-top {
    top: 0;
    z-index: 1020;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f3d51;
}

/* Transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Line height for better readability */
body {
    line-height: 1.7;
}

/* Focus states for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
