/* ===== Joshua Clay LLC — Stylesheet ===== */

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

:root {
  --emerald-950: #042f23;
  --emerald-900: #064e3b;
  --emerald-800: #065f46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --cream-50:  #faf8f4;
  --cream-100: #f5f0e8;
  --cream-200: #ebe4d6;
  --cream-300: #e0d6c4;
  --stone-50:  #f8f7f5;
  --stone-100: #f1f0ed;
  --stone-200: #e7e5e0;
  --stone-300: #d6d3cc;
  --stone-400: #b0aca4;
  --stone-500: #8a857d;
  --stone-600: #6b6660;
  --stone-700: #524e49;
  --stone-800: #3a3632;
  --stone-900: #242019;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(36,32,25,.08), 0 1px 2px rgba(36,32,25,.06);
  --shadow-md: 0 4px 12px rgba(36,32,25,.08), 0 2px 4px rgba(36,32,25,.06);
  --shadow-lg: 0 12px 32px rgba(36,32,25,.1), 0 4px 12px rgba(36,32,25,.06);
  --transition: 250ms cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--stone-800);
  background: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* --- Typography --- */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; color: var(--stone-900); }

/* --- Layout --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.container--cta { text-align: center; max-width: 720px; }

@media (max-width: 900px) {
  .container--split { grid-template-columns: 1fr; gap: 40px; }
  .about__image-wrap { order: -1; }
}

/* --- Section Shared --- */
.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--stone-600);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--emerald-700);
  color: #fff;
  padding: 14px 28px;
  font-size: 1rem;
}
.btn--primary:hover { background: var(--emerald-800); box-shadow: var(--shadow-md); }

.btn--light {
  background: #fff;
  color: var(--emerald-900);
  padding: 14px 28px;
  font-size: 1rem;
}
.btn--light:hover { background: var(--cream-100); box-shadow: var(--shadow-md); }

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
  padding: 12px 26px;
  font-size: 1rem;
}
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn--outline {
  background: transparent;
  color: var(--emerald-700);
  border: 2px solid var(--emerald-700);
  padding: 12px 26px;
  font-size: 1rem;
}
.btn--outline:hover { background: var(--emerald-700); color: #fff; }

.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250,248,244,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--stone-900);
}
.site-logo--light { color: #fff; }
.site-logo__mark { color: var(--emerald-600); }
.site-logo--light .site-logo__mark { color: var(--cream-300); }
.site-logo__accent { color: var(--emerald-700); }
.site-logo--light .site-logo__accent { color: var(--cream-300); }

.main-nav__list { display: flex; align-items: center; gap: 8px; }
.main-nav__link {
  padding: 8px 16px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--stone-700);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.main-nav__link:hover { color: var(--emerald-700); background: rgba(4,120,87,.06); }

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav-toggle__line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--stone-700);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--cream-50);
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform 300ms cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .main-nav__link { padding: 12px 16px; font-size: 1.0625rem; width: 100%; }
  .main-nav__link:hover { background: transparent; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/3615715/pexels-photo-3615715.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,47,35,.88) 0%, rgba(6,78,59,.80) 50%, rgba(10,95,70,.72) 100%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--cream-200);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero__headline {
  font-size: clamp(2.25rem, 6vw, 4rem);
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--cream-200);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero__trust {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  backdrop-filter: blur(8px);
}
.hero__trust-item { text-align: center; }
.hero__trust-value { display: block; font-family: 'Playfair Display', serif; font-size: 1.375rem; font-weight: 700; color: #fff; }
.hero__trust-label { display: block; font-size: .8125rem; color: var(--cream-300); margin-top: 2px; }
.hero__trust-sep { width: 1px; height: 40px; background: rgba(255,255,255,.2); }
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,.6);
  animation: heroScroll 2s ease-in-out infinite;
}
@keyframes heroScroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@media (max-width: 600px) {
  .hero__trust { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .hero__trust-sep { width: 40px; height: 1px; }
  .hero__actions { flex-direction: column; align-items: center; }
}

/* --- Services --- */
.services { padding: 100px 0; background: var(--cream-50); }
.services__header { text-align: center; margin-bottom: 56px; }
.services__header .section-subtitle { margin: 0 auto; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services__grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--cream-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--emerald-500);
}
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(4,120,87,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  margin-bottom: 20px;
}
.card__title { font-size: 1.25rem; margin-bottom: 10px; }
.card__desc { font-size: .9375rem; color: var(--stone-600); line-height: 1.7; }

/* --- About --- */
.about { padding: 100px 0; background: var(--cream-100); }
.about__image-wrap { position: relative; }
.about__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
}
.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 4px solid var(--emerald-600);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .3;
}
.about__content { max-width: 520px; }
.about__body { font-size: 1.0625rem; color: var(--stone-600); line-height: 1.8; margin-bottom: 16px; }
.about__stats {
  display: flex;
  gap: 32px;
  margin: 32px 0 40px;
  padding: 28px 0;
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}
.stat__number { display: block; font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--emerald-700); }
.stat__label { display: block; font-size: .8125rem; color: var(--stone-500); margin-top: 2px; }
@media (max-width: 600px) {
  .about__stats { flex-wrap: wrap; gap: 20px; }
}

/* --- Areas --- */
.areas { padding: 100px 0; background: #fff; }
.areas__header { text-align: center; margin-bottom: 48px; }
.areas__header .section-subtitle { margin: 0 auto; }
.areas__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.area-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: .9375rem;
  font-weight: 500;
  background: var(--cream-100);
  color: var(--stone-700);
  border: 1px solid var(--cream-200);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.area-tag:hover { background: var(--emerald-700); color: #fff; border-color: var(--emerald-700); }
.area-tag--featured {
  background: var(--emerald-700);
  color: #fff;
  border-color: var(--emerald-700);
}
.area-tag--featured:hover { background: var(--emerald-800); }
.area-tag svg { flex-shrink: 0; }

/* --- Process --- */
.process { padding: 100px 0; background: var(--cream-50); }
.process__header { text-align: center; margin-bottom: 56px; }
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: center;
}
.step { text-align: center; padding: 24px 16px; }
.step__number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--emerald-600);
  opacity: .35;
  margin-bottom: 12px;
}
.step__title { font-size: 1.125rem; margin-bottom: 8px; }
.step__desc { font-size: .9375rem; color: var(--stone-600); line-height: 1.6; }
.step__arrow { justify-self: center; color: var(--emerald-500); opacity: .5; }
@media (max-width: 900px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .step__arrow { display: none; }
}
@media (max-width: 500px) { .process__steps { grid-template-columns: 1fr; } }

/* --- CTA --- */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/5799375/pexels-photo-5799375.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=800') center center / cover no-repeat;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,47,35,.92) 0%, rgba(6,78,59,.88) 100%);
}
.container--cta { position: relative; z-index: 1; }
.cta__title { color: #fff; font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 20px; }
.cta__lead { font-size: 1.125rem; color: var(--cream-200); line-height: 1.7; margin-bottom: 40px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Contact --- */
.contact { padding: 100px 0; background: var(--cream-100); }
.contact__info { max-width: 520px; }
.contact__body { font-size: 1.0625rem; color: var(--stone-600); line-height: 1.8; margin-bottom: 32px; }
.contact__details { display: flex; flex-direction: column; gap: 24px; }
.contact__detail { display: flex; gap: 16px; align-items: flex-start; }
.contact__detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(4,120,87,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
}
.contact__detail strong { display: block; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--stone-500); margin-bottom: 4px; }
.contact__detail p { font-size: 1rem; color: var(--stone-800); line-height: 1.6; }
.contact__detail a { color: var(--emerald-700); font-weight: 500; transition: color var(--transition); }
.contact__detail a:hover { color: var(--emerald-900); text-decoration: underline; }

/* Contact Form */
.contact-form-wrap { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-md); border: 1px solid var(--cream-200); }
.contact-form__group { margin-bottom: 20px; }
.contact-form__label { display: block; font-size: .875rem; font-weight: 600; color: var(--stone-700); margin-bottom: 6px; }
.contact-form__input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  color: var(--stone-800);
  background: var(--cream-50);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.contact-form__input:focus { border-color: var(--emerald-600); box-shadow: 0 0 0 3px rgba(16,185,129,.12); }
.contact-form__input::placeholder { color: var(--stone-400); }
.contact-form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a857d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.contact-form__textarea { resize: vertical; min-height: 120px; }
.contact-form__note { text-align: center; font-size: .8125rem; color: var(--stone-500); margin-top: 12px; }
.contact-form__success { text-align: center; padding: 40px 20px; }
.contact-form__success-icon { color: var(--emerald-600); margin-bottom: 16px; }
.contact-form__success-title { font-size: 1.5rem; margin-bottom: 8px; }
.contact-form__success p { color: var(--stone-600); }

/* --- Footer --- */
.site-footer { background: var(--stone-900); color: var(--cream-200); padding: 64px 0 0; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__tagline { font-size: .9375rem; color: var(--stone-400); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.site-footer__links strong, .site-footer__contact strong { display: block; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--cream-200); margin-bottom: 16px; }
.site-footer__links ul, .site-footer__contact ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a, .site-footer__contact a { font-size: .9375rem; color: var(--stone-400); transition: color var(--transition); }
.site-footer__links a:hover, .site-footer__contact a:hover { color: var(--cream-200); }
.site-footer__bottom { padding: 24px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.site-footer__bottom p { font-size: .8125rem; color: var(--stone-500); }
@media (max-width: 768px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--emerald-700);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
.scroll-top__btn:hover { background: var(--emerald-800); transform: translateY(-2px); }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__scroll { animation: none; opacity: .6; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  .scroll-top { transition: none; }
}
