:root {
    /* The Mounty inspired palette */
    --primary: #2e4634; /* Deep Forest Green */
    --primary-light: #4a6c52;
    --secondary: #e67e22; /* Vibrant Orange/Rust */
    --secondary-hover: #d35400;
    --accent: #f1c40f; /* Pathfinder Gold accent */
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --white: #ffffff;
    --bg-light: #fdfbf7; /* Warm Paper/Canvas */
    --bg-dark: #1e2b22;
    --border-color: #e0e0e0;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
}

/* Add responsive image handling */
img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--secondary);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.logo span { color: var(--secondary); }

/* Buttons */
.btn-header {
    background: var(--secondary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
}

.btn-header:hover {
    background: transparent;
    color: var(--secondary);
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(30, 43, 34, 0.85), rgba(30, 43, 34, 0.7)), url(bk/15.png);
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 160px;
    position: relative;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23fdfbf7'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: url(bk/03.png);
    background-size: contain;
    background-repeat: no-repeat;
    /* transform: rotate(180deg); */
}

.hero-text {
    z-index: 10;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--secondary);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto 40px;
    max-width: 800px;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
}

.badge {
    background: rgba(230, 126, 34, 0.2);
    border: 1px solid var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

/* Gallery Section (Masonry) */
.masonry-container {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.masonry-container h1 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.masonry-container p {
    color: #666;
    font-size: 1.5rem;
}

.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    text-align: left;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    background: #000;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease, opacity 0.3s;
    opacity: 0.9;
}

.masonry-item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 43, 34, 0.95);
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--secondary);
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--white);
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--white);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    margin: 20px auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 25px;
    display: inline-block;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Details/Project Section */
.details {
    padding: 100px 0;
    background: rgb(73 94 63 / 19%);
    position: relative;
}

.details-header {
    text-align: center;
    margin-bottom: 60px;
}

.details-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.project-grid {
    margin-bottom: 80px;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.check-list li {
    background: var(--white);
    padding: 20px;
    border-radius: 4px;
    border-left: 4px solid var(--secondary);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    position: relative; /* Ensure tags are positioned relative to the card */
    overflow: hidden; /* Crop the tag ribbon */
}

.check-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.check-icon {
    background: rgba(46, 70, 52, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.check-icon i {
    font-size: 1.4rem;
    color: var(--primary);
}

.check-text {
    display: flex;
    flex-direction: column;
}

.tag-free {
    position: absolute;
    top: 5px;
    right: -30px;
    background-color: #27ae60;
    color: white;
    font-size: 0.5rem;
    padding: 2px 30px;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.check-text strong {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.check-text span {
    font-size: 0.85rem;
    color: #777;
    font-weight: 400;
}

.pricing {
    background-image: url(bk/22.png);
    background-repeat: no-repeat;
    padding: 100px 0;
    position: relative;
    background-size: 368px;
    background-position: bottom left;
}

/* Pricing Cards */
.pricing-split {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.price-card {
    flex: 1;
    min-width: 320px;
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.price-card:hover {
    transform: translateY(-10px);
}

.free-tier {
    background: #fff;
    border-top: 5px solid var(--primary);
}

.free-tier .price-display, .free-tier .card-header i {
    color: var(--primary);
}

.free-tier .card-header i {
    background: rgba(46, 70, 52, 0.1);
}

.server-tier {
    background: var(--primary);
    border-top: 5px solid var(--secondary);
    color: var(--white);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.server-tier .card-header h3, .server-tier .price-display {
    color: var(--white);
}

.server-tier .card-header p {
    color: rgba(255,255,255,0.7);
}

.server-tier .price-features li {
    color: rgba(255,255,255,0.9);
}

.server-tier .card-header i {
    color: var(--secondary);
    background: rgba(255,255,255,0.1);
}

.card-header { margin-bottom: 30px; }
.card-header i {
    font-size: 2.5rem;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}
.card-header h3 { font-size: 1.5rem; margin-bottom: 5px; font-family: var(--font-heading); }
.card-header p { font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.price-display {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}
.currency { font-size: 1.5rem; vertical-align: super; }
.period { font-size: 1rem; font-weight: 500; opacity: 0.7; }

.price-features {
    text-align: left;
    margin-bottom: 30px;
}
.price-features li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-features i { color: #2ecc71; }

.tag {
    display: inline-block;
    padding: 16px 40px;
    background: #005825;
    color: #e8f8f5;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 120px 0 40px; /* Increased top padding to accommodate trees */
    font-size: 0.95rem;
    border-top: none; /* Removed border as trees will cover it */
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

footer h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.copy {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
}

.arvores {
    position: absolute;
    top: -72px;
    left: 0;
    width: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
    .masonry-grid { column-count: 2; }
}

@media (max-width: 768px) {
    /* Header Adjustments */
    .logo {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .logo img {
        margin-bottom: 5px;
    }
    
    .btn-header {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    header {
        padding: 15px 0;
        position: relative;
    }
    
    /* Hero Adjustments */
    .hero {
        padding: 100px 0 80px;
        background-position: center top;
    }
    
    .hero h1 { 
        font-size: 2.2rem;
        line-height: 1.5; 
    }
    
    .hero p {
        font-size: 1.4rem;
        padding: 0 10px;
    }
    
    .hero::before {
        width: 200px;
        height: 200px;
        opacity: 0.5;
    }
    
    /* Pricing Adjustments */
    .server-tier { transform: scale(1); margin-top: 20px; }
    .pricing-split { flex-direction: column; gap: 30px; align-items: center; }
    
    .price-card {
        width: 100%;
        min-width: auto;
        max-width: 400px;
    }
    
    .check-list { grid-template-columns: 1fr; }
    
    /* Footer Adjustments */
    footer {
        padding-top: 80px;
        text-align: center;
    }
    
    .footer-grid {
        text-align: center;
        gap: 30px;
    }
    
    .arvores {
        top: -19px;
    }
}

@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.5; 
    }
    
    .hero::before {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .pricing {
        background-image: none; /* Hide background image on very small screens if it interferes */
    }

    .section-title, 
    .details-header h2, 
    .masonry-container h1 {
        font-size: 1.8rem;
    }

    .masonry-container > div:first-child {
        margin-top: 40px !important;
        margin-bottom: 40px !important;
    }
}
