/* ============================================================
   COMPONENT STYLES — UI Elements
   ============================================================ */

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out);
}

.btn:hover::after {
    transform: translateX(100%);
}

.btn--primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--accent {
    background: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.btn--accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn--large {
    padding: var(--space-4) var(--space-8);
    font-size: var(--fs-body);
}

.btn--white {
    background: white;
    color: var(--color-primary-dark);
    border: 2px solid white;
}

.btn--white:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* ── Navigation ────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-4) 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: var(--space-3) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: var(--fw-light);
    color: white;
    letter-spacing: 0.02em;
    transition: color var(--duration-fast) var(--ease-out);
}

.navbar.scrolled .navbar__logo {
    color: var(--color-text);
}

.navbar__logo span {
    color: var(--color-accent);
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-7);
}

.navbar__link {
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    padding: var(--space-1) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--duration-normal) var(--ease-out);
}

.navbar__link:hover::after,
.navbar__link.active::after {
    width: 100%;
}

.navbar__link:hover {
    color: white;
}

.navbar.scrolled .navbar__link {
    color: var(--color-text-light);
}

.navbar.scrolled .navbar__link:hover {
    color: var(--color-text);
}

.navbar__cta {
    margin-left: var(--space-4);
}

/* Mobile menu button */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
    z-index: var(--z-modal);
}

.navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--duration-normal) var(--ease-out);
    border-radius: 2px;
}

.navbar.scrolled .navbar__toggle span {
    background: var(--color-text);
}

.navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ──────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(165deg, #2C3E2D 0%, #1A2A1B 40%, #0F1A10 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 26, 16, 0.4) 0%,
            rgba(15, 26, 16, 0.2) 40%,
            rgba(15, 26, 16, 0.6) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-9) var(--container-padding);
    max-width: 900px;
}

.hero__label {
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-5);
    display: inline-block;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    font-weight: var(--fw-light);
    color: white;
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero__title em {
    font-style: italic;
    color: var(--color-accent-light);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: var(--space-8);
    line-height: var(--lh-relaxed);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-wider);
    text-transform: uppercase;
    animation: float 3s ease-in-out infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ── Service Cards ─────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    position: relative;
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--color-border-light);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-light);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-4);
    display: block;
}

.service-card__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-2);
}

.service-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--fs-small);
    color: var(--color-text-light);
    margin-bottom: var(--space-3);
}

.service-card__meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.service-card__desc {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-5);
}

.service-card__price {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    color: var(--color-primary);
    font-weight: var(--fw-regular);
}

.service-card__book {
    position: absolute;
    bottom: var(--space-7);
    right: var(--space-7);
}

/* Category filter tabs */
.category-tabs {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-6);
}

.category-tab {
    padding: var(--space-2) var(--space-5);
    border-radius: var(--radius-pill);
    font-size: var(--fs-small);
    font-weight: var(--fw-medium);
    letter-spacing: var(--ls-wide);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
    transition: all var(--duration-fast) var(--ease-out);
    cursor: pointer;
    background: transparent;
}

.category-tab:hover,
.category-tab.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* ── Team / Staff ──────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.team-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--color-border-light);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-card__photo {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__info {
    padding: var(--space-5);
}

.team-card__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-1);
}

.team-card__role {
    font-size: var(--fs-small);
    color: var(--color-accent);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-3);
}

.team-card__bio {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-3);
}

.team-card__specialties {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.team-card__specialty {
    font-size: var(--fs-xs);
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-alt);
    border-radius: var(--radius-pill);
    color: var(--color-text-light);
}

/* ── Features / Why Us ─────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.feature-card {
    text-align: center;
    padding: var(--space-7);
}

.feature-card__icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--space-5);
    box-shadow: var(--shadow-glow);
}

.feature-card__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    margin-bottom: var(--space-3);
}

.feature-card__text {
    font-size: var(--fs-small);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
}

/* ── Location Section ──────────────────────────────── */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    margin-top: var(--space-8);
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.location__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location__info {
    padding: var(--space-4);
}

.location__item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.location__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.location__label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: var(--color-accent);
    margin-bottom: var(--space-1);
}

.location__value {
    font-size: var(--fs-body);
    color: var(--color-text);
    line-height: var(--lh-normal);
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: var(--space-11) 0 var(--space-6);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-9);
}

.footer__brand {
    max-width: 320px;
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: var(--fw-light);
    color: white;
    margin-bottom: var(--space-4);
}

.footer__logo span {
    color: var(--color-accent);
}

.footer__desc {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.55);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-5);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all var(--duration-fast) var(--ease-out);
}

.footer__social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
}

.footer__heading {
    font-family: var(--font-body);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
    color: white;
    margin-bottom: var(--space-5);
}

.footer__link {
    display: block;
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: var(--space-3);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__copy {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.35);
}

.footer__legal {
    display: flex;
    gap: var(--space-5);
}

.footer__legal a {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer__legal a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Testimonials ──────────────────────────────────── */
.testimonials-track {
    display: flex;
    gap: var(--space-6);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-4) 0;
    scrollbar-width: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 min(400px, 85vw);
    scroll-snap-align: start;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    border: 1px solid var(--color-border-light);
    position: relative;
}

.testimonial-card__stars {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: var(--space-4);
    letter-spacing: 2px;
}

.testimonial-card__text {
    font-family: var(--font-heading);
    font-size: var(--fs-h4);
    font-style: italic;
    font-weight: var(--fw-light);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-5);
    color: var(--color-text);
}

.testimonial-card__author {
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    color: var(--color-text);
}

.testimonial-card__location {
    font-size: var(--fs-xs);
    color: var(--color-text-lighter);
}

/* ── Stats Bar ─────────────────────────────────────── */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    padding: var(--space-9) 0;
}

.stat-item {
    text-align: center;
}

.stat-item__number {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    color: var(--color-accent);
    font-weight: var(--fw-light);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-item__label {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: var(--ls-wider);
}

/* ── CTA Banner ────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-9);
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: var(--space-8) 0;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 169, 110, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner__title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    color: white;
    margin-bottom: var(--space-4);
    position: relative;
}

.cta-banner__text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .location-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar__links {
        position: fixed;
        inset: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-7);
        transform: translateX(100%);
        transition: transform var(--duration-slow) var(--ease-out);
        z-index: var(--z-overlay);
    }

    .navbar__links.open {
        transform: translateX(0);
    }

    .navbar__links .navbar__link {
        font-size: 1.2rem;
        color: white;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__cta {
        margin-left: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-5);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }
}