/* Custom Premium CSS: Green Mountain Builder */

:root {
    --bg-dark: #222629;
    --bg-darker: #1a1e21;
    --bg-light-dark: #32383c;
    --text-main: #ffffff;
    --text-muted: #8b969e;
    
    --primary-green: #02b13f;
    --primary-dark: #018a31;
    --green-glow: rgba(2, 177, 63, 0.3);
    
    --primary-gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.3);
    
    --glass-bg: rgba(41, 41, 34, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

/* === Global Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-darker);
}

body.dark-theme {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.highlight-green {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.highlight-gold {
    color: var(--primary-gold);
    position: relative;
    display: inline-block;
}

/* === Buttons === */
a {
    text-decoration: none;
    color: inherit;
}

.btn-primary, .btn-outline {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-green);
    color: #ffffff;
    box-shadow: 0 10px 30px -10px var(--green-glow);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -5px var(--green-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--primary-green);
    color: #ffffff;
}

.btn-outline.light {
    border-color: rgba(255,255,255,0.2);
    color: white;
}
.btn-outline.light:hover {
    background: white;
    color: var(--bg-dark);
}

/* === Custom Selection === */
::selection {
    background: var(--primary-green);
    color: white;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

/* === Navigation (Full-Width Glass Header) === */
.premium-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s ease;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.nav-links a.nav-btn {
    background: var(--primary-green);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.nav-links a.nav-btn:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: 0 5px 15px var(--green-glow);
}

/* === Cinematic Hero === */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/3.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.05); /* Slight zoom for premium feel */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(26, 30, 33, 0.8) 0%, rgba(34, 38, 41, 0.95) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-green);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title {
    font-size: clamp(5rem, 5vw, 5rem);
    margin-bottom: 40px;
}

/* === Mountain Slash Utilities === */
.mountain-slash-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 6vw));
    padding-bottom: 10vw !important;
}

.mountain-slash-top {
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -6vw;
    padding-top: 10vw !important;
}

.mountain-slash-top-reverse {
    clip-path: polygon(0 0, 100% 6vw, 100% 100%, 0 100%);
    margin-top: -6vw;
    padding-top: 10vw !important;
}

.mountain-slash-top-deep {
    clip-path: polygon(0 10vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -10vw;
    padding-top: 14vw !important;
}

/* === Stats Section === */
.stats-section {
    background: var(--bg-light-dark);
    position: relative;
    z-index: 20;
    padding: 80px 5%;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-box {
    text-align: center;
}

.stat-num {
    font-size: 5rem;
    color: white;
    margin-bottom: 5px;
}

.stat-num span {
    color: var(--primary-green);
}

.stat-box p {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* === About Section === */
.about-section {
    background: var(--bg-dark);
    padding: 120px 5%;
    position: relative;
    z-index: 10;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(60%); /* Premium desaturated look */
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text h2 {
    font-size: 4rem;
    margin-bottom: 30px;
}

.about-text .lead {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.feature-list strong {
    color: white;
}

/* === Services Section === */
.services-section {
    background: var(--bg-darker);
    padding: 120px 5%;
    position: relative;
    z-index: 5;
    clip-path: polygon(0 6vw, 100% 0, 100% 100%, 0 100%);
        margin-top: -6vw;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.services-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.service-card img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(26, 30, 33, 0.95) 0%, rgba(26, 30, 33, 0.8) 50%, transparent 100%);
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 2px solid transparent;
    border-radius: 20px;
    pointer-events: none;
    transition: border-color 0.5s ease;
    z-index: 3;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card:hover .service-content {
    transform: translateY(0);
}

.service-card:hover p {
    opacity: 1;
}

.service-card:hover::after {
    border-color: var(--primary-green);
}

/* === Testimonials === */
.testimonials-section {
    background: var(--bg-light-dark);
    padding: 120px 5%;
}

/* === Testimonials Carousel === */
.testimonials-section {
    background: var(--bg-light-dark);
    padding: 120px 5%;
    overflow: hidden;
}

.testimonial-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 10px 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testi-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    cursor: pointer;
    text-decoration: none;
}

.testi-card:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--primary-gold);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.stars {
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testi-card p {
    font-style: italic;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testi-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.testi-card h4 {
    font-size: 1.1rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.testi-card .source {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-gold);
    width: 30px;
    border-radius: 10px;
}

@media screen and (max-width: 991px) {
    .testi-card {
        flex: 0 0 80%;
    }
}

@media screen and (max-width: 768px) {
    .testi-card {
        flex: 0 0 100%;
    }
}

/* === Footer === */
.footer-section {
    background: var(--bg-darker);
    padding: 100px 5% 40px;
}

.footer-cta {
    max-width: 800px;
    margin: 0 auto 100px;
    text-align: center;
}

.footer-cta h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 60px;
}

.footer-brand img {
    margin-bottom: 20px;
    /* Add green filter to logo since original is dark/black */
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links h4, .footer-services h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links a, .footer-services a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Values Grid Section === */
.values-grid-section {
    background: var(--bg-dark);
    padding: 120px 5% 40px;
    position: relative;
    z-index: 10;
}

.values-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.val-card {
    position: relative;
    background: linear-gradient(145deg, rgba(40, 45, 48, 0.9) 0%, rgba(34, 38, 41, 0.95) 100%);
    border: 1px solid rgba(2, 177, 63, 0.15);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.val-card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(2, 177, 63, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.val-card > * {
    position: relative;
    z-index: 2;
}

.val-card:hover {
    transform: translateY(-10px);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05), 0 15px 40px rgba(0,0,0,0.6);
    border-color: rgba(2, 177, 63, 0.4);
}

.val-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(2, 177, 63, 0.1);
    color: var(--primary-green);
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(2, 177, 63, 0.2);
    border: 1px solid rgba(2, 177, 63, 0.2);
}

.val-icon svg {
    width: 30px;
    height: 30px;
}

.val-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.val-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* === Values & Contact Section === */
.values-contact-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.values-content h2 {
    font-size: 4rem;
    margin-bottom: 50px;
}

.value-item {
    margin-bottom: 60px;
}

.value-item h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.value-item h3 {
    font-size: 1.8rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.value-item p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Form Styles */
.contact-form-wrapper {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.premium-form .form-group {
    margin-bottom: 25px;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 18px 20px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(2, 177, 63, 0.2);
    background: rgba(0,0,0,0.6);
}

.premium-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23ffffff" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 20px top 50%;
    background-size: 10px 10px;
}

.premium-form option {
    background: var(--bg-darker);
    color: white;
}

.form-submit {
    width: 100%;
    font-size: 1.2rem;
    padding: 20px;
    border: none;
}

/* === Hamburger Menu === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* === Responsive Rules === */
.core-examples-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.long-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

@media screen and (max-width: 1200px) {
    .services-track {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 991px) {
    .core-examples-grid { grid-template-columns: 1fr; gap: 30px !important; }
    .long-list-grid { grid-template-columns: 1fr 1fr; gap: 20px !important; }
    
    .values-grid-container { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .val-card { padding: 30px 20px; }
    
    .hero-title { font-size: 2.5rem !important; }
    .hero-title-sub { font-size: 1.3rem !important; }
    .hero-logo-stone { max-height: 80px !important; margin-bottom: 15px !important; }
    .about-container { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .values-contact-container { grid-template-columns: 1fr; }
    .contact-form-wrapper { padding: 30px 20px; }
    .testimonial-grid { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px !important; text-align: center; }
    .footer-grid > div[style*="width: 1px"] { display: none !important; } /* Hide vertical dividers on mobile */
    .footer-links { padding-left: 0 !important; text-align: center !important; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center !important; }
    .footer-sister-sites img { max-height: 120px !important; max-width: 42vw !important; height: auto !important; }
    .footer-brand img { max-width: 90vw !important; height: auto !important; }
    
    .nav-container { justify-content: space-between; }
    .hamburger { display: flex; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        padding-top: 80px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        margin: 15px 0;
        font-size: 1.2rem;
        text-align: center;
    }
    
    .nav-links a.nav-btn {
        margin: 20px auto 0;
        text-align: center;
        width: 80%;
    }
}

@media screen and (max-width: 768px) {
    .values-grid-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .val-card { padding: 20px 15px; }
    .val-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
    .val-card p { font-size: 0.9rem; }
    .val-icon { width: 45px; height: 45px; margin-bottom: 15px; }
    .val-icon svg { width: 22px; height: 22px; }
    
    .stats-grid { flex-direction: column; gap: 60px; }
    .services-track { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .about-text h2, .section-header h2, .footer-cta h2 { font-size: 2.5rem; }
    .hero-title { font-size: 3rem; }
}
