/* 
* Royal Tombstones - Custom CSS
*/

/* Variables */
:root {
    --primary: #192a56;  /* Royal blue */
    --secondary: #718093; /* Slate gray */
    --accent: #c0392b;    /* Burgundy red */
    --light: #f5f6fa;     /* Off-white */
    --dark: #2f3640;      /* Dark charcoal */
    --text-primary: #333; /* Dark text */
    --text-secondary: #666; /* Medium text */
    --font-primary: 'Raleway', sans-serif;
    --font-secondary: 'Cormorant Garamond', serif;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dark);
    border-color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.card-body{
    padding: 1rem !important;
}

/* Header and Navigation */
.top-bar {
    font-size: 0.9rem;
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/stanstones_tombstones/assets/images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* New Hero Section Styles */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Responsive adjustments for hero section */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Services */
.service-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: white;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Gallery */
.gallery-filters {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    margin: 0.3rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
    color: var(--primary);
    font-weight: 600;
}

.gallery-item {
    overflow: hidden;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(25, 42, 86, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: white;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.gallery-item-price {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin: 1rem 0.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before, .testimonial-text::after {
    content: """;
    font-size: 3rem;
    font-family: sans-serif;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    content: """;
    bottom: -40px;
    right: -10px;
}

.testimonial-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-author-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact */
.contact-info-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    height: 100%;
}

.contact-info-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    border-radius: 0;
    border: 1px solid #ddd;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    position: relative;
}

.footer-heading {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--accent);
    bottom: 0;
    left: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 90px; /* Moved to the left to make room for WhatsApp button */
    display: none;
    z-index: 1000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    padding: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Quote Request Form */
.quote-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* About Page */
.about-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-img img {
    width: 100%;
    height: auto;
}

.timeline {
    position: relative;
    padding-left: 50px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background-color: var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -43px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    height: 100%;
}

.team-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-social a {
    color: var(--text-secondary);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.team-social a:hover {
    color: var(--primary);
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp i {
    font-size: 20px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .service-card, .testimonial-card, .contact-info-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

