/* =========================
   JB Creative — Refined Studio CSS
   ========================= */

:root{
  --bg: #f8fbfa;
  --text: #0f2f2a;
  --muted: #4b6a63;
  --mint: #9ee8cf;
  --mint-deep: #5fc9ac;
  --green-dark: #0f2e23;
  --green: #164d3b;
  --green-light: #e9f3ef;
  --gold: #c8a227;
  --text-dark: #0e1a16;
  --text-light: #ffffff;
  --card: rgba(15,47,42,.05);
  --line: rgba(15,47,42,.12);
  --shadow-soft: 0 18px 55px rgba(15,47,42,.10);
  --shadow-strong: 0 25px 70px rgba(15,47,42,.16);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1120px;
}

/* GLOBAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

a:visited {
  color: inherit;
}

/* BACKGROUND SPECKLE */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(22,77,59,0.05) 1px, transparent 0.5px),
    radial-gradient(rgba(200,162,39,0.05) 2px, transparent 1px),
    radial-gradient(rgba(22,77,59,0.06) 1.5px, transparent 0.75px),
    radial-gradient(rgba(200,162,39,0.06) 0.8px, transparent 0.8px),
    radial-gradient(rgba(22,77,59,0.04) 2px, transparent 2px),
    radial-gradient(rgba(200,162,39,0.05) 1.2px, transparent 1.2px),
    radial-gradient(rgba(22,77,59,0.03) 0.5px, transparent 0.5px),
    radial-gradient(rgba(200,162,39,0.04) 1.8px, transparent 1.8px),
    radial-gradient(rgba(22,77,59,0.05) 1px, transparent 1px),
    radial-gradient(rgba(200,162,39,0.03) 1px, transparent 1px);
  background-repeat: repeat;
  background-size:
    180px 180px, 250px 250px, 220px 220px, 200px 200px, 150px 150px,
    300px 300px, 170px 170px, 280px 280px, 190px 190px, 260px 260px;
  background-position:
    5% 10%, 30% 50%, 60% 20%, 80% 80%, 25% 35%,
    55% 65%, 75% 15%, 10% 70%, 40% 5%, 90% 40%;
  transform: translateY(var(--speckle-offset, 0px));
}

/* NAV */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 8%;
  background: var(--green-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-tagline {
  font-size: 0.85rem;
  opacity: 0.82;
  margin: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.desktop-nav a {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.desktop-nav a:hover {
  background: linear-gradient(135deg, var(--gold), #e6c65a);
  color: #000;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.menu-button {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.mobile-menu-links a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.15);
}

.mobile-menu-links a:hover {
  background: linear-gradient(135deg, var(--gold), #e6c65a);
  color: #000;
  border-color: transparent;
}

/* HERO */
.hero {
  background: var(--green);
  color: var(--text-light);
  padding: 110px 8% 70px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero .accent {
  color: var(--gold);
}

.hero .sub {
  font-size: 1.08rem;
  opacity: 0.92;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-card {
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.15);
  position: relative;
  border-radius: var(--radius);
}

.slider {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}

.slider-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slider-image.active {
  opacity: 1;
}

/* BUTTONS */
.btn {
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.primary {
  background: var(--gold);
  color: #000;
  border: none;
}

.secondary {
  border: 2px solid var(--gold);
  color: var(--text-light);
  background: transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.full-width {
  width: 100%;
}

/* CARDS */
.card {
  background: linear-gradient(135deg, #f8fbfa, #e9f3ef);
  padding: 25px;
  border-radius: var(--radius-sm);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  transition: 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(15,47,42,0.08);
}

.card:hover {
  transform: translateY(-6px);
}

.card img {
  width: 100%;
  border-radius: 12px;
  transition: 0.4s ease;
}

.card:hover img {
  transform: scale(1.03);
}

/* SECTIONS */
section {
  padding: 90px 8%;
  position: relative;
}

section:nth-child(even) {
  background: var(--green-light);
  clip-path: polygon(0 4%, 100% 0%, 100% 100%, 0 100%);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 40px;
  color: var(--green-dark);
  position: relative;
}

h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin-top: 10px;
  border-radius: 2px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-wide {
  grid-column: span 2;
}

/* PROCESS */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.process-step {
  text-align: center;
  background: rgba(255,255,255,0.65);
  padding: 26px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.process-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

/* COMMISSION FORM */
.commission-form {
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.commission-form input,
.commission-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #cfd8d4;
  font-size: 1rem;
  background: #f8fbfa;
  color: var(--text-dark);
  transition: 0.2s ease;
  font-family: inherit;
}

.commission-form textarea {
  min-height: 150px;
  resize: vertical;
}

.commission-form input:focus,
.commission-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(200,162,39,0.3);
}

/* TESTIMONIAL SLIDER */
#testimonials {
  padding: 10px 8%;
  background: var(--green-dark);
  color: white;
  text-align: center;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  position: relative;
  min-height: 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

#testimonials h2 {
  display: none;
}

.testimonial-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  width: 100%;
  min-height: 42px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.testimonial-slide:nth-child(1) { animation: fadeCycle 18s infinite; }
.testimonial-slide:nth-child(2) { animation: fadeCycle 18s infinite 6s; }
.testimonial-slide:nth-child(3) { animation: fadeCycle 18s infinite 12s; }

@keyframes fadeCycle {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* PRICING */
#pricing {
  padding: 70px 8%;
  text-align: center;
}

#pricing h2 {
  margin-bottom: 24px;
  color: var(--green-dark);
}

.pricing-info {
  max-width: 760px;
  margin: 0 auto;
}

.pricing-info p,
.pricing-info li {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.7;
}

.pricing-info ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pricing-info li {
  margin-bottom: 12px;
}

/* FOOTER */
footer {
  width: 100%;
  background: var(--green-dark);
  color: var(--text-light);
  padding: 70px 0;
  text-align: center;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.footer__email {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold), #e6c65a);
  color: #000;
  transition: 0.25s ease;
}

.footer__email:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.footer__bottom {
  margin-top: 50px;
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__line {
  width: 40px;
  height: 1px;
  background: #ffffff44;
}

/* FADE IN */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* TABLET */
@media (max-width: 900px) {
  .site-nav {
    padding: 18px 5%;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 90px 5% 50px;
    gap: 36px;
  }

  section {
    padding: 70px 5%;
  }

  section:nth-child(even) {
    clip-path: none;
  }

  .feature-wide {
    grid-column: span 1;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .site-nav {
    padding: 14px 5%;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-logo {
    height: 34px;
    width: 34px;
  }

  .nav-tagline {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
  }

  .mobile-nav[open] {
    width: 100%;
    margin-top: 10px;
  }

  .mobile-nav[open] .menu-button {
    margin-bottom: 6px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 70px 5% 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .sub {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-card {
    display: block;
    min-height: 260px;
    overflow: hidden;
  }

  .slider {
    min-height: 260px;
    height: 260px;
  }

  .slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  section {
    padding: 56px 5%;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card,
  .process-step {
    padding: 20px;
  }

  #testimonials {
    min-height: 110px;
    padding: 18px 5%;
  }

  .testimonial-slider {
    min-height: 70px;
  }

  .testimonial-slide {
    font-size: 0.94rem;
    line-height: 1.45;
  }

  #pricing {
    text-align: left;
  }

  .footer__line {
    display: none;
  }
}

/* SMALL MOBILE */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .slider {
    min-height: 220px;
    height: 220px;
  }

  .process-icon {
    width: 68px;
    height: 68px;
    font-size: 1.65rem;
  }

  .footer__email {
    width: 100%;
    text-align: center;
  }
}