/* ==========================================================================
   Bishop Warden — site stylesheet
   Brand: base #e9e5e8, highlight #b66456
   ========================================================================== */

:root {
  --base: #e9e5e8;
  --base-soft: #f5f2f4;
  --accent: #b66456;
  --accent-dark: #9a4f42;
  --accent-light: #cf8e82;
  --charcoal: #3c3336;
  --charcoal-deep: #2d2628;
  --ink: #3a3336;
  --muted: #756a6e;
  --white: #ffffff;
  --line: #d9d3d6;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(60, 51, 54, 0.08);
  --font-heading: Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--charcoal);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

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

a { color: var(--accent-dark); }

img { max-width: 100%; height: auto; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow {
  max-width: 780px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  text-decoration: none;
  display: block;
}

.brand-logo {
  display: block;
  height: 42px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-phone {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  font-weight: 600 !important;
  white-space: nowrap;
}

.nav-phone:hover {
  background: var(--accent-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--charcoal);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  background: var(--base);
  color: var(--charcoal);
  padding: 5.2rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(182, 100, 86, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -200px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(60, 51, 54, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  color: var(--charcoal);
  max-width: 22ch;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink);
  max-width: 52ch;
  margin: 1.25rem 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Home hero — seascape image with a soft wash for text legibility */
.hero-home {
  background-image:
    linear-gradient(90deg,
      rgba(233, 229, 232, 0.94) 0%,
      rgba(233, 229, 232, 0.82) 42%,
      rgba(233, 229, 232, 0.25) 75%,
      rgba(233, 229, 232, 0.05) 100%),
    url("../images/seascape-lighthouse.jpg");
  background-size: cover;
  background-position: center 65%;
  padding: 6.6rem 0 6.5rem;
}

.hero-home::before,
.hero-home::after {
  display: none;
}

/* Page hero (inner pages) */
.hero.hero-page {
  padding: 4rem 0 3.6rem;
}

/* Wide hero text: heading and lede run the full container width */
.hero-wide h1,
.hero-wide .lede {
  max-width: none;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--base-soft);
}

.section-intro {
  margin-bottom: 2.25rem;
}

.section h2 {
  margin-bottom: 1rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.7rem;
}

.card .card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.75rem;
  align-self: flex-start;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.card .card-link:hover {
  color: var(--accent-dark);
}

/* Benefit list */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.benefit {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}

.benefit h3 {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}

/* Accent line above the heading, matching the width of the heading text */
.benefit h3::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
  margin-bottom: 0.8rem;
}

.benefit p {
  font-size: 0.97rem;
  color: var(--muted);
}

/* Numbered process steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
  max-width: 780px;
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.2rem 4.4rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.2rem;
  top: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong {
  color: var(--charcoal);
}

/* Flowchart graphic (Process page) — image on wider screens, list on mobile */
.flowchart {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

@media (min-width: 720px) {
  .steps-mobile {
    display: none;
  }
}

@media (max-width: 719px) {
  .flowchart {
    display: none;
  }
}

/* Check list (validation items etc.) */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  max-width: 720px;
}

.check-list li {
  padding-left: 2rem;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.95rem;
  height: 0.55rem;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--charcoal-deep), var(--charcoal));
  color: var(--white);
  text-align: center;
  padding: 3.6rem 0;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
}

.cta-band .phone-large {
  color: var(--accent-light);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: start;
}

.contact-details h2 {
  margin-bottom: 1.25rem;
}

.contact-item {
  margin-bottom: 1.4rem;
}

.contact-item .label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-item a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
}

.contact-item a:hover {
  color: var(--accent-dark);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
}

.form-field {
  margin-bottom: 1.2rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.form-field .required {
  color: var(--accent-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c9c2c6;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 1rem;
}

.form-success {
  display: none;
  background: #eef7ee;
  border: 1px solid #b9dcb9;
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: #225622;
  margin-bottom: 1.2rem;
}

.form-success.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

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

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.footer-brand .brand-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand p {
  margin-top: 0.9rem;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav li {
    border-top: 1px solid var(--line);
  }

  .site-nav li:first-child {
    border-top: none;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 1.25rem;
    border-bottom: none;
  }

  .site-nav a[aria-current="page"] {
    border-bottom: none;
    background: var(--base-soft);
  }

  .nav-phone {
    margin: 0.6rem 1.25rem;
    text-align: center;
  }

  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding: 3.8rem 0 3.6rem;
  }

  .hero-home {
    padding: 4.6rem 0 4.5rem;
  }

  .brand-logo {
    height: 36px;
  }
}
