/* ===== KADESH — INNER PAGES CSS ===== */

/* ---- ABOUT ---- */
.story-section { padding: 6rem 0; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.story-text h2 { margin: 0.5rem 0 1.25rem; }
.story-text p { color: var(--ink3); margin-bottom: 1.1rem; line-height: 1.75; font-size: 0.95rem; }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.tl-track {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--rule2);
}

.tl-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.tl-dot {
  position: absolute;
  left: -1.75rem;
  top: 5px;
  width: 7px;
  height: 7px;
  background: var(--paper2);
  border: 1.5px solid var(--rule2);
}

.active-tl .tl-dot,
.active-dot {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink4);
  letter-spacing: 0.08em;
  padding-top: 0.1rem;
}

.tl-body h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.tl-body p { font-size: 0.85rem; color: var(--ink3); line-height: 1.6; }

/* VALUES */
.values-section { padding: 6rem 0; background: var(--paper2); border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
}

.val-card {
  background: var(--paper);
  padding: 2rem 1.75rem;
  transition: background 0.18s;
  transition-delay: calc(var(--i, 0) * 0.08s);
  position: relative;
}

.val-card:hover { background: var(--blue-dim); }

.vc-id {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--ink4);
  margin-bottom: 1.25rem;
}

.vc-icon {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 1rem;
  display: block;
}

.val-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.val-card p { font-size: 0.85rem; color: var(--ink3); line-height: 1.6; }

/* TEAM */
.team-section { padding: 6rem 0; }

.team-table {
  border: 1px solid var(--rule2);
  overflow: hidden;
}

.tt-header {
  display: grid;
  grid-template-columns: 80px 1fr 180px 200px 100px;
  background: var(--paper2);
  border-bottom: 2px solid var(--rule2);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink4);
  gap: 1.5rem;
}

.tt-row {
  display: grid;
  grid-template-columns: 80px 1fr 180px 200px 100px;
  align-items: center;
  border-bottom: 1px solid var(--rule2);
  padding: 1rem 1.25rem;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--ink3);
  transition: background 0.15s;
}

.tt-row:last-child { border-bottom: none; }
.tt-row:hover { background: var(--blue-dim); }

.tt-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.tt-name strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.tt-name span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink4);
}

/* CERTIFICATIONS */
.certs-section { padding: 6rem 0; background: var(--paper2); border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
}

.cert-card {
  background: var(--paper);
  padding: 2rem 1.75rem;
  transition: background 0.18s;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.cert-card:hover { background: var(--blue-dim); }

.cc-code {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

.cert-card h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cert-card p { font-size: 0.82rem; color: var(--ink3); line-height: 1.6; }

/* ---- INNER CTA ---- */
.inner-cta { padding: 5rem 0; }

.ic-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 3rem;
  background: var(--paper2);
  border: 1px solid var(--rule2);
  flex-wrap: wrap;
}

.ic-inner h2 { margin-top: 0.5rem; }

.ic-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- SERVICES PAGE ---- */
.services-page { padding: 6rem 0; }

.sv-block {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule2);
}

.sv-block:last-child { border-bottom: none; }

.sv-id {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  padding-top: 0.5rem;
}

.sv-head {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.sv-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--blue-rule);
  background: var(--blue-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--blue);
}

.sv-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sv-tags { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }

.sv-desc {
  color: var(--ink3);
  font-size: 0.95rem;
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.sv-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.sv-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink2);
  border: 1px solid var(--rule2);
  background: var(--paper2);
  letter-spacing: 0.02em;
  transition: border-color 0.15s, background 0.15s;
}

.sv-item:hover { border-color: var(--blue-rule); background: var(--blue-dim); color: var(--blue); }

.sv-item::before { content: '→'; color: var(--blue); font-size: 0.65rem; }

/* ---- PORTFOLIO ---- */
.portfolio-grid { padding: 6rem 0; }

.pg-table {
  border: 1px solid var(--rule2);
  margin-bottom: 4rem;
}

.pg-table-header {
  display: grid;
  grid-template-columns: 80px 1fr 120px 140px 100px;
  background: var(--paper2);
  border-bottom: 2px solid var(--rule2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink4);
  gap: 1.5rem;
}

.pg-row {
  display: grid;
  grid-template-columns: 80px 1fr 120px 140px 100px;
  align-items: start;
  border-bottom: 1px solid var(--rule2);
  padding: 1.5rem;
  gap: 1.5rem;
  transition: background 0.15s;
}

.pg-row:last-child { border-bottom: none; }
.pg-row:hover { background: var(--blue-dim); }

.pg-id {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--blue);
  letter-spacing: 0.08em;
  padding-top: 0.15rem;
}

.pg-name strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.pg-name span {
  font-size: 0.82rem;
  color: var(--ink3);
  line-height: 1.55;
}

.pg-scope, .pg-type, .pg-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink3);
  padding-top: 0.15rem;
}

/* ---- TESTIMONIALS ---- */
.testi-section { padding: 6rem 0; }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--rule2);
  border: 1px solid var(--rule2);
  margin-bottom: 5rem;
}

.testi-card {
  background: var(--paper);
  padding: 2.5rem;
  transition: background 0.18s;
  transition-delay: calc(var(--i,0)*0.08s);
}

.testi-card:hover { background: var(--blue-dim); }

.tc-rating {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--blue);
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

.tc-text {
  font-size: 0.95rem;
  color: var(--ink2);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--rule2);
  padding-top: 1.25rem;
}

.tc-avatar {
  width: 36px;
  height: 36px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.tc-author strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.tc-author span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink4);
  letter-spacing: 0.04em;
}

/* ---- CONTACT ---- */
.contact-page { padding: 6rem 0; }

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.cf-group { display: flex; flex-direction: column; gap: 0.4rem; }

.cf-group label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink4);
}

.cf-group input,
.cf-group select,
.cf-group textarea {
  background: var(--paper2);
  border: 1px solid var(--rule2);
  border-bottom-color: var(--rule2);
  padding: 0.75rem 0.875rem;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
  width: 100%;
  appearance: none;
  transition: border-color 0.15s;
}

.cf-group input:focus,
.cf-group select:focus,
.cf-group textarea:focus {
  border-color: var(--blue);
  background: var(--paper);
}

.cf-group input::placeholder,
.cf-group textarea::placeholder { color: var(--ink4); }

.cf-group select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8f80' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 10px;
  cursor: pointer;
}

.cf-group select option { background: var(--paper); }
.cf-group textarea { resize: vertical; min-height: 100px; }

.cf-success {
  display: none;
  padding: 3rem;
  background: var(--blue-dim);
  border: 1px solid var(--blue-rule);
  text-align: center;
}

.cf-success.show { display: block; }

.cfs-check {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 1rem;
}

.cf-success h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cf-success p { color: var(--ink3); font-size: 0.9rem; }

/* CONTACT INFO */
.contact-info-panel { display: flex; flex-direction: column; gap: 1.25rem; }

.ci-block {
  background: var(--paper2);
  border: 1px solid var(--rule2);
  padding: 1.75rem;
}

.ci-block h4 {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink4);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule2);
  margin-bottom: 1.25rem;
}

.ci-items { display: flex; flex-direction: column; gap: 1rem; }

.ci-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ci-k {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
  min-width: 36px;
  padding-top: 0.1rem;
}

.ci-v {
  font-size: 0.875rem;
  color: var(--ink2);
  line-height: 1.5;
}

.ci-v a { color: var(--blue); transition: opacity 0.15s; }
.ci-v a:hover { opacity: 0.7; }

/* HOURS TABLE */
.hours-table { display: flex; flex-direction: column; gap: 0.3rem; }

.ht-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--rule2);
  color: var(--ink3);
}

.ht-row:last-child { border-bottom: none; }
.ht-row.today { color: var(--blue); font-weight: 600; }

/* FAQ */
.faq-section { padding: 6rem 0; background: var(--paper2); border-top: 1px solid var(--rule2); border-bottom: 1px solid var(--rule2); }

.faq-list { border: 1px solid var(--rule2); }

.faq-item { border-bottom: 1px solid var(--rule2); }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: var(--paper);
  border: none;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--paper2); }
.faq-q.open { color: var(--blue); }

.faq-i {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink4);
  flex-shrink: 0;
  transition: transform 0.25s;
  width: 20px;
  text-align: center;
}

.faq-q.open .faq-i { transform: rotate(45deg); color: var(--blue); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22,1,0.36,1), padding 0.25s;
  background: var(--paper);
}

.faq-a.open { max-height: 200px; padding: 0 1.5rem 1.25rem; }

.faq-a p { font-size: 0.9rem; color: var(--ink3); line-height: 1.7; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 3rem; }
  .values-grid, .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .tt-header, .tt-row { grid-template-columns: 70px 1fr 1fr 90px; }
  .tt-row > *:nth-child(4) { display: none; }
  .tt-header > *:nth-child(4) { display: none; }
  .pg-table-header, .pg-row { grid-template-columns: 70px 1fr 100px 90px; }
  .pg-row > *:nth-child(4) { display: none; }
  .pg-table-header > *:nth-child(4) { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .values-grid, .certs-grid { grid-template-columns: 1fr; }
  .sv-block { grid-template-columns: 1fr; }
  .sv-items { grid-template-columns: 1fr; }
  .sv-head { flex-direction: column; gap: 1rem; }
  .tt-header, .tt-row { grid-template-columns: 1fr 1fr 80px; }
  .tt-row > *:nth-child(1), .tt-header > *:nth-child(1) { display: none; }
  .pg-table-header, .pg-row { grid-template-columns: 1fr 90px; }
  .pg-row > *:nth-child(1), .pg-row > *:nth-child(3) { display: none; }
  .pg-table-header > *:nth-child(1), .pg-table-header > *:nth-child(3) { display: none; }
  .ic-inner { flex-direction: column; }
  .cf-row { grid-template-columns: 1fr; }
}
