/* CSS Custom Properties */
:root {
    --color-text: #12100b;
    --color-primary: #ffcc00;
    --color-secondary: #d8cc9b;
    --color-accent: #d2bf76;
    --color-white: #ffffff;
    --color-light-gray: #f9f6e8;
    --color-medium-gray: #6b7280;
    --color-dark-gray: #374151;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h4 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #1d1e18cc;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: var(--color-primary);
    font-weight: 800;
    margin: 0;
}

.nav-logo h2::before {
    content: "EKSPRESS ";
    color: var(--color-white);
}

.nav-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(29, 30, 24, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #333;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-phone {
    background: var(--color-primary);
    color: var(--color-text) !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 8rem 1.5rem 4rem;
    background: var(--color-white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    text-align: center;
}

.hero-title {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

.hero-highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    color: var(--color-medium-gray);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-features {
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    font-weight: 500;
}

.hero-check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: var(--color-primary);
}

.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.705);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--color-medium-gray);
    font-weight: 500;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    height: 60%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* CTA Button */
.cta-button {
    background: var(--color-primary);
    color: var(--color-text);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(18, 16, 11, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px #ffffff63;
}

.button-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-button:hover .button-arrow {
    transform: translateX(5px);
}


.service-features {
    list-style: none;
    display: block;
    background: #faf9f5;     
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
}

.service-features li { 
    color: var(--color-text);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    position: relative;
    padding-left: 2.5rem; /* space for icon */
}

/* simple yellow circle with dark checkmark (works in all modern browsers) */
.service-features li::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffcc00; /* circle color */
    display: block;

    /* inline SVG used as a background image for the checkmark */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312100b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 L9 17 L4 12'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px; /* size of the check */
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 1.5rem;
    background: var(--color-white);
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-title {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

.gallery-subtitle {
    color: var(--color-text);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4 / 3; /* Maintains 4:3 aspect ratio */
    /* Fallback for browsers that don't support aspect-ratio */
    padding-bottom: 75%; /* 3/4 = 0.75 */
    height: 0;
    position: relative;
}

@supports (aspect-ratio: 4 / 3) {
    .gallery-item {
        padding-bottom: 0;
        height: auto;
    }
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* Responsive gallery grid */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Before/After Slider Section */
.before-after-section {
    padding: 5rem 1.5rem;
    background: var(--color-white);
}

.before-after-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.before-after-title {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 2.5rem);
}


.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 10; /* Maintains 16:10 aspect ratio */
    /* Fallback for browsers that don't support aspect-ratio */
    padding-bottom: 62.5%; /* 10/16 = 0.625 */
    height: 0;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@supports (aspect-ratio: 16 / 10) {
    .slider-container {
        padding-bottom: 0;
        height: auto;
    }
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-image {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    will-change: clip-path;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    cursor: ew-resize;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    will-change: left;
    transition: none; /* Remove transition for instant response */
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 4px solid var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-handle::after {
    content: '◀▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-size: 12px;
    font-weight: bold;
}



/* Mobile responsive slider */
@media (max-width: 768px) {
    .slider-container {
        aspect-ratio: 16 / 10; /* Maintains same aspect ratio on mobile */
        /* Fallback for browsers that don't support aspect-ratio */
        padding-bottom: 62.5%; /* 10/16 = 0.625 */
        height: 0;
    }

    @supports (aspect-ratio: 16 / 10) {
        .slider-container {
            padding-bottom: 0;
            height: auto;
        }
    }
    
    .slider-handle::before {
        width: 35px;
        height: 35px;
    }
    
    .slider-handle::after {
        font-size: 10px;
    }

    /* Hero section mobile styles */
    .hero-content {
        text-align: left;
    }

    .hero-title {
        text-align: left;
    }

    .hero-subtitle {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }

    .hero-cta {
        margin-left: 0;
    }
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 1.5rem;
    background: #f9f6e8;
    color: var(--color-text);
    text-align: center;
}

.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-title {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
}

.final-cta-subtitle {
    color: var(--color-text);
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: 3rem;
}

.trust-elements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.trust-item {
    text-align: center;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.trust-label {
    color: var(--color-text);
    font-weight: 500;
}

.final-cta-button {
    margin: 2rem 0;
    font-size: 1.2rem;
    padding: 1.25rem 2.5rem;
}

.testimonial {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-image {
    width: 300px;
    height: 240px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-quote-icon {
    font-size: 4rem;
    line-height: 1;
    color: var(--color-primary);
    font-family: Georgia, serif;
    margin-bottom: 1rem;
    text-align: left;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-name {
    color: var(--color-text);
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-role {
    color: var(--color-medium-gray);
    font-size: 0.875rem;
    font-weight: 400;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 3rem 1.5rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid var(--color-dark-gray);
    padding-top: 1rem;
    text-align: center;
    color: var(--color-medium-gray);
}

/* Responsive Design */
@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        text-align: left;
    }
    
    .hero-content {
        text-align: left;
    }

    .hero-features {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        max-width: none;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-stats {
        bottom: 2rem;
        left: 2rem;
        gap: 2.5rem;
    }

    .hero-subtitle {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 10rem 1.5rem 6rem;
    }
    
    .final-cta {
        padding: 7rem 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.final-cta {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover Effects */
.service-features li:hover {
    background: var(--color-accent);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Services Section */
.services-section {
    padding: 5rem 1.5rem;
    background: #faf9f5
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.services-title {
    color: var(--color-text);
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.services-subtitle {
    color: var(--color-medium-gray);
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: stretch;
}

.service-card {
    background: #faf9f5
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-card-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover
}

.service-card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    flex: 1;
}

.service-card-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1.25rem;
    font-weight: 600;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-features li {
    color: #faf9f5
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding-left: 2rem;
}

.service-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #ffcc00; /* circle */
  
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M20 6 L9 17 L4 12' stroke='%2312100b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

.service-card-price {
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-primary);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    text-align: center;
    margin: auto 0 0.5rem 0;
    font-size: 1rem;
}

.service-card-button {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card-button:hover {
    background: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
    
    .service-card-media {
        height: 180px;
        padding: 1.5rem;
    }
}

/* Focus States for Accessibility */
.cta-button:focus,
.nav-menu a:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Loading States */
.cta-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(18, 16, 11, 0.3);
}
