/* --- Global Styles & Variables --- */
:root {
    --primary-color: #2c3e50; /* Charcoal Gray */
    --secondary-color: #3498db; /* Professional Blue */
    --accent-color: #c0392b; /* Deep Red */
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
}

body {
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1px;
}

/* --- Header --- */
header {
    /* New background with 80% opacity */
    background: rgba(44, 62, 80, 0.8);
    /* New blur effect for the "frosted glass" look */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari compatibility */
    color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white);
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 40px;
    margin-right: 15px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-left: 20px;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}


/* --- Main Content --- */
main {
    padding-top: 120px; /* Adjust for fixed header */
}

/* --- Hero Section --- */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero-image.jpg') no-repeat center center/cover;
    
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.cta-button-large {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

.cta-button-large:hover {
     background-color: #2980b9;
}

/* --- Why Choose Us Section --- */
#why-choose-us {
    padding: 4rem 0;
    background: var(--light-gray);
}

#why-choose-us .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.feature {
    width: 23%;
}

.feature h3 {
    font-family: var(--header-font);
    color: var(--primary-color);
}

/* --- Quote Form Section --- */
#quote-form {
    padding: 4rem 0;
    background: var(--white);
}

#quote-form h2 {
    text-align: center;
    font-family: var(--header-font);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

form {
    max-width: 900px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    margin-bottom: 1rem;
    gap: 1rem;
}

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--body-font);
}

.form-row textarea {
    height: 120px;
    resize: vertical;
}

.form-row label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 10px;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background: #a5281b;
}

/* --- About Teaser Section --- */
#about-teaser {
    padding: 4rem 0;
    background: var(--primary-color);
    color: var(--white);
}

#about-teaser .container {
    max-width: 800px;
    text-align: center;
}

#about-teaser h2 {
    font-family: var(--header-font);
    font-size: 2.5rem;
}

#about-teaser p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}


/* --- Footer --- */
footer {
    background: #222;
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

/* --- Page Header Styles --- */
.page-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-family: var(--header-font);
    font-size: 3rem;
    margin: 0;
}

/* --- General Page Content Styles --- */
.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    font-family: var(--header-font);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-top: 0;
}

.highlight-box {
    /* Using light-gray for highlight box on light-gray background pages */
    background: var(--light-gray); 
    border-left: 5px solid var(--secondary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

/* --- About Us Page Specific Styles --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 0 0 40%; /* UPDATED: Changed from flex: 1 to 40% to accommodate vertical image */
}

.about-image img {
    width: 100%;
    height: 500px; /* NEW: Fixed height for consistent look */
    object-fit: cover; /* NEW: Scales and crops the image to fill the fixed height */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1; /* Allows the text container to take the remaining space */
}

/* --- Services Page Background Style --- */

/* Targets the main content area of the page */
.page-content {
    /* Sets the background image with a dark overlay */
    background: linear-gradient(rgba(20, 30, 40, 0.8), rgba(20, 30, 40, 0.8)), url('images/services-bg.jpg');
    
    /* Ensures the image covers the entire area */
    background-size: cover;
    
    /* Centers the image */
    background-position: center;
    
    /* Creates a cool parallax effect when scrolling */
    background-attachment: fixed;
    
    /* Changes the main text color to white for readability */
    color: #f4f4f4;
}

/* Makes sure the headings are also light-colored */
.page-content h2, .page-content h3 {
    color: #ffffff;
}

/* Overrides the default link color to be more visible on the dark background */
.page-content a {
    color: #7aace8;
}

/* --- Header Logo Styles --- */

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--white); /* Ensures text color matches */
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 100px; /* Adjust size as needed */
    margin-right: 15px; /* Space between logo and text */
}

/* --- Hero Section Text Animation (Seamless Loop Fix) --- */

/* 1. Define the animation that scrolls the background by one full pattern length */
@keyframes scroll-gradient {
  to {
    background-position: -200% center;
  }
}

/* 2. Apply the scrolling gradient to the main headline (h1) */
#hero h1 {
    /* The gradient has the start color repeated at the end */
    background-image: linear-gradient(to right, #B22234, #FFFFFF, #3C3B6E, #B22234);
    
    /* Set the size to be twice the width of the element */
    background-size: 200% auto;
    
    /* Clip the background to the text */
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
    /* Run the animation over 5 seconds for a smoother feel */
    animation: scroll-gradient 5s linear infinite; 
}

/* 3. Keep the sub-headline (h2) solid white */
#hero h2 {
    color: #FFFFFF;
}

/* --- Gallery Page Styles (Lightbox Version) --- */

/* The grid layout for the thumbnails */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Hides the checkbox that powers the lightbox */
.gallery-item input[type="checkbox"] {
    display: none;
}

/* Styles the clickable thumbnail images */
.gallery-item .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Adds a nice hover effect to the thumbnails */
.gallery-item .thumbnail img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* The main lightbox overlay (hidden by default) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001; /* Sits on top of everything */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    /* Hide the lightbox by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Styles the large image inside the lightbox */
.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

/* The "X" close button */
.lightbox .close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}
/* Creates the "X" using pseudo-elements */
.lightbox .close-button::before,
.lightbox .close-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
}
.lightbox .close-button::before {
    transform: rotate(45deg);
}
.lightbox .close-button::after {
    transform: rotate(-45deg);
}

/* This is the magic: When the checkbox is checked, show the lightbox */
.gallery-item input[type="checkbox"]:checked ~ .lightbox {
    opacity: 1;
    pointer-events: auto;
}

/* --- Payment Page Styles --- */

.payment-container {
    max-width: 800px;
    text-align: center;
    background: var(--light-gray);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #333;
}

.payment-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000000;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.payment-button:hover {
    background-color: #a5281b;
}

.security-note {
    font-size: 0.9em;
    color: #333; /* Darker text for security note */
}

/* --- Blog Page Styles --- */

/* Style for the header section of the blog page */
#page-header {
    background-color: #f4f4f4;
    padding: 40px 0;
    text-align: center;
}

#page-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    margin-bottom: 10px;
}

/* Container for the grid of blog posts */
.blog-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

/* Styling for each individual blog post card */
.blog-post-summary {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.blog-post-summary img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.blog-post-summary .post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows footer button to align */
}

.blog-post-summary h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    margin-top: 0;
}

.blog-post-summary .post-meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 15px;
}

.blog-post-summary p {
    flex-grow: 1; /* Pushes the button to the bottom */
}

.read-more-btn {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Aligns button to the left */
}

.read-more-btn:hover {
    background-color: #2c3e50; /* Example hover color */
}

/* --- Insurance & Authority Page Specific Styles --- */
.trust-badge {
    background: #e6fffa;
    border: 1px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.doc-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.doc-info h3 {
    margin: 0;
    color: var(--primary-color);
    font-family: var(--header-font);
}

.doc-info p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #718096;
}

/* The .btn style is already handled by .cta-button, 
   but we'll add a specific class for the request button */

.request-section {
    margin-top: 3rem;
    background: var(--light-gray); 
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.request-section h2 {
    color: var(--primary-color);
}

.request-section form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.request-section input, .request-section textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--body-font);
}
/* Add these styles to the END of your existing style.css file */

/* --- COI Request Form Styles --- */
.coi-request-form {
    max-width: 700px;
    margin: 2rem auto 0;
    padding: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--body-font);
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Honeypot field (spam protection) - keep hidden */
input[name="_honey"] {
    display: none !important;
}