/* ------------------------------------
   COLOR VARIABLES
------------------------------------ */
:root {
    --deep-blue: #0D47A1;
    /* Deep Blue */
    --light-blue: #42A5F5;
    /* Light Blue */
    --navy-blue: #1a1f71;
    /* Navy Blue */
    --white: #ffffff;
    --black: #000000;
    --gray: #f5f5f5;
    --light-gray: #e0e0e0;
    /* Lighter Gray for footer */
    --dark-gray: #333333;
    --accent-color: #FFC107;
    /* Yellow/Amber accent */

    /* NEW: safe-area insets for notched devices (iPhone, etc.) */
    --safe-area-inset-top: env(safe-area-inset-top);
    --safe-area-inset-bottom: env(safe-area-inset-bottom);
    --safe-area-inset-left: env(safe-area-inset-left);
    --safe-area-inset-right: env(safe-area-inset-right);
}

/* ------------------------------------
   GLOBAL RESETS & BASE
------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    margin: 0;
    /* If you want top safe-area padding for notched devices, uncomment:
       padding-top: var(--safe-area-inset-top); 
    */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ------------------------------------
   TYPOGRAPHY
------------------------------------ */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    color: var(--navy-blue);
    margin-bottom: 20px;
    text-align: center;
    /* Center headings by default */
}

p {
    line-height: 1.6;
    font-size: 16px;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: var(--navy-blue);
}

a:hover {
    color: var(--accent-color);
}

/* ------------------------------------
   BUTTONS
------------------------------------ */
.btn {
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
    display: inline-block;
    margin: 10px 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

.btn-primary {
    background: var(--accent-color);
    color: var(--black);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    background: #e0a800;
    /* Darker shade on hover */
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-blue);
}

/* ------------------------------------
   CALL BUTTON (PHONE NUMBER VISIBILITY)
------------------------------------ */
.call-button {
    color: #fff;
    /* Always visible on dark header */
    text-decoration: none;
    font-weight: bold;
    padding: 0 10px;
    transition: color 0.3s;
}

.call-button:hover {
    color: var(--accent-color);
    /* e.g. yellow on hover */
}

/* ------------------------------------
   HEADER
------------------------------------ */
header {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--navy-blue);
    z-index: 1000;
}

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

.logo img {
    height: 80px;
    width: auto;
    /* keep aspect ratio */
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav ul li a {
    color: var(--white);
    font-weight: bold;
    padding: 5px 10px;
    position: relative;
    transition: color 0.3s;
}

.nav ul li a:hover,
.nav ul li a.active {
    color: var(--accent-color);
}

.nav ul li a::after {
    content: '';
    width: 0%;
    height: 2px;
    background: var(--accent-color);
    position: absolute;
    left: 0;
    bottom: -5px;
    transition: width 0.3s;
}

.nav ul li a:hover::after,
.nav ul li a.active::after {
    width: 100%;
}

/* Hamburger icon is hidden on desktop; visible on mobile below @768px */
.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
}

/* ------------------------------------
   HERO SECTION
------------------------------------ */
.hero-section {
    min-height: calc(100vh - 80px);
    background:
        linear-gradient(to bottom, rgba(13, 71, 161, 0.8), rgba(66, 165, 245, 0.8)),
        url('hero-image.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    padding: 0 20px;
    margin-top: 80px;
    /* So content starts below fixed header */
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 30px;
}

.hero-content .btn {
    margin: 10px;
}

/* ------------------------------------
   ABOUT SECTION
------------------------------------ */
.about-section {
    padding: 120px 0;
    background-color: var(--gray);
    color: var(--dark-gray);
}

.about-section p {
    max-width: 800px;
    margin: auto;
    font-size: 18px;
}

/* ------------------------------------
   PRICING SECTION
------------------------------------ */
.pricing-section {
    padding: 80px 0;
    background-color: var(--white);
    /* If this page stands alone, uncomment:
       margin-top: 80px; 
    */
}

.pricing-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.pricing-table {
    background-color: var(--gray);
    padding: 30px;
    width: 300px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.pricing-table:hover {
    transform: translateY(-5px);
}

.pricing-table h3 {
    margin-bottom: 20px;
    color: var(--navy-blue);
}

.pricing-table .price {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.pricing-table ul {
    list-style: none;
    margin-bottom: 20px;
}

.pricing-table ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--dark-gray);
}

/* ------------------------------------
   FAQ SECTION
------------------------------------ */
.faq-section {
    padding: 80px 0;
    background-color: var(--gray);
}

.faq-section h2 {
    margin-bottom: 40px;
}

.faq-item {
    max-width: 800px;
    margin: auto;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    padding: 15px 0;
    color: var(--navy-blue);
    cursor: pointer;
    position: relative;
    font-weight: bold;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question::after {
    content: '\f078';
    /* Font Awesome: chevron down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-question[aria-expanded="true"]::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
    /* Subtle indentation */
    color: #555;
}

.faq-answer p {
    padding: 0 0 15px 0;
    margin: 0;
}

/* ------------------------------------
   CONTACT SECTION (Home Page)
------------------------------------ */
.contact-section {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-info {
    flex: 1 1 45%;
    text-align: left;
}

.contact-info h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--dark-gray);
}

.contact-list li strong {
    margin-right: 5px;
}

.map-container {
    position: relative;
    height: 280px;
    /* Adjust as needed */
    margin-bottom: 20px;
}

.map-container iframe {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.contact-form-wrapper {
    flex: 1 1 45%;
}

/* The form styles */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: auto 0;
}

#contact-form input,
#contact-form textarea {
    padding: 15px;
    border: 1px solid var(--navy-blue);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

#contact-form button {
    background-color: var(--accent-color);
    color: var(--black);
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#contact-form button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

/* ------------------------------------
   FOOTER
------------------------------------ */
footer {
    background-color: var(--light-gray);
    padding: 20px 0;
    color: var(--dark-gray);
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer p {
    margin: 0;
    font-size: 14px;
    margin-bottom: 10px;
}

.social-media {
    display: flex;
}

.social-media a {
    color: var(--navy-blue);
    margin-left: 10px;
    font-size: 24px;
    transition: color 0.3s, transform 0.3s;
}

.social-media a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* ------------------------------------
   RESPONSIVE STYLES (under 768px)
------------------------------------ */
@media (max-width: 768px) {

    /* Make the header container a single row with items spaced nicely */
    header .container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 10px;
        /* Add a little horizontal padding */
    }

    /* Shrink the logo a bit on mobile (optional) */
    .logo img {
        height: 50px;
        width: auto;
    }

    /* Hide the desktop nav by default; show hamburger */
    .nav ul {
        display: none;
    }

    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
    }

    /* When .show is toggled via JS, display a vertical menu */
    .nav ul.show {
        display: flex;
        flex-direction: column;
        background-color: var(--navy-blue);
        position: absolute;
        top: 70px;
        /* Just below the fixed header */
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .nav ul li {
        margin: 10px 0;
    }

    /* Place phone number and "Request a Quote" in a row, with small gap */
    .header-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .call-button {
        font-size: 16px;
        /* Slightly larger for mobile */
    }

    .quote-button {
        /* Inherit existing styles, just ensure it’s visible in row */
    }

    /* Adjust hero heading size on mobile */
    .hero-content h1 {
        font-size: 32px;
    }

    /* Stack pricing tables vertically on mobile */
    .pricing-tables {
        flex-direction: column;
        align-items: center;
    }

    /* Stack contact layout vertically on mobile */
    .contact-layout {
        flex-direction: column;
    }
}

/* ------------------------------------
   QUOTE PAGE (#quote-form for get-a-quote.html)
------------------------------------ */
#quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 40px auto;
}

#quote-form input,
#quote-form textarea {
    padding: 15px;
    border: 1px solid var(--navy-blue);
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

#quote-form button {
    background-color: var(--accent-color);
    color: var(--black);
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#quote-form button:hover {
    background-color: #e0a800;
    transform: translateY(-3px);
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.two-column .column {
    flex: 1 1 48%;
}

.quote-subheading {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 40px;
    color: var(--dark-gray);
}

.quote-miniheading {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--navy-blue);
    text-align: left;
}

.quote-minitext {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--dark-gray);
    text-align: left;
}

.required {
    color: red;
    margin-left: 3px;
}

/* ------------------------------------
   EXTRA BACKGROUND CLASSES
------------------------------------ */
.white-bg {
    background-color: var(--white);
    color: var(--dark-gray);
    padding: 100px 0;
    /* Adjust as needed for spacing */
}

.blue-bg {
    background-color: var(--light-blue);
    color: #fff;
    padding: 100px 0;
    margin-top: 40px;
}

.blue-bg h2,
.blue-bg p,
.blue-bg li {
    color: #fff;
}

/* ------------------------------------
   FLEX LAYOUT FOR GET-A-QUOTE FOOTER FIX
------------------------------------ */
html,
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* The header remains fixed at the top without any disappearing effect */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--navy-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

# Section Heading Styles .section-heading {
    text-align: center;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .section-heading {
        margin-bottom: 20px;
    }
}

/* Tablet adjustments for service grid (<= 1024px) */
@media (max-width: 1024px) {
    .service-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .service-column {
        flex: 1 1 calc(50% - 20px);
    }
}

/* Mobile adjustments for service grid (<= 768px) */
@media (max-width: 768px) {
    .service-column {
        flex: 1 1 100%;
    }

    .service-grid {
        gap: 10px;
    }
}
