:root {
    --color-primary: #2e7d32;
    --color-accent: #8d6e63;
    --color-dark: #1b1b1b;
    --color-light: #f5f5f5;
    --radius-lg: 1rem;
    --radius-md: 0.75rem;
}

html,
body {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

h1,
h2,
h3,
.navbar-brand {
    font-family: Poppins, Inter, sans-serif;
}

.primary-button {
    background-color: var(--color-primary);
    color: #fff;
}

.secondary-button {
    background-color: var(--color-primary);
    color: #fff;
}

.primary-button:hover,
.secondary-button:hover {
    background-color: #2a6e2d;
    color: #fff;
}

.section-title {
    font-weight: 700;
}

/* Navbar */
.navbar.bg-dark {
    background-color: rgba(27, 27, 27, 0.9) !important;
    backdrop-filter: saturate(120%) blur(8px);
}

.link {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.link::after {
    content: "";
    display: block;
    height: 1px;
    width: 100%;
    background-color: var(--color-primary);
    transform: scale(0);
    transform-origin: left;
    transition: all 0.3s ease;
}

.link:hover::after {
    transform: scale(1);
}

.link:hover {
    color: var(--color-primary) !important;
}

/* Hero */
.hero-section {
    min-height: 70vh;
    background-image: url('../img/working.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-section .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Services */
.card-hover {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover .icon-wrap {
    color: var(--color-primary);
}

/* card-hover hover underline */
.card-hover {
    position: relative;
    overflow: hidden;
}

.card-hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: all 0.3s ease;
}

.card-hover:hover::after,
.card-hover:focus-within::after {
    transform: scaleX(1);
}

.card-hover:hover,
.card-hover:focus-within {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.justify-text {
    text-align: justify;
}

/* Gallery */
.gallery-thumb {
    object-fit: cover;
    height: 300px;
    width: 100%;
}

.ratio .gallery-thumb {
    width: 100%;
    height: 100%;
}

input:focus,
textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Footer */
.site-footer {
    /* color: #cbd5e1; */
    /* slate-300 */
    /* background: radial-gradient(1200px 600px at 10% -20%, rgba(46, 125, 50, 0.25), transparent 60%),
        radial-gradient(1200px 600px at 90% 120%, rgba(141, 110, 99, 0.18), transparent 60%),
        #0f172a; */
    background-color: #225425;
    /* slate-900 */
}

.site-footer .footer-heading {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    margin-bottom: .75rem;
}

.site-footer .footer-link {
    color: #cbd5e1;
    text-decoration: none;
}

.site-footer .footer-link:hover {
    color: #fff;
}

.site-footer .social-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}

.site-footer .social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

/* Focus visibility */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
}