
:root {
  --navy: #0D1B2A;
  --navy-soft: #243B55;
  --mist: #EAF2F8;
  --mist-2: #F7FBFE;
  --white: #FFFFFF;
  --grey: #4E565E;
  --silver: #B9C1C9;
  --line: #DCE5ED;
  --shadow: rgba(13, 27, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--grey);
  background: var(--white);
  line-height: 1.78;
  font-size: 17px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 { font-size: clamp(3.4rem, 8vw, 7rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2.15rem, 4vw, 3.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 18px; }

a { color: var(--navy); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 5vw;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.32rem;
  white-space: nowrap;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 50%;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  font-size: 1.02rem;
}

nav a {
  text-decoration: none;
  color: var(--navy-soft);
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero {
  min-height: calc(100vh - 109px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 4.5vw;
  align-items: center;
  padding: 64px 5vw;
  background: linear-gradient(115deg, var(--white) 0%, var(--mist-2) 52%, var(--mist) 100%);
  overflow: hidden;
}

.hero-copy {
  max-width: 620px;
  padding: 24px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  margin-bottom: 18px;
  color: var(--navy-soft);
}

.hero-opening {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy-soft);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  margin-bottom: 18px;
}

.hero-line {
  font-size: 1.15rem;
  max-width: 540px;
}

.scroll-cue {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: 24px;
  border: 1px solid var(--silver);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  color: var(--navy);
  background: rgba(255,255,255,0.75);
}

.hero-photo {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.hero-photo img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  object-position: center;
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(13,27,42,0.18);
  border: 1px solid rgba(255,255,255,0.78);
}

.section {
  padding: 92px 5vw;
}

.soft {
  background: var(--mist-2);
}

.container {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(820px, 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.portrait-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 26px;
  box-shadow: 0 18px 50px var(--shadow);
}

.portrait-card img {
  width: 100%;
  display: block;
  border-radius: 26px;
  object-fit: cover;
  background: var(--mist);
}

.credentials {
  margin-top: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 18px 50px var(--shadow);
}

.section-note {
  font-size: 1.25rem;
  color: var(--navy-soft);
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 28px;
}

blockquote {
  margin: 34px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--silver);
  background: var(--mist);
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  border-radius: 0 18px 18px 0;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0;
}

.values div,
.feature-box {
  background: var(--mist-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
}

.feature-box {
  margin: 34px 0;
}

.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  padding-left: 22px;
  margin: 26px 0 30px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.55fr);
  gap: 42px;
  align-items: start;
}

.contact-options {
  margin: 28px 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.line-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 18px 50px var(--shadow);
  text-align: center;
}

.line-card img {
  width: 68%;
  max-width: 190px;
  min-width: 135px;
  display: block;
  margin: 18px auto 0;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.small-note {
  font-size: 0.9rem;
  margin-top: 12px;
  color: #68727c;
}

.emergency {
  background: var(--navy);
  color: rgba(255,255,255,0.86);
  padding: 52px 5vw;
}

.emergency h2 {
  color: var(--white);
}

footer {
  text-align: center;
  padding: 42px 5vw;
  background: #07111d;
  color: rgba(255,255,255,0.78);
  font-size: 0.95rem;
}

footer p {
  margin-bottom: 8px;
}

.reveal {
  animation: softReveal 900ms ease both;
}

@keyframes softReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1050px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .hero-photo img {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .brand img {
    width: 62px;
    height: 62px;
  }

  .about-grid,
  .contact,
  .values,
  .list {
    grid-template-columns: 1fr;
  }

  .line-card img {
    width: 58%;
    max-width: 170px;
  }

  .section {
    padding: 66px 6vw;
  }
}


/* zip4 refinements */
.portrait-card { background: linear-gradient(145deg, #EAF2F8, #F7FBFE); }
.portrait-card img { object-position: center top; }
.line-card img { width: 62%; max-width: 165px; }
.contact { grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.5fr); }
.feature-box h3 { margin-bottom: 14px; }
@media (max-width: 900px) {
  .line-card img { width: 55%; max-width: 150px; }
}


/* zip5 refinements */
.brand img {
  width: 96px !important;
  height: 96px !important;
  filter: drop-shadow(0 0 1px rgba(13,27,42,0.25)) drop-shadow(0 8px 18px rgba(13,27,42,0.12));
}

.brand {
  gap: 14px !important;
}

.site-header {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.line-card {
  max-width: 320px;
  margin-left: auto;
}

.line-card img {
  width: 50% !important;
  max-width: 125px !important;
  min-width: 105px !important;
}

.contact {
  grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.45fr) !important;
}

.contact-options {
  max-width: 760px;
}

#contact blockquote {
  margin-top: 38px;
  font-size: 1.34rem;
  background: #ffffff;
}

@media (max-width: 1050px) {
  .brand img {
    width: 78px !important;
    height: 78px !important;
  }
}

@media (max-width: 900px) {
  .line-card {
    max-width: 100%;
    margin-left: 0;
  }
  .line-card img {
    width: 42% !important;
    max-width: 115px !important;
  }
}


/* zip6 layout refinements */
.brand img {
  width: 104px !important;
  height: 104px !important;
  filter: drop-shadow(0 0 1px rgba(13,27,42,0.35)) drop-shadow(0 8px 18px rgba(13,27,42,0.13));
}

.brand {
  gap: 10px !important;
}

.site-header {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.about-grid {
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 0.58fr) !important;
  gap: 64px !important;
  align-items: start !important;
}

.portrait-card {
  margin-top: 34px !important;
  background: linear-gradient(145deg, #EAF2F8, #F7FBFE) !important;
  max-width: 410px;
}

.portrait-card img {
  object-position: center top;
}

#about p {
  line-height: 1.88;
}

.credentials {
  margin-top: 56px !important;
}

.line-card {
  max-width: 300px;
  margin-left: auto;
}

.line-card img {
  width: 50% !important;
  max-width: 120px !important;
  min-width: 100px !important;
}

.contact {
  grid-template-columns: minmax(0, 1.48fr) minmax(200px, 0.42fr) !important;
}

#contact blockquote {
  margin-top: 42px;
  font-size: 1.36rem;
  background: #ffffff;
}

@media (max-width: 1050px) {
  .brand img {
    width: 82px !important;
    height: 82px !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 34px !important;
  }

  .portrait-card {
    margin-top: 0 !important;
    max-width: 360px;
  }
}

@media (max-width: 900px) {
  .line-card {
    max-width: 100%;
    margin-left: 0;
  }
  .line-card img {
    width: 42% !important;
    max-width: 110px !important;
  }
}


/* zip11 FAQ section */
.faq-section {
  background: var(--white);
}

#faq h3 {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

#faq h3:first-of-type {
  border-top: none;
  padding-top: 0;
}

#faq ul {
  margin-top: 0;
  margin-bottom: 22px;
}


/* ZIP15: final header B direction, homepage polish, About-page polish */

/* Header B final: logo only, centred, navigation below */
.header-b-final {
  position: sticky !important;
  top: 0;
  z-index: 50;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 5vw 12px !important;
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: 0 8px 28px rgba(13, 27, 42, 0.055);
}

.header-b-final .brand {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  line-height: 1 !important;
}

.header-b-final .brand img {
  width: 118px !important;
  height: 118px !important;
  object-fit: contain !important;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 1px rgba(13,27,42,0.35)) drop-shadow(0 10px 22px rgba(13,27,42,0.14));
}

.header-b-final nav {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 28px !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  padding-top: 4px;
}

.header-b-final nav a {
  color: var(--navy-soft) !important;
  text-decoration: none !important;
  font-weight: 400 !important;
  opacity: 0.94;
}

.header-b-final nav a:hover {
  opacity: 1;
  text-decoration: underline !important;
}

/* Homepage hero polish */
.hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1.18fr) !important;
  gap: 5.5vw !important;
  padding-top: 72px !important;
  padding-bottom: 78px !important;
}

.hero-copy {
  max-width: 560px !important;
}

.hero .hero-opening {
  margin-top: 28px !important;
  margin-bottom: 20px !important;
}

.hero-line {
  max-width: 500px !important;
}

.hero-photo img {
  width: 100% !important;
  max-height: 76vh !important;
  border-radius: 32px !important;
  box-shadow: 0 30px 84px rgba(13, 27, 42, 0.18) !important;
  filter: saturate(1.04) contrast(1.03) brightness(1.01);
}

.scroll-cue {
  margin-top: 34px !important;
  border-color: #B9C1C9 !important;
  background: rgba(255,255,255,0.7) !important;
}

/* About page polish */
.about-grid {
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr) !important;
  gap: 70px !important;
  align-items: start !important;
}

.portrait-card {
  margin-top: 42px !important;
  padding: 16px !important;
  max-width: 440px !important;
  background: linear-gradient(145deg, #EAF2F8, #F8FBFE) !important;
  border-radius: 30px !important;
  box-shadow: 0 18px 48px rgba(13, 27, 42, 0.09) !important;
}

.portrait-card img {
  border-radius: 24px !important;
  object-position: center top !important;
}

#about .about-grid p {
  max-width: 740px;
  line-height: 1.9 !important;
}

#about .section-note {
  margin-bottom: 34px !important;
}

#about .credentials {
  padding: 42px !important;
  margin-top: 64px !important;
  border-radius: 28px !important;
}

#about .credentials p {
  margin-bottom: 26px !important;
}

#about .credentials p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 1050px) {
  .header-b-final .brand img {
    width: 92px !important;
    height: 92px !important;
  }

  .header-b-final nav {
    flex-wrap: wrap;
    gap: 18px !important;
    font-size: 0.93rem !important;
  }

  .hero {
    grid-template-columns: 1fr !important;
    padding-top: 54px !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .portrait-card {
    margin-top: 0 !important;
    max-width: 380px !important;
  }
}

@media (max-width: 700px) {
  .header-b-final {
    padding: 12px 5vw 10px !important;
  }

  .header-b-final .brand img {
    width: 78px !important;
    height: 78px !important;
  }

  .header-b-final nav {
    gap: 14px !important;
    font-size: 0.88rem !important;
  }

  .hero {
    padding-top: 40px !important;
    padding-bottom: 56px !important;
  }

  .hero-photo img {
    border-radius: 24px !important;
  }

  .portrait-card {
    max-width: 100% !important;
  }
}


/* ZIP16 FAQ accordion */
.faq-accordion {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.faq-accordion details {
  background: var(--mist-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 12px 34px rgba(13, 27, 42, 0.055);
  overflow: hidden;
}

.faq-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.35;
  position: relative;
  padding-right: 58px;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "+";
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--navy-soft);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.faq-accordion details[open] summary::after {
  content: "–";
}

.faq-answer {
  padding: 0 26px 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.faq-answer p:first-child,
.faq-answer ul:first-child {
  margin-top: 22px;
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .faq-accordion summary {
    font-size: 1.08rem;
    padding: 18px 22px;
    padding-right: 50px;
  }

  .faq-answer {
    padding: 0 22px 22px;
  }
}


/* ZIP17 visual consistency pass */
:root {
  --radius-lg: 30px;
  --radius-md: 22px;
  --soft-shadow: 0 18px 48px rgba(13, 27, 42, 0.08);
  --card-border: 1px solid var(--line);
}

/* Smooth section rhythm */
.section {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

.container.narrow {
  max-width: 820px;
}

/* Consistent cards */
.card,
.credentials,
.feature-box,
.contact-options,
.line-card,
.faq-accordion details {
  border-radius: var(--radius-md) !important;
  border: var(--card-border) !important;
  box-shadow: var(--soft-shadow) !important;
}

.feature-box {
  background: #ffffff !important;
}

.soft .feature-box {
  background: #ffffff !important;
}

/* Text comfort */
.narrow p,
.about-grid p,
.feature-box p,
.faq-answer p {
  line-height: 1.84;
}

.section-note {
  line-height: 1.5 !important;
}

/* Heading spacing */
.section h2 {
  margin-bottom: 20px !important;
}

.section h3 {
  margin-top: 0;
}

/* Welcome quote panel */
#welcome-message blockquote {
  text-align: center;
  border-left: none !important;
  border-radius: var(--radius-lg) !important;
  padding: 30px 34px !important;
  font-size: 1.42rem !important;
  box-shadow: 0 16px 42px rgba(13, 27, 42, 0.06);
}

/* Contact section balance */
#contact .contact-options p {
  margin-bottom: 12px;
}

#contact .contact-options p:last-child {
  margin-bottom: 0;
}

.line-card {
  align-self: start;
}

/* FAQ polish */
.faq-section .section-note {
  margin-bottom: 36px !important;
}

.faq-accordion details[open] {
  background: #ffffff !important;
}

.faq-accordion summary {
  transition: background 180ms ease;
}

.faq-accordion summary:hover {
  background: rgba(234, 242, 248, 0.55);
}

/* Footer feels calmer */
footer {
  padding-top: 50px !important;
  padding-bottom: 50px !important;
}

/* Mobile comfort */
@media (max-width: 700px) {
  .section {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  #welcome-message blockquote {
    font-size: 1.22rem !important;
    padding: 24px 24px !important;
  }

  .card,
  .credentials,
  .feature-box,
  .contact-options,
  .line-card {
    padding: 24px !important;
  }
}


/* ZIP18 nine-bookmark implementation */
.header-b-final .brand img {
  width: 132px !important;
  height: 132px !important;
}
.issues-bridge {
  margin-top: 34px;
  margin-bottom: 22px;
  color: var(--navy);
}
.about-heading {
  margin-bottom: 34px !important;
}
#about .credentials {
  margin-top: 0 !important;
  margin-bottom: 66px !important;
}
#about .about-story {
  margin-top: 0 !important;
}
#about .about-story h3 {
  margin-bottom: 22px;
}
#contact .section-note {
  max-width: 820px;
  margin-bottom: 34px !important;
}
#contact .contact-options + p {
  margin-top: 30px !important;
}
@media (max-width: 700px) {
  .header-b-final .brand img {
    width: 92px !important;
    height: 92px !important;
  }
}


/* ZIP19 launch-candidate corrections */
#about > .container:first-child,
#about .section-heading {
  text-align: center;
}

#about > .container:first-child .section-note,
#about .section-heading .section-note {
  margin-left: auto;
  margin-right: auto;
}

/* ZIP21: Bookmark 1, stronger hero label, auto-hiding navigation */
.header-b-final {
  transition: transform 320ms ease, box-shadow 220ms ease !important;
  will-change: transform;
}

.header-b-final.header-hidden {
  transform: translateY(-102%);
  box-shadow: none !important;
}

.hero .eyebrow {
  font-size: 1.08rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.18em !important;
  margin-bottom: 20px !important;
}

.hero-photo {
  justify-content: center;
}

/* Bookmark 1: display the wooden hero image 30% smaller */
.hero-photo img {
  width: 70% !important;
  max-height: 64vh !important;
}

@media (max-width: 1050px) {
  .hero-photo img {
    width: 82% !important;
    max-height: none !important;
  }
}

@media (max-width: 700px) {
  .hero .eyebrow {
    font-size: 0.98rem !important;
    letter-spacing: 0.16em !important;
  }

  .hero-photo img {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-b-final {
    transition: none !important;
  }
}


/* ZIP22 launch readiness */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(13, 27, 42, 0.16);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #5b7c99;
  outline-offset: 3px;
}

/* ZIP25: mobile contact-section correction */
@media (max-width: 900px) {
  #contact .contact {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
  }

  #contact .contact > div {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  #contact .contact-options {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  #contact .contact-options a,
  #contact blockquote {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #contact blockquote {
    width: 100% !important;
    box-sizing: border-box;
    margin: 32px 0 0 !important;
    padding: 26px !important;
    font-size: 1.18rem !important;
    line-height: 1.55 !important;
  }

  #contact .line-card {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    box-sizing: border-box;
  }
}

@media (max-width: 520px) {
  #contact .contact {
    gap: 24px !important;
  }

  #contact .contact-options,
  #contact .line-card,
  #contact blockquote {
    padding: 22px !important;
  }

  #contact blockquote {
    font-size: 1.08rem !important;
  }
}
