/* ===== BASE & RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
.site-header {
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.1);
}
.nav-link { position: relative; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A843;
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== MOBILE MENU ===== */
.mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.menu-line { transition: all 0.3s ease; }
.mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #fdfcfa 0%, #f2eadc 50%, #dce9e0 100%);
    position: relative;
}
.hero-grid {
    background-image:
        linear-gradient(rgba(27, 67, 50, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 67, 50, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
}
.hero-line { background: rgba(27, 67, 50, 0.06); }

.hero-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero-circle-1 {
    width: 500px; height: 500px;
    top: -150px; right: -100px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
}
.hero-circle-2 {
    width: 300px; height: 300px;
    bottom: -80px; left: -60px;
    background: radial-gradient(circle, rgba(27, 67, 50, 0.1) 0%, transparent 70%);
}
.hero-circle-3 {
    width: 150px; height: 150px;
    top: 40%; left: 45%;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.2) 0%, transparent 70%);
}

.hero-geo {
    position: absolute;
    pointer-events: none;
}
.hero-geo-1 {
    width: 80px; height: 80px;
    top: 20%; right: 5%;
    background: #D4A843;
    opacity: 0.12;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}
.hero-geo-2 {
    width: 50px; height: 50px;
    bottom: 25%; left: 8%;
    border: 3px solid #1B4332;
    opacity: 0.15;
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}
.hero-geo-3 {
    width: 0; height: 0;
    top: 60%; right: 12%;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(27, 67, 50, 0.08);
    animation: spin 20s linear infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-image-container { position: relative; }
.hero-accent {
    position: absolute;
    pointer-events: none;
}
.hero-accent-1 {
    width: 120px; height: 120px;
    top: -20px; left: -30px;
    background: #D4A843;
    opacity: 0.2;
    border-radius: 50%;
    z-index: -1;
}
.hero-accent-2 {
    width: 60px; height: 60px;
    bottom: 40px; right: -20px;
    background: #1B4332;
    opacity: 0.1;
    transform: rotate(30deg);
    z-index: -1;
}

.hero-floating-card {
    position: absolute;
    z-index: 10;
}
.floating-card-1 {
    bottom: 60px; left: -30px;
    animation: floatCard 4s ease-in-out infinite;
}
.floating-card-2 {
    top: 40px; right: -20px;
    animation: floatCard 5s ease-in-out infinite reverse;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-indicator {
    animation: bounce 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1B4332;
    color: #fdfcfa;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1B4332;
}
.btn-primary:hover {
    background: #265235;
    border-color: #265235;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.3);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #1B4332;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1B4332;
}
.btn-secondary:hover {
    background: #1B4332;
    color: #fdfcfa;
    transform: translateY(-2px);
}
.btn-large { padding: 18px 36px; font-size: 1.05rem; }

/* ===== SECTIONS ===== */
.section-tag {
    display: inline-block;
    background: #1B4332;
    color: #D4A843;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.section-tag-light {
    display: inline-block;
    background: rgba(212, 168, 67, 0.2);
    color: #D4A843;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #143326;
    line-height: 1.15;
}
.section-title-light {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #fdfcfa;
    line-height: 1.15;
}
.section-desc {
    font-size: 1.1rem;
    color: #458356;
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
}

/* ===== SERVICE CARDS ===== */
.service-card { perspective: 1000px; }
.service-card-inner {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(27, 67, 50, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.service-card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B4332, #D4A843);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover .service-card-inner::before { transform: scaleX(1); }
.service-card:hover .service-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(27, 67, 50, 0.12);
}
.service-icon-wrap {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, #f2f7f4, #dce9e0);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon-wrap {
    background: linear-gradient(135deg, #1B4332, #265235);
}
.service-icon {
    width: 26px; height: 26px;
    color: #1B4332;
    transition: color 0.3s ease;
}
.service-card:hover .service-icon { color: #D4A843; }
.service-name {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.3rem;
    color: #143326;
    margin-bottom: 0.5rem;
}
.service-desc {
    color: #458356;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.service-tag {
    display: inline-block;
    background: #f2f7f4;
    color: #1B4332;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ===== ABOUT ===== */
.about-image-grid {
    position: relative;
    height: 500px;
}
.about-img-main {
    width: 75%;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}
.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 55%;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 5px solid #1B4332;
    z-index: 3;
}
.about-accent-square {
    position: absolute;
    top: -15px;
    right: 30%;
    width: 80px;
    height: 80px;
    background: #D4A843;
    opacity: 0.3;
    transform: rotate(30deg);
    z-index: 1;
}
.stat-number { font-family: 'DM Serif Display', Georgia, serif; }
.stat-label { font-size: 0.9rem; }

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: auto;
}
.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(1) .gallery-img-wrap { height: 100%; }
.gallery-img-wrap {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 5/6;
}
.gallery-item:nth-child(2) .gallery-img-wrap,
.gallery-item:nth-child(4) .gallery-img-wrap,
.gallery-item:nth-child(6) .gallery-img-wrap { aspect-ratio: 5/4; }
.gallery-item:nth-child(3) .gallery-img-wrap,
.gallery-item:nth-child(5) .gallery-img-wrap { aspect-ratio: 5/6; }

.gallery-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover .gallery-img-wrap img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 51, 38, 0.8) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-tag {
    background: rgba(212, 168, 67, 0.9);
    color: #143326;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(27, 67, 50, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(27, 67, 50, 0.1);
}
.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}
.star-icon { width: 18px; height: 18px; color: #D4A843; }
.testimonial-text {
    color: #306841;
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1B4332, #458356);
    color: #fdfcfa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.author-name { font-weight: 700; color: #143326; font-size: 0.95rem; }
.author-location { color: #649e75; font-size: 0.8rem; }

/* ===== CONTACT ===== */
.contact-info-card { position: relative; overflow: hidden; }
.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 200px; height: 200px;
    background: rgba(212, 168, 67, 0.08);
    border-radius: 50%;
}
.contact-form { position: relative; }
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1B4332;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e8dbbe;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: #143326;
    background: #fefdfb;
    transition: all 0.3s ease;
    outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #1B4332;
    box-shadow: 0 0 0 4px rgba(27, 67, 50, 0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: #c49a3c; }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231B4332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-success { animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ===== FOOTER ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px; height: 48px;
    background: #1B4332;
    color: #D4A843;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.3);
    transition: all 0.3s ease;
    z-index: 50;
}
.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(27, 67, 50, 0.4);
}
.scroll-top.visible { animation: fadeIn 0.3s ease; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal[data-delay="0"] { transition-delay: 0ms; }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-split { gap: 3rem; }
    .hero-image-container { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero-circle-1 { width: 300px; height: 300px; }
    .hero-circle-2 { width: 200px; height: 200px; }
    .hero-floating-card { display: none; }
    .hero-geo-1 { width: 50px; height: 50px; }
    .hero-geo-2 { display: none; }
    .hero-geo-3 { display: none; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-row: span 1; }
    .gallery-item:nth-child(1) .gallery-img-wrap { aspect-ratio: 5/4; }
    .about-image-grid { height: 350px; }
    .about-img-main { height: 280px; }
    .about-img-secondary { height: 160px; }
}

@media (max-width: 640px) {
    .hero { min-height: auto; padding: 4rem 0 3rem; }
    .hero h1 { font-size: 2.5rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item:nth-child(1) .gallery-img-wrap { aspect-ratio: 5/6; }
    .about-image-grid { height: 280px; }
    .about-img-main { height: 240px; width: 70%; }
    .about-img-secondary { width: 55%; height: 140px; }
}
