/*
Theme Name: Step Up UK Jobs
Theme URI: https://stepupukjobs.com
Description: Custom one-page theme for career guidance website
Version: 1.0
Author: Your Name
Text Domain: stepupukjobs
*/

/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Neue Metana', sans-serif;
}

/* Fix for WordPress Admin Bar */
html {
    margin-top: 0 !important;
}

:root {
    --primary-teal: #D4EAE0;
    --dark-bg: #0A0A0A;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-white: #FFFFFF;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --glass-bg: rgba(15, 15, 15, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.3);
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    background: linear-gradient(180deg, #D4EAE0 0%, #B8D5C7 25%, #7A9C8A 50%, #4A6657 75%, #0A0A0A 100%);
    background-attachment: fixed;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000;
}

/* Import Neue Metana Font */
@import url('https://fonts.cdnfonts.com/css/neue-metana');

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Enhanced Black Liquid Glass Navigation - Fixed Position */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
}
body {
    padding-top: 80px;
}
.navbar .main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-direction: row;
}

.admin-bar .navbar {
    top: 32px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.site-logo, .business-logo {
    height: 35px;
    width: auto;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.business-logo {
    height: 32px;
}

.site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-teal);
    font-family: 'Neue Metana', sans-serif;
    white-space: nowrap;
}

/* Make Site Title Clickable */
.site-title-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.site-title-link:hover .site-title {
    color: var(--primary-teal);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Neue Metana', sans-serif;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-teal);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

/* Mobile Header - Fixed Position */
@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        padding: 0.6rem 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(25px) saturate(180%);
        -webkit-backdrop-filter: blur(25px) saturate(180%);
    }
    
    .navbar .main-container {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .logo-container {
        gap: 0.8rem;
    }

    .site-logo, .business-logo {
        height: 30px;
    }

    .business-logo {
        height: 28px;
    }

    .site-title {
        font-size: 1.5rem;
        text-align: center;
    }

    .nav-links {
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

/* Hero Section - Fixed Padding */
.hero {
    height: auto;
    min-height: 70vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-white);
    padding: 6rem 20px 2rem; /* Increased top padding */
    position: relative;
    margin-top: 0; /* Remove margin-top since header is fixed */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-content {
    max-width: 1000px;
    z-index: 1;
    position: relative;
    width: 100%;
    padding: 0 15px; /* Added side padding */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-white);
    font-weight: 700;
    font-family: 'Neue Metana', sans-serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    word-wrap: break-word; /* Ensure text wraps properly */
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-white);
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Neue Metana', sans-serif;
    opacity: 0.9;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Simple Instagram Feed */
.instagram-feed {
    margin: 2rem auto 0;
    max-width: 1200px;
    text-align: center;
}

.instagram-feed h3 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Neue Metana', sans-serif;
}

/* Sections - Increased Padding for Fixed Header */
section {
    padding: 5rem 20px 3rem; /* Increased top padding for all sections */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--text-white);
    margin-bottom: 1rem;
    font-weight: 700;
    font-family: 'Neue Metana', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Neue Metana', sans-serif;
    opacity: 0.9;
}

/* Services Section */
.services {
    background: transparent;
    padding: 5rem 20px 3rem; /* Specific increased padding */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 350px;
}

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

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-teal), #A8D5BA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--dark-bg);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-bg);
    font-size: 1.4rem;
    font-weight: 600;
    font-family: 'Neue Metana', sans-serif;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.95rem;
    font-family: 'Neue Metana', sans-serif;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* Packages Section - Updated Grid Layout */
.packages-section {
    background: transparent;
    padding: 5rem 20px 3rem; /* Specific increased padding */
}

.packages-container {
    background: transparent;
    max-width: 1400px;
    margin: 0 auto;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

/* First row: 3 packages - all span 1 column */
.package-card:nth-child(1),
.package-card:nth-child(2),
.package-card:nth-child(3) {
    grid-column: span 1;
}

/* Second row: 2 packages - left and middle positions */
.package-card:nth-child(4) {
    grid-column: 1 / span 1;
}

.package-card:nth-child(5) {
    grid-column: 2 / span 1;
}

.package-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    height: 100%;
    position: relative;
    width: 100%;
}

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

/* Package Header - Optimized */
.package-header {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
    padding: 0.5rem 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.package-header h4 {
    font-size: 1.4rem;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2rem;
}

.package-price {
    display: none; /* Completely removed from header */
}

.package-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    padding: 0;
}

.package-features li {
    padding: 0.4rem 0;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    font-family: 'Neue Metana', sans-serif;
    color: var(--text-gray);
    line-height: 1.4;
}

.package-features li:before {
    content: '✓';
    color: var(--primary-teal);
    font-weight: bold;
    margin-right: 0.6rem;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* CTA Button with Price */
.cta-button {
    background: linear-gradient(135deg, var(--primary-teal), #A8D5BA);
    color: var(--dark-bg);
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    font-family: 'Neue Metana', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-button:hover {
    background: linear-gradient(135deg, #A8D5BA, var(--primary-teal));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Badge Positioning */
.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--dark-bg);
    padding: 0.3rem 0.7rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Neue Metana', sans-serif;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 1.1;
    white-space: nowrap;
}

/* Demo Note */
.demo-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.demo-note p {
    font-style: italic;
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Neue Metana', sans-serif;
}

.demo-note strong {
    font-weight: 600;
    color: var(--primary-teal);
}

/* Enhanced Dark Footer */
footer {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    color: var(--text-white);
    padding: 2rem 20px 1rem;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.footer-section {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
    font-weight: 600;
    font-family: 'Neue Metana', sans-serif;
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.6;
    font-weight: 400;
    font-size: 0.95rem;
    font-family: 'Neue Metana', sans-serif;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.95rem;
    font-family: 'Neue Metana', sans-serif;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    font-family: 'Neue Metana', sans-serif;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 400;
    font-family: 'Neue Metana', sans-serif;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-bg);
    transition: all 0.3s ease;
    font-family: 'Neue Metana', sans-serif;
}

.close-modal:hover {
    color: var(--primary-teal);
    transform: scale(1.1);
}

/* Tablet Layout */
@media (max-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .package-card:nth-child(1),
    .package-card:nth-child(2),
    .package-card:nth-child(3),
    .package-card:nth-child(4),
    .package-card:nth-child(5) {
        grid-column: span 1;
    }
}

/* Mobile Layout Fixes - Updated */
@media (max-width: 768px) {
    .main-container {
        padding: 0 15px;
        width: 100%;
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        padding-top: 80px;
    }
    .admin-bar .navbar {
        top: 46px;
    }
    /* Optimize background for mobile */
    body {
        background: linear-gradient(180deg, #D4EAE0 0%, #B8D5C7 25%, #7A9C8A 50%, #4A6657 75%, #0A0A0A 100%) fixed;
        background-attachment: scroll;
    }
    
    /* Hero Section Mobile - Fixed Padding */
    .hero {
        padding: 8rem 15px 2rem; /* Increased top padding for mobile */
        min-height: auto;
        margin-top: 0 !important;
    }
    
    .hero-content {
        padding: 0 10px; /* Ensure content doesn't touch edges */
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 5px; /* Small side padding for text */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 5px; /* Small side padding for text */
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Packages Mobile Fix - No Horizontal Scroll */
    .packages-container {
        width: 100%;
        overflow-x: hidden;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        margin: 0 auto;
    }
    
    .package-card:nth-child(1),
    .package-card:nth-child(2),
    .package-card:nth-child(3),
    .package-card:nth-child(4),
    .package-card:nth-child(5) {
        grid-column: span 1;
    }
    
    .package-card {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 1.2rem;
        min-height: 380px;
    }
    
    .package-header h4 {
        font-size: 1.3rem;
        min-height: 3rem;
    }
    
    .package-features li {
        font-size: 0.95rem;
    }
    
    .cta-button {
        font-size: 0.95rem;
        padding: 0.8rem 1rem;
        min-height: 45px;
    }
    
    .badge {
        top: 8px;
        right: 8px;
        padding: 0.2rem 0.6rem;
        font-size: 0.55rem;
    }
    
    /* Services Grid Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    /* Section Titles Mobile */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    footer {
        padding: 1.5rem 15px 0.8rem;
    }
    
    /* Ensure all sections have proper top padding */
    section {
        padding: 4rem 15px 2rem; /* Increased top padding for all sections */
    }
    
    .services, .packages-section {
        padding: 4rem 15px 2rem; /* Specific increased padding for main sections */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 7rem 10px 1.5rem; /* Adjusted for very small screens */
    }
    
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 5px;
    }
    
    .hero p {
        font-size: 0.95rem;
        padding: 0 5px;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .site-title {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .package-card {
        padding: 1rem;
        min-height: 360px;
    }
    
    .package-header h4 {
        font-size: 1.2rem;
    }
    
    .package-features li {
        font-size: 0.9rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 0.6rem 0.7rem;
    }
}