/* ========================================
   Moorehead Tax Service — Custom Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Geometric Shapes --- */
.geometric-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: #1B4332;
    top: -100px;
    right: -100px;
    animation: floatSlow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: #2E7D32;
    bottom: 20%;
    left: -80px;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(27, 67, 50, 0.06);
    top: 40%;
    right: 5%;
    animation: spinSlow 30s linear infinite;
}

.geo-square {
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(46, 125, 50, 0.05);
    top: 60%;
    left: 8%;
    transform: rotate(45deg);
    animation: floatSlow 18s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    top: 30%;
    left: 3%;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(27, 67, 50, 0.1) 2px, transparent 2px);
    background-size: 16px 16px;
    animation: floatSlow 12s ease-in-out infinite;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navigation --- */
#navbar {
    background: rgba(248, 250, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(27, 67, 50, 0.08);
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 254, 254, 0.95);
    box-shadow: 0 4px 30px rgba(27, 67, 50, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: #2E7D32;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #1B4332;
    transition: width 0.3s ease;
    margin: 4px auto 0;
}

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

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #1B4332;
    color: #FEFEFE;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1B4332;
    box-shadow: 0 4px 15px rgba(27, 67, 50, 0.25);
}

.btn-primary:hover {
    background: #2E7D32;
    border-color: #2E7D32;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(27, 67, 50, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #1B4332;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #1B4332;
}

.btn-secondary:hover {
    background: #1B4332;
    color: #FEFEFE;
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #D4A843;
    color: #0D1F18;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
}

.btn-cta:hover {
    background: #E8C07A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.5);
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #FEFEFE;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* --- Badges --- */
.badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(27, 67, 50, 0.08);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1B4332;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2E7D32;
    flex-shrink: 0;
}

/* --- Hero Section --- */
.hero-image-wrapper {
    position: relative;
}

.hero-image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.hero-img-main {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(27, 67, 50, 0.2);
    display: block;
}

.hero-float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(27, 67, 50, 0.15);
    animation: floatCard 4s ease-in-out infinite;
    z-index: 2;
}

.hero-float-card--1 {
    top: 15%;
    left: -30px;
    animation-delay: 0s;
}

.hero-float-card--2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

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

.float-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(27, 67, 50, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4332;
    flex-shrink: 0;
}

.float-card-icon--green {
    background: #1B4332;
    color: #FEFEFE;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid #2E7D32;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: #2E7D32;
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* --- Service Cards --- */
.service-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(27, 67, 50, 0.06);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1B4332, #2E7D32);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.12);
}

.service-card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(27, 67, 50, 0.02) 0%, transparent 70%);
    transition: all 0.4s ease;
}

.service-card:hover .service-card-bg {
    background: radial-gradient(circle at center, rgba(27, 67, 50, 0.05) 0%, transparent 70%);
}

.service-card-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(27, 67, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4332;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: #1B4332;
    color: #FEFEFE;
    transform: scale(1.05);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1B4332;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 10px;
    color: #2E7D32;
}

.service-link svg {
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* --- Why Us Section --- */
.why-item {
    padding: 8px 0;
}

.why-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.why-item-number {
    font-display: font;
    font-size: 0.8rem;
    font-weight: 800;
    color: rgba(212, 168, 67, 0.6);
    letter-spacing: 0.1em;
    min-width: 32px;
}

.why-item:hover .why-item-number {
    color: #D4A843;
}

.why-img-col {
    overflow: hidden;
    border-radius: 16px;
}

.why-img-col img {
    transition: transform 0.6s ease;
}

.why-img-col:hover img {
    transform: scale(1.05);
}

/* --- About Section --- */
.about-image-wrapper {
    position: relative;
}

.about-accent-shape {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: #1B4332;
    border-radius: 24px;
    z-index: -1;
    opacity: 0.1;
}

.about-exp-badge {
    position: absolute;
    bottom: 20px;
    left: -20px;
    background: #1B4332;
    border-radius: 16px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(27, 67, 50, 0.3);
}

.about-stat {
    text-align: left;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(27, 67, 50, 0.06);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    color: rgba(27, 67, 50, 0.06);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(27, 67, 50, 0.1);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-text {
    color: #4A6741;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1B4332, #2E7D32);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* --- Contact Section --- */
.contact-form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 50px rgba(27, 67, 50, 0.08);
    border: 1px solid rgba(27, 67, 50, 0.06);
}

.contact-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E8EDDF;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #1B4332;
    background: #F8FAF5;
    transition: all 0.3s ease;
    outline: none;
}

.contact-input:focus {
    border-color: #2E7D32;
    background: white;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.contact-input::placeholder {
    color: #A0B09A;
}

.contact-select {
    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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(27, 67, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1B4332;
    flex-shrink: 0;
}

/* Success state */
.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(27, 67, 50, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #1B4332;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(27, 67, 50, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #2E7D32;
    transform: translateY(-3px);
}

/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-float-card--1 {
        left: 10px;
    }
    .hero-float-card--2 {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .hero-float-card {
        display: none;
    }

    .geo-circle--1 {
        width: 200px;
        height: 200px;
    }

    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }

    .geo-square {
        width: 80px;
        height: 80px;
    }

    .about-exp-badge {
        left: 10px;
        bottom: 10px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .badge-inline {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .service-card {
        padding: 24px;
    }
}
