/* =========================================
   VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    /* Color Palette - Earthy, Premium, Professional */
    --color-primary-dark: #1F3622;
    /* Deep Forest Green */
    --color-primary: #2C4C3B;
    /* Primary Green */
    --color-primary-light: #3D6B53;
    /* Lighter Green */

    --color-accent: #D4AF37;
    /* Warm Gold/Brass */
    --color-accent-hover: #EBCB63;

    --color-earth-dark: #3E3224;
    /* Deep Soil Brown */
    --color-earth-mid: #685744;
    /* Bark Brown */

    --color-bg-light: #FFFFFF;
    /* Off-white, slightly warm */
    --color-bg-white: #FFFFFF;

    --color-text-dark: #222222;
    --color-text-muted: #666666;
    --color-text-light: #F8F9FA;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--color-primary-dark);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(44, 76, 59, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-text-light);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.header.scrolled {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.85); /* White with transparency */
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.header.scrolled .nav-link,
.header.scrolled .mobile-menu-btn,
.header.scrolled .logo-title {
    color: var(--color-primary-dark);
}

.header.scrolled .btn-outline {
    border-color: var(--color-primary-dark);
    color: var(--color-primary-dark);
}

.header.scrolled .btn-outline:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 101;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: saturate(1.8) contrast(1.1);
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 1px;
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

/* =========================================
   ANIMATED NAV BUTTONS (Slay Effect)
   ========================================= */ 
.nav-link {
    position: relative;
    padding: 8px 30px;
    background: transparent;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: all 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    border: 1px solid var(--color-accent);
    background: linear-gradient(
        85deg,
        var(--color-primary-dark),
        var(--color-primary),
        var(--color-primary-light),
        var(--color-primary),
        var(--color-primary-dark)
    );
    color: var(--color-accent);
    animation: wind 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

@keyframes wind {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Icon Animations */
.nav-btn-icon {
    position: absolute;
    fill: var(--color-accent);
    opacity: 0;
    transition: all 0.5s ease-in-out;
    filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.nav-link:hover .nav-btn-icon {
    opacity: 1;
}

.icon-1 {
    top: -5px;
    right: 5px;
    width: 20px;
    transform: rotate(10deg);
}

.nav-link:hover .icon-1 {
    animation: slay-1 3s cubic-bezier(0.52, 0, 0.58, 1) infinite;
}

@keyframes slay-1 {
    0% { transform: rotate(10deg) translateY(0); }
    50% { transform: rotate(-5deg) translateY(-3px); }
    100% { transform: rotate(10deg) translateY(0); }
}

.icon-2 {
    top: -8px;
    left: 15px;
    width: 10px;
    transform: rotate(10deg);
}

.nav-link:hover .icon-2 {
    animation: slay-2 3s cubic-bezier(0.52, 0, 0.58, 1) 0.5s infinite;
}

@keyframes slay-2 {
    0% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-2px); }
    100% { transform: rotate(0) translateY(0); }
}

.icon-3 {
    bottom: -5px;
    left: 5px;
    width: 15px;
    transform: rotate(-5deg);
}

.nav-link:hover .icon-3 {
    animation: slay-3 2.5s cubic-bezier(0.52, 0, 0.58, 1) 0.8s infinite;
}

@keyframes slay-3 {
    0% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(-10deg) translateX(-2px); }
    100% { transform: rotate(0) translateX(0); }
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Extend leaf icons to .btn and .nav-call-btn */
.btn {
    position: relative;
    overflow: visible;
}

.btn:hover .nav-btn-icon,
.nav-call-btn:hover .nav-btn-icon {
    opacity: 1;
}

.btn:hover .icon-1,
.nav-call-btn:hover .icon-1 {
    animation: slay-1 3s cubic-bezier(0.52, 0, 0.58, 1) infinite;
}

.btn:hover .icon-2,
.nav-call-btn:hover .icon-2 {
    animation: slay-2 3s cubic-bezier(0.52, 0, 0.58, 1) 0.5s infinite;
}

.btn:hover .icon-3,
.nav-call-btn:hover .icon-3 {
    animation: slay-3 2.5s cubic-bezier(0.52, 0, 0.58, 1) 0.8s infinite;
}

/* =========================================
   NAV CALL NOW BUTTON (Uiverse override)
   ========================================= */ 
.nav-call-btn {
  --main-size: 1.1rem;
  --color-text: #ffffff;
  --color-background: var(--color-accent);
  --color-background-hover: var(--color-primary);
  --color-outline: rgba(212, 175, 55, 0.4);
  --color-shadow: #00000040;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  border-radius: calc(var(--main-size) * 100);
  padding: 0.33em 1em 0.33em 1.25em;
  font-family: var(--font-primary), "Poppins", sans-serif;
  font-weight: 600;
  font-size: var(--main-size);
  color: var(--color-text);
  background: var(--color-background);
  box-shadow: 0 0 0.2em 0 var(--color-background);
  transition: 1s;
}

/* Modifier class to reuse nav-call-btn for the hero */
.hero-call-btn {
  --main-size: 1.15rem;
  --color-background: var(--color-primary);
  --color-background-hover: var(--color-primary-dark);
  --color-outline: rgba(31, 54, 34, 0.4);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.nav-call-btn:active {
  transform: scale(0.95);
}

.nav-call-btn:hover {
  animation:
    ripple 1s linear infinite,
    colorize 1s infinite;
  transition: 0.5s;
}

.nav-call-btn span {
  margin-left: 0.3em;
  transition: 0.5s;
}

.nav-call-btn:hover span {
  text-shadow: 5px 5px 5px var(--color-shadow);
}

.nav-call-btn:active span {
  text-shadow: none;
}

.nav-call-btn svg {
  height: 1.1em;
  fill: var(--color-text);
  margin-right: -0.16em;
  position: relative;
  transition: 0.5s;
}

.nav-call-btn:hover svg {
  margin-right: 0.66em;
  transition: 0.5s;
  filter: drop-shadow(5px 5px 2.5px var(--color-shadow));
}

.nav-call-btn:active svg {
  filter: none;
}

.nav-call-btn svg polygon:nth-child(1) {
  transition: 0.4s;
  transform: translateX(-60%);
}

.nav-call-btn svg polygon:nth-child(2) {
  transition: 0.5s;
  transform: translateX(-30%);
}

.nav-call-btn:hover svg polygon:nth-child(1) {
  transform: translateX(0%);
  animation: opacity 1s infinite 0.6s;
}

.nav-call-btn:hover svg polygon:nth-child(2) {
  transform: translateX(0%);
  animation: opacity 1s infinite 0.4s;
}

.nav-call-btn:hover svg polygon:nth-child(3) {
  animation: opacity 1s infinite 0.2s;
}

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

@keyframes colorize {
  0% { background: var(--color-background); }
  50% { background: var(--color-background-hover); }
  100% { background: var(--color-background); }
}

@keyframes ripple {
  0% { box-shadow: 0 0 0 0 transparent, 0 0 1em 0 var(--color-background); }
  50% { box-shadow: 0 0 0 0.2em var(--color-outline), 0 0 1em 0 var(--color-background); }
  100% { box-shadow: 0 0 0 0.4em transparent, 0 0 1em 0 var(--color-background); }
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    padding: 10px 24px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 101;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary-dark);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease-in-out;
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-light);
}

.mobile-nav-link:hover {
    color: var(--color-accent);
}

.mobile-nav-phone {
    margin-top: 20px;
}

/* =========================================
   PAGE HEADERS
   ========================================= */
.page-header {
    position: relative;
    overflow: hidden;
}

.branch-overlay {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 500px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M500 0 Q300 50 150 150 Q50 200 0 350' fill='none' stroke='%233D6B53' stroke-width='14' stroke-linecap='round'/%3E%3Cpath d='M350 40 Q250 150 100 250' fill='none' stroke='%233D6B53' stroke-width='10' stroke-linecap='round'/%3E%3Cpath d='M230 110 Q300 200 250 300' fill='none' stroke='%233D6B53' stroke-width='8' stroke-linecap='round'/%3E%3Cpath d='M400 20 Q425 50 400 75 Q375 50 400 20 Z' fill='%23D4AF37' opacity='0.9'/%3E%3Cpath d='M290 40 Q330 80 290 120 Q250 80 290 40 Z' fill='%233D6B53' opacity='0.9'/%3E%3Cpath d='M150 140 Q185 155 160 200 Q125 185 150 140 Z' fill='%23D4AF37' opacity='0.9'/%3E%3Cpath d='M40 190 Q80 230 40 270 Q0 230 40 190 Z' fill='%233D6B53' opacity='0.9'/%3E%3Cpath d='M240 140 Q280 155 255 200 Q215 185 240 140 Z' fill='%23D4AF37' opacity='0.8'/%3E%3Cpath d='M90 240 Q120 280 85 310 Q50 270 90 240 Z' fill='%233D6B53' opacity='0.9'/%3E%3Cpath d='M275 240 Q310 260 280 310 Q245 290 275 240 Z' fill='%233D6B53' opacity='0.9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 1;
    transform-origin: top right;
    animation: swayMain 12s ease-in-out infinite alternate;
}

.branch-overlay::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 200px;
    width: 400px;
    height: 350px;
    background-image: inherit;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: top right;
    opacity: 0.5;
    transform: scale(0.7) rotate(15deg);
    animation: swayBack 15s ease-in-out infinite alternate 2s;
    filter: blur(3px);
}

.branch-overlay::after {
    content: '';
    position: absolute;
    top: -50px;
    right: 350px;
    width: 300px;
    height: 250px;
    background-image: inherit;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: top right;
    opacity: 0.3;
    animation: swayDeep 18s ease-in-out infinite alternate 4s;
    filter: blur(5px);
}

.branch-overlay.left {
    right: auto;
    left: -100px;
    transform-origin: center top;
    animation: swayMainLeft 12s ease-in-out infinite alternate;
}

@keyframes swayMain {
    0% { transform: rotate(0deg) skewX(0deg); }
    25% { transform: rotate(-3deg) skewX(2deg); }
    75% { transform: rotate(2deg) skewX(-1deg); }
    100% { transform: rotate(-2deg) skewX(1deg); }
}

@keyframes swayMainLeft {
    0% { transform: scaleX(-1) rotate(0deg) skewX(0deg); }
    25% { transform: scaleX(-1) rotate(-3deg) skewX(2deg); }
    75% { transform: scaleX(-1) rotate(2deg) skewX(-1deg); }
    100% { transform: scaleX(-1) rotate(-2deg) skewX(1deg); }
}

@keyframes swayBack {
    0% { transform: scale(0.7) rotate(15deg); }
    50% { transform: scale(0.7) rotate(18deg); }
    100% { transform: scale(0.7) rotate(12deg); }
}

@keyframes swayDeep {
    0% { transform: scale(0.5) rotate(-10deg) scaleX(-1); }
    50% { transform: scale(0.5) rotate(-15deg) scaleX(-1); }
    100% { transform: scale(0.5) rotate(-5deg) scaleX(-1); }
}

.page-header .container {
    position: relative;
    z-index: 10;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
    background-image: url('../images/hero_sunny_white_house.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--color-text-light);
}

.hero-center-logo {
    /* Use multiple thin drop-shadows to simulate a solid stroke/outline */
    filter: drop-shadow(1px 1px 0 rgba(0,0,0,0.8)) 
            drop-shadow(-1px -1px 0 rgba(0,0,0,0.8)) 
            drop-shadow(1px -1px 0 rgba(0,0,0,0.8)) 
            drop-shadow(-1px 1px 0 rgba(0,0,0,0.8))
            drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.badge {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
}

.badge i {
    color: var(--color-accent);
}

.hero-title {
    font-size: 4.5rem;
    color: var(--color-text-light);
    margin-bottom: 24px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =========================================
   ROTATING TEXT ANIMATION
   ========================================= */
.rotating-text-wrapper {
    display: inline-flex;
    overflow: hidden;
    padding: 0 0.15em;
    background: var(--color-accent);
    color: var(--color-primary-dark);
    border-radius: 8px;
    vertical-align: baseline;
    position: relative;
    text-shadow: none;
    min-width: 3ch;
}

.rotating-text-inner {
    display: inline-flex;
    position: relative;
    overflow: hidden;
}

.rotating-text-chars {
    display: inline-flex;
    flex-wrap: nowrap;
}

.rotating-text-char {
    display: inline-block;
    /* spring-like bounce: cubic-bezier that overshoots */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s ease;
}

/* Entry animation (from below) */
.rotating-text-char.enter {
    transform: translateY(100%);
    opacity: 0;
}

.rotating-text-char.enter-active {
    transform: translateY(0);
    opacity: 1;
}

/* Exit animation (upward) */
.rotating-text-char.exit {
    transform: translateY(0);
    opacity: 1;
    position: absolute;
    top: 0;
    left: 0;
}

.rotating-text-char.exit-active {
    transform: translateY(-120%);
    opacity: 0;
}

.rotating-text-space {
    white-space: pre;
    display: inline-block;
}

@media (max-width: 768px) {
    .rotating-text-wrapper {
        padding: 0 0.1em;
        border-radius: 6px;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0 auto 40px;
    max-width: 650px;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Scroll Reveal Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-title {
        font-size: 1.2rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

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

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

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        align-items: center;
    }

    .btn-large {
        width: 100%;
    }

    .branch-overlay {
        width: 200px;
        height: 180px;
        top: -20px;
        right: -40px;
    }

    .branch-overlay::before,
    .branch-overlay::after {
        display: none;
    }

    .branch-overlay.left {
        right: auto;
        left: -40px;
        top: auto;
        bottom: -20px;
    }
}

/* =========================================
   GENERAL SECTIONS
   ========================================= */
.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary-dark);
    margin-bottom: 16px;
}

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

.title-underline {
    height: 4px;
    width: 80px;
    background-color: var(--color-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    background-color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
}

/* =========================================
   FLOATING LEAVES ANIMATION
   ========================================= */
.floating-leaf {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath d='M25 2 Q40 15 45 30 Q40 45 25 48 Q10 45 5 30 Q10 15 25 2 Z' fill='%232C4C3B' opacity='0.12'/%3E%3Cpath d='M25 8 Q25 25 25 45' stroke='%232C4C3B' stroke-width='0.8' fill='none' opacity='0.1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.leaf-1 {
    width: 60px; height: 60px;
    top: 5%;
    left: -80px;
    animation: leafDrift1 18s ease-in-out infinite;
    animation-delay: 0s;
}

.leaf-2 {
    width: 45px; height: 45px;
    top: 15%;
    left: -80px;
    animation: leafDrift2 22s ease-in-out infinite;
    animation-delay: 3s;
}

.leaf-3 {
    width: 75px; height: 75px;
    top: 30%;
    left: -80px;
    animation: leafDrift1 20s ease-in-out infinite;
    animation-delay: 6s;
}

.leaf-4 {
    width: 40px; height: 40px;
    top: 50%;
    left: -80px;
    animation: leafDrift3 24s ease-in-out infinite;
    animation-delay: 2s;
}

.leaf-5 {
    width: 55px; height: 55px;
    top: 65%;
    left: -80px;
    animation: leafDrift2 19s ease-in-out infinite;
    animation-delay: 8s;
}

.leaf-6 {
    width: 42px; height: 42px;
    top: 80%;
    left: -80px;
    animation: leafDrift1 25s ease-in-out infinite;
    animation-delay: 5s;
}

.leaf-7 {
    width: 68px; height: 68px;
    top: 40%;
    left: -80px;
    animation: leafDrift3 21s ease-in-out infinite;
    animation-delay: 10s;
}

.leaf-8 {
    width: 50px; height: 50px;
    top: 90%;
    left: -80px;
    animation: leafDrift2 17s ease-in-out infinite;
    animation-delay: 12s;
}

.leaf-9 {
    width: 65px; height: 65px;
    top: 10%;
    left: -80px;
    animation: leafDrift3 20s ease-in-out infinite;
    animation-delay: 1s;
}

.leaf-10 {
    width: 48px; height: 48px;
    top: 25%;
    left: -80px;
    animation: leafDrift1 23s ease-in-out infinite;
    animation-delay: 4s;
}

.leaf-11 {
    width: 70px; height: 70px;
    top: 45%;
    left: -80px;
    animation: leafDrift2 21s ease-in-out infinite;
    animation-delay: 7s;
}

.leaf-12 {
    width: 52px; height: 52px;
    top: 60%;
    left: -80px;
    animation: leafDrift3 19s ease-in-out infinite;
    animation-delay: 11s;
}

.leaf-13 {
    width: 58px; height: 58px;
    top: 75%;
    left: -80px;
    animation: leafDrift1 26s ease-in-out infinite;
    animation-delay: 14s;
}

.leaf-14 {
    width: 44px; height: 44px;
    top: 85%;
    left: -80px;
    animation: leafDrift2 22s ease-in-out infinite;
    animation-delay: 2s;
}

.leaf-15 {
    width: 72px; height: 72px;
    top: 5%;
    left: -80px;
    animation: leafDrift3 25s ease-in-out infinite;
    animation-delay: 9s;
}

.leaf-16 {
    width: 46px; height: 46px;
    top: 35%;
    left: -80px;
    animation: leafDrift1 18s ease-in-out infinite;
    animation-delay: 13s;
}

.leaf-17 {
    width: 62px; height: 62px;
    top: 55%;
    left: -80px;
    animation: leafDrift2 24s ease-in-out infinite;
    animation-delay: 5s;
}

.leaf-18 {
    width: 54px; height: 54px;
    top: 95%;
    left: -80px;
    animation: leafDrift3 20s ease-in-out infinite;
    animation-delay: 15s;
}

/* Drift path 1: gentle arc across with tumble */
@keyframes leafDrift1 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    5% {
        opacity: 0.7;
    }
    25% {
        transform: translateX(25vw) translateY(-30px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateX(50vw) translateY(40px) rotate(200deg) scale(0.9);
    }
    75% {
        transform: translateX(75vw) translateY(-20px) rotate(310deg) scale(1.05);
    }
    95% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(105vw) translateY(30px) rotate(400deg) scale(1);
        opacity: 0;
    }
}

/* Drift path 2: wavy descent */
@keyframes leafDrift2 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    20% {
        transform: translateX(20vw) translateY(50px) rotate(70deg);
    }
    40% {
        transform: translateX(40vw) translateY(-10px) rotate(160deg);
    }
    60% {
        transform: translateX(60vw) translateY(60px) rotate(250deg);
    }
    80% {
        transform: translateX(80vw) translateY(10px) rotate(340deg);
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateX(105vw) translateY(40px) rotate(420deg);
        opacity: 0;
    }
}

/* Drift path 3: floating upward arc */
@keyframes leafDrift3 {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg) scaleX(-1);
        opacity: 0;
    }
    5% {
        opacity: 0.5;
    }
    30% {
        transform: translateX(30vw) translateY(-60px) rotate(120deg) scaleX(-1);
    }
    50% {
        transform: translateX(50vw) translateY(20px) rotate(200deg) scaleX(-1);
    }
    70% {
        transform: translateX(70vw) translateY(-40px) rotate(290deg) scaleX(-1);
    }
    95% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(105vw) translateY(-10px) rotate(380deg) scaleX(-1);
        opacity: 0;
    }
}

.services-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-branch {
    position: absolute;
    left: 50%;
    top: 0;
    width: 6px;
    background: var(--color-primary-dark);
    transform: translateX(-50%);
    height: 0; /* Handled by JS on scroll */
    z-index: 1;
    border-radius: 3px;
    transition: height 0.1s ease-out;
}

/* Branch Texture/Leaf elements could go here, but a thick green line serves as the trunk */

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0; 
    /* The springy pop-out animation */
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.8s ease;
}

/* Start positions */
.timeline-item.left {
    left: 0;
    transform: translateX(50px) scale(0.5);
    transform-origin: center right;
}

.timeline-item.right {
    left: 50%;
    transform: translateX(-50px) scale(0.5);
    transform-origin: center left;
}

/* Active positions (when scrolled into view) */
.timeline-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* The 'nodes' or 'buds' on the branch */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-accent);
    border: 4px solid white;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%) scale(0);
    z-index: 3;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.timeline-item.active::after {
    transform: translateY(-50%) scale(1);
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

/* Responsive single-column "branch on the left" layout for mobile */
@media (max-width: 768px) {
    .timeline-branch {
        left: 30px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        width: 100%;
        left: 0;
        padding-left: 70px;
        padding-right: 20px;
        transform: translateX(-20px) scale(0.8);
        transform-origin: center left;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 20px;
        right: auto;
    }
    
    .timeline-item.active {
        transform: translateX(0) scale(1);
    }
}

.service-card {
    background: var(--color-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); /* slightly stronger distinct shadow */
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05); /* very light subtle border */
    display: flex;
    flex-direction: column;
    padding: 40px 30px;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.service-icon-wrapper {
    margin-bottom: 24px;
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-content {
    flex-grow: 1;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.service-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* =========================================
   GALLERY SECTION
   ========================================= */
.gallery {
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.gallery-slideshow-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1200px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.gallery-slideshow-viewport {
    position: relative;
    width: 100%;
    height: 380px;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.42, 0, 0.58, 1);
}

.gallery-carousel-face {
    position: absolute;
    width: 250px;
    height: 180px;
    left: 50%;
    top: 50%;
    margin-left: -125px;
    margin-top: -90px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    backface-visibility: hidden;
    transition: opacity 0.5s ease;
    will-change: transform;
    image-rendering: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* The "front-facing" image gets a subtle glow */
.gallery-carousel-face.front-face {
    box-shadow: 0 10px 60px rgba(212, 175, 55, 0.3), 0 5px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
    .gallery-slideshow-viewport {
        height: 280px;
    }
    .gallery-carousel-face {
        width: 180px;
        height: 130px;
        margin-left: -90px;
        margin-top: -65px;
    }
}

/* Navigation Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(31, 54, 34, 0.7);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.gallery-nav-btn:hover {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.prev-btn {
    left: -30px;
}

.next-btn {
    right: -30px;
}

/* Indicators */
.gallery-indicators {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(31, 54, 34, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.indicator-dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
}

.gallery-overlay h3 {
    color: var(--color-text-light);
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.gallery-item:hover .gallery-overlay h3 {
    transform: translateY(0);
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    background-color: var(--color-primary);
    padding: 80px 0;
    position: relative;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
    gap: 30px;
}

.cta-text {
    flex: 1 1 500px;
}

.cta-text h2 {
    color: var(--color-accent);
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.cta-text p {
    color: var(--color-text-light);
    font-size: 1.2rem;
}

.cta-action {
    flex: 0 0 auto;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: var(--color-primary-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cline x1='20' y1='12' x2='20' y2='28' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' opacity='0.06'/%3E%3Cline x1='12' y1='20' x2='28' y2='20' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--color-text-light);
    padding: 70px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* Column 1 — Brand */
.footer-brand .footer-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-company-name {
    font-size: 1.6rem;
    color: var(--color-text-light);
    letter-spacing: 1px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    max-width: 320px;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Column 2 — Quick Links */
.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.6;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Column 3 — Contact */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--color-accent);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact-list a:hover {
    color: var(--color-accent);
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 24px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--color-text-light);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    transform: translateY(-4px);
    border-color: var(--color-accent);
}

.footer-form h4 {
    color: var(--color-text-light);
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.contact-form,
.contact-info-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 50px 45px;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: 100%; /* Ensure both cards are same height if content allows */
    display: flex;
    flex-direction: column;
}

.contact-form {
    border-radius: 8px 45% 8px 45%;
}

.contact-info-card {
    border-radius: 45% 8px 45% 8px; /* Mirrored leaf shape */
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 1em 2em;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    letter-spacing: 3px;
    background: #DCFFFC;
    text-transform: uppercase;
    color: #088178;
    transition: all 1000ms;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    outline: 2px solid #088178;
}

.btn-submit:hover {
    color: #DCFFFC;
    transform: scale(1);
    outline: 2px solid #088178;
    box-shadow: 4px 5px 17px -4px #088178;
}

.btn-submit::before {
    content: "";
    position: absolute;
    left: -50px;
    top: 0;
    width: 0;
    height: 100%;
    background-color: #088178;
    transform: skewX(30deg);
    z-index: -1;
    transition: width 1000ms;
}

.btn-submit:hover::before {
    width: 250%;
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    color: #4CAF50;
}

.form-status.error {
    display: block;
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 10px;
    border-radius: 4px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 24px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.contact-section {
    background-color: var(--color-primary-dark);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cline x1='20' y1='12' x2='20' y2='28' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' opacity='0.06'/%3E%3Cline x1='12' y1='20' x2='28' y2='20' stroke='%23ffffff' stroke-width='1.2' stroke-linecap='round' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--color-text-light);
    padding: 70px 0;
}

/* =========================================
   CTA BANNER
   ========================================= */
.cta-banner {
    background-color: var(--color-primary-dark);
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 50px 0;
}

.cta-text h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.cta-action .btn {
    white-space: nowrap;
}

/* =========================================
   MEDIA QUERIES FOR SECTIONS
   ========================================= */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .footer-brand {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-branding {
        justify-content: center;
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col {
        text-align: center;
    }

    .footer-links a, 
    .contact-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .cta-container {
        text-align: center;
        flex-direction: column;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

/* =========================================
   PAGE SLIDE TRANSITIONS
   ========================================= */
@keyframes pageSlideIn {
    from {
        opacity: 0;
        transform: scale(0.98);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes pageSlideOut {
    from {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: scale(1.02);
        filter: blur(5px);
    }
}

body {
    opacity: 1; /* Fallback for browsers without animation support */
    will-change: transform, opacity, filter;
    animation: pageSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* We don't need .page-entering anymore, it's the default state */

body.page-exiting {
    will-change: transform, opacity, filter;
    animation: pageSlideOut 0.4s cubic-bezier(0.4, 0, 1, 1) both;
    pointer-events: none;
}