/* ============================================
   Funerare Păucă SRL - Styles
   Website Profesional - Servicii Funerare
   © 2025 - Toate drepturile rezervate
============================================ */

/* ============================================
   1. RESET & VARIABLES
============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Culori principale */
    --primary-color: #1a1a2e;
    --secondary-color: #8b7355;
    --accent-color: #c9a876;
    --dark-color: #0f0f1e;
    --light-bg: #f8f6f3;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #6c6c6c;
    --border-color: #e0e0e0;
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Spacing */
    --section-padding: 80px;
    --container-max-width: 1200px;
    
    /* Shadows */
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   2. TYPOGRAPHY & GENERAL
============================================ */

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   3. TOP BAR
============================================ */

.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar i {
    margin-right: 5px;
    color: var(--accent-color);
}

.top-contact {
    color: var(--white);
    transition: var(--transition);
}

.top-contact:hover {
    color: var(--accent-color);
}

/* ============================================
   4. HEADER & NAVIGATION
============================================ */

.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 120px;
    width: auto;
    transition: height 0.3s ease;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-item a {
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-item:hover a::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item:hover a,
.nav-item.active a {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ============================================
   5. HERO SECTION
============================================ */

.hero-section {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-pattern.png') center/cover;
    opacity: 0.1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.7);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   6. PAGE HEADER
============================================ */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* ============================================
   7. BUTTONS
============================================ */

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--dark-color);
}

/* ============================================
   8. MAIN CONTENT
============================================ */

.main-content {
    min-height: 400px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ============================================
   9. CARDS & GRID
============================================ */

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Service Card */
.service-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--light-bg);
    border-radius: 10px;
    transition: var(--transition);
}

.service-card:hover {
    background-color: var(--white);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* ============================================
   10. FORMS
============================================ */

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 2px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

select.form-control {
    cursor: pointer;
}

/* ============================================
   11. FOOTER
============================================ */

.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: auto;
}

.footer-main {
    padding: 60px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-links i {
    font-size: 0.7rem;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-color);
    margin-top: 5px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-contact small {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    background-color: var(--dark-color);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.company-details {
    font-size: 0.85rem !important;
}

.footer-credits p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-credits a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-credits a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--accent-color);
}

.footer-credits a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-credits a:hover::after {
    width: 100%;
}

/* ============================================
   12. SCROLL TO TOP
============================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* ============================================
   13. UTILITY CLASSES
============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--primary-color); color: var(--white); }

/* ============================================
   14. RESPONSIVE DESIGN
============================================ */

/* Tablets and Medium Screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .footer-grid,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

/* Tablets and Small Screens */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.3rem; }
    
    body {
        font-size: 15px;
    }
    
    /* Hero Section */
    .hero-section {
        height: auto;
        min-height: 500px;
        padding: 80px 0;
    }
    
    .hero-title { 
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle { 
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
    }
    
    /* Page Header */
    .page-header {
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    /* Sections */
    .section { 
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 12px 0;
        font-size: 0.85rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .top-bar-left,
    .top-bar-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .top-contact {
        font-size: 0.85rem;
    }
    
    /* Header */
    .site-header {
        position: relative;
    }
    
    .header-content {
        padding: 15px 0;
    }
    
    .logo img {
        height: 85px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
        z-index: 10000;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        z-index: 9999;
        padding: 80px 30px 30px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-item a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }
    
    /* Grids */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-image {
        height: 220px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    body {
        font-size: 14px;
    }
    
    /* Hero Section */
    .hero-section {
        min-height: 400px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    /* Page Header */
    .page-header {
        padding: 30px 0;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    /* Sections */
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title h2::after {
        width: 60px;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 10px 0;
        font-size: 0.8rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        gap: 10px;
    }
    
    /* Logo */
    .logo img {
        height: 70px;
    }
    
    /* Navigation */
    .main-nav {
        width: 100%;
        right: -100%;
    }
    
    /* Cards */
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .service-card {
        padding: 25px 15px;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    /* Stats Grid */
    .stats-grid {
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    /* Footer */
    .footer-main {
        padding: 30px 0 20px;
    }
    
    .footer-col h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-contact li {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding: 20px 0;
        font-size: 0.85rem;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .card-content {
        padding: 12px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 400px;
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 30px 0;
    }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .top-contact,
    .footer-links a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .scroll-to-top {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   GALLERY STYLES - Portfolio
============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-bg);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--white);
    font-size: 3rem;
    transform: scale(0.5);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Print Styles */
@media print {
    .top-bar,
    .mobile-menu-toggle,
    .scroll-to-top,
    .site-footer {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}


