/* =============================================
   J Russell Painting — Stylesheet v2
   ============================================= */

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

:root {
  --navy:       #1B2B4B;
  --navy-mid:   #243760;
  --navy-dark:  #111d33;
  --gold:       #C8973A;
  --gold-light: #d4aa55;
  --gold-pale:  #f5e8cc;
  --bg:         #F9F8F5;
  --bg-dark:    #f0ede6;
  --white:      #FFFFFF;
  --text:       #2D2D2D;
  --muted:      #6b7280;
  --border:     #e3dfd8;
  --radius:     8px;
  --shadow-sm:  0 2px 8px rgba(27,43,75,0.08);
  --shadow-md:  0 4px 24px rgba(27,43,75,0.12);
  --shadow-lg:  0 8px 40px rgba(27,43,75,0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* =============================================
   SCROLL PROGRESS
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 200;
  transition: width 0.1s linear;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered delay for siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform 0.15s, box-shadow var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(200,151,58,0.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,151,58,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-nav {
  background: var(--gold);
  color: var(--white);
  padding: 9px 22px;
  font-size: 0.9rem;
}
.btn-nav:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

/* =============================================
   SECTION SHARED
   ============================================= */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: normal;
  color: var(--gold);
}
.section-header {
  max-width: 560px;
  margin-bottom: 56px;
}

/* =============================================
   NAV
   ============================================= */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(27, 43, 75, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}
.nav-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.25); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.logo-j {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo-sub {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#desktopNav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
  border-radius: 2px;
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--transition);
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav.open { max-height: 320px; }
.mob-link {
  display: block;
  color: rgba(255,255,255,0.85);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
}
.mob-link:hover { background: rgba(255,255,255,0.05); }
.mob-cta {
  color: var(--gold);
  font-weight: 600;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--navy);
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    rgba(255,255,255,0.022) 0px,
    rgba(255,255,255,0.022) 1px,
    transparent 1px,
    transparent 32px
  );
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding-top: 80px;
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.68);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Swatch grid */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
}
.sg-chip {
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.85);
  animation: chipIn 0.5s forwards;
  transition: transform 0.2s, filter 0.2s;
  cursor: default;
}
.sg-chip:hover {
  transform: scale(1.08);
  filter: brightness(1.15);
  z-index: 1;
}
@keyframes chipIn {
  to { opacity: 1; transform: scale(1); }
}
.swatch-caption {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hero-scroll:hover { color: rgba(255,255,255,0.65); }
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   STATS
   ============================================= */
.stats {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 40px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--bg);
  padding: 100px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 30px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { height: 100%; }

.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}
.service-icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
  margin-bottom: 18px;
  transition: color var(--transition), transform var(--transition);
}
.service-card:hover .service-icon {
  color: var(--gold);
  transform: scale(1.05);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  background: var(--white);
  padding: 100px 0;
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(10% + 14px);
  right: calc(10% + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.process-step.visible .step-num {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(200,151,58,0.35);
}
.step-body h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step-body p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--bg);
  padding: 100px 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text { }
.about-text p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Palette board */
.about-visual { display: flex; justify-content: center; }
.palette-board {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
}
.palette-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.palette-row:last-of-type { margin-bottom: 16px; }
.palette-chip {
  aspect-ratio: 1;
  border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.palette-chip:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.pc1 { background: #1B2B4B; }
.pc2 { background: #3a6098; }
.pc3 { background: #6ba8d0; }
.pc4 { background: #C8973A; }
.pc5 { background: #d4b87a; }
.pc6 { background: #e8d5a8; }
.pc7 { background: #4a5568; }
.pc8 { background: #8a9aa8; }
.pc9 { background: #e8eeea; border: 1px solid var(--border); }
.palette-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Check list */
.check-list {
  list-style: none;
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text);
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background: var(--navy);
  padding: 100px 0;
}
.testimonials .section-eyebrow { color: var(--gold); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-header { margin-bottom: 52px; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}
.testi-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,151,58,0.3);
  transform: translateY(-3px);
}
.testi-stars {
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 2px;
}
.testi-quote {
  color: rgba(255,255,255,0.8);
  font-size: 0.97rem;
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testi-name {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--white);
}
.testi-type {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--bg);
  padding: 100px 0;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 72px;
  align-items: start;
}
.contact-intro { padding-top: 8px; }
.contact-intro p {
  color: var(--muted);
  margin: 16px 0 28px;
  line-height: 1.7;
}
.contact-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 500;
}

/* Form */
.form-wrapper {
  background: var(--white);
  border-radius: 14px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}
.req { color: var(--gold); }

input, select, textarea {
  font-family: var(--font);
  font-size: 0.97rem;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,58,0.12);
}
input::placeholder, textarea::placeholder { color: #bbb; }
textarea { resize: vertical; min-height: 130px; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.form-msg {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-weight: 500;
  text-align: center;
}
.form-msg.success { background: #edf7ed; color: #276127; border: 1px solid #b5d9b5; }
.form-msg.error   { background: #fdf0f0; color: #8b2020; border: 1px solid #f0c0c0; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--navy-dark);
  padding: 48px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  margin-top: 6px;
}
.footer-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-nav a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.28);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .process-steps::before { display: none; }
  .process-step { align-items: flex-start; text-align: left; flex-direction: row; gap: 18px; }
  .step-num { margin-bottom: 0; flex-shrink: 0; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero-visual { display: none; }
  .hero { min-height: auto; }
  .hero-scroll { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid rgba(255,255,255,0.08); }
}

@media (max-width: 680px) {
  #desktopNav { display: none; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-wrapper { padding: 24px 18px; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { gap: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
