/* ============================================================
   PROBATE WEBSITE — Main Stylesheet
   Colors: navy #1a2b4c | gold #c9a227 | cream #f8f4e8
   Font: Georgia serif
   ============================================================ */

:root {
  --navy:   #1a2b4c;
  --gold:   #c9a227;
  --cream:  #f8f4e8;
  --white:  #ffffff;
  --text:   #2c2c2c;
  --border: #cfd8e8;
  --sidebar-w: 240px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  color: var(--text);
  background: #ffffff;
  font-size: 16px;
  line-height: 1.75;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.site-wrapper {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0; /* prevent flex overflow */
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--navy);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 200;
}

.sidebar-header {
  padding: 22px 16px 18px;
  border-bottom: 2px solid var(--gold);
  text-align: center;
}

.sidebar-exp-logo {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  /* white backing so JPEG logo is legible on dark sidebar */
  background: white;
  padding: 4px 8px;
  border-radius: 3px;
}

.sidebar-site-name {
  color: var(--white);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.45;
  opacity: 0.85;
}

.sidebar-nav {
  padding: 14px 0 20px;
  flex: 1;
}

.sidebar-nav a {
  display: block;
  color: #b8c4d8;
  text-decoration: none;
  padding: 11px 18px;
  font-size: 14.5px;
  border-left: 3px solid transparent;
  line-height: 1.35;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.sidebar-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
  border-left-color: var(--gold);
}

.sidebar-nav a.active {
  color: var(--white);
  background: rgba(201,162,39,0.14);
  border-left-color: var(--gold);
  font-weight: bold;
}

/* Schedule nav item — styled as button */
.sidebar-nav a.nav-schedule {
  margin: 12px 16px 0;
  padding: 11px 14px;
  background: var(--gold);
  color: var(--navy);
  border-left: none;
  border-radius: 3px;
  font-weight: bold;
  text-align: center;
  font-size: 14px;
}

.sidebar-nav a.nav-schedule:hover {
  background: #b8911f;
  color: var(--navy);
  border-left: none;
}

.sidebar-nav a.nav-schedule.active {
  background: #b8911f;
  color: var(--navy);
  border-left: none;
}

/* ============================================================
   HAMBURGER BUTTON (mobile only)
   ============================================================ */

.hamburger-btn {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1300;
  background: var(--navy);
  border: none;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 3px;
  line-height: 0;
}

.hamburger-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.2s;
}

.hamburger-btn[aria-expanded="true"] .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-btn[aria-expanded="true"] .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE OVERLAY
   ============================================================ */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 1100;
}

.sidebar-overlay.visible {
  display: block;
}

/* ============================================================
   STICKY SCHEDULE CTA (bottom-right, all pages)
   ============================================================ */

.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy);
  padding: 13px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.28);
  line-height: 1.35;
  text-align: center;
  transition: background 0.15s;
}

.sticky-cta:hover {
  background: #b8911f;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.main-content {
  flex: 1;
  padding: 44px 52px 56px;
  max-width: 820px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 26px;
  font-weight: bold;
  line-height: 1.2;
}

h2.section-bar {
  font-size: 0.95rem;
  color: var(--white);
  background: var(--navy);
  padding: 10px 16px;
  margin: 32px 0 0;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

.subhead-intro {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 28px;
  font-style: italic;
  line-height: 1.7;
}

/* ============================================================
   SECTION BOXES
   ============================================================ */

.section-box {
  border: 1px solid var(--border);
  margin-bottom: 28px;
  background: var(--white);
}

.box-header {
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.box-header.gold {
  background: var(--gold);
  color: var(--navy);
}

.box-body {
  padding: 18px 20px;
}

/* ============================================================
   CALLOUT
   ============================================================ */

.callout {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  margin: 22px 0;
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.7;
}

/* ============================================================
   TRUST BAR (Home page)
   ============================================================ */

.trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--cream);
  border: 1px solid #d8d0b8;
  padding: 16px 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.trust-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  border: 2px solid var(--gold);
  display: block;
}

.trust-exp-logo {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
  align-self: center;
}

.trust-info {
  font-size: 13.5px;
  color: #444;
  line-height: 1.6;
}

.gold-stars {
  color: var(--gold);
  font-size: 19px;
  letter-spacing: 2px;
  display: block;
}

.trust-contact-link {
  color: var(--navy);
  text-decoration: none;
  font-size: 13.5px;
}

.trust-contact-link:hover {
  text-decoration: underline;
}

/* ============================================================
   VIDEO EMBED (responsive 16:9)
   ============================================================ */

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 24px 0;
  border-radius: 3px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-row {
  margin: 28px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  border: 2px solid transparent;
  line-height: 1.3;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-primary:hover {
  background: #253c6a;
  border-color: #253c6a;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #b8911f;
  border-color: #b8911f;
}

/* ============================================================
   BULLET LISTS
   ============================================================ */

ul.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

ul.bullet-list li {
  padding: 7px 0 7px 22px;
  position: relative;
  border-bottom: 1px solid #eef0f4;
  font-size: 15px;
  line-height: 1.55;
}

ul.bullet-list li:last-child {
  border-bottom: none;
}

ul.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   DEFINITION LIST (term: description)
   ============================================================ */

.def-list {
  margin: 0;
  padding: 0;
}

.def-list dt {
  font-weight: bold;
  color: var(--navy);
  margin-top: 14px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.def-list dt:first-child {
  margin-top: 0;
}

.def-list dd {
  margin: 3px 0 0;
  padding: 0;
  font-size: 15px;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f4;
  align-items: flex-start;
}

.timeline li:last-child {
  border-bottom: none;
}

.time-label {
  background: var(--navy);
  color: var(--white);
  font-size: 12.5px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  text-align: center;
  align-self: center;
}

.time-desc {
  font-size: 15px;
  padding-top: 2px;
}

/* ============================================================
   FAQ
   ============================================================ */

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.faq-q {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-weight: bold;
  font-size: 15px;
  line-height: 1.4;
}

.faq-a {
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.75;
  background: var(--white);
}

/* ============================================================
   OPTIONS CARDS
   ============================================================ */

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.option-card {
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.option-card .card-header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-weight: bold;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.option-card .card-body {
  padding: 16px;
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}

/* ============================================================
   PROTECTING THE PROPERTY CARDS
   ============================================================ */

.protect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.protect-card {
  border: 1px solid var(--border);
}

.protect-card .card-header {
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  font-weight: bold;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.protect-card .card-body {
  padding: 16px;
  font-size: 15px;
  line-height: 1.68;
}

/* ============================================================
   TESTATE / INTESTATE SCENARIO GRID (process page)
   ============================================================ */

.scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

/* ============================================================
   LEARN MORE ACCORDION
   ============================================================ */

.learn-more-wrap {
  margin: 0 0 28px;
}

.learn-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  /* comfortable tap target on mobile */
  min-height: 44px;
}

.learn-more-toggle:hover {
  background: var(--gold);
  color: var(--navy);
}

.toggle-arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.learn-more-toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(90deg);
}

.learn-more-panel {
  display: none;
  margin-top: 10px;
  padding: 18px 20px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  font-size: 15px;
  line-height: 1.72;
}

.learn-more-panel.open {
  display: block;
}

.learn-more-panel p {
  margin-bottom: 14px;
}

.learn-more-panel p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   RESOURCES
   ============================================================ */

.resource-item {
  border: 1px solid var(--border);
  margin-bottom: 16px;
  display: flex;
}

.resource-label {
  background: var(--gold);
  color: var(--navy);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  padding: 16px 8px;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.resource-body {
  padding: 16px 20px;
  flex: 1;
}

.resource-body h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: bold;
}

.resource-body p {
  margin: 0;
  font-size: 15px;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-photo {
  width: 280px;
  height: auto;
  border-radius: 5px;
  float: left;
  margin: 0 32px 20px 0;
  display: block;
}

.clearfix::after {
  content: '';
  display: table;
  clear: both;
}

.star-rating {
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 3px;
  margin: 8px 0 4px;
  display: block;
}

.license-line {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

/* ============================================================
   SCHEDULE PAGE
   ============================================================ */

.booking-embed {
  margin: 24px 0 0;
  width: 100%;
  /* keeps iframe from creating horizontal scroll on narrow viewports */
  overflow: hidden;
}

.booking-embed iframe {
  width: 100%;
  height: 680px;
  border: none;
  display: block;
}

.booking-fallback {
  margin: 10px 0 24px;
  font-size: 13.5px;
}

.booking-fallback a {
  color: var(--navy);
  text-decoration: underline;
}

.booking-fallback a:hover {
  color: var(--gold);
}

@media (max-width: 767px) {
  .booking-embed iframe {
    height: 650px;
  }
}

.contact-line {
  font-size: 15.5px;
  color: var(--navy);
  font-style: italic;
  margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--navy);
  color: #b8c4d8;
  text-align: center;
  padding: 22px 24px;
  font-size: 13px;
  line-height: 1.85;
}

.footer-logo-wrap {
  height: 22px;
  width: auto;
  vertical-align: middle;
  margin: 0 6px;
  display: inline-block;
  /* white backing so JPEG logo reads on navy footer */
  background: white;
  padding: 2px 5px;
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE — TABLET (768–1024px)
   ============================================================ */

@media (max-width: 1024px) {
  :root {
    --sidebar-w: 210px;
  }

  .main-content {
    padding: 36px 36px 48px;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (<768px)
   ============================================================ */

@media (max-width: 767px) {

  /* Show hamburger */
  .hamburger-btn {
    display: block;
  }

  /* Sidebar slides in from left */
  .sidebar {
    position: fixed;
    left: -270px;
    top: 0;
    height: 100%;
    width: 260px;
    transition: left 0.25s ease;
    z-index: 1200;
  }

  .sidebar.open {
    left: 0;
  }

  /* Main content full width, offset for top bar */
  .main-content {
    padding: 58px 18px 40px;
    max-width: 100%;
  }

  h1 {
    font-size: 1.45rem;
  }

  /* Trust bar stacks */
  .trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Options stacks to single column */
  .options-grid {
    grid-template-columns: 1fr;
  }

  /* Protect cards stack */
  .protect-grid {
    grid-template-columns: 1fr;
  }

  /* Scenario grid (testate/intestate) stacks */
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  /* About photo — stack below text on mobile */
  .about-photo {
    float: none;
    margin: 0 0 20px;
    width: 180px;
    height: auto;
  }

  /* Resource vertical label hidden on mobile, replaced by header */
  .resource-label {
    display: none;
  }

  .resource-item {
    flex-direction: column;
  }

  /* Sticky CTA smaller */
  .sticky-cta {
    bottom: 14px;
    right: 14px;
    font-size: 13px;
    padding: 11px 15px;
  }

  .btn-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    text-align: center;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.25rem;
  }

  .main-content {
    padding: 54px 14px 36px;
  }

  .sidebar-nav a {
    font-size: 14px;
    padding: 12px 16px;
  }
}
