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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #065f46;
    color: #faf5eb;
}

/* ── Navigation ── */
.nav {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 95, 70, 0.08);
}

.nav.scrolled {
    background: rgba(253, 251, 247, 0.95);
    box-shadow: 0 4px 30px rgba(6, 95, 70, 0.08);
}

.nav-link {
    position: relative;
}

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

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

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #065f46;
    color: #faf5eb;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #065f46;
}

.btn-primary:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 95, 70, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #065f46;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(6, 95, 70, 0.3);
}

.btn-secondary:hover {
    border-color: #065f46;
    background: rgba(6, 95, 70, 0.05);
    transform: translateY(-2px);
}

/* ── Inputs ── */
.input-field {
    background: #faf5eb;
    border: 1.5px solid rgba(6, 95, 70, 0.15);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #065f46;
    font-family: 'Inter', system-ui, sans-serif;
    transition: all 0.3s ease;
    width: 100%;
}

.input-field::placeholder {
    color: rgba(6, 95, 70, 0.35);
}

.input-field:focus {
    outline: none;
    border-color: #065f46;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.1);
}

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    opacity: 0.5;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* ── Service Cards ── */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.5s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Reason Cards ── */
.reason-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reason-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Mobile Menu ── */
.mobile-menu {
    transition: max-height 0.4s ease, opacity 0.3s ease;
}

.mobile-menu.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.mobile-menu:not(.hidden) {
    max-height: 400px;
    opacity: 1;
}

.mobile-link {
    display: block;
}

/* ── Menu Animation ── */
.menu-line {
    display: block;
}

.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);
}

/* ── About Image ── */
.about-image {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ── Utility ── */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-image img {
        h-height: 360px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}
