/*
 * Far North Resource Consents (FNRC) - Main Stylesheet
 * A high-converting, SEO-optimized design
 */

/* ===== BASE STYLES ===== */
:root {
    /* Primary Colors */
    --primary-color: #006d77;
    --primary-dark: #00565e;
    --primary-darker: #004a51;
    --primary-light: #e6f6f7;
    
    /* Secondary Colors */
    --secondary-color: #EFBF04; /* Golden Yellow */
    --secondary-dark: #C09A03;
    --secondary-light: #FFF5C0;
    
    /* Neutral Colors */
    --dark: #202124;
    --gray-dark: #5f6368;
    --gray: #9aa0a6;
    --gray-light: #dadce0;
    --light: #f8f9fa;
    --white: #ffffff;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}


body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
    display: inline;
    margin: 0;
    padding: 0;
}

a:hover {
    color: var(--primary-dark);
}

/* Ensure inline links in content have proper spacing */
p a, li a {
    margin: 0;
    padding: 0;
    display: inline;
    word-spacing: normal;
    letter-spacing: normal;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--text-3xl);
    color: var(--dark);
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--gray-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    padding: 0.75rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px; /* Increased from 200px to ensure text fits */
    white-space: nowrap;
    overflow: visible; /* Ensure text doesn't get cut off */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cta-section .btn-primary {
    background-color: #EFBF04 !important;
    border-color: #EFBF04 !important;
    color: var(--white);
}

.cta-section .btn-primary:hover {
    background-color: #C09A03 !important;
    border-color: #C09A03 !important;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary buttons in service card 2 */
.service-card-2 .btn-secondary {
    background-color: transparent !important;
    color: #EFBF04 !important;
    border: 2px solid #EFBF04 !important;
}

.service-card-2 .btn-secondary:hover {
    background-color: #FFF5C0 !important;
    color: #C09A03 !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-color);
}

header .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.logo h1 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
}

/* Mobile logo styling for stacked text */
@media (max-width: 768px) {
    header {
        padding: var(--spacing-md) 0;
    }
    
    header .container {
        padding: var(--spacing-md) 0;
    }
    
    .logo {
        margin: var(--spacing-sm) 0;
    }
    
    .logo h1 {
        font-size: var(--text-base);
        line-height: 1.3;
    }
    
    .logo h1 a {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }
    
    /* Only apply the pseudo-elements to the homepage logo that has a span */
    .logo h1 a span {
        display: none;
    }
    
    /* Only add the content if the span exists */
    .logo h1 a span + * {
        display: none;
    }
    
    /* For homepage with span */
    .logo h1 a:has(span)::after {
        content: "Resource Consents";
        display: block;
    }
    
    .logo h1 a:has(span)::before {
        content: "Far North";
        display: block;
    }
    
    /* For service pages without span, format the text nicely */
    .logo h1 a:not(:has(span)) {
        font-size: 0.9em;
        text-align: center;
        line-height: 1.4;
    }
    
    /* Ensure sticky header has enough height */
    header.sticky {
        padding: var(--spacing-md) 0;
    }
    
    header.sticky .container {
        padding: var(--spacing-sm) 0;
    }
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: center;
}

nav ul li:last-child a.btn-primary {
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 9rem 0 5rem; /* Increased top padding from 7rem to 9rem */
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--dark);
}

.hero-content p {
    font-size: var(--text-xl);
    color: var(--gray-dark);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.hero-trust {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.trust-icons {
    display: flex;
    justify-content: space-around;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-item i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    background-color: var(--primary-light);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-item:nth-child(2) i {
    color: #EFBF04 !important;
    background-color: #FFF5C0 !important;
}

/* Duplicate style removed */

.trust-item p {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-dark);
    margin: 0;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

/* Tablet (2 columns) */
@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop (4 columns) */
@media (min-width: 1024px) {
    .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.benefit-card {
    background-color: var(--light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.benefit-image {
    margin-top: auto;
    padding-top: var(--spacing-lg);
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.benefit-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    transition: transform 0.3s ease;
}

.benefit-card:hover .benefit-image img {
    transform: scale(1.05);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: var(--text-2xl);
}

.benefit-orange .benefit-icon {
    background-color: #FFF5C0 !important;
    color: #EFBF04 !important;
}

.benefit-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.benefit-orange h3 {
    color: #EFBF04 !important;
}

.benefit-card p {
    color: var(--gray-dark);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--light);
    scroll-margin-top: 80px; /* Ensure services section has enough margin from top */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    min-height: 500px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--white);
    border: 3px solid;
    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-xl);
    margin-top: var(--spacing-2xl);
    width: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card-1 {
    border-color: var(--primary-dark);
}

.service-card-2 {
    border-color: #EFBF04 !important;
}

.service-card-3 {
    border-color: var(--primary-dark);
}

.service-card h3 {
    font-size: var(--text-xl);
    padding: var(--spacing-md) var(--spacing-lg);
    margin: 0;
    color: var(--dark);
    text-align: center;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-price {
    font-size: var(--text-sm);
    font-weight: 600;
    margin: var(--spacing-md) var(--spacing-lg);
    color: var(--gray-dark);
}

.service-card-1 .service-price {
    color: var(--primary-dark);
}

.service-card-2 .service-price {
    color: #EFBF04 !important;
}

.service-card-3 .service-price {
    color: var(--primary-dark);
}

.service-description {
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    flex-grow: 1;
}

.service-description ul {
    padding-left: var(--spacing-lg);
}

.service-description ul li {
    margin-bottom: var(--spacing-sm);
    position: relative;
    color: var(--gray-dark);
    font-size: var(--text-sm);
}

.service-description ul li::before {
    content: '✓';
    position: absolute;
    left: -20px;
    font-weight: 600;
}

.service-card-1 .service-description ul li::before {
    color: var(--primary-dark);
}

.service-card-2 .service-description ul li::before {
    color: #EFBF04 !important;
}

.service-card-3 .service-description ul li::before {
    color: var(--primary-dark);
}

/* Service icon styling */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.service-icon i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
}

.service-card-2 .service-icon i {
    color: #EFBF04 !important;
}

/* Removed duplicate .service-card h3 style */

.service-details h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--dark);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.service-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-card .price,
.service-details .price {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    background-color: var(--primary-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: left;
    justify-content: flex-start;
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: auto;
    width: 100%;
    align-items: center;
}

.service-buttons a {
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
    width: 100%;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.service-card-1 .service-buttons .btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.service-card-1 .service-buttons .btn-secondary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.service-card-2 .service-buttons .btn-primary {
    background-color: #EFBF04 !important;
    border-color: #EFBF04 !important;
}

.service-card-2 .service-buttons .btn-secondary {
    color: #EFBF04 !important;
    border-color: #EFBF04 !important;
}

.service-card-3 .service-buttons .btn-primary {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.service-card-3 .service-buttons .btn-secondary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.service-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    align-items: center; /* Keep this to center the button */
}

.service-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 200px;
    margin-bottom: var(--spacing-md);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
    background-color: var(--light);
}

.service-image img:hover {
    transform: scale(1.05);
}

.service-card ul,
.service-details ul {
    text-align: left;
    margin-bottom: var(--spacing-xl);
    flex-grow: 1;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    width: 100%;
}

/* Single column list style that can be applied to service card lists */
.single-column-list {
    grid-template-columns: 1fr !important;
    text-align: center !important;
}

/* Center list items */
.single-column-list li {
    text-align: center !important;
    padding-left: 0 !important;
}

/* Add checkmark as pseudo-element for centered list items */
.single-column-list li::before {
    position: static !important;
    display: inline-block !important;
    margin-right: 8px !important;
    left: auto !important;
}

/* Center service buttons */
.service-buttons {
    justify-content: center !important;
}

/* Make buttons wider */
.service-buttons a,
.cta-content .btn-primary,
.service-content .btn-primary {
    min-width: 280px !important;
    width: auto !important;
    max-width: 90% !important;
}

/* Featured service card with image on right */
.service-card.featured {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl);
}

.service-card.featured .service-image {
    flex: 0 0 300px;
    height: 100%;
    min-height: 450px;
    max-height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.service-card.featured .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile view for featured service card */
@media (max-width: 768px) {
    .service-card.featured {
        flex-direction: column;
    }
    
    .service-card.featured .service-content {
        display: flex;
        flex-direction: column;
    }
    
    .service-card.featured .service-content h3 {
        order: -1; /* Keep the title at the top */
    }
    
    .service-card.featured .service-image {
        order: 0; /* Place image below title but above text */
        width: 100%;
        flex: 0 0 auto;
        min-height: 300px;
        max-height: 350px;
        margin: var(--spacing-md) 0;
    }
    
    .service-card.featured .service-content ul {
        order: 1; /* Place text below image */
    }
    
    .service-card.featured .service-content .service-result {
        order: 2;
    }
    
    .service-card.featured .service-content a {
        order: 3;
        align-self: center;
        margin-top: var(--spacing-md);
    }
}

/* Removed redundant style */

.service-details a {
    align-self: center; /* Keep the button centered */
    /* padding: 0.85rem 2rem; */
    font-weight: 600;
    font-size: var(--text-lg);
    margin-top: var(--spacing-md);
}

.service-card ul li {
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: 2rem;
    color: var(--gray-dark);
    padding-bottom: var(--spacing-sm);
    word-spacing: normal;
    text-align: left;
}

/* Fix spacing around linked text */
.service-card ul li a {
    margin: 0;
    padding: 0;
    display: inline;
    word-spacing: normal;
    letter-spacing: normal;
}

.service-card ul li:last-child {
    margin-bottom: 0;
}

.service-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #EFBF04 !important;
    font-weight: 600;
    font-size: var(--text-lg);
}

/* This conflicts with the global style above that uses !important */
/* .service-result is used in HTML files, keeping this style but fixing it */
.service-card .service-result {
    font-style: italic;
    color: var(--gray-dark);
    margin: var(--spacing-md) 0;
    text-align: center;
    width: 100%;
    grid-column: 1 / -1; /* Make the testimonial span both columns */
}

/* ===== PROCESS SECTION ===== */
.process {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 20px;
    width: 2px;
    height: calc(100% + var(--spacing-xl));
    background-color: var(--primary-light);
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: var(--spacing-lg);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    background-color: var(--light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    flex-grow: 1;
}

.step-content h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.step-content p {
    color: var(--gray-dark);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Add specific mobile styles for CTA section */
@media (max-width: 768px) {
    .cta-section {
        padding-top: calc(var(--spacing-3xl) + 60px); /* Add extra padding to account for mobile nav */
    }
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-urgency {
    font-size: var(--text-sm) !important;
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md) !important;
    display: inline-block;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

/* This section was removed to eliminate duplicate styles */

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--spacing-3xl) 0;
    background-color: var(--light);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    margin-bottom: var(--spacing-lg);
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-dark);
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: #FFF5C0 !important;
    position: absolute;
    top: -20px;
    left: -10px;
    opacity: 0.5;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: var(--spacing-md);
}

.author-info h4 {
    font-size: var(--text-base);
    color: var(--dark);
}

.author-info p {
    font-size: var(--text-sm);
    color: var(--gray);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-lg);
    color: var(--dark);
}

.about-text p {
    margin-bottom: var(--spacing-lg);
    color: var(--gray-dark);
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.value {
    background-color: var(--light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.value p {
    margin-bottom: 0;
}

.value h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-dark);
}

.value:nth-child(2) h4 {
    color: #EFBF04 !important;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--spacing-3xl) 0;
    background-color: var(--light);
}

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--spacing-2xl);
}

/* Centered contact content for the updated layout */
.contact-centered {
    grid-template-columns: 1fr !important;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid #EFBF04 !important;
}

.contact-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    background-color: #FFF5C0 !important;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-guarantee i {
    color: #EFBF04 !important;
    font-size: var(--text-lg);
}

.contact-guarantee p {
    color: #C09A03 !important;
    font-size: var(--text-sm);
    font-weight: 500;
    margin: 0;
}

.form-note {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-dark);
    margin-top: var(--spacing-sm);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-cta {
    background-color: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-cta h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.contact-cta p {
    color: var(--gray-dark);
    margin-bottom: var(--spacing-lg);
    font-size: var(--text-lg);
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.contact-buttons a {
    min-width: 200px;
}

@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons a {
        width: 100%;
        max-width: 300px;
    }
}

.contact-info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

@media (max-width: 768px) {
    .contact-info-columns {
        grid-template-columns: 1fr;
    }
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
}

.info-content h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.info-content p {
    color: var(--gray-dark);
}

.info-content a {
    color: var(--gray-dark);
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: var(--spacing-3xl) 0;
    background-color: var(--white);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.faq-item {
    background-color: var(--light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.faq-item h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

.faq-item p {
    color: var(--gray-dark);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-logo p {
    color: var(--gray-light);
    font-size: var(--text-sm);
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    font-size: var(--text-base);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-links ul,
.footer-services ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a,
.footer-services a {
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
}

.footer-contact ul li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--gray-light);
}

.footer-contact a {
    color: var(--gray-light);
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    display: none;
}

/* Always show mobile navigation on smaller screens regardless of zoom level */
@media (max-width: 768px) {
    /* Hide desktop navigation on mobile */
    header {
        display: none;
    }
    
    /* Show mobile navigation */
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: var(--spacing-sm) 0;
    }
    
    /* Ensure mobile nav has a solid background */
    .mobile-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white);
        z-index: -1;
    }
    
    .mobile-nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 var(--spacing-md);
        height: 60px;
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-logo a {
        color: var(--primary-color);
        font-weight: 700;
        font-size: var(--text-lg);
        text-decoration: none;
    }
    
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 8px 0;
        margin-left: auto;
        position: relative;
        z-index: 1001;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 1002; /* Ensure spans are above other elements */
    }
    
    .mobile-menu {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }
    
    .mobile-menu.active {
        max-height: 300px;
    }
    
    .mobile-menu-items {
        display: flex;
        flex-direction: column;
        padding: var(--spacing-md);
    }
    
    .mobile-menu-items a {
        padding: var(--spacing-md);
        color: var(--dark);
        text-decoration: none;
        font-weight: 500;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .mobile-menu-items a:last-child {
        border-bottom: none;
    }
    
    .mobile-contact-btn {
        background-color: var(--primary-color);
        color: var(--white) !important;
        border-radius: var(--radius-md);
        margin-top: var(--spacing-sm);
        text-align: center;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (min-width: 992px) {
    header .container {
        flex-direction: row;
        justify-content: space-between;
        padding: var(--spacing-md) var(--spacing-2xl);
    }
    
    .logo {
        margin-bottom: 0;
    }
    
    nav {
        width: auto;
    }
}

@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: var(--spacing-xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        margin-top: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --text-4xl: 2rem;
        --text-3xl: 1.75rem;
        --text-2xl: 1.375rem;
        --text-xl: 1.125rem;
    }
    
    /* Make the list single column on mobile */
    .service-card ul,
    .service-details ul {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: var(--spacing-md) 0;
    }
    
    nav ul {
        gap: var(--spacing-md);
    }
    
    .hero {
        padding: 10rem 0 3rem; /* Increased from 6rem to 10rem for more space */
    }
    
    /* Fix for section headings being cut off by nav bar in mobile view */
    section[id],
    .services-section,
    #services,
    div[id="services"] {
        scroll-margin-top: 100px; /* Increased margin to prevent headings from being hidden under the navbar */
    }
    
    /* Specific fix for services section */
    #services.services-section,
    section.services-section,
    section#services {
        scroll-margin-top: 100px !important; /* Ensure services section has enough margin from top */
        padding-top: 30px; /* Add extra padding at the top of the services section */
    }
    
    .benefits-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        min-height: auto;
        padding: var(--spacing-lg);
    }
    
    .service-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .service-buttons a {
        flex: 1 1 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .service-image {
        height: 180px;
    }
    
    .about-values {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-cta {
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: auto;
        min-width: 200px;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: var(--spacing-md);
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
}

/* Sticky bottom bar with phone number */
.sticky-bottom-bar {
    display: none; /* Hidden by default, shown only on mobile */
}

@media (max-width: 768px) {
    .sticky-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        color: var(--primary-color);
        padding: 0;
        z-index: 999;
        justify-content: space-between;
        align-items: center;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--primary-color);
    }
    
    .sticky-bottom-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: var(--text-lg);
        text-decoration: none;
        padding: var(--spacing-md);
        flex: 1;
        text-align: center;
        color: var(--primary-color);
        border-right: 1px solid var(--primary-color);
    }
    
    .sticky-bottom-bar a:last-child {
        border-right: none;
    }
    
    .sticky-bottom-bar i {
        margin-right: var(--spacing-sm);
        font-size: 1.2em;
        color: var(--primary-color);
    }
    
    .sticky-bottom-bar .call-btn {
        background-color: var(--white);
    }
    
    .sticky-bottom-bar .email-btn {
        background-color: var(--white);
    }
    
    /* Add padding to the bottom of the body to prevent content from being hidden behind the sticky bar */
    body {
        padding-bottom: calc(var(--spacing-md) * 2 + 1.5rem);
    }
    
    /* Position mobile menu toggle on the right */
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        order: 1;
        margin-left: auto;
        position: absolute;
        right: var(--spacing-lg);
    }
    
    .logo {
        margin: 0 auto;
    }
}