/* ============================================================
   Page-specific styles — Jonathon Hyjek WP Theme
   ============================================================ */

/* ══════════════════════════════════════════════
   HOME — HERO
══════════════════════════════════════════════ */
.hero { padding: 5.5rem 0 5rem; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 5rem; align-items: center; }
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 .line2 { color: var(--teal); font-style: italic; }
.hero .lead { max-width: 480px; margin-bottom: 2.2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.4rem; }
.pill { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.38rem 0.9rem; border-radius: 999px; }
.pill.teal { background: var(--teal-tint); color: var(--teal-dk); }
.pill.red  { background: var(--red-tint);  color: var(--red-dk); }
.pill.ink  { background: var(--cream2);    color: var(--ink-soft); }
.hero-btns { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }

/* Hero photo */
.hero-photo { position: relative; justify-self: end; width: min(380px, 100%); }
.hero-photo .frame { position: relative; z-index: 2; overflow: hidden; }
.hero-photo .frame img { width: 100%; display: block; }
.hero-photo .blob-teal {
  position: absolute; z-index: 1; top: -22px; right: -22px; width: 130px; height: 130px;
  background: var(--teal); border-radius: 50%;
}
.hero-photo .bar-red {
  position: absolute; z-index: 1; bottom: -20px; left: -20px; width: 150px; height: 60px; background: var(--red);
}
.hero-photo .tagcard {
  position: absolute; z-index: 3; bottom: 1.6rem; left: -2rem; background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.14); padding: 0.9rem 1.2rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.hero-photo .tagcard .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.hero-photo .tagcard span { font-size: 0.82rem; font-weight: 600; }
.hero-photo .tagcard small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 500; }

/* HOME — Beliefs */
.beliefs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.belief { padding: 1.8rem 0 0; }
.belief .mark { width: 30px; height: 4px; margin-bottom: 1.1rem; }
.belief:nth-child(4n+1) .mark { background: var(--teal); }
.belief:nth-child(4n+2) .mark { background: var(--red); }
.belief:nth-child(4n+3) .mark { background: var(--teal); }
.belief:nth-child(4n+4) .mark { background: var(--red); }
.belief p { font-family: var(--font-h); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--ink); }

/* HOME — Help preview */
.help-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.help-head .h-sec { max-width: 560px; }
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.help-card {
  border: 1px solid var(--line); padding: 2.4rem; background: #fff;
  position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.help-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.help-card:nth-child(odd)::before  { background: var(--teal); }
.help-card:nth-child(even)::before { background: var(--red); }
.help-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,0.08); border-color: transparent; }
.help-card:hover::before { transform: scaleX(1); }
.help-card .num { font-family: var(--font-h); font-weight: 700; font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; letter-spacing: 0.1em; }
.help-card .h-card { margin-bottom: 0.7rem; }
.help-card p { color: var(--ink-soft); font-size: 0.93rem; }

/* HOME — Story strip */
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; align-items: center; }
.story-photo { position: relative; }
.story-photo img { width: 100%; }
.story-photo .accent {
  position: absolute; bottom: -1.4rem; right: -1.4rem; width: 60%; height: 60%;
  border-bottom: 4px solid var(--red); border-right: 4px solid var(--red); pointer-events: none;
}
blockquote.pull {
  font-family: var(--font-h); font-style: italic; font-size: 1.5rem; line-height: 1.4;
  color: var(--ink); border-left: 3px solid var(--teal); padding-left: 1.5rem; margin: 1.8rem 0;
}

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
.about-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4.5rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.about-hero .photo { position: relative; justify-self: end; width: min(380px, 100%); }
.about-hero .photo img { width: 100%; position: relative; z-index: 2; }
.about-hero .photo .blob {
  position: absolute; z-index: 1; top: -24px; left: -24px; width: 150px; height: 150px;
  background: var(--teal-tint); border-radius: 50%;
}
.about-hero .photo .bar {
  position: absolute; z-index: 1; bottom: -18px; right: -18px; width: 130px; height: 56px; background: var(--red);
}

.story { max-width: 760px; margin: 0 auto; }
.story p { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 1.5rem; }
.story p strong { color: var(--ink); font-weight: 600; }
.story h2 { font-family: var(--font-h); font-weight: 700; font-size: 1.9rem; margin: 3rem 0 1.2rem; letter-spacing: -0.01em; }
blockquote.pull-red {
  font-family: var(--font-h); font-style: italic; font-size: 1.7rem; line-height: 1.4;
  color: var(--ink); border-left: 3px solid var(--red); padding-left: 1.7rem; margin: 2.5rem 0;
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.value { background: #fff; border: 1px solid var(--line); padding: 2rem; }
.value .ico {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 1.2rem;
}
.value:nth-child(1) .ico { background: var(--teal); }
.value:nth-child(2) .ico { background: var(--red); }
.value:nth-child(3) .ico { background: var(--ink); }
.value h3 { font-family: var(--font-h); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.6rem; }
.value p { color: var(--ink-soft); font-size: 0.93rem; }

.timeline { max-width: 760px; margin: 0 auto; }
.tl-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.8rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.tl-item:last-child { border-bottom: none; }
.tl-year { font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; color: var(--teal); }
.tl-item:nth-child(even) .tl-year { color: var(--red); }
.tl-body h3 { font-weight: 600; font-size: 1.02rem; margin-bottom: 0.2rem; }
.tl-body p { color: var(--ink-soft); font-size: 0.93rem; }

/* ══════════════════════════════════════════════
   SERVICES PAGE
══════════════════════════════════════════════ */
.svc-row { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 2.5rem; align-items: start; padding: 3.2rem 0; border-bottom: 1px solid var(--line); }
.svc-row:last-of-type { border-bottom: none; }
.svc-num { font-family: var(--font-h); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.svc-row:nth-child(odd)  .svc-num { color: var(--teal); }
.svc-row:nth-child(even) .svc-num { color: var(--red); }
.svc-main h2 { font-family: var(--font-h); font-weight: 700; font-size: 1.7rem; margin-bottom: 0.8rem; letter-spacing: -0.01em; }
.svc-main p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.svc-list { list-style: none; }
.svc-list li { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 0; font-size: 0.93rem; color: var(--ink-soft); }
.svc-list li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }
.svc-row:nth-child(odd)  .svc-list li::before { background: var(--teal); }
.svc-row:nth-child(even) .svc-list li::before { background: var(--red); }

/* Fit section */
.fit-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: start; }
.fit-list { list-style: none; }
.fit-item { display: flex; gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; line-height: 1.6; color: var(--ink-soft); }
.fit-item:last-child { border-bottom: none; }
.fit-check {
  width: 24px; height: 24px; flex-shrink: 0; background: var(--teal-tint); color: var(--teal-dk);
  display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; margin-top: 2px;
}
.fit-card { background: #fff; border: 1px solid var(--line); padding: 2.4rem; position: sticky; top: 90px; }
.fit-card .bar { width: 40px; height: 4px; background: var(--red); margin-bottom: 1.2rem; }
.fit-card h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-bottom: 0.9rem; }
.fit-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.6rem; }

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4.5rem; align-items: start; }
.cinfo-item { display: flex; gap: 1.1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.cinfo-item:last-child { border-bottom: none; }
.cinfo-ico { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff; }
.cinfo-item:nth-child(1) .cinfo-ico { background: var(--teal); }
.cinfo-item:nth-child(2) .cinfo-ico { background: var(--red); }
.cinfo-item:nth-child(3) .cinfo-ico { background: var(--ink); }
.cinfo-item:nth-child(4) .cinfo-ico { background: var(--teal); }
.cinfo-label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 0.25rem; }
.cinfo-val { font-size: 1rem; font-weight: 500; }
.cinfo-val a { text-decoration: none; }
.cinfo-val a:hover { color: var(--teal); }

.form-card { background: #fff; border: 1px solid var(--line); padding: 2.6rem; box-shadow: 0 16px 50px rgba(0,0,0,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.4rem; }
.form-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.form-input, .form-textarea {
  width: 100%; background: var(--cream); border: 1px solid var(--line); color: var(--ink);
  padding: 0.85rem 1rem; font-family: var(--font-b); font-size: 0.96rem; outline: none; border-radius: 0;
  transition: border-color 0.18s, background 0.18s; -webkit-appearance: none; appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-input:focus, .form-textarea:focus { border-color: var(--teal); background: #fff; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-success {
  display: none; background: var(--teal-tint); border: 1px solid var(--teal);
  padding: 1rem 1.3rem; color: var(--teal-dk); font-size: 0.92rem; font-weight: 500; margin-top: 1rem;
}
.form-error { display: none; background: var(--red-tint); border: 1px solid var(--red); padding: 1rem 1.3rem; color: var(--red-dk); font-size: 0.92rem; margin-top: 1rem; }

.reassure { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.reassure-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }
.reassure-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.reassure-item:nth-child(2) .dot { background: var(--red); }
.reassure-item:nth-child(3) .dot { background: var(--ink); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid   { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero-photo  { justify-self: start; margin-left: 1.5rem; }
  .beliefs-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .help-grid   { grid-template-columns: 1fr; }
  .story-grid  { grid-template-columns: 1fr; gap: 3rem; }

  .about-hero  { grid-template-columns: 1fr; gap: 3rem; }
  .about-hero .photo { justify-self: start; margin-left: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }

  .svc-row     { grid-template-columns: 1fr; gap: 1.2rem; padding: 2.4rem 0; }
  .svc-num     { font-size: 2rem; }
  .fit-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .fit-card    { position: static; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-card   { padding: 1.8rem; }
  .form-row    { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .beliefs-grid { grid-template-columns: 1fr; }
  .hero-photo   { margin-left: 0; }
  .about-hero .photo { margin-left: 0; }
}

/* ══════════════════════════════════════════════
   CONTACT FORM 7 — match theme styling
══════════════════════════════════════════════ */
.wpcf7 p { margin: 0; }
.wpcf7 br { display: none; }

.wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 1.4rem; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-family: var(--font-b);
  font-size: 0.96rem;
  outline: none;
  border-radius: 0;
  transition: border-color 0.18s, background 0.18s;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
  border-color: var(--teal);
  background: #fff;
}
.wpcf7 textarea { resize: vertical; min-height: 130px; }

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  background: var(--teal);
  color: #fff;
  border: 2px solid transparent;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-b);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.18s, transform 0.18s;
}
.wpcf7 input[type="submit"]:hover {
  background: var(--teal-dk);
  transform: translateY(-2px);
}

.wpcf7 .wpcf7-not-valid-tip {
  display: block;
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 0.3rem;
}
.wpcf7 .wpcf7-response-output {
  margin-top: 1.2rem;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 0;
}
.wpcf7 .wpcf7-mail-sent-ok {
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  color: var(--teal-dk);
}
.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-aborted,
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-spam-blocked {
  background: var(--red-tint);
  border: 1px solid var(--red);
  color: var(--red-dk);
}
