/* ===== NEXTGEN STAFFING SOLUTION ===== */
/* Brand colors based on logo: Deep Teal #1A5F5F */
/* Fully Responsive Design - Mobile First Approach */

:root {
    --teal: #1A5F5F;
    --teal-light: #238B8B;
    --teal-dark: #0E3D3D;
    --teal-soft: #E8F3F3;
    --white: #FFFFFF;
    --offwhite: #F9F9F9;
    --gray-light: #F0F0F0;
    --gray: #666666;
    --gray-dark: #333333;
    --black: #222222;
    --shadow: rgba(26, 95, 95, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Prevents header from covering content */
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
}

/* ===== TYPOGRAPHY (Mobile First) ===== */
h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

h4 {
    font-size: 1.2rem;
}

h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
}

.section-title {
    text-align: center;
    display: block;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.section-title:after {
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

/* ===== HEADER & NAVIGATION (Mobile First) ===== */
header {
    background: var(--white);
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.5rem 0;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.logo {
    height: 40px;
    width: auto;
}

.logo-container h1 {
    font-size: 1.2rem;
    color: var(--teal);
    font-weight: 700;
    margin: 0;
    text-align: center;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

nav a {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    padding: 0.3rem 0;
}

nav a:hover {
    color: var(--teal);
}

nav a.active {
    color: var(--teal);
    font-weight: 600;
    position: relative;
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
}

.nav-button {
    background: var(--teal);
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease !important;
    font-weight: 600;
    font-size: 0.9rem !important;
}

.nav-button:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow);
}

.nav-button.active:after {
    display: none;
}

/* ===== HERO SLIDESHOW (Mobile First) ===== */
.hero {
    position: relative;
    height: 400px; /* Smaller on mobile */
    overflow: hidden;
    width: 100%;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 95, 0.8) 0%, rgba(14, 61, 61, 0.6) 100%);
}

.slide-text {
    position: relative;
    color: var(--white);
    font-size: 1.8rem; /* Smaller on mobile */
    font-weight: 700;
    text-align: center;
    z-index: 2;
    max-width: 90%;
    padding: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
    word-wrap: break-word;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ABOUT SECTION (Mobile First) ===== */
.about-three-columns {
    width: 100%;
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.columns-container {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.about-column {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease;
    border: 1px solid var(--teal-soft);
    width: 100%;
}

.about-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow);
}

.about-column h4 {
    color: var(--teal);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--teal-soft);
}

.tagline-card {
    background: var(--teal-soft);
    padding: 1.2rem;
    border-radius: 12px;
    margin: 1.2rem 0;
    border-left: 6px solid var(--teal);
}

.tagline-card h2 {
    color: var(--teal-dark);
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}

/* Counter column */
.counter-column {
    text-align: center;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: var(--white);
}

.counter-column h4 {
    color: var(--white);
    border-bottom-color: rgba(255,255,255,0.3);
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin: 0.8rem 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.counter-description {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

/* ===== SERVICES SECTION (Mobile First) ===== */
.section {
    width: 100%;
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.services {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
}

.card {
    background: var(--white);
    padding: 1.8rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--teal-soft);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--teal);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px var(--shadow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h4 {
    color: var(--teal-dark);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== EMPLOYERS SECTION (Mobile First) ===== */
.employers-section {
    width: 100%;
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1.5rem;
    align-items: center;
    background: var(--teal-soft);
    border-radius: 20px;
    overflow: hidden;
}

.employers-section img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.employers-section .text {
    padding: 1.8rem;
}

.employers-section h3 {
    color: var(--teal-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.employers-section p {
    color: var(--gray-dark);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== LOCATION PAGE SPECIFIC (Mobile First) ===== */
.location-page {
    background: var(--teal-soft);
    padding: 1.5rem 1rem;
    min-height: calc(100vh - 200px);
    width: 100%;
}

.location-container {
    width: 100%;
    max-width: 1200px;
    margin: 1.5rem auto;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(26, 95, 95, 0.15);
    overflow: hidden;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 0;
}

.map-section {
    padding: 1.5rem;
    background: var(--teal-soft);
}

.map-container {
    width: 100%;
    height: 300px; /* Smaller on mobile */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(26, 95, 95, 0.2);
    position: relative;
    border: 3px solid var(--white);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-pin-note {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: var(--teal);
    color: var(--white);
    padding: 0.8rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(26, 95, 95, 0.4);
    z-index: 10;
    text-align: center;
    border: 2px solid var(--white);
    word-wrap: break-word;
}

.map-pin-note::before {
    content: '📍';
    margin-right: 5px;
}

.info-section {
    padding: 2rem 1.5rem;
    background: var(--white);
}

.info-section h2 {
    color: var(--teal);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.info-section .subtitle {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid var(--teal-soft);
}

.detail-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.detail-icon {
    font-size: 1.5rem;
    min-width: 40px;
    height: 40px;
    background: var(--teal-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal);
}

.detail-content strong {
    font-size: 1rem;
}

.detail-content p,
.detail-content a {
    font-size: 0.9rem;
}

.hours-box {
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.direction-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

.business-badge {
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.badge {
    width: 100%;
    text-align: center;
    padding: 0.6rem;
}

/* ===== MODERN FOOTER (Mobile First) ===== */
footer {
    position: relative;
    background: var(--teal-dark);
    color: var(--white);
    margin-top: 4rem;
    padding: 0;
    font-family: 'Inter', sans-serif;
    width: 100%;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 40px; /* Smaller on mobile */
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem 0;
    background: var(--teal-dark);
}

.footer-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Company Info Column */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.footer-logo h3 span {
    color: var(--teal-soft);
    font-weight: 300;
}

.footer-tagline {
    font-size: 1rem;
    text-align: center;
}

.footer-description {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===== SOCIAL LINKS - MORE VISIBLE ===== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.social-link:hover {
    background: var(--teal);
    transform: translateY(-5px) scale(1.1);
    border-color: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Footer Headings */
.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.footer-column h4:after {
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
}

/* ===== FOOTER LINKS - MORE VISIBLE ===== */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.3rem 0;
    border-bottom: 1px solid transparent;
}

.footer-links a span {
    display: inline-block;
    margin-right: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--teal-soft);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--teal-soft);
    transform: translateX(8px);
    border-bottom-color: var(--teal-soft);
}

.footer-links a:hover span {
    transform: translateX(5px);
    color: var(--white);
}

/* Contact links */
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.3rem;
    min-width: 30px;
    color: var(--teal-soft);
    font-weight: bold;
}

.footer-contact li div {
    flex: 1;
}

.footer-contact li strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.footer-contact li p,
.footer-contact li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-contact li a:hover {
    color: var(--teal-soft);
    text-decoration: underline;
    padding-left: 3px;
}

.contact-icon {
    font-size: 1.2rem;
}

/* Newsletter Section */
.newsletter-container {
    padding: 2rem 0;
}

.newsletter-content {
    padding: 0 1rem;
}

.newsletter-content h4 {
    font-size: 1.2rem;
}

.newsletter-content p {
    font-size: 0.9rem;
}

.newsletter-form {
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

.newsletter-form input,
.newsletter-form button {
    width: 100%;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== FOOTER BOTTOM - PERFECTLY CENTERED ===== */
.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.5rem 2rem;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin: 0;
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.footer-bottom strong {
  color: var(--white);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-bottom {
    padding: 1.2rem 1rem;
  }
  
  .footer-bottom p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
}

/* ===== FOOTER BOTTOM LINKS ===== */
.footer-bottom-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 0.2rem 0;
    border-bottom: 1px solid transparent;
}

.footer-bottom-links a:hover {
    color: var(--white);
    border-bottom-color: var(--teal-soft);
}

/* ===== TABLET BREAKPOINT (768px and up) ===== */
@media (min-width: 768px) {
    /* Typography */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.3rem; }
    .section-title { font-size: 2rem; }
    
    /* Header */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.5rem 2rem;
    }
    
    .logo-container {
        justify-content: flex-start;
    }
    
    .logo-container h1 {
        font-size: 1.3rem;
    }
    
    nav {
        gap: 1.5rem;
    }
    
    /* Hero */
    .hero {
        height: 500px;
    }
    
    .slide-text {
        font-size: 2.5rem;
        max-width: 80%;
    }
    
    /* About - 2 columns on tablet */
    .columns-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Services - 2 columns on tablet */
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Employers - side by side on tablet */
    .employers-section {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .employers-section img {
        max-height: 400px;
    }
    
    /* Location page - side by side on tablet */
    .location-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
    
    .map-container {
        height: 400px;
    }
    
    .map-pin-note {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
    
    .info-section {
        padding: 2.5rem 2rem;
    }
    
    .business-badge {
        flex-direction: row;
    }
    
    /* Footer - 2 columns on tablet */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-wave svg {
        height: 60px;
    }
    
    .footer-logo {
        justify-content: flex-start;
    }
    
    .footer-tagline,
    .footer-description,
    .footer-column h4 {
        text-align: left;
    }
    
    .footer-column h4:after {
        left: 0;
        transform: none;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-contact li {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .newsletter-form {
        flex-direction: row;
    }
    
    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ===== DESKTOP BREAKPOINT (1024px and up) ===== */
@media (min-width: 1024px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2.2rem; }
    h3 { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    
    /* Header */
    .logo-container h1 {
        font-size: 1.5rem;
    }
    
    nav {
        gap: 2rem;
    }
    
    nav a {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero {
        height: 600px;
    }
    
    .slide-text {
        font-size: 3rem;
        max-width: 800px;
    }
    
    /* About - 3 columns on desktop */
    .columns-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
    
    /* Services - 3 columns on desktop */
    .services {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    /* Footer - 4 columns on desktop */
    .footer-container {
        grid-template-columns: 2fr 1fr 1fr 2fr;
        gap: 3rem;
    }
    
    .footer-wave svg {
        height: 80px;
    }
    
    .newsletter-form {
        max-width: 500px;
    }
}

/* ===== LARGE DESKTOP BREAKPOINT (1280px and up) ===== */
@media (min-width: 1280px) {
    .nav-container,
    .about-three-columns,
    .section,
    .employers-section,
    .footer-container,
    .footer-bottom-container,
    .newsletter-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ===== UTILITIES ===== */
.text-teal { color: var(--teal); }
.bg-teal { background: var(--teal); }
.bg-teal-soft { background: var(--teal-soft); }
.text-center { text-align: center; }
.w-100 { width: 100%; }
.hide-mobile { display: none; }

@media (min-width: 768px) {
    .hide-mobile { display: block; }
    .show-mobile { display: none; }
}
@media (max-width: 768px) {
    /* Make links bigger on mobile for easier tapping */
    nav a {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
    }
    
    .footer-contact li a {
        font-size: 1rem;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
    
    .footer-bottom-links {
        gap: 1.5rem;
        justify-content: center;
    }
    
    .footer-bottom-links a {
        font-size: 1rem;
    }
}
