/* Main Stylesheet */

/* CSS Variables for consistent theming */
:root {
    --primary-green: #3d6e3d;
    --secondary-green: #2d5a2d;
    --dark-green: #1a3a1a;
    --accent-gold: #c9a961;
    --accent-gold-light: #fbd787;
    --light-bg: #f8f9f5;
    --text-dark: #2c3e2c;
    --text-light: #6b7e6b;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Crimson Pro', Georgia, serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}


.title {
    margin-bottom: 1.5rem;
}

/* Navigation */
.navbar {
    /* background: rgba(255, 255, 255, 0.33); background: transparent; */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.navbar-item {
    color: var(--accent-gold-light);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-end .navbar-item:hover, .navbar-end .navbar-item.is-active {
    color: var(--accent-gold);
    background: transparent;
}

.navbar-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-item:hover::after {
    width: 80%;
}

.navbar-brand .navbar-item.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.navbar-burger {
    color: var(--white);
}

.logo-text {
    letter-spacing: 0.05em;
}

.navbar-logo {
    display: inline-block;
    margin-left: 0.5rem;
    width: 3rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.navbar-logo.loaded {
    opacity: 1;
    animation: float 3s ease-in-out infinite;
}

.navbar [src*="logo"] {
    display: inline-block;
    margin-left: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.navbar-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.navbar.is-scrolled .navbar-burger {
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    position: relative;
    background: #d4d4d4; /* Gray fallback during loading */
    overflow: hidden;
}

/* Background image layer */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right; /* Position to show people on right third */
    background-repeat: no-repeat;
    opacity: 0;
    animation: bgFadeIn 1.2s ease-out 0.3s forwards;
    z-index: 0;
}

/* Dark gradient overlay for text readability - stronger on left, fades to right */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0.2) 70%,
        transparent 100%
    );
    z-index: 1;
    opacity: 0;
    animation: overlayFadeIn 0.8s ease-out 0.5s forwards;
}

@keyframes bgFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 90%;
    padding-left: 5%; /* Position text on left side */
    animation: fadeInUp 1.2s ease-out 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    animation: scrollDown 2s ease-in-out infinite;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) rotate(45deg);
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(15px);
        opacity: 0.5;
    }
}

/* Buttons */
.button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold-light);
    border-color: var(--accent-gold);
    text-shadow: 0px 0px 5px;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(201, 169, 97, 0.3);
}

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

.btn-secondary:hover {
    background: var(--secondary-green);
    border-color: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 90, 45, 0.3);
}

.button.is-outlined.is-white:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 1.5rem;
}

.section-intro {
    background: var(--light-bg);
}

.section-services {
    background: var(--white);
}

.section-why {
    background: var(--light-bg);
}

.section-cta {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    position: relative;
    overflow: hidden;
}

.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(201, 169, 97, 0.15) 0%, transparent 60%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Dividers */
.divider {
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1.5rem 0;
}

.divider-center {
    width: 80px;
    height: 3px;
    background: var(--accent-gold);
    margin: 1.5rem auto;
}

/* Content Box */
.content-box {
    padding: 2rem 0;
}

.content-box p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Image Container */
.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 60px var(--shadow-lg);
}

.placeholder-image {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(255, 255, 255, 0.05) 20px,
            rgba(255, 255, 255, 0.05) 40px
        );
}

.placeholder-icon {
    font-size: 6rem;
    opacity: 0.3;
    z-index: 1;
}

/* Service Cards */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(45, 90, 45, 0.2);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--accent-gold);
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-link:hover {
    color: var(--primary-green);
    transform: translateX(5px);
}

/* Feature List */
.feature-list {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(45, 90, 45, 0.2);
}

.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.feature-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* CTA Box */
.cta-box {
    text-align: center;
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-box .title,
.cta-box .subtitle {
    color: var(--white);
}

.btn-cta {
    margin-top: 1rem;
    color: var(--primary-green) !important;
}

.btn-cta:hover {
    background: var(--accent-gold) !important;
    color: var(--white) !important;
    border-color: var(--accent-gold) !important;
}

/* Footer */
.footer {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 1.5rem 2rem;
}

.footer .title {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a, .footer strong, .footer [href*=mailto] {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover, .footer [href*=mailto]:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

br:nth-of-type(3) {
    margin-bottom: 1rem;
}

.footer-divider {
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
    border: none;
    height: 1px;
}

/* Animation Classes */
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-left {
    transform: translateX(-50px);
}

.fade-in-right {
    transform: translateX(50px);
}

.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Design */
@media screen and (max-width: 1023px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .hero .title {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.3rem;
    }

    .service-card {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .navbar-menu {
        background: var(--white);
        box-shadow: 0 8px 16px var(--shadow);
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .hero .title {
        font-size: 2rem;
    }

    .hero-content {
        text-align: center;
        padding-left: 0;
        max-width: 100%;
    }

    .hero-bg {
        background-position: center; /* Center on mobile */
    }

    .hero::before {
        background: rgba(0, 0, 0, 0.5); /* Uniform overlay on mobile */
    }

    .feature-item {
        gap: 1rem;
    }
}

@media screen and (min-width: 1024px) {
    .navbar-end {
        flex-direction: row;
    }
}

/* Performance: Will-change for animated elements */
.service-card,
.navbar,
.button {
    will-change: transform;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
