/* Staff Health Ltd. - CSS Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    /* Background image option - uncomment and add your image */
    /* background-image: url('../images/background.jpg'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* background-attachment: fixed; */
    /* background-repeat: no-repeat; */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #d8e3f0;
    color: white;
    position: relative;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    height: 78px;
    width: auto;
    max-width: 104px;
    filter: brightness(0) saturate(100%);
}

.logo-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #4a7bb7;
}

.tagline {
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.9;
    color: #4a7bb7;
}

.navigation {
    position: relative;
    flex-shrink: 0;
    min-width: fit-content;
}

.menu-button {
    background: #4a7bb7;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: none; /* Hide on desktop, show on mobile */
}

.nav-menu {
    display: flex !important;
    flex-direction: row !important;
    list-style: none;
    gap: 0;
    background: #4a7bb7;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: static;
    opacity: 1;
    visibility: visible;
    min-width: auto;
    width: auto;
}

.nav-menu li {
    border-right: 1px solid #2d5c8a;
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-menu li:last-child {
    border-right: none;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    font-weight: 500;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-menu a:hover {
    background-color: #2d5c8a;
    color: white;
}

/* Hero Section with Large Image */
.hero-with-image {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-with-image .container {
    position: relative;
    z-index: 3;
    text-align: left;
    color: white;
    max-width: 1200px;
    padding-left: 100px;
    width: 100%;
}

.hero-with-image h1 {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.8), 1px 1px 3px rgba(0,0,0,0.9);
    color: white;
}

.hero-with-image .hero-tagline {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.9);
    color: white;
}

.hero-with-image .hero-subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.9);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #5a8bc4 0%, #4a7bb7 100%);
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
}

/* Remove background when hero has image */
.hero.hero-with-image {
    background: none;
    padding: 0;
}

/* Secondary hero section (for content) */
.hero:not(.hero-with-image) {
    background: linear-gradient(135deg, #5a8bc4 0%, #4a7bb7 100%);
    padding: 40px 0;
}

.hero:not(.hero-with-image) h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

/* To add background image to hero, uncomment these lines: */
/*
.hero {
    background-image: url('../images/header-image.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.8) 0%, rgba(44, 90, 160, 0.8) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}
*/

.hero h2 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background-color: #4a7bb7;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background-color: #2d5c8a;
    transform: translateY(-2px);
}

/* Services Icons Section */
.services-icons {
    background-color: #f8f9fa;
    padding: 40px 0;
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}

.icon-item {
    padding: 15px;
    text-align: center;
}

.icon-item img {
    max-width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.icon-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.content-sections {
    display: grid;
    gap: 50px;
}

.content-section {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-section h3 {
    font-size: 1.8rem;
    color: #4a7bb7;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.content-section p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    color: #4a7bb7;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s;
}

.read-more:hover {
    border-bottom-color: #4a7bb7;
}

.section-image {
    margin-top: 20px;
    text-align: center;
}

.section-image img {
    max-width: 200px;
    height: auto;
}

/* Key Advantages */
.key-advantages {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.advantage-item {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #4a7bb7;
}

.advantage-item h4 {
    color: #4a7bb7;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.advantage-item p {
    margin-bottom: 0;
}

/* Testimonial */
.testimonial {
    background: #4a7bb7;
    color: white;
    text-align: center;
    padding: 40px;
    border-radius: 8px;
}

.testimonial blockquote {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial cite {
    font-weight: 600;
    font-style: normal;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #4a7bb7 0%, #2d5c8a 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Recent Posts */
.recent-posts {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.recent-posts h2 {
    text-align: center;
    color: #4a7bb7;
    font-size: 2.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.posts-list {
    display: grid;
    gap: 15px;
}

.post-item {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.post-item a {
    color: #4a7bb7;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
}

.post-item a:hover {
    color: #2d5c8a;
}

/* Footer */
.footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 30px 0;
}

.footer p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer a {
    color: #5a8bc4;
    text-decoration: none;
}

.footer a:hover {
    color: #4a7bb7;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header .container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-menu {
        font-size: 0.9rem;
    }
    
    .nav-menu a {
        padding: 12px 20px;
    }
}

/* Mobile Navigation - Only for screens smaller than 768px */
@media (max-width: 767px) {
    .header .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .logo {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .logo-image {
        height: 65px;
        max-width: 91px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 0.7rem;
    }
    
    /* Mobile Navigation Override */
    .navigation {
        width: 100%;
    }
    
    .menu-button {
        display: block !important;
        width: 200px;
        margin: 0 auto;
    }
    
    .nav-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: column !important;
        min-width: 250px !important;
        z-index: 1000 !important;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        width: 250px !important;
    }
    
    .nav-menu.show {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-menu li {
        border-right: none !important;
        border-bottom: 1px solid #2d5c8a !important;
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none !important;
    }
    
    .nav-menu a {
        padding: 15px 25px !important;
        text-align: center !important;
        width: 100% !important;
    }
}
    
    .hero-with-image {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-with-image .container {
        text-align: left;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .hero-with-image h1 {
        font-size: 2.5rem;
    }
    
    .hero-with-image .hero-tagline {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .hero-with-image .hero-subtitle {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }
    
    .hero:not(.hero-with-image) h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .icons-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 15px;
    }
    
    .icon-item img {
        max-width: 60px;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .recent-posts h2 {
        font-size: 1.8rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 52px;
        max-width: 78px;
    }
    
    .logo-text h1 {
        font-size: 1.3rem;
    }
    
    .tagline {
        font-size: 0.6rem;
    }
    
    .menu-button {
        width: 180px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        min-width: 200px;
    }
    
    .nav-menu a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .content-section {
        padding: 15px;
    }
    
    .content-section h3 {
        font-size: 1.5rem;
    }
    
    .icons-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation and Interactive Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.6s ease-out;
}

/* Menu Toggle Functionality */
.navigation:hover .nav-menu,
.navigation:focus-within .nav-menu {
    display: block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Website Background Options */
.bg-pattern {
    background-image: url('../images/background-pattern.png');
    background-repeat: repeat;
    background-size: auto;
}

.bg-full {
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.bg-subtle {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    background-attachment: fixed;
}

/* Content overlay for better readability over backgrounds */
.content-overlay {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Focus States for Accessibility */
.cta-button:focus,
.read-more:focus,
.nav-menu a:focus {
    outline: 2px solid #5a8bc4;
    outline-offset: 2px;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(135deg, #4a7bb7 0%, #2d5c8a 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Service Items */
.service-item {
    background: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid #4a7bb7;
}

.service-item h3 {
    color: #4a7bb7;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Team Styles */
.team-expertise {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.expertise-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #4a7bb7;
}

.expertise-item h3 {
    color: #4a7bb7;
    margin-bottom: 15px;
    font-weight: 600;
}

.approach-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #5a8bc4;
}

.approach-item h3 {
    color: #4a7bb7;
    margin-bottom: 10px;
    font-weight: 600;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.industry-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 3px solid #4a7bb7;
}

.industry-item h4 {
    color: #4a7bb7;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-methods {
    margin-top: 30px;
}

.contact-method {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2d5016;
}

.contact-method h3 {
    color: #2d5016;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-method p {
    margin-bottom: 5px;
}

/* Contact Form Styles */
.contact-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5016;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-weight: normal;
    line-height: 1.5;
    cursor: pointer;
}

.submit-button {
    background-color: #2d5016;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.submit-button:hover {
    background-color: #1a3009;
    transform: translateY(-2px);
}

.submit-button:focus {
    outline: 2px solid #3d6b1f;
    outline-offset: 2px;
}

/* Benefits Section */
.why-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.benefit-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-top: 3px solid #3d6b1f;
}

.benefit-item h3 {
    color: #2d5016;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Responsive Adjustments for New Pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-expertise {
        grid-template-columns: 1fr;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .why-contact {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .contact-method,
    .expertise-item,
    .service-item,
    .approach-item,
    .benefit-item {
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .submit-button {
        padding: 12px 25px;
        font-size: 14px;
    }
}
