/* --- L.W.S. LLP Custom Stylesheet --- */

/* 1. General Styles & Variables
-------------------------------------------------- */
body {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    
    /* --- BACKGROUND IMAGE FROM UNSPLASH (NO GRADIENT) --- */
    background-image: url('https://images.unsplash.com/photo-1604147706283-d7119b5b822c?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .hero-title {
    font-family: 'Lora', serif;
}

:root {
    --primary-color: #0d2c4e; /* Dark Blue */
    --secondary-color: #ffffff; /* White */
    --accent-color: #d4a017;   /* Gold */
}

/* Main content container style */
main.container {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Corrected 'M' to 12px */
}

.section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}


/* 2. Button Styles
-------------------------------------------------- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0a213b; /* Darker blue */
    border-color: #0a213b;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-success:hover {
    background-color: #b58a10;
    border-color: #b58a10;
}


/* 3. Navigation Bar
-------------------------------------------------- */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
}


/* 4. Headers (Hero & Page Headers)
-------------------------------------------------- */
.hero-section {
    background: url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=1470') no-repeat center center;
    background-size: cover;
    padding: 150px 0;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(13, 44, 78, 0.7); /* Dark Blue Overlay */
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
}

.page-header {
    background: linear-gradient(rgba(13, 44, 78, 0.8), rgba(13, 44, 78, 0.8)), url('https://images.unsplash.com/photo-1505664194779-8be390b75053?auto=format&fit=crop&q=80&w=1470') no-repeat center center;
    background-size: cover;
}


/* 5. Page-Specific Section Styles
-------------------------------------------------- */

/* Homepage - Statistics Box */
.stat-box {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background: #fafafa;
}

/* General Card Styling */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* About Page - Team Card */
.team-card {
    background-color: #fff;
}

.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 20px auto 0 auto;
    border: 5px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Services Page - Service Card */
.service-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Blog Page */
.blog-post-preview {
    border: 1px solid #e0e0e0;
    background-color: var(--secondary-color);
    transition: box-shadow 0.3s ease;
}

.blog-post-preview:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.card-header {
    font-family: 'Lora', serif;
    font-weight: 700;
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.blog-content p {
    line-height: 1.8;
}

.blog-content h3 {
    color: var(--primary-color);
}

/* Store Page - Product Card */
.product-card {
    border-radius: 8px;
    background-color: var(--secondary-color);
}

.product-image {
    height: 220px;
    object-fit: cover;
}

.product-price {
    color: var(--primary-color);
}

/* Contact Page - Map */
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    height: 0;
    border-radius: 8px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}


/* 6. Footer
-------------------------------------------------- */
footer {
    background-color: #1c1c1c;
}

footer a {
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
    color: white !important;
}
/* Styling for the sister firm box in the footer */
.sister-firm-box {
    background-color: rgba(255, 255, 255, 0.05); /* A subtle background highlight */
    border-left: 4px solid var(--accent-color); /* The gold accent border */
    padding: 12px 16px;
    margin-top: 1rem;
    border-radius: 4px;
}

.sister-firm-box p {
    color: #cccccc; /* Lighter text color for the description */
    line-height: 1.5;
}

.sister-firm-box strong {
    color: #ffffff; /* Make the firm name stand out in bright white */
    font-size: 1.1rem;
}

/* --- Team Profile Card Styles --- */
/* Merged duplicate styles for team-profile-card */
.team-profile-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center; /* This handles the alignment */
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-profile-card:hover {
    transform: translateY(-10px);
}

.team-profile-img {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 2px solid var(--primary-color);
}

/* Merged duplicate styles for team-profile-img img */
.team-profile-img img, img.team-img {
    width: 150px;
    height: 150px;
    object-fit: cover; /* This is the key property for "fitting" */
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.team-profile-body {
    padding: 30px;
}

.team-profile-name {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0;
}

.team-profile-title {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.team-profile-quals {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.team-profile-bio {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
}

.team-profile-social {
    margin-top: 20px;
}

.team-profile-social .btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 0 5px;
}

/* --- Testimonial Section Styles --- */
.testimonial-section {
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.testimonial-img {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes the image circular */
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.carousel-item .blockquote {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    color: #555;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 20px;
}
/* Ensures modal text is visible */
.modal-body p {
    color: #212529; /* Standard dark text color */
}

/* --- Hero Carousel Styles --- */
#heroCarousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center center;
}

#heroCarousel .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Adds shadow for readability */
}

/* Define the background image for each slide */
.hero-slide-1 {
    background-image: linear-gradient(rgba(13, 44, 78, 0.6), rgba(13, 44, 78, 0.6)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&q=80&w=1470');
}
.hero-slide-2 {
    background-image: linear-gradient(rgba(13, 44, 78, 0.6), rgba(13, 44, 78, 0.6)), url('https://images.unsplash.com/photo-1605146769289-440113cc3d00?auto=format&fit=crop&q=80&w=1470');
}
.hero-slide-3 {
    background-image: linear-gradient(rgba(13, 44, 78, 0.6), rgba(13, 44, 78, 0.6)), url('https://images.unsplash.com/photo-1589578236319-488d58807834?auto=format&fit=crop&q=80&w=1470');
}
.hero-slide-4 {
    background-image: linear-gradient(rgba(13, 44, 78, 0.6), rgba(13, 44, 78, 0.6)), url('https://images.unsplash.com/photo-1589994965851-a8f483c5212c?auto=format&fit=crop&q=80&w=1470');
}
.hero-slide-5 {
    background-image: linear-gradient(rgba(13, 44, 78, 0.6), rgba(13, 44, 78, 0.6)), url('https://images.unsplash.com/photo-1556740758-90de374c12ad?auto=format&fit=crop&q=80&w=1470');
}

/* --- Highlighting Animation for Contact Button --- */
.btn-highlight {
  /* Forcing the correct colors */
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  
  /* The animation */
  box-shadow: 0 0 0 0 rgba(13, 44, 78, 1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 44, 78, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(13, 44, 78, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(13, 44, 78, 0);
  }
} /* <<< THIS BRACE WAS MISPLACED - I moved it up */

/* --- Back to Top Button Styles --- */
#backToTopBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Keep it in place while scrolling */
  bottom: 20px;
  right: 30px;
  z-index: 99; /* Make sure it's on top */
  border: none;
  outline: none;
  background-color: var(--primary-color); /* Use your primary blue */
  color: white;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%; /* Make it circular */
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

#backToTopBtn:hover {
  opacity: 1; /* Full opacity on hover */
}

/* --- NEW: Blog Post Image Sizing --- */
.blog-post-preview .card-img-top {
  height: 250px;       /* Set a fixed height for all blog images */
  object-fit: cover; /* This makes the image cover the space without stretching */
  width: 100%;
}
/* --- Fix Blog Image Size --- */
.blog-post-preview .card-img-top {
  height: 250px;       /* Fixes the height */
  object-fit: cover;   /* Crops the image neatly to fit */
  width: 100%;         /* Ensures full width */
}