/*
Theme Name: Supply Strategy Group
Theme URI: https://supplystrategygroup.com
Description: Custom theme for The Supply Strategy Group - Strategic Supply Chain Solutions for Construction Professionals
Author: The Supply Strategy Group
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: ssg-theme
*/

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #10253a;
    background-color: #ffffff;
}

/* ==========================================================================
   ADA Accessibility - Skip Link
   ========================================================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 4px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* ==========================================================================
   ADA Accessibility - Focus States
   ========================================================================== */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus,
[tabindex]:focus {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* Remove default outline only when focus-visible is supported */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure reduced motion preference is respected */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Brand Colors
   ========================================================================== */
:root {
    --dark-blue: #10253a;
    --light-blue: #6b8aab;
    --orange: #e49031;
    --dark-gray: #b0b8c0;
    --white: #ffffff;
    --light-gray: #f5f7f9;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--light-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

strong {
    font-weight: 700;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(16, 37, 58, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    order: 2;
    flex: 0 0 auto;
}

.site-logo img {
    max-height: 70px;
    width: auto;
}

.site-logo a {
    display: block;
}

/* Navigation - Left Side */
.main-nav {
    order: 1;
    flex: 1;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: flex-start;
}

.main-nav a {
    color: var(--dark-blue);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--orange);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Social Icons - Right Side */
.header-social {
    order: 3;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.header-social a {
    color: var(--dark-blue);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.header-social a:hover {
    color: var(--orange);
    transform: translateY(-2px);
}

.header-social svg {
    width: 22px;
    height: 22px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    order: 4;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #1a3a5c 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-with-bg {
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 37, 58, 0.85);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero .subtitle {
    color: #ffffff !important;
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 30px;
    font-style: italic;
}

.hero-separator {
    width: 80px;
    height: 3px;
    background-color: #6B8AAB !important;
    margin: 20px auto 0;
    display: block;
}

/* Page Hero (smaller) */
.page-hero {
    padding: 60px 20px;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 37, 58, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--orange);
    color: var(--white);
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
    padding: 80px 20px;
    background-color: #f8f9fa !important;
}

.section-white {
    background-color: #ffffff !important;
}

.section-gray {
    background-color: #f8f9fa !important;
}

.section-dark {
    background-color: var(--dark-blue);
    color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--white);
}

.section-dark .subtitle {
    color: var(--light-blue);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title .subtitle {
    color: var(--light-blue);
    font-size: 1.1rem;
}

.section-title-tight h2 {
    margin-bottom: 8px;
}

.section-title-tight .subtitle {
    margin-bottom: 25px;
}

.section-title .btn {
    margin-top: 10px;
}

/* ==========================================================================
   Two Column Layout
   ========================================================================== */
.two-col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px;
    align-items: center;
}

.two-col-60-40 {
    grid-template-columns: 1.5fr 1fr !important;
}

.two-col-40-60 {
    grid-template-columns: 1fr 1.5fr !important;
}

.col-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(16, 37, 58, 0.15);
}

/* ==========================================================================
   Three Column Layout
   ========================================================================== */
.three-col {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px;
}

.value-prop {
    text-align: center;
    padding: 20px;
}

.value-prop h3 {
    color: var(--orange);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.value-prop p {
    color: #555;
}

.value-card {
    background-color: rgba(107, 138, 171, 0.15) !important;
    border-radius: 8px;
    padding: 35px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card h3 {
    color: var(--orange) !important;
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.value-card p {
    color: #555;
}

.value-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 37, 58, 0.1);
}

/* ==========================================================================
   Book Section
   ========================================================================== */
.book-image img {
    max-width: 350px;
    box-shadow: 0 15px 50px rgba(16, 37, 58, 0.25);
    border-radius: 4px;
}

.book-content h2 {
    margin-bottom: 10px;
}

.book-content .book-subtitle {
    color: var(--light-blue);
    margin-bottom: 25px;
}

/* ==========================================================================
   Service Cards
   ========================================================================== */
.service-section {
    padding: 60px 20px;
    background-color: #f8f9fa !important;
}

.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-header h2 {
    margin-bottom: 0;
}

/* Service separator bar */
.service-separator {
    height: 4px;
    background-color: var(--light-blue);
    margin-bottom: 50px;
}

/* OSHA-style service top section */
.service-top {
    display: grid !important;
    grid-template-columns: 350px 1fr !important;
    gap: 50px;
    align-items: center;
    margin-bottom: 50px;
}

.service-image-feature {
    max-width: 350px;
}

.service-image-feature img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(16, 37, 58, 0.1);
}

.service-intro-content h2 {
    margin-bottom: 20px;
}

.service-hook {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Service details grid - two columns */
.service-details-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 50px;
    margin-bottom: 40px;
}

.service-overview h3 {
    margin-bottom: 20px;
    line-height: 1.4;
}

.service-overview p {
    margin-bottom: 15px;
}

/* Service footer */
.service-footer {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.service-footer p {
    margin-bottom: 15px;
}

.service-footer .btn {
    margin-top: 20px;
}

/* Dark button variant */
.btn-dark {
    background-color: var(--dark-blue);
    color: var(--white);
}

.btn-dark:hover {
    background-color: var(--orange);
    color: var(--white);
}

.service-intro {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

.service-details h3 {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 25px;
    color: var(--dark-blue);
}

.service-includes h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.service-includes ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.service-includes li {
    padding: 10px 0 10px 30px;
    position: relative;
    border-bottom: 1px solid #eee;
}

.service-includes li:last-child {
    border-bottom: none;
}

.service-includes li::before {
    content: "✓";
    color: var(--orange);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.service-pricing {
    margin: 30px 0;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.service-timeline {
    color: var(--light-blue);
    font-weight: 500;
    margin-top: 5px;
}

.service-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    margin-top: 15px;
}

.service-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(16, 37, 58, 0.1);
}

.service-image-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-section {
    padding: 80px 20px;
    background-color: #f8f9fa !important;
}

.faq-section .container-narrow {
    display: block;
    width: 100%;
}

.faq-item {
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(16, 37, 58, 0.06);
    overflow: hidden;
}

.faq-question {
    display: block;
    width: 100%;
    padding: 20px 50px 20px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--dark-blue);
    transition: background-color 0.3s ease;
    background: none;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    text-align: left;
    position: relative;
    box-sizing: border-box;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question:focus {
    outline: 3px solid var(--orange);
    outline-offset: -3px;
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--orange);
    transition: transform 0.3s ease;
    font-weight: 400;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

.faq-answer p {
    margin: 0;
    color: #555;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-info h3 {
    margin-bottom: 25px;
}

.contact-info p {
    margin-bottom: 20px;
}

.contact-info strong {
    display: block;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.contact-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

.contact-form h3 {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-blue);
}

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

.contact-grid {
    align-items: flex-start;
}

.contact-section {
    padding-top: 80px;
    background-color: #f8f9fa !important;
}

.contact-details {
    margin: 30px 0;
}

.contact-details a {
    color: var(--light-blue);
}

.contact-cta {
    margin-top: 40px;
}

.form-intro {
    margin-bottom: 25px;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    text-align: center;
    padding: 80px 20px;
}

.cta-section h2 {
    margin-bottom: 15px;
}

.cta-section .subtitle {
    margin-bottom: 30px;
    color: var(--light-blue);
}

.cta-section.section-gray {
    background-color: var(--light-gray);
}

.cta-section.section-gray h2 {
    color: var(--dark-blue);
}

.cta-section.section-gray .subtitle {
    color: var(--light-blue);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 50px 40px 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-tagline {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-tagline em {
    font-size: 2rem;
    color: var(--white);
    font-style: italic;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-contact h5 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-contact p {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact .contact-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.footer-contact a {
    color: var(--white);
    font-size: 1.05rem;
}

.footer-contact a:hover {
    color: var(--orange);
}

.footer-social {
    display: flex;
    gap: 25px;
    align-items: center;
}

.footer-social a {
    color: var(--white);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

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

.footer-social svg {
    width: 28px;
    height: 28px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .hero h1 { font-size: 2.5rem; }
    
    .two-col,
    .two-col-60-40,
    .two-col-40-60 {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .three-col {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .service-top {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .service-image-feature {
        text-align: center;
    }
    
    .service-details-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 50px 20px;
    }
    
    .header-inner {
        flex-wrap: wrap;
        padding: 15px 20px;
    }
    
    .site-logo {
        order: 1;
        flex: 0 0 100%;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .main-nav {
        display: none;
        order: 3;
        flex: 0 0 100%;
        position: relative;
        background: var(--white);
        padding: 20px 0;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    
    .main-nav li {
        border-bottom: 1px solid #eee;
        width: 100%;
        text-align: center;
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    .header-social {
        order: 2;
        flex: 0 0 auto;
        justify-content: center;
        gap: 25px;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
        position: absolute;
        right: 20px;
        top: 25px;
    }
    
    .footer-main {
        flex-direction: column;
        gap: 30px;
        align-items: flex-start;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-tagline em {
        font-size: 1.5rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
    }
    
    .book-image img {
        max-width: 250px;
    }
    
    .service-price {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
