/* ============================================================
   Jade Heritage Holdings — Styles
   ============================================================ */

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

:root {
    --jade-dark: #1B5E20;
    --jade-mid: #2E7D32;
    --jade-light: #4CAF50;
    --gold: #C8A951;
    --gold-bright: #D4AF37;
    --cream: #FAFAF5;
    --cream-warm: #F5F1E8;
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --text: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 100px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn--gold {
    background: var(--gold);
    color: var(--charcoal);
}

.btn--gold:hover {
    background: var(--gold-bright);
    box-shadow: 0 8px 30px rgba(200, 169, 81, 0.4);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* --- Gold Divider --- */
.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0 30px;
}

.gold-divider--center {
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Label --- */
.section__label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section__label-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.section__label-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Section Shared --- */
.section {
    padding: 120px 0;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--charcoal);
    margin-bottom: 8px;
}

.section__title--center {
    text-align: center;
}

.section__intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 0;
    transition: all 0.4s ease;
}

.nav--scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-height);
}

.nav__logo-img {
    height: 90px;
    width: auto;
    transition: height var(--transition);
}

.nav--scrolled .nav__logo-img {
    height: 64px;
}

.nav__links {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: 4px 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.4s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover {
    color: var(--gold);
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--white);
    transition: color var(--transition);
}

.mobile-menu__link:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }
    .nav__hamburger {
        display: flex;
    }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(27, 94, 32, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 169, 81, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #0d1f0f 0%, #132b15 40%, #1a3a1c 100%);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.008) 2px,
            rgba(255, 255, 255, 0.008) 4px
        );
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
    max-width: 800px;
}

.hero__logo {
    width: 140px;
    height: auto;
    margin: 0 auto 40px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Watermark logo behind hero content */
.hero__watermark {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(90vw, 900px);
    height: auto;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    filter: grayscale(30%) brightness(1.2);
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 64px;
    font-weight: 300;
    line-height: 1.8;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta {
    margin-top: 20px;
    margin-bottom: 0;
}

/* Scroll indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.hero__scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* Hero animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease forwards;
}

.animate-fade-in:nth-child(1) { animation-delay: 0.2s; }
.animate-fade-in:nth-child(2) { animation-delay: 0.5s; }
.animate-fade-in:nth-child(3) { animation-delay: 0.8s; }
.animate-fade-in:nth-child(4) { animation-delay: 1.1s; }

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

/* ============================================================
   About
   ============================================================ */
.about {
    background: var(--cream);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 80px;
}

.about__content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.about__lead {
    font-size: 1.15rem !important;
    color: var(--text) !important;
    font-weight: 500;
    line-height: 1.8;
}

.about__visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__decorative {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.about__decorative-border {
    position: absolute;
    inset: -12px;
    border: 1px solid var(--gold);
    opacity: 0.3;
}

.about__decorative-inner {
    background: var(--white);
    padding: 48px 32px;
    border: 1px solid rgba(200, 169, 81, 0.2);
}

.about__values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about__value {
    text-align: center;
}

.about__value-icon {
    color: var(--jade-mid);
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.about__value h4 {
    font-size: 0.95rem;
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Stats */
.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 60px 0;
    border-top: 1px solid rgba(200, 169, 81, 0.2);
    border-bottom: 1px solid rgba(200, 169, 81, 0.2);
}

.stat {
    text-align: center;
}

.stat__number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--jade-dark);
    display: inline;
    line-height: 1;
}

.stat__suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--gold);
    display: inline;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about__stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ============================================================
   Services
   ============================================================ */
.services {
    background: var(--white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--cream);
    padding: 48px 36px;
    border: 1px solid rgba(200, 169, 81, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(200, 169, 81, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    color: var(--jade-mid);
    margin-bottom: 24px;
}

.service-card__title {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.service-card__desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Portfolio
   ============================================================ */
.portfolio {
    background: var(--cream-warm);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.portfolio-card {
    background: var(--white);
    padding: 40px 32px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--jade-mid), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.portfolio-card:hover::after {
    transform: scaleX(1);
}

.portfolio-card__tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--jade-mid);
    background: rgba(46, 125, 50, 0.08);
    padding: 6px 14px;
    margin-bottom: 20px;
}

.portfolio-card__name {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.portfolio-card__desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

.portfolio__growing {
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--gold);
}

@media (max-width: 1024px) {
    .portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Differentiators
   ============================================================ */
.differentiators {
    background: var(--white);
}

.diff__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 60px;
}

.diff-card {
    text-align: center;
    padding: 40px 24px;
}

.diff-card__icon {
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.diff-card__title {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.diff-card__desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .diff__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================================
   Assessment CTA Banner
   ============================================================ */
.assessment-banner {
    background: var(--charcoal);
    padding: 80px 0;
}

.assessment-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.assessment-banner__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--white);
    margin-bottom: 12px;
}

.assessment-banner__desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.98rem;
    line-height: 1.8;
    max-width: 560px;
}

.assessment-banner__btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .assessment-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .assessment-banner__desc {
        max-width: 100%;
    }
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
    background: var(--cream-warm);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form__group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-form__group input,
.contact-form__group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--charcoal);
    transition: all var(--transition);
    outline: none;
}

.contact-form__group input::placeholder,
.contact-form__group textarea::placeholder {
    color: #aaa;
}

.contact-form__group input:focus,
.contact-form__group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200, 169, 81, 0.15);
}

.contact-form__group textarea {
    resize: vertical;
    min-height: 140px;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 8px;
}

.contact__info-block h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.contact__info-block p {
    color: var(--text-light);
    line-height: 1.7;
}

.contact__info-block a {
    color: var(--text-light);
    transition: color var(--transition);
}

.contact__info-block a:hover {
    color: var(--jade-mid);
}

@media (max-width: 768px) {
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: var(--charcoal);
    padding: 80px 0 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer__tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer__links h4,
.footer__contact h4,
.footer__social h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 24px;
}

.footer__links a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer__social-icons {
    display: flex;
    gap: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--transition);
}

.footer__social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer__bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ============================================================
   Reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================================
   Utilities & Misc
   ============================================================ */
::selection {
    background: var(--jade-light);
    color: var(--white);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--jade-mid);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--jade-dark);
}
