/* ============================================================
   WEBSTAX — style.css
   Fonts: Syne (headings) + DM Sans (body)
   ============================================================ */

/* --- VARIABLES & RESET --- */
:root {
    --primary-black: #0d0f0e;
    --primary-green: #156338;
    --hover-green: #0e4526;
    --accent-green: #1db954;
    --bg-light: #f5f6f3;
    --text-dark: #1e2120;
    --text-muted: #6b7280;
    --white: #ffffff;
    --card-shadow: 0 2px 20px rgba(0,0,0,0.07);
    --card-shadow-hover: 0 8px 40px rgba(21,99,56,0.18);
    --radius: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-green) var(--bg-light);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background-color: var(--primary-green); border-radius: 10px; border: 2px solid var(--bg-light); }
::-webkit-scrollbar-thumb:hover { background-color: var(--hover-green); }

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.65;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Syne', 'Segoe UI', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* --- SCROLL REVEAL --- */
.reveal-hidden {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s var(--transition), transform 0.55s var(--transition);
}
.reveal-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
header {
    background-color: rgba(245, 246, 243, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.85rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    transition: box-shadow var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 52px;
    width: auto;
    display: block;
    transition: transform var(--transition), opacity var(--transition);
}
.logo img:hover { transform: scale(1.05); opacity: 0.85; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    position: relative;
    transition: color var(--transition);
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: var(--radius);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary-green);
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
}
.btn:hover {
    background-color: var(--hover-green);
    border-color: var(--hover-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21,99,56,0.3);
}

.btn-hero {
    padding: 15px 36px;
    font-size: 1.05rem;
    box-shadow: 0 4px 20px rgba(21,99,56,0.4);
}
.btn-hero:hover { box-shadow: 0 8px 32px rgba(21,99,56,0.5); }

.btn-outline {
    background-color: transparent;
    color: var(--primary-green);
}
.btn-outline:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 100px 5%;
    text-align: center;
    scroll-margin-top: 72px;
}

.section-eyebrow {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-green);
    background: rgba(21,99,56,0.08);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 18px;
}

.section h2 {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-black);
}

.section-subtitle {
    margin: 0 auto 48px;
    color: var(--text-muted);
    max-width: 580px;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 5%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(21,99,56,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(13,99,56,0.2) 0%, transparent 55%),
        linear-gradient(160deg, #0d0f0e 0%, #0c1f16 40%, #061109 100%);
    animation: gradientShift 12s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(8deg) brightness(1.08); }
}

/* Dot grid overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-green);
    background: rgba(29,185,84,0.12);
    border: 1px solid rgba(29,185,84,0.25);
    padding: 5px 14px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.75;
}

.hero-cta-label {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 16px !important;
    display: block;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
    background: var(--bg-light);
}

/* ============================================================
   CARDS
   ============================================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 8px;
}

.card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--primary-green);
    display: flex;
    flex-direction: column;
    text-align: left;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 18px;
    display: block;
}

.card h3 {
    margin-bottom: 12px;
    color: var(--primary-black);
    font-size: 1.3rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    background: var(--primary-black);
}

.testimonials-section h2,
.testimonials-section .section-subtitle {
    color: rgba(255,255,255,0.9);
}
.testimonials-section .section-subtitle {
    color: rgba(255,255,255,0.5);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.testimonial-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 32px 28px;
    text-align: left;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.09);
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

.stars {
    color: var(--accent-green);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.testimonial-card p {
    color: rgba(255,255,255,0.75);
    font-size: 0.97rem;
    line-height: 1.75;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    color: var(--white);
    font-size: 0.92rem;
    font-weight: 600;
}

.testimonial-author span {
    display: block;
    color: rgba(255,255,255,0.45);
    font-size: 0.82rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section {
    background: var(--bg-light);
}

.pricing-grid {
    align-items: start;
}

.pricing-card {
    position: relative;
}

.pricing-card .price {
    font-size: 1.45rem;
    color: var(--primary-green);
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.pricing-card ul {
    text-align: left;
    margin: 20px 0 24px;
    padding-left: 0;
    list-style: none;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 700;
}

/* Featured card */
.card-featured {
    background: var(--primary-black);
    border-top: 4px solid var(--accent-green);
    transform: scale(1.04);
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
}

.card-featured:hover {
    transform: scale(1.04) translateY(-8px);
    box-shadow: 0 20px 56px rgba(0,0,0,0.3);
}

.card-featured h3,
.card-featured ul li {
    color: var(--white);
}

.card-featured ul li::before {
    color: var(--accent-green);
}

.card-featured .price {
    color: var(--accent-green);
}

.card-featured p {
    color: rgba(255,255,255,0.55);
}

.popular-badge {
    display: inline-block;
    background: var(--accent-green);
    color: var(--primary-black);
    font-family: 'Syne', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
    background: var(--white);
}

.contact-container {
    max-width: 580px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 44px 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0,0,0,0.06);
    text-align: left;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: var(--radius);
    font-size: 0.97rem;
    font-family: 'DM Sans', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(21,99,56,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   ASSURANCE STRIP
   ============================================================ */
.assurance-strip {
    background: var(--primary-green);
    color: var(--white);
    text-align: center;
    padding: 22px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.assurance-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.assurance-strip p {
    font-size: 0.97rem;
    color: rgba(255,255,255,0.9);
    max-width: 520px;
}

.assurance-strip strong {
    color: var(--white);
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-page-section {
    padding-top: 80px;
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 8px;
    text-align: left;
}

.project-item {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    background: var(--white);
    transition: transform var(--transition), box-shadow var(--transition);
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
}

.project-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-placeholder-label {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0 20px;
}

.project-info {
    padding: 20px 22px 22px;
}

.project-info h3 {
    font-size: 1.1rem;
    color: var(--primary-black);
    margin-bottom: 6px;
}

.project-info span {
    font-size: 0.83rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.projects-cta {
    margin-top: 70px;
    text-align: center;
}

.projects-cta p {
    margin-bottom: 18px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: var(--bg-light);
    color: var(--text-dark);
    text-align: center;
    padding: 32px 5% 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-logo img {
    max-height: 44px;
    width: auto;
    display: block;
    opacity: 1;
    transition: opacity var(--transition), transform var(--transition);
}
.footer-logo img:hover { opacity: 1; transform: scale(1.05); }

.footer-nav {
    display: flex;
    gap: 2.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.footer-nav a:hover { color: var(--accent-green); }

.footer-divider {
    width: 48px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   MOBILE RESPONSIVENESS
   ============================================================ */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 72%;
        max-width: 300px;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 60px 36px;
        gap: 1.8rem;
        box-shadow: -8px 0 40px rgba(0,0,0,0.15);
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 1050;
    }

    .nav-links.open { right: 0; }

    .nav-links a {
        font-size: 1.2rem;
        font-family: 'Syne', sans-serif;
        font-weight: 700;
    }

    .hero { min-height: 80vh; padding: 80px 5%; }
    .hero h1 { font-size: 2.1rem; }
    .hero-cta-label { font-size: 1.3rem; }

    .section { padding: 70px 5%; }

    .card-featured { transform: scale(1); }
    .card-featured:hover { transform: translateY(-8px); }

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

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

    .contact-container { padding: 30px 22px; }

    .footer-nav { gap: 1.2rem; }
    .assurance-strip { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
    .projects-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
}