/* ============================================
   H&C Income Tax Services — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1a411e;
    background-color: #fefef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- Geometric Background Shapes (Persistent) --- */
.geo-shapes {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #2d7a35;
    top: -200px;
    right: -200px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #D4A843;
    bottom: 10%;
    left: -100px;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: #2A9D8F;
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #E8734A;
    top: 30%;
    left: 3%;
    opacity: 0.04;
}

.shape-dots {
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, #2d7a35 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    bottom: 20%;
    right: 10%;
    opacity: 0.1;
}

/* --- Fixed Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(254, 254, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(45, 122, 53, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    height: 72px;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-menu-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #1a411e;
    transition: background 0.2s;
}

.mobile-menu-link:hover {
    background: #f0f7f0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #2d7a35;
    color: #fefef8;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 122, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    background: #24612b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 122, 53, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fefef8;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

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

.btn-secondary .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-secondary:hover .btn-arrow {
    transform: translateY(4px);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: #fefef8;
    color: #1a411e;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: #fdfdf2;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-white .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-white:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fefef8;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

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

.btn-secondary-light .btn-arrow {
    transition: transform 0.3s ease;
}

.btn-secondary-light:hover .btn-arrow {
    transform: translateY(4px);
}

/* --- Section Headers --- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.section-header {
    margin-bottom: 0;
}

/* --- Hero Section --- */
#hero {
    position: relative;
}

.hero-gradient {
    background: linear-gradient(135deg, #0d2310 0%, #1a411e 25%, #2d7a35 55%, #3a9442 80%, #5fbf60 100%);
}

/* Hero Geometric Shapes */
.hero-shapes {
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    opacity: 0.12;
}

.shape-hex-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    background: #D4A843;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: float 8s ease-in-out infinite;
}

.shape-circle-h {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    bottom: 15%;
    right: 10%;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-square-h {
    width: 120px;
    height: 120px;
    background: #E8734A;
    top: 20%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin-slow 20s linear infinite;
}

.shape-ring-h {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid rgba(212, 168, 67, 0.5);
    bottom: 25%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

.shape-diamond-h {
    width: 80px;
    height: 80px;
    background: #2A9D8F;
    top: 40%;
    left: 15%;
    transform: rotate(45deg);
    animation: float 5s ease-in-out infinite reverse;
}

.shape-tri-h {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(232, 115, 74, 0.4);
    bottom: 10%;
    right: 25%;
    animation: spin-slow 15s linear infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(5deg); }
    66% { transform: translateY(10px) rotate(-3deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Content */
.hero-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-content h1 {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-content > p {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-content > div {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-content > div:last-child {
    animation: fadeInUp 0.8s ease 0.8s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll Indicator */
.scroll-indicator {
    animation: fadeInUp 1s ease 1.2s both;
}

.scroll-mouse {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

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

/* --- Services Section --- */
.services-grid {
    position: relative;
}

.service-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background: white;
    border: 1px solid #dceddc;
    border-radius: 1.5rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-card-bg {
    border-color: #5fbf60;
    box-shadow: 0 20px 60px rgba(45, 122, 53, 0.15);
}

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

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

/* --- About Section --- */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

.about-image-wrapper {
    position: relative;
    z-index: 1;
}

.about-image {
    border: 4px solid rgba(255, 255, 255, 0.8);
}

.about-stat-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, #2d7a35, #3a9442);
    border-radius: 1.5rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 50px rgba(45, 122, 53, 0.3);
    z-index: 2;
}

.about-deco-circle {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px dashed #dceddc;
    top: -40px;
    right: -40px;
    z-index: 0;
}

.about-deco-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #2d7a35 2px, transparent 2px);
    background-size: 12px 12px;
    opacity: 0.2;
    bottom: 40px;
    right: -30px;
    z-index: 0;
}

.highlights-grid {
    gap: 1rem;
}

.highlight-item {
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(4px);
}

/* --- Why Us Section --- */
.why-us-shapes {
    pointer-events: none;
}

.wu-shape {
    position: absolute;
    opacity: 0.06;
}

.shape-wu-circle-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #D4A843;
    top: -200px;
    right: -150px;
}

.shape-wu-circle-2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #E8734A;
    bottom: -100px;
    left: -100px;
}

.shape-wu-square {
    width: 150px;
    height: 150px;
    background: #2A9D8F;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
}

.shape-wu-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, white 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    bottom: 20%;
    right: 8%;
    opacity: 0.15;
}

.feature-card {
    perspective: 1000px;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    gap: 1.5rem;
}

.testimonial-card {
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
}

/* --- CTA Banner --- */
.cta-shapes {
    pointer-events: none;
}

.cta-shape {
    position: absolute;
    opacity: 0.08;
}

.shape-cta-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 4px solid white;
    top: -150px;
    left: -100px;
}

.shape-cta-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #D4A843;
    bottom: -80px;
    right: 10%;
}

.shape-cta-square {
    width: 100px;
    height: 100px;
    background: #E8734A;
    top: 10%;
    right: 5%;
    transform: rotate(30deg);
}

/* --- Contact Section --- */
.contact-info-item {
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateX(6px);
}

.contact-form-wrapper {
    transition: box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    box-shadow: 0 25px 70px rgba(45, 122, 53, 0.12);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #1a411e;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #dceddc;
    border-radius: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9375rem;
    color: #1a411e;
    background: #fefef8;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #5fbf60;
    box-shadow: 0 0 0 4px rgba(95, 191, 96, 0.15);
    background: white;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #8fd391;
}

.form-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='%232d7a35' stroke-width='2.5' 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 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    animation: fadeInUp 0.5s ease;
}

.form-success-icon {
    animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Footer --- */
footer a {
    display: inline-block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .about-bg {
        display: none;
    }

    .about-stat-card {
        bottom: -10px;
        left: 10px;
        padding: 1rem 1.5rem;
    }

    .about-stat-number {
        font-size: 2.5rem;
    }

    .shape-hex-1 {
        width: 150px;
        height: 150px;
    }

    .shape-circle-h {
        width: 100px;
        height: 100px;
    }

    .shape-square-h {
        width: 60px;
        height: 60px;
    }

    .shape-ring-h {
        width: 80px;
        height: 80px;
    }

    .shape-diamond-h {
        width: 40px;
        height: 40px;
    }

    .shape-tri-h {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(232, 115, 74, 0.4);
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .wu-shape {
        display: none;
    }

    .cta-shape {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .hero-content > p {
        font-size: 1.0625rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
        justify-content: center;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}
