/* ============================================================
   FONTS (from sample)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Source+Serif+4:wght@400;500;600;700&display=swap');

/* ============================================================
   RESET & BASE (from sample styling)
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================================
   CSS VARIABLES - YOUR COLORS PRESERVED
   ============================================================ */
:root {
    /* Your original colors */
    --color-primary:   #f59d19;
    --color-secondary: #3533cd;
    --color-accent:    #25d366;
    --color-dark:      #1a1a2e;
    --color-text:      #333;
    --color-muted:     #666;
    --color-bg:        #f8f9fa;
    --color-white:     #ffffff;
    
    /* Typography variables from sample */
    --background: 0 0% 100%;
    --foreground: 260 24% 16%;
    --muted: 280 28% 94%;
    --muted-foreground: 260 16% 38%;
    --card: 0 0% 100%;
    --card-foreground: 260 24% 16%;
    --border: 280 22% 88%;
    --radius: 0.75rem;
    
    /* Shadows from sample */
    --shadow-soft: 0 16px 40px -20px rgba(0,0,0,0.08);
    --shadow-card: 0 18px 40px -18px rgba(0,0,0,0.08);
    --shadow-elevated: 0 28px 70px -28px rgba(0,0,0,0.12);
    
    /* Your original radii */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-pill: 0.5rem;
    
    /* Your original transitions */
    --transition: all 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY (from sample)
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: hsl(var(--foreground));
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    font-size: 1rem;
    line-height: 1.625;
    margin-bottom: 1em;
    color: hsl(var(--muted-foreground));
}

small, .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Utility text classes from sample */
.text-muted-foreground {
    color: hsl(var(--muted-foreground));
}

.text-foreground {
    color: hsl(var(--foreground));
}

/* ============================================================
   LAYOUT (from sample)
   ============================================================ */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        padding-right: 2.5rem;
        padding-left: 2.5rem;
    }
}

section {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: #ffffff;
}

/* ============================================================
   NAVIGATION (preserved with sample typography)
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    z-index: 9999;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
}

.navbar.scrolled .nav-logo h2 { color: var(--color-primary); }

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

.nav-logo img {
    height: 34px;
    width: auto;
    transition: var(--transition);
}

.nav-logo h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: white;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    margin-left: auto;
    padding: 0;
    align-items: center;
}

.nav-link {
    padding: 0.375rem 0.75rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    min-height: 33px;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(245,157,25,0.3);
}

.nav-link.active:hover {
    background: var(--color-secondary);
    box-shadow: 0 2px 8px rgba(53,51,205,0.3);
}

.navbar.scrolled .nav-link {
    color: hsl(var(--foreground));
    background: rgba(0,0,0,0.06);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: white;
    background: var(--color-primary);
    box-shadow: 0 2px 8px rgba(245,157,25,0.3);
}

.navbar.scrolled .nav-link.active:hover {
    background: var(--color-secondary);
}

.nav-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.375rem;
    min-height: 33px;
    min-width: 33px;
    align-items: center;
    justify-content: center;
}

.bar {
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .bar { background: hsl(var(--foreground)); }

/* ============================================================
   HERO (preserved with sample typography)
   ============================================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../Pictures/Landing page heroe.jpg');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 6.25rem 1rem 3rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #f5f5f5;
    margin-bottom: clamp(1rem, 3vw, 2rem);
    line-height: 1.1;
}

.tagline {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.25rem, 4vw, 2.375rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    color: #d1d1d1;
    margin-bottom: 1.5rem;
}

.mission {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    font-weight: 400;
    line-height: 1.625;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #cfcfcf;
}

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

/* ============================================================
   BUTTONS (preserved)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px;
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(245,157,25,0.3);
}

.btn-primary:hover {
    background: #d9880e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,157,25,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* ============================================================
   CARDS (updated with sample shadows)
   ============================================================ */
.feature-card,
.category-card,
.service-card {
    background: hsl(var(--card));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border));
}

.feature-card:hover,
.category-card:hover,
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,0.18);
}

/* ============================================================
   WELCOME SECTION
   ============================================================ */
.welcome {
    background: hsl(var(--background));
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
    background: hsl(var(--background));
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--foreground));
}

.service-category {
    margin-bottom: 4rem;
}

.service-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

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

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

.category-card {
    border-bottom: 3px solid var(--color-primary);
    overflow: hidden;
    padding: 0;
}

.category-card:nth-child(2n) { border-bottom-color: var(--color-secondary); }
.category-card:nth-child(3n) { border-bottom-color: var(--color-accent); }

.category-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img { transform: scale(1.04); }

.category-content {
    padding: 1.25rem 1.5rem 1.5rem;
}

.category-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.category-content p {
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    margin: 0;
    font-size: 0.9375rem;
}

.service-card {
    border-bottom: 3px solid var(--color-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card:nth-child(2n) { border-bottom-color: var(--color-secondary); }
.service-card:nth-child(3n) { border-bottom-color: var(--color-accent); }

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    transition: var(--transition);
}

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

.service-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.service-card p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: hsl(var(--foreground));
}

.about-text p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.625;
    color: hsl(var(--muted-foreground));
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-choose {
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.why-choose h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--foreground));
    position: relative;
    z-index: 2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-card {
    border-bottom: 3px solid var(--color-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(2n) { border-bottom-color: var(--color-secondary); }
.feature-card:nth-child(3n) { border-bottom-color: var(--color-accent); }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245,157,25,0.06), transparent);
    transition: left 0.4s ease;
}

.feature-card:hover::before { left: 100%; }

.feature-icon img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.625;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ============================================================
   CONTACT / FORMS
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

input, textarea, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius-sm);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    color: hsl(var(--foreground));
    background: hsl(var(--background));
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(245,157,25,0.15);
}

label {
    display: block;
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

/* ============================================================
   SECTION TITLE UTILITY
   ============================================================ */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: hsl(var(--foreground));
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

/* ============================================================
   RESPONSIVE — TABLET (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -60%;
        top: 45px;
        flex-direction: column;
        background: hsl(var(--background));
        width: 60%;
        text-align: left;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-soft);
        padding: 2rem 1.5rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .nav-menu.active { left: 0; }

    .nav-menu .nav-link {
        color: hsl(var(--foreground));
        background: rgba(0,0,0,0.06);
        width: 100%;
    }

    .nav-toggle { display: flex; }

    .nav-toggle.active .bar:nth-child(2) { opacity: 0; }
    .nav-toggle.active .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

    .hero { padding: 5rem 1rem 2.5rem; }

    .hero-content { text-align: center; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 640px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }

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

    .nav-container { padding: 0.469rem 1rem; }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn { width: 100%; }

    .service-card,
    .feature-card {
        padding: 1.25rem;
    }
}

/* ============================================================
   MOBILE — ALL INLINE GRIDS & INDEX PAGE LAYOUTS
   ============================================================ */
@media (max-width: 768px) {

    /* Stats bar */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Service cards grid (index) */
    [style*="grid-template-columns: repeat(auto-fit, minmax(350px"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(320px"] {
        grid-template-columns: 1fr !important;
    }

    /* 2-col grids → 1 col */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 3-col grids → 1 col */
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* 4-col grids → 2 col */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* About section 2fr 1fr */
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Values grid inside about (2x2) */
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 2rem"] {
        grid-template-columns: 1fr !important;
    }

    /* Service banners */
    .services-cards-grid {
        grid-template-columns: 1fr !important;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }

    /* Why choose grid */
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Steps grid */
    .steps-grid {
        grid-template-columns: 1fr !important;
    }

    /* Welcome grid */
    .welcome-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* CTA buttons */
    .cta-buttons,
    [style*="display: flex"][style*="justify-content: center"][style*="gap: 1rem"] {
        flex-direction: column;
        align-items: center;
    }

    /* Hero section padding */
    .hero {
        padding: 4rem 1rem 2rem;
        min-height: 80vh;
    }

    /* Section padding */
    [style*="padding: 5rem 0"] {
        padding: 2.5rem 0 !important;
    }

    [style*="padding: 60px 0"] {
        padding: 2.5rem 0 !important;
    }

    [style*="padding: 80px 0"] {
        padding: 2.5rem 0 !important;
    }

    /* Service banner padding */
    .service-banner {
        padding: 2rem 1.5rem !important;
    }

    /* Portfolio cards image height */
    .portfolio-image {
        height: 160px !important;
    }

    /* Book page contact cards */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Stats → 1 col on very small screens */
    .stats-grid {
        grid-template-columns: 1fr !important;
    }

    /* Why choose → 1 col */
    .why-choose-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer → 1 col */
    .footer-grid {
        grid-template-columns: 1fr !important;
    }

    /* Reduce hero h1 further */
    .hero h1 {
        font-size: 1.75rem !important;
    }

    .tagline {
        font-size: 1.1rem !important;
    }

    /* Full-width buttons */
    .btn {
        width: 100%;
        justify-content: center;
    }
}