/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #264b19;
    --secondary-color: #1b3412;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 75, 25, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

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

.hero .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.9);
}

.hero .btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Pine background decoration (selected sections) */
.pine-bg {
    position: relative;
    overflow: hidden;
}

.pine-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/Main Website/pine-tree.png");
    background-repeat: no-repeat;
    background-position: right -80px bottom -60px;
    background-size: min(520px, 55vw);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.hero.pine-bg::before {
    opacity: 0.08;
}

/* City scene on the left of the hero (Websites You Don't Have to Worry About) */
.hero.pine-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("assets/Main Website/city-scene.png");
    background-repeat: no-repeat;
    background-position: left -60px bottom -40px;
    background-size: min(620px, 62vw);
    opacity: 0.18;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: lighten;
}

.contact.pine-bg::before {
    background-position: left -80px bottom 0;
    background-size: min(720px, 72vw);
}

.pine-bg > .container {
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 100px 0 120px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero .container {
    max-width: 1100px;
}

.hero-cta-glass {
    display: inline-block;
    margin-top: 24px;
    padding: 28px 36px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-cta-glass .hero-cta {
    margin-bottom: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.hero-note {
    margin-top: 30px;
    opacity: 0.8;
    font-size: 16px;
}

.trust-strip {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    font-size: 14px;
    opacity: 0.9;
    color: var(--white);
}

.trust-strip span {
    white-space: nowrap;
}

.trust-strip span:not(:last-child)::after {
    content: " • ";
    margin-left: 24px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .trust-strip span:not(:last-child)::after {
        display: none;
    }
    .trust-strip {
        gap: 8px;
    }
}

/* Stats Strip */
.stats-strip {
    background: var(--white);
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px 64px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 28px 24px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    margin: 0;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.14);
}

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.16s; }

.testimonial-card p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 14px;
    line-height: 1.6;
}

.testimonial-card footer {
    font-size: 14px;
    color: var(--text-light);
    font-style: normal;
}

.recent-projects-cta {
    text-align: center;
}

/* Who We Help */
.who-we-help {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.help-card {
    text-align: center;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 8px;
}

.help-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.help-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.help-card p {
    color: var(--text-light);
}

/* Work Section */
.work-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* Portfolio grid: video previews + link */
.portfolio-section {
    padding-top: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-card:hover {
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.18);
    transform: translateY(-6px) scale(1.02);
}

.portfolio-preview {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--text-dark);
    cursor: pointer;
}

.portfolio-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.portfolio-footer {
    padding: 18px 20px 20px;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.portfolio-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.portfolio-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.portfolio-outcomes {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 14px;
    color: var(--text-light);
}

.portfolio-outcomes li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}

.portfolio-outcomes li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.portfolio-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 14px;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.work-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.12);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.work-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.18);
    border-color: rgba(38, 75, 25, 0.2);
}

.work-grid .work-card:nth-child(1) { transition-delay: 0s; }
.work-grid .work-card:nth-child(2) { transition-delay: 0.08s; }
.work-grid .work-card:nth-child(3) { transition-delay: 0.16s; }

.work-image {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-image-inner {
    padding: 30px 40px;
    text-align: center;
    color: white;
}

.work-image-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.work-content {
    padding: 30px;
}

.work-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.work-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.work-features {
    list-style: none;
    margin-bottom: 25px;
}

.work-features li {
    padding: 8px 0;
    color: var(--text-light);
}

/* Packages Section */
.packages-section {
    padding: 80px 0;
    background: var(--white);
}

.packages-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 30px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.package-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
    position: relative;
    transition: all 0.35s ease;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.package-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
}

.packages-grid .package-card:nth-child(1) { transition-delay: 0s; }
.packages-grid .package-card:nth-child(2) { transition-delay: 0.08s; }
.packages-grid .package-card:nth-child(3) { transition-delay: 0.16s; }

.package-card.featured {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    transform: scale(1.05);
}

.package-card.featured h3,
.package-card.featured .package-price,
.package-card.featured .package-desc,
.package-card.featured .package-features li {
    color: var(--white);
}

.featured-badge {
    position: absolute;
    top: -15px;
    right: 24px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.package-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.package-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.package-card.featured .package-price {
    color: var(--white);
}

.package-price span {
    font-size: 18px;
    font-weight: 400;
}

.package-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 16px;
}

.package-card.featured .package-desc {
    color: rgba(255,255,255,0.9);
}

.package-features {
    list-style: none;
    margin-bottom: 30px;
}

.package-features li {
    padding: 10px 0;
    color: var(--text-dark);
}

.package-card.featured .package-features li {
    color: var(--white);
}

/* Why Section */
.why-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-item {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.35s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.why-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
}

.why-grid .why-item:nth-child(1) { transition-delay: 0s; }
.why-grid .why-item:nth-child(2) { transition-delay: 0.06s; }
.why-grid .why-item:nth-child(3) { transition-delay: 0.12s; }
.why-grid .why-item:nth-child(4) { transition-delay: 0.18s; }

.why-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.why-icon-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 12px;
}

.why-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.why-item p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-info a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info ol {
    line-height: 2;
}

.contact-form {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Thank-you toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary-color);
    color: var(--white);
    padding: 16px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

.toast.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Sticky mobile CTA bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--primary-color);
    padding: 12px 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-cta-bar.visible {
    transform: translateY(0);
}

.mobile-cta-bar .mobile-cta-btn {
    flex: 1;
    display: inline-block;
    text-align: center;
    padding: 12px 8px;
    color: rgba(255,255,255,0.95);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.mobile-cta-bar .mobile-cta-btn:hover {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.mobile-cta-bar .mobile-cta-primary {
    background: var(--white);
    color: var(--primary-color);
}

.mobile-cta-bar .mobile-cta-primary:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
        gap: 8px;
        align-items: stretch;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .nav.active ul {
        flex-direction: column;
        gap: 0;
    }

    .nav.active li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav.active a {
        display: block;
        padding: 14px 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

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

    .package-card.featured {
        transform: scale(1);
    }

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