/* ==========================================================================
   1. GLOBAL RESETS & STYLING TOKENS
   ========================================================================== */
/* Ensures that anchor jumps leave room for the sticky header navigation */
#quote-form {
    scroll-margin-top: 100px; /* Adjusts the landing zone down by 100px */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
    font-size: 16px;
}

/* Base Headings Setup */
h1, h2, h3 {
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

ul {
    list-style-type: none;
}

/* ==========================================================================
   2. HEADER & NAVIGATION (MOBILE-FIRST ARCHITECTURE)
   ========================================================================== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-info strong {
    color: #0f172a;
    font-size: 1.1rem;
}

/* Nav links stack vertically on tiny mobile screens */
nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
}

nav a {
    display: block;
    padding: 0.5rem;
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
}

nav a:hover, nav a.active {
    color: #2563eb;
}

/* Highlight the Customer Portal Action button */
nav a[href="CustomerRMA.html"] {
    background-color: #f1f5f9;
    border-radius: 6px;
    color: #0f172a;
}

/* ==========================================================================
   3. MAIN CONTENT LAYOUT & REPAIR SERVICE PILLARS
   ========================================================================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Focused Page Intro section */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 800;
}

.subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

/* The actual Service Card Blocks */
.service-block {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-block h2 {
    font-size: 1.5rem;
    border-left: 4px solid #2563eb;
    padding-left: 0.75rem;
    margin-bottom: 1.25rem;
}

.service-block h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem 0;
}

/* Inner block bullet lists */
.service-block ul {
    margin-left: 0.5rem;
}

.service-block li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #f1f5f9;
    font-size: 0.95rem;
}

/* Highlights & Trust badges */
.value-proposition {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.25rem 0;
}

.warranty-badge, .pro-tip {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   4. CONVERSION ACTIONS & FOOTER
   ========================================================================== */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 16px;
    margin-top: 4rem;
}

.cta-banner h2 {
    color: #ffffff;
    font-size: 1.75rem;
}

.cta-banner p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* Big Button styling */
.cta-button {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.cta-button:hover {
    background-color: #1d4ed8;
    color: #ffffff;
}

footer {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.875rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 4rem;
}

/* ==========================================================================
   5. RESPONSIVE DESKTOP LAYOUT SHIFTS (MEDIA QUERIES)
   ========================================================================== */
@media (min-width: 768px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
    }

    .logo-container {
        flex-direction: row;
        text-align: left;
        margin-bottom: 0;
    }

    nav ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    main {
        padding: 4rem 2rem;
    }

    .page-title h1 {
        font-size: 2.75rem;
    }

    .service-block {
        padding: 2.5rem;
    }
}

/* ==========================================================================
   6. ABOUT US PAGE EXCLUSIVE STYLING (TIMELINE, TEAM & REVIEWS)
   ========================================================================== */
.timeline {
    border-left: 2px solid #e2e8f0;
    padding-left: 1.5rem;
    position: relative;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

/* Timeline marker circles */
.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 7px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #2563eb;
    border: 2px solid #ffffff;
}

.timeline-year {
    font-weight: 700;
    color: #2563eb;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

/* Team layout layout blocks */
.team-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.team-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
}

.team-card h4 {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* Review blockquotes */
.testimonial-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

blockquote {
    border-left: 4px solid #cbd5e1;
    padding-left: 1rem;
    font-style: italic;
    color: #475569;
}

cite {
    display: block;
    font-style: normal;
    font-weight: 600;
    color: #0f172a;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* Desktop layout rules for the About page elements */
@media (min-width: 768px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .testimonial-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   8. SECURE FORM INPUT FIELDS & GRID ARCHITECTURE
   ========================================================================== */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #f8fafc;
    font-family: inherit;
    font-size: 0.95rem;
    color: #0f172a;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
}

/* Switches form into a clean 2-column grid format on desktop monitors */
@media (min-width: 768px) {
    .quote-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==========================================================================
   9. SIDE-BY-SIDE COMPACT PRODUCT CARDS (HORIZONTAL ROW)
   ========================================================================== */
.image-showcase-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
    width: 100% !important;
}

.image-card {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    text-align: center !important;
    padding: 1.25rem !important;
    flex: 1 !important; /* Forces cards to expand and fill space equally */
}

.image-card img {
    width: auto !important;
    max-width: 130px !important;
    height: 130px !important;
    object-fit: contain !important;
    margin: 0 auto 1rem auto !important;
    background-color: transparent !important;
}

.image-card-details {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.image-card-details h3 {
    font-size: 1.15rem !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.image-card-details p {
    font-size: 0.9rem !important;
    color: #475569 !important;
    line-height: 1.4 !important;
}

/* Hard desktop override forcing side-by-side layout layout row */
@media (min-width: 768px) {
    .image-showcase-grid {
        flex-direction: row !important; /* Hard alignment layout shift to horizontal row */
    }
}
