/*
Theme Name: JB3RD Minimal
Theme URI: https://jb3rd.com/
Author: JB3RD
Description: Minimalist one-page WordPress theme for JB3RD. Uses the supplied JB3RD logo and favicon without alteration other than display sizing.
Version: 0.3.2
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: jb3rd-minimal
*/

:root {
  --jb3rd-orange: #DF6705;
  --jb3rd-orange-soft: #FF9D57;
  --jb3rd-gray: #7D7D7D;
  --jb3rd-cream: #F7E3BC;
  --jb3rd-ink: #2D3033;
  --jb3rd-muted: #6E7073;
  --jb3rd-line: rgba(125,125,125,.20);
  --jb3rd-white: #FFFFFF;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jb3rd-ink);
  background: #fffdfa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(223,103,5,.34);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; }
#services, #approach, #about, #contact { scroll-margin-top: 24px; }

.site-shell {
  position: relative;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 86% 35%, rgba(247,227,188,.20) 0 11rem, transparent 11.1rem),
    radial-gradient(circle at 92% 35%, transparent 0 15.5rem, rgba(125,125,125,.065) 15.6rem 18rem, transparent 18.1rem),
    radial-gradient(circle at 72% 90%, rgba(247,227,188,.18) 0 16rem, transparent 16.1rem),
    linear-gradient(180deg,#fff 0%,#fffdf9 100%);
}
.site-shell::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -5rem;
  width: 38rem;
  height: 26rem;
  opacity: .16;
  z-index: -1;
  background-image:
    linear-gradient(135deg, transparent 47%, rgba(223,103,5,.28) 48% 49%, transparent 50%),
    linear-gradient(45deg, transparent 47%, rgba(223,103,5,.28) 48% 49%, transparent 50%);
  background-size: 6rem 6rem;
  transform: rotate(0.5deg);
  mask-image: linear-gradient(to top left, #000 15%, transparent 72%);
}

.wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 8px;
  gap: 28px;
}
.brand {
  flex: 0 0 auto;
  line-height: 0;
}
.brand img {
  display: block;
  width: clamp(150px, 14vw, 205px);
  height: auto;
}
.primary-nav { min-width: 0; }
.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  list-style: none;
  gap: clamp(22px, 3vw, 48px);
  padding: 0;
  margin: 0;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .01em;
  color: #242629;
  transition: color .2s ease;
}
.primary-nav a:hover,
.primary-nav a:focus { color: var(--jb3rd-orange); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, .4fr);
  align-items: center;
  gap: clamp(34px, 4vw, 52px);
  padding: 38px 0 42px;
}
.hero-copy { max-width: 760px; }
.hero h1 {
  margin: 0;
  font-weight: 350;
  font-size: clamp(48px, 4.55vw, 66px);
  line-height: .99;
  letter-spacing: -.045em;
  white-space: nowrap;
  color: #2a2d30;
}
.hero h1 .headline-word { display: inline; white-space: nowrap; }
.hero h1 .dot { color: var(--jb3rd-orange); }
.hero p.lead {
  max-width: 700px;
  margin: 24px 0 0;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.45;
  color: #66686b;
  font-weight: 350;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 28px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 5px;
  background: var(--jb3rd-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid var(--jb3rd-ink);
  box-shadow: 0 7px 18px rgba(45,48,51,.10);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cta span { color: var(--jb3rd-orange); font-size: 1.12em; }
.cta:hover, .cta:focus {
  background: #3a3d40;
  border-color: #3a3d40;
}
.cta:hover span, .cta:focus span { color: var(--jb3rd-orange-soft); }
.hero-art {
  position: relative;
  min-height: clamp(320px, 39vh, 390px);
}
.ring, .ring::before, .ring::after { position: absolute; border-radius: 50%; }
.ring {
  width: clamp(285px, 26vw, 340px);
  height: clamp(285px, 26vw, 340px);
  right: 2%; top: 2%;
  border: clamp(52px, 5vw, 62px) solid rgba(125,125,125,.055);
}
.ring::before {
  content: "";
  width: 44%; height: 44%;
  right: 65%; top: 66%;
  background: rgba(247,227,188,.22);
}
.ring::after {
  content: "";
  width: 25%; height: 25%;
  right: 28%; top: 91%;
  background: rgba(223,103,5,.05);
}

.services {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--jb3rd-line);
  margin-top: 12px;
  padding-top: 28px;
}
.service {
  padding: 0 clamp(18px, 2.25vw, 30px);
  text-align: center;
  min-height: 134px;
}
.service + .service { border-left: 1px solid var(--jb3rd-line); }
.service-icon {
  width: 40px; height: 40px; margin: 0 auto 10px;
  display: grid; place-items: center;
}
.service-icon svg { width: 33px; height: 33px; stroke: var(--jb3rd-orange); }
.service h2 { margin: 0 0 7px; font-size: 18px; font-weight: 500; }
.service p { margin: 0; font-size: 14.5px; color: #8a8c8f; line-height: 1.45; }

.approach-panel {
  padding: 50px 0 56px;
  background: #fff;
  border-top: 1px solid var(--jb3rd-line);
}
.approach-row {
  display: grid;
  grid-template-columns: .65fr repeat(3, 1fr);
  gap: 34px;
  align-items: start;
}
.approach-kicker,
.about-kicker {
  color: var(--jb3rd-orange);
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 600;
}
.approach-step {
  padding-left: 24px;
  border-left: 1px solid var(--jb3rd-line);
}
.approach-step strong { display:block; margin-bottom:7px; font-size:17px; font-weight:500; }
.approach-step span { color: var(--jb3rd-muted); font-size:15px; }

.about-panel {
  padding: 52px 0 58px;
  background: #fffdfa;
  border-top: 1px solid var(--jb3rd-line);
}
.about-row {
  display: grid;
  grid-template-columns: .65fr 3fr;
  gap: 34px;
  align-items: start;
}
.about-row p {
  margin: 0;
  max-width: 820px;
  color: var(--jb3rd-muted);
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.62;
}

.contact-panel {
  padding: 68px 0 74px;
  background: rgba(247,227,188,.26);
  border-top: 1px solid rgba(223,103,5,.10);
}
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.contact-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 350;
  letter-spacing: -.025em;
}
.contact-panel p { color: var(--jb3rd-muted); font-size: 18px; max-width: 520px; }

.jb3rd-form { display: grid; gap: 16px; }
.jb3rd-form label { font-size: 14px; color: #55585b; }
.jb3rd-form input,
.jb3rd-form textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(125,125,125,.28);
  background: rgba(255,255,255,.92);
  border-radius: 4px;
  padding: 14px 15px;
  font: inherit;
  font-size: 16px; /* avoids iOS zoom-on-focus */
  color: var(--jb3rd-ink);
}
.jb3rd-form textarea { min-height: 140px; resize: vertical; }
.jb3rd-form button {
  justify-self: start;
  min-height: 48px;
  border: 0;
  border-radius: 4px;
  padding: 13px 24px;
  background: var(--jb3rd-ink);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease;
}
.jb3rd-form button:hover,
.jb3rd-form button:focus { background: #3a3d40; }
.form-status { padding: 12px 14px; border-left: 3px solid var(--jb3rd-orange); background: rgba(255,255,255,.7); }
.hp-field { position: absolute !important; left: -9999px !important; }

.site-footer { padding: 24px 0 34px; color: #8a8c8f; font-size: 13px; text-align: center; }

/* Tablet and smaller laptops */
@media (max-width: 900px) {
  .wrap { width: min(calc(100% - 38px), 760px); }
  .site-header { align-items: center; padding-top: 16px; }
  .brand img { width: clamp(150px, 22vw, 185px); }
  .primary-nav ul { gap: clamp(14px, 2.8vw, 24px); flex-wrap: wrap; }
  .primary-nav a { font-size: 14px; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    padding-bottom: 38px;
    gap: 16px;
  }
  .hero-art { display: none; }
  .hero-copy { max-width: 700px; }
  .hero h1 {
    font-size: clamp(42px, 6.6vw, 56px);
    white-space: nowrap;
  }
  .hero p.lead { max-width: 650px; }
  .services {
    grid-template-columns: 1fr 1fr;
    row-gap: 0;
    margin-top: 20px;
    padding-top: 24px;
  }
  .service { padding: 8px 24px 28px; min-height: 0; }
  .service:nth-child(3) { border-left: 0; }
  .service:nth-child(n+3) {
    border-top: 1px solid var(--jb3rd-line);
    padding-top: 28px;
  }

  .approach-panel { padding: 44px 0 48px; }
  .approach-row { grid-template-columns: 1fr; gap: 20px; }
  .approach-step {
    padding-left: 0;
    padding-top: 16px;
    border-left: 0;
    border-top: 1px solid var(--jb3rd-line);
  }
  .about-panel { padding: 44px 0 48px; }
  .about-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-panel { padding: 54px 0 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Phones in portrait, plus narrow split-screen windows */
@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 28px), 520px); }
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
  }
  .brand img { width: 148px; }
  .primary-nav { width: 100%; margin-top: 0; }
  .primary-nav ul {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    white-space: normal;
  }
  .primary-nav a {
    padding: 8px 0;
    font-size: 13px;
  }

  .hero { padding-top: 30px; padding-bottom: 32px; }
  .hero h1 {
    font-size: clamp(42px, 12.5vw, 58px);
    line-height: 1.01;
    letter-spacing: -.04em;
    white-space: normal;
  }
  .hero h1 .headline-word { display: block; }
  .hero p.lead { margin-top: 20px; font-size: 19px; line-height: 1.48; }
  .hero-actions { margin-top: 24px; align-items: stretch; flex-direction: column; }
  .cta { width: 100%; min-height: 50px; padding: 0 20px; }

  .services { grid-template-columns: 1fr; margin-top: 20px; padding-top: 20px; }
  .service { padding: 16px 6px 24px; }
  .service + .service,
  .service:nth-child(n+3) {
    border-left: 0;
    border-top: 1px solid var(--jb3rd-line);
    padding-top: 24px;
  }

  .approach-panel { padding: 38px 0 42px; }
  .about-panel { padding: 38px 0 42px; }
  .about-row p { font-size: 18px; line-height: 1.58; }
  .contact-panel { padding: 44px 0 50px; }
  .contact-panel h2 { font-size: clamp(32px, 10vw, 42px); }
  .contact-panel p { font-size: 17px; }
  .jb3rd-form { gap: 14px; }
  .jb3rd-form button { width: 100%; justify-self: stretch; }
  .site-footer { padding-bottom: 28px; }
}

/* Short mobile landscape viewports: keep everything compact and readable. */
@media (orientation: landscape) and (max-width: 950px) and (max-height: 520px) {
  .wrap { width: min(calc(100% - 36px), 860px); }
  .site-header {
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 8px 0 4px;
  }
  .brand img { width: 132px; }
  .primary-nav { width: auto; margin-left: auto; }
  .primary-nav ul {
    display: flex;
    width: auto;
    gap: 18px;
    flex-wrap: nowrap;
  }
  .primary-nav a { font-size: 13px; padding: 7px 0; }

  .hero {
    grid-template-columns: 1fr;
    padding: 18px 0 28px;
    gap: 12px;
  }
  .hero-art { display: none; }
  .hero-copy { max-width: 760px; }
  .hero h1 {
    font-size: clamp(38px, 7vw, 50px);
    line-height: .98;
    white-space: nowrap;
  }
  .hero h1 .headline-word { display: inline; }
  .hero p.lead { margin-top: 14px; font-size: 17px; line-height: 1.38; max-width: 720px; }
  .hero-actions { margin-top: 18px; flex-direction: row; }
  .cta { width: auto; min-height: 46px; padding: 0 20px; }

  .services {
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
    padding-top: 18px;
  }
  .service { padding: 8px 18px 20px; }
  .service-icon { width: 34px; height: 34px; margin-bottom: 7px; }
  .service-icon svg { width: 29px; height: 29px; }
  .service h2 { font-size: 17px; }
  .service p { font-size: 14px; }

  .approach-panel,
  .about-panel { padding: 34px 0 38px; }
  .contact-panel { padding: 40px 0 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
