
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }

	/* Safe area handling for mobile devices */
	@supports (padding: max(0px)) {
	  #mainNav {
		padding-top: env(safe-area-inset-top, 0px);
	  }
	  #mainNav::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: env(safe-area-inset-top, 0px);
		background: inherit;
		z-index: -1;
	  }
	  .mobile-call-bar {
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
	  }
	}
	
/* Organic blob shapes */
.blob-shape { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
.blob-shape-2 { border-radius: 30% 70% 70% 30% / 30% 60% 40% 70%; }

/* Glassmorphism */
.glass { background: rgba(255,255,255,0.12); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.18); }
.glass-dark { background: rgba(45,90,39,0.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(45,90,39,0.12); }
.glass-card { background: rgba(255,255,255,0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.5); }

/* Animations */
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-12px); } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.4; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse-ring { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes wave { 0% { transform: translateX(0) translateZ(0) scaleY(1); } 50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); } 100% { transform: translateX(-50%) translateZ(0) scaleY(1); } }
@keyframes swim { 0% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(10px) rotate(2deg); } 75% { transform: translateX(-10px) rotate(-2deg); } 100% { transform: translateX(0) rotate(0deg); } }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-swim { animation: swim 8s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* Stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.15s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.25s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.35s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.45s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.55s; }

/* Hero video/image overlay */
.hero-overlay { background: linear-gradient(135deg, rgba(30,61,26,0.82) 0%, rgba(31,94,122,0.65) 50%, rgba(107,79,58,0.55) 100%); }

/* Water ripple background */
.water-bg { background: linear-gradient(180deg, #1F5E7A 0%, #2D5A27 50%, #1E3D1A 100%); position: relative; overflow: hidden; }
.water-bg::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 20%, rgba(42,122,158,0.3) 0%, transparent 50%), radial-gradient(ellipse at 70% 80%, rgba(45,90,39,0.3) 0%, transparent 50%); }

/* Texture overlay */
.noise-overlay::after { content: ''; position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); pointer-events: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #E8DDC7; }
::-webkit-scrollbar-thumb { background: #6B4F3A; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #4A3528; }

/* Nav scroll state */
.nav-scrolled { background: rgba(255,255,255,0.92) !important; backdrop-filter: blur(20px) !important; box-shadow: 0 2px 30px rgba(0,0,0,0.08) !important; }
.nav-scrolled .nav-link { color: #4A3528 !important; }
.nav-scrolled .nav-logo { color: #2D5A27 !important; }
.nav-scrolled .nav-call { color: #4A3528 !important; border-color: #4A3528 !important; }
.nav-scrolled #mobileMenuBtn { color: #4A3528 !important; }


/* Gallery masonry */
.masonry { columns: 3; column-gap: 1rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }
@media (max-width: 768px) { .masonry { columns: 2; } }
@media (max-width: 480px) { .masonry { columns: 1; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); display: none; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; }

/* Accordion */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease; }
.faq-answer.open { max-height: 500px; }

/* Form focus styles */
.form-input:focus { outline: none; border-color: #2D5A27; box-shadow: 0 0 0 3px rgba(45,90,39,0.15); }

/* Tortoise card hover */
.tortoise-card { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease; }
.tortoise-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(45,90,39,0.15); }
.tortoise-card:hover .tortoise-img { transform: scale(1.08); }
.tortoise-img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* Feature card hover */
.feature-card { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease; }
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(45,90,39,0.12); }

/* CTA button pulse */
.cta-pulse { position: relative; }
.cta-pulse::before { content: ''; position: absolute; inset: -4px; border-radius: inherit; background: inherit; opacity: 0; animation: pulse-ring 2s ease-out infinite; z-index: -1; }

/* Wave divider */
.wave-divider { position: relative; }
.wave-divider svg { display: block; width: 100%; height: auto; }

/* Mobile call bar */
.mobile-call-bar { transform: translateY(100%); transition: transform 0.4s ease; }
.mobile-call-bar.visible { transform: translateY(0); }

/* Gallery image hover */
.gallery-img-wrap { overflow: hidden; border-radius: 12px; cursor: pointer; }
.gallery-img-wrap img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease; }
.gallery-img-wrap:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* Testimonial card */
.testimonial-card { transition: transform 0.4s ease; }
.testimonial-card:hover { transform: translateY(-4px); }

/* Section divider */
.section-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(107,79,58,0.2), transparent); }

.captcha-container {
    display: flex;
    justify-content: center;
}

#formStatus { margin-top: 15px; padding: 10px; display: none; font-weight: bold; border-radius: 4px; }
.success { background-color: #d4edda; color: #155724; }
.error { background-color: #f8d7da; color: #721c24; }

div.zn-logo {
    position: fixed;
    bottom: 0px;
	left: calc(50% - 24px);
	width: 48px;
	height: 48px;
    background: url("../pics/logo1.png") no-repeat;
	background-size:100%;
	opacity: 0.5;
	z-index: 100;
    transition: opacity 1s;
    -moz-transition: opacity 1s;
    -webkit-transition: opacity 1s;
    -o-transition: opacity 1s;
}

div.zn-logo:hover {
	opacity: 1;
	cursor:pointer;
}

.zn-logo-left {
	left: 10px !important;
}

@media only screen and (min-width: 1024px) {
	.zn-logo-left {
		left: calc(50% - 24px) !important;
	}
}