/* ============================================
   Joe's Services — Styles
   Palette: Forest Green + Off-White
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-900: #0d3318;
    --green-800: #1a5c2a;
    --green-700: #227a36;
    --green-600: #2a9d4a;
    --green-500: #34b858;
    --green-100: #d1f5d9;
    --green-50:  #eafaf0;

    --off-white: #f7f8f5;
    --off-white-dark: #eef1eb;
    --cream: #fafcfa;
    --charcoal: #1a1f1c;
    --slate: #2d3a32;
    --gray-600: #5a6b5f;
    --gray-400: #8fa394;
    --gray-200: #d4ddd6;
    --gray-100: #eaf0ea;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 3px rgba(13, 51, 24, 0.08);
    --shadow-md: 0 4px 16px rgba(13, 51, 24, 0.10);
    --shadow-lg: 0 8px 32px rgba(13, 51, 24, 0.14);
    --shadow-xl: 0 16px 48px rgba(13, 51, 24, 0.16);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SECTION LABELS ===== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-700);
    background: var(--green-50);
    border: 1px solid var(--green-100);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 560px;
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green-800);
    color: #fff;
    border-color: var(--green-800);
}

.btn--primary:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--green-700);
    border-color: var(--green-700);
}

.btn--outline-light:hover {
    background: var(--green-700);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===== NAV ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 252, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(250, 252, 250, 0.96);
    box-shadow: var(--shadow-sm);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--charcoal);
}

.nav__logo:hover {
    color: var(--green-800);
}

.nav__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--green-800);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-weight: 700;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__links a {
    padding: 8px 16px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--slate);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav__links a:hover {
    color: var(--green-800);
    background: var(--green-50);
}

.nav__cta {
    background: var(--green-800) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
    margin-left: 8px;
}

.nav__cta:hover {
    background: var(--green-700) !important;
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

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

.mobile-nav__link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--charcoal);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.mobile-nav__link:hover {
    color: var(--green-800);
    background: var(--green-50);
}

.mobile-nav__cta {
    margin-top: 16px;
    background: var(--green-800);
    color: #fff;
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0d3318 0%, #1a5c2a 30%, #227a36 55%, #2a9d4a 80%, #34b858 100%);
    padding: 120px 24px 80px;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 51, 24, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(52, 184, 88, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(42, 157, 74, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
}

.hero__badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.25rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.82);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--cream);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__visual {
    position: relative;
}

.about__img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__img-secondary {
    position: absolute;
    bottom: -32px;
    right: -24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--cream);
}

.about__img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__text .section-title {
    margin-bottom: 24px;
}

.about__text p {
    color: var(--gray-600);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about__list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.about__list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--slate);
    line-height: 1.5;
}

.about__check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--green-700);
    margin-top: 2px;
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
}

.services .section-header {
    text-align: center;
    margin-bottom: 56px;
}

.services .section-desc {
    margin: 0 auto;
}

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

.service-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green-100);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    color: var(--green-800);
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.75;
}

/* ===== WHY ===== */
.why {
    padding: 100px 0;
    background: var(--cream);
}

.why__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.why__text .section-title {
    margin-bottom: 20px;
}

.why__lead {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 40px;
}

.why__points {
    display: grid;
    gap: 28px;
}

.why__point {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why__point-num {
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green-200);
    line-height: 1;
    padding-top: 2px;
}

.why__point h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
}

.why__point p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.why__visual {
    position: relative;
}

.why__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.why__badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--green-800);
    color: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.why__badge svg {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

.why__badge span {
    font-size: 0.9375rem;
    font-weight: 600;
}

/* ===== CTA ===== */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #0d3318 0%, #1a5c2a 50%, #227a36 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta__inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta .section-label {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}

.cta__title {
    color: #fff;
    margin-bottom: 16px;
}

.cta__desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
    margin-bottom: 40px;
}

.cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn--outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn--outline-light:hover {
    background: #fff;
    color: var(--green-800);
    border-color: #fff;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--off-white);
    border-top: 1px solid var(--gray-100);
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__info .section-title {
    margin-bottom: 16px;
}

.contact__desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 36px;
}

.contact__details {
    list-style: none;
    display: grid;
    gap: 24px;
}

.contact__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact__detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    color: var(--green-800);
}

.contact__detail-icon svg {
    width: 20px;
    height: 20px;
}

.contact__detail dt {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.contact__detail dd {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact__detail a {
    color: var(--green-700);
    font-weight: 500;
    transition: color var(--transition);
}

.contact__detail a:hover {
    color: var(--green-600);
    text-decoration: underline;
}

/* FORM */
.contact__form-wrap {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--charcoal);
    background: var(--off-white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green-700);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 157, 74, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--green-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-sm);
    color: var(--green-800);
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-success svg {
    width: 20px;
    height: 20px;
    color: var(--green-700);
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

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

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer__brand p {
    font-size: 0.9375rem;
    line-height: 1.75;
    max-width: 300px;
}

.footer h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 20px;
}

.footer__links {
    display: grid;
    gap: 12px;
}

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: #fff;
}

.footer__contact p {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.footer__contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: #fff;
}

.footer__bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .about__grid,
    .why__grid,
    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__visual {
        max-width: 520px;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .nav__burger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero__stat-divider {
        width: 40px;
        height: 1px;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .why__badge {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 16px;
        display: inline-flex;
    }

    .why__visual {
        order: -1;
    }

    .contact__form-wrap {
        padding: 28px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta__actions {
        flex-direction: column;
        width: 100%;
    }

    .cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}
