/* Additional custom styles for refined touches */

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid #4a724a;
    outline-offset: 2px;
}

/* Enhanced hover effects */
.service-card:hover .w-12 {
    transform: scale(1.1);
}

.w-12 {
    transition: transform 0.3s ease;
}

/* Image hover effects */
img:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.02em;
}

/* Line height adjustments */
p {
    line-height: 1.7;
}

/* Spacing adjustments */
section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

@media (max-width: 768px) {
    section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Button ripple effect */
.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::before,
.btn-secondary:active::before {
    width: 200px;
    height: 200px;
}

.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

/* Decorative corner accents */
.service-card::before,
.service-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #4a724a;
    transition: all 0.3s ease;
    opacity: 0;
}

.service-card::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.service-card::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.service-card:hover::before,
.service-card:hover::after {
    opacity: 1;
}

.service-card {
    position: relative;
}

/* Loading state for form submission */
.form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

/* Custom selection color */
::selection {
    background-color: #4a724a;
    color: #fdfcfa;
}

::-moz-selection {
    background-color: #4a724a;
    color: #fdfcfa;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu,
    #contact-form {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .service-card {
        break-inside: avoid;
    }
}
