/* ===============================
   Probate People - Full CSS
   =============================== */

:root {
  --navy: #1C2A3A;
  --navy-dark: #162231;
  --bg: #F7F8F9;
  --light: #E9EDF2;
  --text: #1C2A3A;
  --muted: #4A637D;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============================
   Header
   =============================== */

.site-header {
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
  position: relative;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}

.logo-wrap,
.logo-wrap:visited,
.logo-wrap:hover,
.logo-wrap:active {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}

.logo {
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
    /* makes a dark logo appear white on a dark header */
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 6px 0;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 10px;
  flex: 0 0 auto;
}

/* ===============================
   Hero
   =============================== */

.hero {
  padding: 60px 0;
  background: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 18px 0;
}

.hero-text p {
  margin: 0 0 14px 0;
}

.hero-buttons {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.caption {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  color: var(--muted);
}

/* ===============================
   Sections
   =============================== */

.section {
  padding: 60px 0;
}

.section.light {
  background: var(--light);
}

h2 {
  margin: 0 0 18px 0;
  font-size: 26px;
}

h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Advisory block */
.advisor {
  text-align: center;
}

.advisor img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 15px auto;
}

/* ===============================
   Buttons
   =============================== */

.btn {
  display: inline-block;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid var(--navy);
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: rgba(28, 42, 58, 0.06);
}

/* ===============================
   Footer
   =============================== */

.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
}

.footer-inner {
  display: block;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.disclaimer {
  margin-top: 20px;
  font-size: 14px;
  opacity: 0.9;
}

/* ===============================
   Responsive
   =============================== */

@media screen and (max-width: 1000px) {
  .hero-text h1 {
    font-size: 34px;
  }
}

@media screen and (max-width: 900px) {

  /* Header */
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none; /* hidden until toggled */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 20px 18px 20px;
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
  }

  /* Hero */
  .hero {
    padding: 40px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-image img {
    max-width: 560px;
    margin: 0 auto;
  }

  /* Buttons: centred, stacked, no cut-off */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-outline {
    width: 100%;
    max-width: 340px;
    text-align: center;
  }

  /* Sections */
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .advisor img {
    width: 180px;
    height: 180px;
  }

  /* Footer */
  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  .logo {
    width: 160px;
  }

  .advisor img {
    width: 160px;
    height: 160px;
  }
}