/* ==========================================================================
   WELAS SERVICES — CLEAN, DISTINCT & MINIMALIST DESIGN SYSTEM
   ========================================================================== */

:root {
    /* Backgrounds */
    --bg-page: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-card: #FFFFFF;

    /* Text Colors */
    --text-dark: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;

    /* Brand Accent: Botanical Spruce from Logo */
    --brand-primary: #0F172A;
    --accent-brand: #2D5A43;           /* Forest Spruce */
    --accent-brand-light: #ECFDF5;     /* Soft Mint */
    --accent-brand-hover: #1E3E2E;

    --accent-blue: #2563EB;
    --accent-blue-bg: #EFF6FF;

    /* Borders & Subtle Shadows */
    --border-light: #E2E8F0;
    --border-hover: #CBD5E1;

    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 10px 20px -3px rgba(15, 23, 42, 0.08);

    /* Typography & Radii */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* Base Reset & Smooth Scrolling */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 84px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.brand-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.brand-dot {
    color: var(--accent-brand);
}

.brand-tagline {
    font-size: 0.65rem;
    color: var(--accent-brand);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-links {
    display: none;
}

@media (min-width: 820px) {
    .nav-links {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .nav-link {
        text-decoration: none;
        color: var(--text-body);
        font-weight: 500;
        font-size: 0.925rem;
        transition: color 0.2s;
        padding: 6px 10px;
    }

    .nav-link:hover {
        color: var(--accent-brand);
    }
}

.btn-nav {
    background-color: var(--brand-primary);
    color: white !important;
    padding: 9px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-nav:hover {
    background-color: var(--accent-brand);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.25rem;
    padding: 8px 20px;
    transition: color 0.2s;
}

.nav-mobile-link:hover {
    color: var(--accent-brand);
}

@media (max-width: 819px) {
    .nav-toggle {
        display: flex;
    }
}

/* ==========================================================================
   IMAGE BANNER & HERO SECTION
   ========================================================================== */
.video-wrap {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 72px;
}

@media (min-width: 768px) {
    .video-wrap {
        height: 250px;
    }
}

.video-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.video-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    pointer-events: none;
}

.fade-out {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.hero {
    text-align: center;
    padding: 40px 6% 56px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 840px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.25;
    color: var(--text-dark);
    margin-bottom: 18px;
    max-width: 780px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 680px;
}

/* ==========================================================================
   SECTIONS: SHARED
   ========================================================================== */
.services-section {
    padding: 76px 6%;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--accent-brand);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.6;
}

/* ==========================================================================
   SERVICES SECTION (Clean, Defined Card Boxes)
   ========================================================================== */
.services-section-wrap {
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 76px 6%;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.service-card {
    background: #F1F5F9;
    border-radius: var(--radius-md);
    padding: 30px 26px;
    border: 1px solid #CBD5E1;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    background: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -6px rgba(45, 90, 67, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: var(--accent-brand);
}

.service-card:hover .service-card-title {
    color: var(--accent-brand);
}

.service-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    color: var(--accent-brand);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.service-card:hover .service-icon-wrap {
    background: var(--accent-brand-light);
    border-color: var(--accent-brand);
    transform: scale(1.06);
}

.service-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.service-card-text {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.55;
    margin-bottom: 18px;
    flex: 1;
}

.service-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent-brand);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s ease;
}

.service-card:hover .service-link {
    gap: 9px;
}

/* ==========================================================================
   WHAT WE'VE CREATED (Distinct, Scalable Responsive Grid)
   ========================================================================== */
.work-section {
    background: #FFFFFF;
    padding: 76px 6%;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 700px) {
    .work-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

.project-card {
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    background: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 14px 28px -6px rgba(45, 90, 67, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
    border-color: var(--accent-brand);
}

.project-card:hover .project-title {
    color: var(--accent-brand);
}

.project-card:hover .btn-project-live {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}

.project-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.project-category-badge {
    font-size: 0.725rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    background: #FFFFFF;
    color: var(--accent-brand);
    border-radius: var(--radius-sm);
    border: 1px solid #CBD5E1;
}

.project-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #10B981;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    display: inline-block;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.project-contribution {
    font-size: 0.85rem;
    color: var(--text-body);
    margin-bottom: 20px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
}

.btn-project-live {
    background: #FFFFFF;
    color: var(--text-dark);
    border: 1px solid #CBD5E1;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.btn-project-live:hover {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 76px 6%;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

.testimonial-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    color: var(--text-body);
    font-size: 0.925rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    font-style: italic;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: white;
    padding: 76px 6%;
}

.contact-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
    .contact-wrap {
        padding: 40px;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group label {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 11px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.925rem;
    color: var(--text-dark);
    background: #FFFFFF;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-brand);
    box-shadow: 0 0 0 2px rgba(45, 90, 67, 0.12);
}

.btn-primary-large {
    background: var(--brand-primary);
    color: white;
    padding: 13px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-primary-large:hover {
    background: var(--accent-brand);
    transform: translateY(-1px);
}

.whatsapp-helper {
    margin-top: 18px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.whatsapp-helper a {
    color: #166534;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.whatsapp-helper a svg {
    color: #25D366;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.whatsapp-helper a:hover {
    color: #14532D;
    text-decoration: underline;
}

.whatsapp-helper a:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-main {
    background: #0F172A;
    color: #94A3B8;
    text-align: center;
    padding: 40px 24px 32px;
    font-size: 0.875rem;
}

.footer-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-tagline {
    color: #E2E8F0;
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}