/* CSS Variables */
:root {
    --primary-color: #007BFF;
    --secondary-color: #005FDB;
    --accent-color: #3FA5FF;
    --blog-accent: #00BFA6;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-primary: #ffffff;
    --bg-secondary: #f7fafc;
    --bg-dark: #00237A;
    --border-color: #e2e8f0;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Performance optimizations */
* {
    will-change: auto;
}

img {
    content-visibility: auto;
}

.blog-preview, .service-card, .faq-item {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: var(--shadow-large);
    border: 2px solid #ffffff;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 500;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Service Button Containers */
.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    width: 100%;
}

.service-cta {
    width: 100%;
    text-align: center;
}

.service-cta-secondary {
    font-size: 1.125rem;
    padding: 20px 40px;
    background: #ffffff;
    color: var(--primary-color);
    border: 2px solid #ffffff;
    box-shadow: var(--shadow-large);
    width: 100%;
    text-align: center;
    font-weight: 600;
}

.service-cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Tertiary Button Style - Text Only */
.service-cta-tertiary {
    font-size: 1.125rem;
    padding: 20px 40px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    width: 100%;
    text-align: center;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-cta-tertiary:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Gradient Text */
.gradient-text {
    color: #ffffff;
    font-weight: 800;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

/* Specific headings with primary color */
.about .section-header h2,
.services .section-header h2,
.contact .section-header h2,
.company .section-header h2,
.faq .section-header h2 {
    color: var(--primary-color);
}

/* Blog section with white text on teal background */
.blog .section-header h2 {
    color: white;
}

.blog .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

/* Portfolio section with dark background gets white heading */
.portfolio .section-header h2 {
    color: white;
}

.portfolio .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 500;
}

.section-subheading {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stats in section header */
.section-header .stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.section-header .stats .stat {
    text-align: center;
}

.section-header .stats .stat h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header .stats .stat p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 120px;
    margin: 0;
}

/* Navigation */
.navbar {
    position: relative;
    width: 100%;
    background: white;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    min-height: 90px;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-xero-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}



/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Expertise Section */
.expertise {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.expertise-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expertise-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.expertise-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition);
}

.expertise-logo:hover {
    opacity: 0.8;
    filter: grayscale(50%);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, rgba(0, 123, 255, 0.85) 0%, rgba(0, 95, 219, 0.9) 100%),
        url('../assets/images/people/business-meeting.png') center/cover no-repeat;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)), url('../assets/images/people/flowchart-meeting.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}

/* Discovery Process Section */
.discovery-content {
    display: flex;
    justify-content: center;
    width: 100%;
}

.discovery-areas {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.discovery-icon {
    margin-bottom: 2rem;
}

.discovery-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.discovery-areas h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.areas-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
}

.area-column {
    flex: 1;
    min-width: 0;
}

.area-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-column li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.area-column li:last-child {
    border-bottom: none;
}

@media (max-width: 1024px) {
    .areas-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .areas-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .discovery-icon img {
        width: 60px;
        height: 60px;
    }
}

/* Service Content Grid for Two-Column Layout */
.service-content-grid {
    display: grid !important;
    grid-template-columns: 280px 280px !important;
    gap: 60px;
    align-items: start;
    width: 100%;
    justify-content: center;
}

.service-header {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.service-header h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.service-left-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.service-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    min-height: 400px;
    padding-left: 0;
}

.service-pricing {
    text-align: left;
    margin-bottom: 2rem;
    margin-left: 0;
    margin-top: 0;
    padding-left: 0;
}

.service-pricing .service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-pricing .service-timeframe {
    font-size: 1rem;
    color: var(--text-secondary);
}



.service-right-column .service-cta {
    max-width: 300px;
    width: fit-content;
    align-self: flex-start;
    margin-top: auto;
}

/* Restrict Xero card total width - only on Xero page */
body.xero-page .portfolio-item {
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .service-content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .service-right-column {
        align-items: flex-start;
        padding: 0;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.problem-stats {
    margin: 1.5rem 0 2.5rem 0;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--blog-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-caption {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}

/* The Problem heading styling */
.about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-primary);
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-graphic {
    width: 250px;
    height: 250px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-large);
}

.about-graphic i {
    font-size: 4rem;
    color: white;
}

.about-photo {
    width: 80%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Services Section */
.services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-primary);
    padding: 3.5rem 2rem;
    border-radius: var(--border-radius-large);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid rgba(0, 123, 255, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 320px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* Xero page specific styling - only apply red filter to portfolio service icons, not process icons */
body.xero-page .portfolio .service-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: linear-gradient(135deg, #00369D 0%, #001357 100%);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: start;
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-large);
    transition: var(--transition);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    min-height: 520px;
    height: fit-content;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.service-mini-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

.portfolio-item h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: left;
    width: 100%;
}

.portfolio-item .service-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.portfolio-item .service-timeframe {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.portfolio-item .service-deliverables {
    margin-bottom: 1.5rem;
}

.portfolio-item .service-deliverables h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.portfolio-item .service-deliverables ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portfolio-item .service-deliverables li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.portfolio-item .service-deliverables li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 0.875rem;
}

.portfolio-item .service-quote {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.testimonial-stars i {
    color: #fbbf24;
    font-size: 0.875rem;
}

.portfolio-item .service-quote p {
    font-style: italic;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
}

.portfolio-item .service-cta {
    margin-top: auto;
    width: 100%;
}

.portfolio-item .service-buttons {
    margin-top: auto;
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.blog .container {
    background: var(--blog-accent);
    border-radius: 16px;
    padding: 4rem 3rem;
    color: white;
    position: relative;
}

/* Company Section */
.company {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.company-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.company-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 400px;
}

.company-image img {
    width: 600px !important;
    height: auto !important;
    max-width: none !important;
    object-fit: contain;
    border-radius: 12px;
}

.company-story h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.company-story p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Company Features Styling */
.company-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 1.5rem;
}

.feature-item span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .company-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.25rem;
    }
    
    .feature-item i {
        font-size: 1.25rem;
    }
    
    .feature-item span {
        font-size: 1rem;
    }
}

.company-credentials {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credential-section {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.credential-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.certification-list,
.trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certification-list li,
.trust-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.certification-list li i,
.trust-list li i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 16px;
}



/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.faq-grid, .faq-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 123, 255, 0.05);
}

.faq-question h3 {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.faq-question i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: transform 0.3s ease;
    margin-left: 1rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1200px;
    padding: 2.5rem 2rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    color: var(--text-secondary);
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer ul li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-answer .btn {
    margin-top: 1rem;
    display: inline-block;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
}


.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.contact-item h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: white;
    font-size: 0.9rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid white;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.825rem;
}

.footer-bottom p {
    color: white;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 0.825rem;
    transition: var(--transition);
}

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

.footer-links span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-locations {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flag-icon {
    font-size: 1.1rem;
    width: 20px;
    display: inline-block;
}

/* Responsive Button Text */
@media (max-width: 768px) {
    .btn-responsive-text {
        font-size: 0;
    }
    
    .btn-responsive-text::before {
        content: "📞 Book Free Health Check";
        font-size: 1rem;
    }
    
    /* Mobile KPI Stats */
    .problem-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Mobile Blog Container */
    .blog .container {
        padding: 3rem 2rem;
        border-radius: 12px;
    }
}

/* Laptop-sized screens - reduce blog container padding for better card fit */
@media (max-width: 1440px) and (min-width: 769px) {
    .blog .container {
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-medium);
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-container {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card {
        min-height: 300px;
    }
    
    .company-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Fix parallax on mobile */
    .about {
        background-attachment: scroll;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        min-height: auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-logos {
        gap: 1.5rem;
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .expertise-logo {
        height: 80px;
    }
    

    
    /* Stats responsive design */
    .section-header .stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }
    
    .section-header .stats .stat h4 {
        font-size: 2rem;
    }
    
    .section-header .stats .stat p {
        max-width: none;
    }
}

/* Smooth scrolling offset for fixed navbar */
section {
    scroll-margin-top: 0;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Return to Top Button */
.return-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-large);
    transition: var(--transition);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.return-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.return-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.return-to-top:active {
    transform: translateY(0);
}
}
