/* ==========================================================================
   Jestech theme styles
   Design tokens: cream background throughout, maroon accent,
   serif display (Playfair Display) + sans body (Inter)
   ========================================================================== */
a, button{
  -webkit-tap-highlight-color: transparent;
}
:root{
  --bg: oklch(98% .005 60);
  --bg-alt: oklch(92% .006 60);
  --text: oklch(20% .01 20);
  --text-muted: oklch(45% .01 20);
  --line: oklch(85% .008 40);
  --maroon: oklch(38% .13 25);
  --maroon-soft: oklch(45% .15 25);
  --radius: 12px;
  --max-width: 1200px;
  --font-sans: 'Inter Tight', ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Fraunces', ui-serif, Georgia, serif;
}

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

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

html{
  -webkit-overflow-scrolling: touch;
}
h1, h2, h3{ margin: 0 0 0.5em; font-weight: 600; color: var(--text); }
.display{ font-family: var(--font-serif); }
h2.display{ font-size: 48px; line-height: 1; }
.display em{ font-style: italic; color: var(--maroon); font-weight: 400; }
p{ margin: 0 0 1em; }
a{ color: inherit; }
ul{ list-style: none; margin: 0; padding: 0; }

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  color: var(--maroon);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-head .eyebrow{ margin-bottom: 10px; }

.btn{
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary{
  background: var(--maroon);
  color: #F5EDE8;
}
.btn-primary:hover{ background: var(--maroon-soft); }

/* ---------- Header ---------- */
.site-header{
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(244, 242, 239, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 100;
  isolation: isolate;
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}
.site-header .btn-primary{
  padding: 6px 14px;
  font-size: 12px;
}
.logo{
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}
.logo .dot{ color: var(--maroon); }
.site-logo img{ max-height: 64px; width: auto; display: block; }
.nav-links{ display: flex; gap: 32px; }
.nav-links a{
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}
.nav-links a:hover{ color: var(--text); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span{
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity: 0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  background: #F4F2EF;
  color: var(--text);
  overflow: hidden;
}

.hero-bg-photo{
  position: absolute;
  inset: 0;
  background-image: var(--hero-photo, none);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 30%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 30%, black 55%);
}
.hero-inner{ position: relative; padding: 90px 24px 60px; z-index: 1; }
.hero-copy{ max-width: 620px; }
h1.display{ font-size: 72px; line-height: 1; margin-bottom: 24px; }
.hero-sub{ color: var(--text-muted); font-size: 17px; max-width: 460px; }
.hero-cta{ display: flex; align-items: center; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-phone{ font-size: 14px; color: var(--maroon); text-decoration: none; font-weight: 600; }

.hero-scale{
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 26px;
  z-index: 1;
}
.hero-scale .tick{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8a8680;
  opacity: 1;
}
.hero-scale .tick .line{ width: 24px; height: 1px; background: currentColor; }
.hero-scale .tick.active{ color: var(--maroon); font-weight: 600; }

.stats-bar{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 1; background: var(--bg); }
.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 24px;
}
.stat{ padding: 28px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.stat:first-child{ border-left: none; padding-left: 0; }
.stat-num{ font-family: var(--font-serif); font-size: 42px; color: var(--maroon); }
.stat-label{ color: var(--text-muted); font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; margin-top: 4px; }

/* ---------- Section shared ---------- */
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-sub{ color: var(--text-muted); font-size: 15px; }
.services, .process, .contact{ padding: 100px 40px; background: #FAF7F2; }
.standard{ padding: 0; background: #F4F2EF; }
.services .section-head, .process .section-head{ display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; max-width: none; }
.services .section-head .display, .process .section-head .display{ max-width: 480px; margin-bottom: 0; }
.services .section-sub, .process > .wrap > .section-head .section-sub{ max-width: 360px; margin: 0; }

/* ---------- Services grid ---------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-card:nth-child(3n){ border-right: none; }
.service-card:nth-child(4), .service-card:nth-child(5), .service-card:nth-child(6){ border-bottom: none; }
.service-card{
  padding: 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background-color 0.4s ease-in-out;
}
.service-card:hover{
  background-color: var(--bg);
}

.service-idx{
  display: flex;
  align-items: baseline;
  color: var(--maroon);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 32px;
  gap: 6px;
}
.service-card:hover{
  background-color: #E8E4DE;
}


/* ---------- Standard (trust) section: photo left, copy right ---------- */
.standard{ padding: 0; }
.standard-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.standard-media{ position: relative; min-height: 480px; z-index: 1; }
.standard-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.media-placeholder{ width: 100%; height: 100%; min-height: 480px; background: #2A2825; }
.standard-copy h2.display{ font-size: 42px; line-height: 1.15; max-width: 460px; }
.standard-copy{ padding: 80px 60px; align-self: center; }
.standard-list li{
  padding: 10px 0 10px 20px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
}
.standard-list li::before{
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--maroon);
}

/* ---------- Process: vertical list, 3 columns per row ---------- */
.process-list{ margin-top: 56px; }
.process h2.display{ font-size: 46px; }
.process-step{
  display: grid;
  grid-template-columns: 100px 220px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.process-list .process-step:last-child{ border-bottom: 1px solid var(--line); }
.step-num{ color: var(--maroon); font-size: 13px; }
.process-step h3{ font-size: 20px; margin: 0; }
.process-step p{ color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Contact form: minimal underline inputs ---------- */
.contact-inner{ display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; }
.contact-head{ margin-bottom: 0; }
.contact-head .display{ font-size: 72px; line-height: 1; margin-bottom: 24px; }
.contact-head .display em{ font-style: italic; }
.contact-form{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.form-row{ margin-bottom: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.form-row.full-width{ grid-column: 1 / -1; }
.form-row label{ font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.form-row input, .form-row textarea{
  background: transparent;
  border: none;
  padding: 4px 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  resize: none;
}
.form-row input:focus, .form-row textarea:focus{ outline: none; }
.contact-form-actions{ grid-column: 1 / -1; margin-top: 28px; }
.form-success{
  grid-column: 1 / -1;
  background: rgba(122,35,35,0.08);
  border: 1px solid var(--maroon);
  color: var(--maroon);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--line); padding: 32px 0; background: var(--bg); }
.footer-inner{ display: flex; justify-content: space-between; align-items: center; }
.footer-brand{ font-family: var(--font-serif); font-size: 16px; }
.footer-brand .dot{ color: var(--maroon); }
.footer-meta{
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Responsive ---------- */
/* ---------- Tablet ---------- */
@media (max-width: 900px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
   .service-card:nth-child(3n){ border-right: none; }
.service-card:nth-child(4), .service-card:nth-child(5), .service-card:nth-child(6){ border-bottom: none; }
  .service-card:nth-child(3n+2), .service-card:nth-child(3n+3){ padding-left: 0; }
  .service-card:nth-child(2n){ padding-left: 32px; }
  .standard-inner{ grid-template-columns: 1fr; }
  .standard-media, .media-placeholder{ min-height: 320px; }
  .process-step{ grid-template-columns: 80px 1fr; grid-template-areas: "num title" "num desc"; }
  .step-num{ grid-area: num; }
  .process-step h3{ grid-area: title; }
  .process-step p{ grid-area: desc; }
  .contact-inner{ grid-template-columns: 1fr; }
  .hero-scale{ right: 20px; gap: 18px; }
  h1.display{ font-size: 42px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px){
  .wrap{ padding: 0 20px; }
  .header-inner{ padding: 16px 20px; }
  .nav-toggle{ display: flex; }
  .primary-nav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
  }
  .site-logo img{ max-height: 36px; }
.header-inner{ padding: 14px 16px; }
  .primary-nav.is-open{ display: block; }
  .nav-links{ flex-direction: column; gap: 0; }
  .nav-links a{
  font-family: var(--font-sans, 'Inter', sans-serif);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
  .hero-scale{ display: none; }
  .stats-grid{ grid-template-columns: 1fr; padding: 0 20px; }
  .stat{ border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .stat:first-child{ border-top: none; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-card:nth-child(2n){ padding-left: 0; }
  .process-step{ display: block; }
.process-step .step-num,
.process-step h3,
.process-step p{ grid-area: unset; }
  .services, .standard, .process, .contact{ padding: 60px 20px; }
  .standard-copy{ padding: 40px 20px; }
  .contact-form{ grid-template-columns: 1fr; }
  .contact-head .display{ font-size: 48px; line-height: 0.95; }
  .footer-inner{ flex-direction: column; gap: 8px; text-align: center; }
  h1.display{ font-size: 34px; }
}
@media (max-width: 560px){
  .wrap{ padding: 0 20px; }
  .header-inner{ padding: 16px 20px; }
  .nav-links{ display: none; }
  .stats-grid{ grid-template-columns: 1fr; padding: 0 20px; }
  .stat{ border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; }
  .stat:first-child{ border-top: none; }
  .services, .standard, .process, .contact{ padding: 60px 20px; }
  .standard-copy{ padding: 40px 20px; }
  .footer-inner{ flex-direction: column; gap: 8px; text-align: center; }
}
