/* ==========================================================================
   Yardley Law PLLC — shared stylesheet
   Used by index.html, services.html, about.html, contact.html
   ========================================================================== */

:root {
  /* Brand — fresher, brighter primary blue ("Atlantic") with same warm amber */
  --navy:        #0F4C7C;   /* was #0F2942 — brighter, more energetic */
  --navy-deep:   #0A3B61;   /* was #081A2C — for footer */
  --navy-light:  #2A6FA0;   /* was #1E3A57 — accents/hover */

  --amber:       #E8A33D;
  --amber-deep:  #C68A2E;
  --amber-light: #F5C77A;

  /* Surface — cleaner & cooler for a fresher feel */
  --cream:       #FBFCFE;   /* was #FAF7F2 — clean cool off-white */
  --cream-deep:  #EEF3FA;   /* was #F2EDE3 — pale cool blue surface */
  --white:       #FFFFFF;

  /* Text */
  --charcoal:    #1F2937;
  --gray:        #5B6573;
  --gray-light:  #9CA3AF;

  /* Lines — cool to match the new palette */
  --border:      #DCE5EE;   /* was #E5E0D5 */
  --border-dark: rgba(251, 252, 254, 0.15);
}

/* ----- Reset & base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; letter-spacing: -0.005em; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; max-width: 68ch; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a:hover { color: var(--amber-deep); }

/* ----- Layout helpers ---------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

.section-alt  { background: var(--cream-deep); }
.section-dark { background: var(--navy); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .section-eyebrow { color: var(--amber-light); }
.section-dark p { color: rgba(250, 247, 242, 0.85); }

/* ----- Eyebrow / accent rules ------------------------------------------- */
.section-eyebrow,
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 1.25rem;
}

.hero-eyebrow {
  position: relative;
  padding-left: 3.25rem;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2px;
  background: var(--amber);
}

/* ----- Header & nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  max-width: 1180px;
  margin: 0 auto;
}

/* Logo image wrapper (anchor) */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;            /* removes inline baseline gap under the img */
}

/* Logo image — using the cropped version (minimal whitespace), so display
   height is close to the visible mark height. */
.logo-img {
  height: 110px;
  width: auto;
  display: block;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 0.5rem 0;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a.active { color: var(--navy); }
.site-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--amber);
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-deep) 100%);
  padding: 6rem 0 5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero::before {
  /* Subtle amber accent rule running across the top — adds energy */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 18%, transparent 60%);
}

.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 22ch;
}

.hero-sub {
  font-size: 1.18rem;
  color: var(--gray);
  max-width: 58ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

/* ----- Page header (non-home pages) ------------------------------------- */
.page-header {
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-deep) 100%);
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber) 18%, transparent 60%);
}

.page-header h1 {
  max-width: 24ch;
  margin-bottom: 1rem;
}

.page-header .lead {
  font-size: 1.15rem;
  color: var(--gray);
  max-width: 60ch;
}

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-on-dark {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-on-dark:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ----- Prose blocks ----------------------------------------------------- */
.prose p {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
  max-width: 64ch;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 60ch;
  margin-bottom: 3rem;
  line-height: 1.65;
}

/* ----- Service cards ---------------------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* 4-card grid (home services preview): 4 → 2 → 1 across breakpoints */
.service-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .service-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .service-grid-4 { grid-template-columns: 1fr; }
}

/* Compact card — title + one-line description, no bullet list */
.card-compact { padding: 1.75rem 1.5rem; }
.card-compact h3 {
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}
.card-compact p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.55;
  margin: 0;
}

/* ----- Service detail blocks (Services page) --------------------------- */
.service-detail {
  padding: 5rem 0;
}
.service-detail .section-heading { margin-bottom: 1rem; }

.service-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.service-columns-single { grid-template-columns: 1fr; }
@media (max-width: 820px) {
  .service-columns { grid-template-columns: 1fr; gap: 2rem; }
}

.service-list-heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.service-list {
  list-style: none;
  padding-left: 0;
}
.service-list li {
  padding: 0.7rem 0 0.7rem 1.5rem;
  position: relative;
  font-size: 1rem;
  border-bottom: 1px solid rgba(220, 229, 238, 0.6);
  color: var(--charcoal);
  line-height: 1.5;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 0.6rem;
  height: 2px;
  background: var(--amber);
}

/* Two-column variant for long single-list services */
.service-list-two-col {
  columns: 2;
  column-gap: 2.5rem;
}
.service-list-two-col li {
  break-inside: avoid;
}
@media (max-width: 720px) {
  .service-list-two-col { columns: 1; }
}

.card {
  background: var(--white);
  padding: 2.25rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--amber);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(15, 41, 66, 0.08);
}

.card h3 {
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.card ul {
  list-style: none;
  padding-left: 0;
}

.card li {
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
  font-size: 0.97rem;
  border-bottom: 1px solid var(--cream-deep);
  color: var(--charcoal);
  line-height: 1.5;
}
.card li:last-child { border-bottom: none; }

.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 0.55rem;
  height: 2px;
  background: var(--amber);
}

/* ----- "How I Work" --------------------------------------------------- */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.principle {
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--amber);
}

.principle h4 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.principle p {
  font-size: 0.97rem;
  color: var(--gray);
  margin: 0;
}

/* ----- About ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2.5fr 1.3fr;   /* headshot | bio | credentials */
  gap: 3rem;
  align-items: start;
}

/* Headshot — actual <img> styling (used when headshot.jpg exists) */
.headshot-wrap {
  width: 100%;
  position: relative;
}
.headshot-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  box-shadow: 0 8px 24px rgba(15, 76, 124, 0.12);
}

/* Headshot placeholder — shown only if headshot.jpg is missing */
.headshot-placeholder {
  background: var(--cream-deep);
  border: 2px dashed var(--border);
  aspect-ratio: 4 / 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--gray);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.represent-list {
  list-style: none;
  padding-left: 0;
  margin-top: 1.5rem;
}
.represent-list li {
  padding: 0.85rem 0 0.85rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 1.02rem;
}
.represent-list li:last-child { border-bottom: none; }
.represent-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.7rem;
  height: 2px;
  background: var(--amber);
}

/* ----- Credentials sidebar (right column inside about-grid) ----------- */
.about-credentials {
  padding-top: 0.25rem;
}

.about-credentials .section-eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}

.about-credentials .credential-block {
  margin-bottom: 1.75rem;
}
.about-credentials .credential-block:last-child {
  margin-bottom: 0;
}

.about-credentials .credential-block h4 {
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
}

.about-credentials .credential-block li {
  font-size: 0.95rem;
  padding: 0.3rem 0;
  line-height: 1.45;
}

/* ----- Credentials grid (legacy — kept in case used elsewhere) -------- */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem 3rem;
  margin-top: 2rem;
}

.credential-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
}

.credential-block ul {
  list-style: none;
  padding-left: 0;
}

.credential-block li {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.5;
  padding: 0.4rem 0;
}

.credential-meta {
  font-size: 0.85rem;
  color: var(--gray);
  font-style: italic;
}

/* ----- Testimonial ------------------------------------------------------ */
.testimonial { padding: 1rem 0; }

/* When the testimonial is embedded inside another section (e.g., the
   "Why Clients Work With Me" section on the home page) we add breathing
   room above and a subtle top divider so it feels like a distinct beat
   without losing the connection to the section. */
.testimonial-inline {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.testimonial .section-eyebrow {
  display: block;
  margin-bottom: 2rem;
}

.testimonial-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.55;
  color: var(--navy);
  font-style: italic;
  font-weight: 500;
  margin: 0 0 1.75rem 0;
  position: relative;
  padding-left: 3rem;
  padding-top: 0.5rem;
}

.testimonial-quote::before {
  content: '\201C';                    /* curly open-quote */
  position: absolute;
  left: -0.25rem;
  top: -1.25rem;
  font-size: 5.5rem;
  color: var(--amber);
  font-style: normal;
  line-height: 1;
  font-family: 'Playfair Display', Georgia, serif;
}

/* Pulled-out keywords inside the testimonial quote */
.testimonial-keyword {
  color: var(--amber-deep);
  font-weight: 700;
  font-style: italic;
}

.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-style: normal;
  padding-left: 3rem;
  border-left: 2px solid var(--amber);
  margin-left: 0;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.testimonial-role {
  font-size: 0.92rem;
  color: var(--gray);
}

@media (max-width: 600px) {
  .testimonial-quote { padding-left: 2rem; }
  .testimonial-quote::before { font-size: 4rem; top: -0.85rem; }
  .testimonial-attr { padding-left: 1rem; }
}

/* ----- Standalone emphasized disclaimer (footer) ----------------------- */
.disclaimer-emphasis {
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(250, 247, 242, 0.85);
  font-style: italic;
}

/* ----- Closing / contact CTA -------------------------------------------- */
.cta-block {
  text-align: center;
  padding: 5rem 2rem;
}
.cta-block h2 {
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.cta-block p {
  color: rgba(250, 247, 242, 0.85);
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto 2rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 1rem;
}
.contact-info a {
  color: var(--cream);
  border-bottom: 1px solid rgba(232, 163, 61, 0.4);
  padding-bottom: 2px;
  font-weight: 500;
}
.contact-info a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.contact-info-light a {
  color: var(--navy);
  border-bottom-color: var(--amber);
}
.contact-info-light a:hover { color: var(--amber-deep); }

/* ----- Contact page: prominent disclaimer notice ---------------------- */
.contact-notice-section {
  padding: 3rem 0 1.5rem;
}

.contact-notice {
  background: rgba(232, 163, 61, 0.07);
  border-left: 4px solid var(--amber);
  padding: 1.75rem 2rem;
  border-radius: 0 4px 4px 0;
  margin: 0;
}

.contact-notice p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--charcoal);
  margin-bottom: 1rem;
  max-width: none;
}
.contact-notice p:last-child { margin-bottom: 0; }

.contact-notice strong {
  color: var(--navy);
  font-weight: 700;
}

/* ----- Contact list (Contact page definition list) -------------------- */
.contact-list {
  margin: 0;
  padding: 0;
}
.contact-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:first-child { border-top: 1px solid var(--border); }

.contact-row dt {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
}
.contact-row dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--charcoal);
}
.contact-row dd a {
  color: var(--navy);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 2px;
}
.contact-row dd a:hover {
  color: var(--amber-deep);
}
@media (max-width: 600px) {
  .contact-row {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

/* ----- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(250, 247, 242, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h4 {
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1.25rem;
}

.footer-logo-img {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 820px) {
  .footer-logo-img { height: 64px; }
}

.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 36ch;
  color: rgba(250, 247, 242, 0.7);
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.6rem; }
.site-footer a { color: rgba(250, 247, 242, 0.75); }
.site-footer a:hover { color: var(--amber); }

.footer-disclaimers {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(250, 247, 242, 0.55);
}

.attorney-advertising {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.9);
  font-size: 0.72rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(232, 163, 61, 0.35);
  border-radius: 2px;
}

.disclaimer-text { margin-bottom: 0.75rem; max-width: 92ch; }

.footer-bottom {
  margin-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(250, 247, 242, 0.5);
}

/* ----- Responsive ------------------------------------------------------- */
@media (max-width: 820px) {
  .header-inner {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }
  .logo-img { height: 60px; }
  .site-nav ul {
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .page-header { padding: 3.5rem 0 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .container, .container-narrow { padding: 0 1.25rem; }
  .footer-bottom { flex-direction: column; }
}
