/*
  Keystone Law Group — Inner Pages Stylesheet
  Version: 20260701
*/

/* ==============================
   NAV ACTIVE STATE
   ============================== */

.main-nav a.active {
  color: #ffffff;
}

.main-nav a.active::after {
  width: 100%;
}

/* ==============================
   PAGE HERO
   ============================== */

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1B2E5E;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(8, 8, 10, 0.88) 0%,
    rgba(18, 30, 60, 0.72) 55%,
    rgba(8, 8, 10, 0.45) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px;
}

.page-hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  display: block;
  font-size: 12.5px;
  color: #C9A84C;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 720px;
}

.page-hero-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  max-width: 600px;
}

.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #C9A84C;
}

.breadcrumb span.sep {
  color: rgba(201, 168, 76, 0.6);
}

.breadcrumb span.current {
  color: rgba(255, 255, 255, 0.85);
}

/* ==============================
   CONTENT LAYOUT + SIDEBAR
   ============================== */

.content-section {
  padding: 80px 0;
  background: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: start;
}

.content-main h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 18px;
  color: #1a1a1a;
}

.content-main p {
  font-size: 17px;
  color: #3a3a3a;
  line-height: 1.9;
  margin-bottom: 20px;
}

.content-main .lead {
  font-size: 17px;
  color: #3a3a3a;
}

.sidebar-card {
  background: #F5F4F0;
  padding: 30px 28px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 18px;
  color: #1B2E5E;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #C9A84C;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li {
  border-bottom: 1px solid #e5e2dc;
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: #555555;
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-nav a:hover {
  color: #1B2E5E;
  padding-left: 6px;
}

.sidebar-nav a.active {
  color: #1B2E5E;
  font-weight: 500;
  border-left: 2px solid #C9A84C;
  padding-left: 12px;
}

.sidebar-cta {
  background: #1B2E5E;
  padding: 30px 28px;
  color: #ffffff;
}

.sidebar-cta h3 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 12px;
}

.sidebar-cta p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  margin-bottom: 20px;
}

.sidebar-cta .btn-gold {
  font-family: 'Montserrat', sans-serif;
  width: 100%;
  text-align: center;
  padding: 13px 20px;
}

.sidebar-cta .phone-line {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 16.5px;
  color: #C9A84C;
  font-weight: 500;
}

/* ==============================
   SERVICES GRID (practice pages)
   ============================== */

.services-block {
  background: #F5F4F0;
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 44px;
}

.service-card {
  background: #ffffff;
  padding: 30px 30px 32px;
  border-top: 3px solid transparent;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-top-color: #C9A84C;
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 18px;
  color: #1B2E5E;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15.5px;
  color: #666666;
  line-height: 1.75;
}

/* ==============================
   FAQ (accordion)
   ============================== */

.faq-section {
  padding: 80px 0;
  background: #ffffff;
}

.faq-list {
  max-width: 800px;
  margin-top: 40px;
}

.faq-item {
  border: 1px solid #e8e5e0;
  border-bottom: none;
  background: #ffffff;
}

.faq-item:last-child {
  border-bottom: 1px solid #e8e5e0;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  font-family: 'Literata', Georgia, serif;
  font-size: 17.5px;
  font-weight: 500;
  color: #1a1a1a;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: #1B2E5E;
}

.faq-item summary::after {
  content: '+';
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: #C9A84C;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  color: #1B2E5E;
}

.faq-answer {
  padding: 0 26px 24px;
  font-size: 16px;
  color: #5a5a5a;
  line-height: 1.85;
  max-width: 700px;
}

/* ==============================
   CONTACT PAGE
   ============================== */

.contact-section {
  padding: 80px 0;
  background: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 16px;
}

.contact-info > p {
  font-size: 16.5px;
  color: #5a5a5a;
  line-height: 1.85;
  margin-bottom: 34px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid #e8e5e0;
}

.contact-detail:last-child {
  border-bottom: 1px solid #e8e5e0;
}

.contact-detail .label {
  font-size: 12px;
  color: #C9A84C;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail .value {
  font-size: 18px;
  color: #1a1a1a;
  font-weight: 500;
  transition: color 0.2s;
}

.contact-detail a:hover {
  color: #1B2E5E;
}

.contact-detail .note {
  font-size: 14px;
  color: #999999;
}

.contact-form-wrap {
  background: #F5F4F0;
  padding: 44px 44px 48px;
}

.contact-form-wrap h3 {
  font-size: 21px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.contact-form-wrap .form-sub {
  font-size: 15px;
  color: #777777;
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group label .req {
  color: #C9A84C;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  background: #ffffff;
  border: 1px solid #ddd9d2;
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #1B2E5E;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group .field-error {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: #b03a2e;
}

.form-submit {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.form-disclaimer {
  margin-top: 16px;
  font-size: 13px;
  color: #999999;
  line-height: 1.7;
}

.alert {
  padding: 16px 20px;
  margin-bottom: 26px;
  font-size: 15.5px;
  line-height: 1.7;
}

.alert-success {
  background: #eef7ee;
  border-left: 3px solid #2e7d32;
  color: #1e4620;
}

.alert-error {
  background: #fdf0ef;
  border-left: 3px solid #b03a2e;
  color: #6e2019;
}

/* ==============================
   ABOUT PAGE
   ============================== */

.about-section {
  padding: 80px 0;
  background: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.about-img-sticky {
  position: sticky;
  top: 104px;
}

.about-img-accent {
  position: relative;
}

.about-img-accent img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.about-img-accent::after {
  content: '';
  position: absolute;
  top: 24px;
  left: -24px;
  right: 24px;
  bottom: -24px;
  border: 2px solid #C9A84C;
  z-index: -1;
}

.about-credentials {
  margin-top: 46px;
  background: #F5F4F0;
  padding: 28px;
}

.about-credentials h4 {
  font-size: 16.5px;
  color: #1B2E5E;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #C9A84C;
}

.about-credentials ul {
  list-style: none;
}

.about-credentials li {
  font-size: 15px;
  color: #555555;
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.6;
}

.about-credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1.5px;
  background: #C9A84C;
}

.core-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin: 36px 0;
}

.core-area {
  background: #F5F4F0;
  padding: 30px;
  border-top: 3px solid #C9A84C;
}

.core-area h3 {
  font-size: 18px;
  color: #1B2E5E;
  margin-bottom: 12px;
}

.core-area p {
  font-size: 15.5px;
  color: #5f5f5f;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ==============================
   PRACTICE INDEX — ADDITIONAL AREAS
   ============================== */

.additional-areas {
  background: #1B2E5E;
  padding: 76px 0;
}

.additional-areas .section-label {
  color: #C9A84C;
}

.additional-areas .section-title {
  color: #ffffff;
}

.additional-areas .section-desc {
  color: rgba(255, 255, 255, 0.6);
}

.additional-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  margin-top: 44px;
}

.additional-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 22px;
  transition: background 0.25s, border-color 0.25s;
}

.additional-item:hover {
  background: rgba(201, 168, 76, 0.08);
  border-color: rgba(201, 168, 76, 0.35);
}

.additional-item h3 {
  font-size: 16.5px;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 8px;
}

.additional-item p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ==============================
   LEGAL PAGES (privacy / disclaimer)
   ============================== */

.legal-section {
  padding: 72px 0;
  background: #ffffff;
}

.legal-content {
  max-width: 780px;
}

.legal-content h2 {
  font-size: 22px;
  color: #1a1a1a;
  margin: 40px 0 14px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 16px;
  color: #555555;
  line-height: 1.9;
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 18px 22px;
}

.legal-content li {
  font-size: 16px;
  color: #555555;
  line-height: 1.9;
  margin-bottom: 6px;
}

.legal-content .last-updated {
  font-size: 14px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 34px;
}

/* ==============================
   404 PAGE
   ============================== */

.error-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: #1B2E5E;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.error-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  width: 100%;
}

.error-code {
  font-family: 'Literata', Georgia, serif;
  font-size: clamp(90px, 14vw, 150px);
  color: rgba(201, 168, 76, 0.9);
  line-height: 1;
  margin-bottom: 10px;
}

.error-inner h1 {
  font-size: clamp(22px, 3vw, 32px);
  color: #ffffff;
  margin-bottom: 16px;
}

.error-inner p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==============================
   INNER PAGES — RESPONSIVE
   ============================== */

@media (max-width: 960px) {
  .content-grid,
  .contact-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-img-sticky {
    position: static;
    max-width: 420px;
  }
  .about-img-accent::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .additional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .core-areas {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-form-wrap {
    padding: 30px 24px 36px;
  }
  .additional-grid {
    grid-template-columns: 1fr;
  }
  .page-hero-content {
    padding: 56px 24px;
  }
}

/* ==============================
   SITEMAP PAGE
   ============================== */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
}
.sitemap-col h2 {
  font-family: 'Literata', Georgia, serif;
  font-size: 20px;
  color: #1B2E5E;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid #C9A84C;
}
.sitemap-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sitemap-col li {
  margin-bottom: 13px;
}
.sitemap-col a {
  font-size: 15.5px;
  color: #444444;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.sitemap-col a::before {
  content: '\203A';
  color: #C9A84C;
  font-weight: 700;
  margin-right: 11px;
}
.sitemap-col a:hover {
  color: #1B2E5E;
  padding-left: 4px;
}

@media (max-width: 768px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
}
