/*
Theme Name: Taylor P.C. Minimal
Theme URI: https://taylorpclaw.com/
Author: Taylor, P.C.
Description: Minimal single-page WordPress theme for Taylor, P.C.
Version: 2.9.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: taylor-pc
*/

:root {
  --tpc-navy: #03283f;
  --tpc-navy-deep: #001d2f;
  --tpc-blue: #159ddb;
  --tpc-blue-deep: #056a9f;
  --tpc-ink: #0b2940;
  --tpc-paper: #f8f7f4;
  --tpc-white: #ffffff;
  --tpc-line: rgba(11, 41, 64, .17);
  --tpc-font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--tpc-paper);
  color: var(--tpc-ink);
  font-family: var(--tpc-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.tpc-panel-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto;
  clip: auto; overflow: visible;
  left: 1rem; top: 1rem; z-index: 99999;
  padding: .7rem 1rem; margin: 0;
  background: #fff; color: #000;
}

.tpc-site { min-height: 100vh; background: var(--tpc-paper); }

.tpc-hero {
  position: relative;
  min-height: clamp(640px, 78vh, 860px);
  overflow: hidden;
  background-color: #d7c7ae;
  background-image: url('assets/images/hero-approved.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
/* Deliberately no tint, filter, blend mode, or image overlay. */
.tpc-hero::before,
.tpc-hero::after { content: none; }

.tpc-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 30px 38px 0;
}
.tpc-brand {
  display: block;
  width: clamp(300px, 29vw, 430px);
  line-height: 0;
}
.tpc-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}
.tpc-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 5px;
}
.tpc-about-trigger,
.tpc-client-login {
  border: 0;
  background: transparent;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0,0,0,.65), 0 2px 10px rgba(0,0,0,.28);
}
.tpc-about-trigger { padding: 13px 0; }
.tpc-header-divider {
  display: block;
  width: 1px;
  height: 22px;
  background: var(--tpc-blue);
  opacity: .95;
}
.tpc-client-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  border: 1px solid rgba(21,157,219,.95);
  background: rgba(0, 20, 34, .08);
}
.tpc-client-login svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.tpc-client-login:hover,
.tpc-client-login:focus-visible,
.tpc-about-trigger:hover,
.tpc-about-trigger:focus-visible { color: #dff5ff; }
.tpc-client-login.is-disabled { cursor: default; }

.tpc-hero-copy {
  position: absolute;
  z-index: 4;
  left: clamp(42px, 4.6vw, 70px);
  bottom: clamp(78px, 10vh, 118px);
  max-width: min(760px, 61vw);
  color: #fff;
  /* Approved positioning: lifts the tagline clear of the limestone seam. */
  transform: translateY(-24px) !important;
}
.tpc-hero-copy h1 {
  margin: 0;
  font-size: clamp(44px, 4.1vw, 66px);
  line-height: 1.16;
  letter-spacing: -.034em;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0,0,0,.58), 0 3px 14px rgba(0,0,0,.32);
}
.tpc-accent-line {
  display: none;
}

.tpc-about-panel {
  position: absolute;
  z-index: 30;
  top: 145px;
  right: 34px;
  width: min(330px, calc(100vw - 48px));
  min-height: 408px;
  padding: 54px 40px 42px;
  color: #fff;
  background: linear-gradient(155deg, #052d46 0%, #001d31 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.tpc-about-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tpc-panel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.tpc-panel-close::before,
.tpc-panel-close::after {
  content: "";
  position: absolute;
  top: 16px; left: 5px;
  width: 24px; height: 1.5px;
  background: currentColor;
}
.tpc-panel-close::before { transform: rotate(45deg); }
.tpc-panel-close::after { transform: rotate(-45deg); }
.tpc-about-label {
  margin: 0;
  color: var(--tpc-blue);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 15px;
  font-weight: 500;
}
.tpc-about-line {
  display: block;
  width: 48px;
  height: 2px;
  margin: 18px 0 34px;
  background: var(--tpc-blue);
}
.tpc-about-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.82;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* Slim contact band. */
.tpc-contact {
  position: relative;
  z-index: 2;
  min-height: 122px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1.25fr;
  align-items: stretch;
  background: rgba(251,250,248,.99);
  border-top: 1px solid rgba(255,255,255,.75);
}
.tpc-contact-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 17px 30px;
  text-align: center;
}
.tpc-contact-item + .tpc-contact-item::before {
  content: "";
  position: absolute;
  left: 0; top: 24px; bottom: 24px;
  width: 1px;
  background: var(--tpc-line);
}
.tpc-contact-link,
.tpc-contact-static {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  color: var(--tpc-ink);
  text-decoration: none;
}
.tpc-contact-icon {
  width: 33px;
  height: 33px;
  color: #087fcc;
}
.tpc-contact-icon svg {
  width: 100%; height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tpc-contact-text {
  font-size: 14px;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.tpc-contact-item:nth-child(3) .tpc-contact-text {
  text-transform: none;
  letter-spacing: .025em;
}
.tpc-contact-link:hover .tpc-contact-text,
.tpc-contact-link:focus-visible .tpc-contact-text { color: #087fcc; }

.tpc-footer {
  min-height: 54px;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: rgba(255,255,255,.92);
  background: linear-gradient(100deg, #00243a 0%, #001b2d 100%);
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.tpc-footer-separator { width: 1px; height: 18px; background: var(--tpc-blue); }
.tpc-footer a { text-decoration: none; }
.tpc-footer a:hover,
.tpc-footer a:focus-visible { color: #bfeeff; }

/* Interior page styling, used for Privacy Policy and future pages. */
.tpc-interior { min-height: 100vh; background: #f8f7f4; }
.tpc-interior-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 28px 44px;
  border-bottom: 1px solid rgba(11,41,64,.12);
}
.tpc-interior-header .tpc-brand { width: min(340px, 48vw); }
.tpc-back-home {
  color: var(--tpc-ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}
.tpc-content {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 70px 0 90px;
  font-size: 17px;
  line-height: 1.75;
}
.tpc-content h1 { margin: 0 0 32px; font-size: clamp(40px, 5vw, 62px); font-weight: 300; letter-spacing: -.035em; }
.tpc-content h2 { margin-top: 2.2em; font-weight: 500; }

@media (max-width: 900px) {
  .tpc-hero { min-height: 700px; background-position: 52% center; }
  .tpc-header { padding: 24px 24px 0; }
  .tpc-brand { width: min(330px, 54vw); }
  .tpc-header-actions { gap: 14px; }
  .tpc-header-divider { display: none; }
  .tpc-about-trigger, .tpc-client-login { font-size: 12px; }
  .tpc-client-login { padding: 12px 14px; }
  .tpc-hero-copy { left: 34px; bottom: 82px; max-width: 68vw; }
  .tpc-hero-copy h1 { font-size: clamp(38px, 6vw, 58px); }
  .tpc-about-panel { top: 112px; right: 24px; }
  .tpc-contact { min-height: 120px; }
  .tpc-contact-item { padding: 17px 18px; }
  .tpc-contact-text { font-size: 13px; }
}

@media (max-width: 680px) {
  .tpc-hero { min-height: 700px; background-position: 56% center; }
  .tpc-header { display: block; padding: 20px 18px 0; }
  .tpc-brand { width: min(320px, 80vw); }
  .tpc-header-actions { justify-content: flex-end; gap: 12px; margin-top: 16px; }
  .tpc-hero-copy {
    left: 22px;
    right: 22px;
    bottom: 62px;
    max-width: none;
    /* Slightly smaller lift on phones to preserve vertical balance. */
    transform: translateY(-9px) !important;
  }
  .tpc-hero-copy h1 { font-size: clamp(38px, 10.7vw, 54px); line-height: 1.12; }
  .tpc-about-panel {
    position: fixed;
    top: 0; right: 0;
    width: min(92vw, 390px);
    height: 100dvh;
    min-height: 0;
    padding: 82px 34px 44px;
  }
  .tpc-about-copy { font-size: 17px; line-height: 1.75; }
  .tpc-contact { display: block; min-height: 0; padding: 4px 20px; }
  .tpc-contact-item { min-height: 92px; padding: 15px 12px; }
  .tpc-contact-item + .tpc-contact-item::before { top: 0; bottom: auto; left: 12%; right: 12%; width: auto; height: 1px; }
  .tpc-contact-text { font-size: 13px; }
  .tpc-footer { min-height: 62px; gap: 14px; padding: 15px; font-size: 10px; }
  .tpc-interior-header { padding: 22px 20px; }
  .tpc-content { width: min(100% - 36px, 820px); padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tpc-about-panel { transition: none; }
}

/* =========================================================
   CLIENT PORTAL LANDING PAGE
   No credentials are collected by the WordPress site.
   ========================================================= */
.tpc-client-portal-page {
  min-height: 100vh;
  background: #f4f3ef;
}
.tpc-portal-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(248,247,244,.78) 0%, rgba(248,247,244,.72) 52%, rgba(248,247,244,.64) 100%),
    url('assets/images/hero-approved.png') center center / cover no-repeat fixed;
}
.tpc-portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 34px 44px;
}
.tpc-portal-brand { width: clamp(230px, 22vw, 320px); }
.tpc-portal-home-link {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 600;
  color: var(--tpc-ink);
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(11,41,64,.35);
}
.tpc-portal-main {
  flex: 1;
  width: min(1180px, calc(100% - 88px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(60px, 8vw, 130px);
  align-items: center;
  padding: 48px 0 80px;
}
.tpc-portal-intro { max-width: 650px; }
.tpc-portal-eyebrow,
.tpc-portal-status {
  margin: 0 0 24px;
  color: var(--tpc-blue-deep);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 13px;
  font-weight: 600;
}
.tpc-portal-intro h1 {
  margin: 0;
  color: var(--tpc-blue);
  font-size: clamp(48px, 5.6vw, 82px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 400;
}
.tpc-portal-title-line2 {
  display: block;
  white-space: nowrap;
}
.tpc-portal-lede {
  max-width: 600px;
  margin: 34px 0 0;
  color: rgba(11,41,64,.76);
  font-size: 19px;
  line-height: 1.7;
}
.tpc-portal-card {
  padding: clamp(38px, 4.2vw, 58px);
  background: linear-gradient(155deg, rgba(5,45,70,.98) 0%, rgba(0,29,49,.99) 100%);
  box-shadow: 0 28px 70px rgba(0,21,35,.18);
  color: #fff;
}
.tpc-portal-card .tpc-portal-status { color: var(--tpc-blue); margin-bottom: 24px; }
.tpc-portal-card h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -.03em;
  font-weight: 400;
}
.tpc-portal-card > p:not(.tpc-portal-status):not(.tpc-portal-note) {
  margin: 0 0 30px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.7;
}
.tpc-portal-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid var(--tpc-blue);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
  font-weight: 600;
  transition: background .18s ease, color .18s ease;
}
.tpc-portal-primary:hover,
.tpc-portal-primary:focus-visible {
  background: var(--tpc-blue);
  color: #001d2f;
}
.tpc-portal-support {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 13px;
}
.tpc-portal-support a { color: rgba(255,255,255,.92); text-decoration: none; }
.tpc-portal-support a:hover,
.tpc-portal-support a:focus-visible { color: var(--tpc-blue); }
.tpc-portal-support span { width: 1px; height: 16px; background: rgba(255,255,255,.3); }
.tpc-portal-note {
  margin: 28px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  line-height: 1.6;
}
.tpc-portal-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 18px 24px;
  background: var(--tpc-navy-deep);
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
}
.tpc-portal-footer a { color: inherit; text-decoration: none; }

@media (max-width: 820px) {
  .tpc-portal-shell { background-attachment: scroll; }
  .tpc-portal-header { padding: 24px; }
  .tpc-portal-brand { width: min(250px, 54vw); }
  .tpc-portal-main {
    width: min(100% - 44px, 680px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 54px 0 72px;
  }
  .tpc-portal-intro h1 { font-size: clamp(46px, 10vw, 68px); }
}

@media (max-width: 520px) {
  .tpc-portal-header { align-items: flex-start; padding: 20px 18px; }
  .tpc-portal-brand { width: min(220px, 54vw); }
  .tpc-portal-home-link { font-size: 10px; margin-top: 7px; }
  .tpc-portal-main { width: min(100% - 32px, 680px); padding-top: 38px; }
  .tpc-portal-lede { font-size: 17px; }
  .tpc-portal-card { padding: 34px 28px; }
  .tpc-portal-support { display: grid; gap: 10px; }
  .tpc-portal-support span { display: none; }
}
