/* ==========================================================================
   Self Services, Inc. - Custom Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #4a5a6a;       /* Slate blue-gray */
    --color-primary-dark: #3d4a57;  /* Darker slate */
    --color-accent: #c9a227;        /* Gold/mustard accent */
    --color-text: #333333;
    --color-text-light: #6c757d;
    --color-footer-bg: #4a5a6a;
    --color-white: #ffffff;
    --color-light-gray: #f8f9fa;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --header-height: 80px;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary-dark);
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar {
    padding: 5px 0;
}

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

.site-header .nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-light);
    padding: 0.5rem 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--color-primary-dark);
}

.site-header .nav-link.active {
    font-weight: 700;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.section-title::before,
.section-title::after {
    content: '';
    height: 2px;
    width: 60px;
    background: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-content h2 {
    font-style: italic;
    font-weight: 500;
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Project Grid
   -------------------------------------------------------------------------- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 991px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card .overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 90, 106, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card .overlay .icon {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card .overlay .title {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    padding: 0 0.5rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-white);
    padding: 4rem 0 0;
}

.site-footer .footer-logo {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer .footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.site-footer .footer-contact strong {
    font-weight: 600;
}

.site-footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--color-white);
}

.social-links .social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-links .social-link:hover {
    color: var(--color-white);
}

/* Footer Form */
.footer-form .form-control {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.footer-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-form .form-control:focus {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    color: var(--color-white);
}

.footer-form .btn-submit {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-form .btn-submit:hover {
    background: var(--color-white);
    border-color: var(--color-white);
    color: var(--color-footer-bg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-accent {
    color: var(--color-accent);
}

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

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Custom mobile menu - no animation, instant toggle */
    .navbar-collapse {
        display: none;
        background: var(--color-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.show {
        display: block;
    }

    .site-header .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid var(--color-light-gray);
    }

    .site-header .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .hero-image {
        height: 300px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title::before,
    .section-title::after {
        width: 40px;
    }
}

@media (max-width: 767px) {
    :root {
        --header-height: 70px;
    }

    .hero-image {
        height: 250px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .footer-contact,
    .site-footer .footer-nav {
        margin-bottom: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .social-links .d-flex {
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   Home Page Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('/images/hero-project.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(74, 90, 106, 0.85) 0%, rgba(61, 74, 87, 0.75) 100%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 700px;
    color: var(--color-white);
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

@media (max-width: 767px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

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

.page-header h1 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    opacity: 0.9;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* --------------------------------------------------------------------------
   Service Cards
   -------------------------------------------------------------------------- */
.service-card {
    background: var(--color-white);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--color-light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--color-primary);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Large service icons for services page */
.service-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
}

.service-icon-large i {
    font-size: 8rem;
    color: var(--color-primary);
    opacity: 0.2;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-features li i {
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   Value Cards
   -------------------------------------------------------------------------- */
.value-card {
    background: var(--color-white);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.value-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Team Cards & Bios
   -------------------------------------------------------------------------- */
.team-card {
    text-align: center;
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Team bio sections */
.team-bio {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.team-bio:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-photo-large {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.team-photo-placeholder {
    width: 100%;
    max-width: 250px;
    aspect-ratio: 1;
    background: var(--color-light-gray);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder i {
    font-size: 4rem;
    color: var(--color-text-light);
    opacity: 0.5;
}

.team-role-title {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta-section {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5rem 0;
}

.cta-section h2 {
    color: var(--color-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section .lead {
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-form .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    padding: 0.75rem 1rem;
    border-color: #dee2e6;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 90, 106, 0.15);
}

.contact-info-card {
    background: var(--color-light-gray);
    border-radius: 0.5rem;
    padding: 2rem;
}

.contact-info-card h3 {
    margin-bottom: 1.5rem;
}

.contact-info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: var(--color-white);
}

.contact-details h5 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    margin-bottom: 0;
    color: var(--color-text-light);
}

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

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

.social-links-contact {
    display: flex;
    gap: 1rem;
}

.social-link-lg {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.social-link-lg:hover {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Google Form Container */
.google-form-container {
    background: var(--color-light-gray);
    border-radius: 0.5rem;
    overflow: hidden;
}

.google-form-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.5rem 2rem;
}

.google-form-header h2 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.google-form-header p {
    margin-bottom: 0;
    opacity: 0.9;
}

.google-form-body {
    padding: 1rem;
}

.google-form-body iframe {
    border-radius: 0.25rem;
    background: var(--color-white);
}

/* Footer Google Form */
.footer-form-container {
    background: var(--color-white);
    border-radius: 0.5rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-form-container iframe {
    display: block;
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-outline-primary {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}
