/* ==========================================================================
   Horseshoe Networks: site styles
   Plain CSS, no build step. Brand values live in the variables below;
   change a colour here and it updates everywhere.
   ========================================================================== */

:root {
  /* Brand colours */
  --navy: #0C2340;
  --navy-deep: #071629;   /* fact rail, footer */
  --navy-card: #0A1E37;   /* plan cards on navy */
  --gold: #C99700;
  --gold-hover: #E0B21C;
  --gold-dark: #7A5F14;   /* gold text on light backgrounds (passes contrast) */
  --cream: #F6F1E4;       /* text on navy, light cards */
  --paper: #F7F4EC;       /* page background */
  --white: #FFFFFF;
  --sand: #E9E2D0;        /* photo placeholder */
  --line: #E4DCC8;        /* borders on light backgrounds */
  --input-border: #B9AE92;
  --slate: #3D4C66;       /* body text on light backgrounds */
  --mist: #C9D2E1;        /* body text on navy */
  --gold-line: rgba(201, 151, 0, 0.35);

  /* Fonts */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-script: "Great Vibes", "Brush Script MT", cursive; /* Derek's name under his photo only */

  --radius: 6px;
  --radius-btn: 4px;
}

/* ---------- Base ---------- */

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

html {
  background: var(--navy);
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

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

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* On light backgrounds a navy focus ring is easier to see than gold */
.section:not(.section-navy) :focus-visible,
.contact-form :focus-visible {
  outline-color: var(--navy);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.container {
  width: 100%;
  max-width: 1248px; /* 1200px of content + 24px gutters */
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- Shared type ---------- */

.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-dark {
  color: var(--gold-dark);
}

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.h1 em {
  color: var(--gold);
  font-style: italic;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 16px 0 0;
}

.h2-sm {
  font-size: 44px;
  line-height: 1.1;
}

.h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin: 4px 0 0;
}

.gold {
  color: var(--gold);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-lg {
  font-size: 17px;
  padding: 16px 28px;
}

.btn-block {
  display: flex;
  width: 100%;
  padding: 14px;
}

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

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

.btn-ghost {
  border: 1px solid var(--gold);
  color: var(--cream);
  font-weight: 600;
}

.btn-ghost.btn-lg {
  padding: 15px 27px;
}

.btn-ghost:hover {
  background: rgba(201, 151, 0, 0.12);
  color: var(--cream);
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
  padding: 15px;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid var(--gold-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 16px;
}

.nav a:not(.btn),
.footer-nav a {
  color: var(--cream);
  text-decoration: none;
}

.nav a:not(.btn):hover,
.footer-nav a:hover {
  color: var(--gold);
}

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

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.04em;
  color: var(--cream);
}

.brand-sub {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

/* Phone menu (hidden on larger screens) */
.nav-menu {
  display: none;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-btn);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary:hover {
  background: rgba(201, 151, 0, 0.12);
}

/* Three-line "hamburger" icon drawn with CSS; turns into an X when open */
.nav-menu-icon,
.nav-menu-icon::before,
.nav-menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-menu-icon {
  position: relative;
}

.nav-menu-icon::before,
.nav-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-menu-icon::before { top: -6px; }
.nav-menu-icon::after { top: 6px; }

.nav-menu[open] .nav-menu-icon { background: transparent; }
.nav-menu[open] .nav-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] .nav-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 8px 24px 24px;
  list-style: none;
  background: var(--navy);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 16px 32px rgba(7, 22, 41, 0.45);
}

.nav-menu-panel a:not(.btn) {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid rgba(201, 210, 225, 0.12);
}

.nav-menu-panel .btn {
  width: 100%;
  margin-top: 20px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: calc(100% - 100px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 80px;
}

.hero-copy {
  flex: 1 1 520px;
  min-width: 0;
}

.hero-lead {
  font-size: 20px;
  color: var(--mist);
  max-width: 580px;
  margin: 0 0 40px;
}

.hero-art {
  flex: 0 1 400px;
  min-width: 240px;
  display: flex;
  justify-content: center;
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.fact-rail {
  position: relative;
  background: var(--navy-deep);
  border-top: 1px solid var(--gold-line);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  margin-block: 0;
  list-style: none;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 0;
}

.fact-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
}

.fact-title-gold {
  color: var(--gold);
}

.fact-text {
  font-size: 14px;
  color: var(--mist);
}

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

.section {
  padding-block: 112px;
}

.section-navy {
  background: var(--navy);
  color: var(--cream);
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head-split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}

.section-head-main {
  max-width: 640px;
}

.section-head-center {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-intro {
  margin: 0;
  font-size: 18px;
  color: var(--slate);
}

.section-head-split .section-intro {
  max-width: 420px;
}

.section-navy .section-intro {
  color: var(--mist);
}

.section-head-center .section-intro {
  margin-top: 16px;
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card p {
  margin: 0;
  color: var(--slate);
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}

/* ---------- Plans ---------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 36px;
  background: var(--navy-card);
  border: 1px solid rgba(201, 151, 0, 0.4);
  border-radius: var(--radius);
}

.plan-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.plan-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.plan-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.plan-price {
  margin: 0;
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold);
}

/* Wording instead of a number (e.g. "Please Contact") is set smaller so it fits on one line */
.plan-amount-text {
  display: inline-block;
  font-size: 40px;
  padding-block: 9px; /* keeps the card's height in line with the $ prices */
}

.plan-per {
  font-size: 17px;
  color: var(--mist);
}

.plan-desc {
  margin: 0;
  color: var(--mist);
}

.plan-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan-list li::before {
  content: "✓\00a0\00a0";      /* fallback for older browsers */
  content: "✓\00a0\00a0" / ""; /* "/ ''" stops screen readers announcing "check mark" */
}

/* The recommended (middle) plan */
.plan-featured {
  background: var(--cream);
  color: var(--navy);
  border: 2px solid var(--gold);
}

.plan-featured .plan-num {
  background: var(--navy);
  border: 0;
}

.plan-featured .plan-amount {
  color: var(--navy);
}

.plan-featured .plan-per,
.plan-featured .plan-desc {
  color: var(--slate);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 36px;
  margin: 0;
  padding: 6px 12px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.plans-note {
  margin: 40px 0 0;
  text-align: center;
  font-size: 15px;
  color: var(--mist);
}

.plans-note a {
  color: var(--gold);
}

.plans-note a:hover {
  color: var(--cream);
}

/* ---------- How it works ---------- */

.steps {
  position: relative;
}

/* Dashed "race track" line joining the three numbered circles */
.steps-track {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 27px;
  border-top: 2px dashed var(--gold);
}

.step-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step .h3 {
  margin-top: 8px;
}

.step p {
  margin: 0;
  color: var(--slate);
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.step-num-gold {
  background: var(--gold);
  color: var(--navy);
}

/* ---------- About ---------- */

.section-about {
  padding: 0 24px 112px;
}

.about {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Photo column: the photo on top, Derek's name on a navy nameplate underneath */
.about-photo {
  flex: 1 1 380px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--navy);
}

.about-photo-frame {
  position: relative;
  flex: 1;
  background: var(--sand); /* shows while the photo loads */
}

.about-caption {
  padding: 10px 20px 14px;
  font-family: var(--font-script);
  font-size: 38px;
  line-height: 1.2;
  text-align: center;
  color: var(--gold);
}

/* The photo fills whatever shape the box is and is trimmed to fit ("cover").
   15% from the top keeps the head in frame when the box is wider than the photo. */
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.about-body {
  flex: 999 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 56px;
}

.about-body .h2 {
  margin: 0;
}

.about-body > p:not(.eyebrow) {
  margin: 0;
  font-size: 17px;
  color: var(--slate);
}

.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 12px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cred-title {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.cred-text {
  display: block;
  font-size: 14px;
  color: var(--slate);
}

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

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
}

.contact-info {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info .h2 {
  margin: 0;
}

.contact-phone {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--gold);
  text-decoration: none;
  align-self: flex-start;
}

.contact-phone:hover {
  color: var(--gold-hover);
}

.contact-meta {
  margin: 0;
  color: var(--mist);
}

.contact-meta a {
  color: var(--gold);
}

.contact-meta a:hover {
  color: var(--cream);
}

.areas {
  margin-top: 16px;
}

.areas-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.area-list li {
  padding: 7px 14px;
  border: 1px solid rgba(201, 151, 0, 0.45);
  border-radius: 999px;
}

.contact-form {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px;
  background: var(--cream);
  color: var(--navy);
  border-radius: var(--radius);
}

.form-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-btn);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 16px; /* 16px stops iPhones zooming in on tap */
}

.field textarea {
  resize: vertical;
}

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

.site-footer {
  padding: 56px 24px 40px;
  background: var(--navy-deep);
  color: var(--mist);
  border-top: 1px solid var(--gold-line);
}

.footer-top,
.footer-bottom {
  max-width: 1200px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-top {
  align-items: flex-start;
  gap: 32px;
}

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

.footer-brand img {
  display: block;
  width: 48px;
  height: 48px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--cream);
}

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

/* Footer nav links with the social icons underneath */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

/* Social media icons: gold, slightly brighter on hover */
.social {
  display: flex;
  gap: 8px;
  margin: 0 -11px 0 0; /* lines the icons up with the edge of the links above */
  padding: 0;
  list-style: none;
}

.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;  /* comfortable tap target on phones */
  height: 44px;
  border-radius: 50%;
  color: var(--gold);
  transition: color 0.15s ease;
}

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

.footer-bottom {
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(201, 210, 225, 0.15);
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

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

/* Hide the race-track line once the three steps no longer fit on one row */
@media (max-width: 908px) {
  .steps-track { display: none; }
}

/* Tablets: keep Derek's photo beside the text (stacking would make it a short, wide strip) */
@media (max-width: 920px) {
  .about-photo { flex-basis: 280px; }
  .about-body { flex-basis: 360px; padding: 40px; }
}

/* Phones: the photo sits above the text as a square, framed head-and-shoulders */
@media (max-width: 689px) {
  .about-photo { min-height: 0; }
  .about-photo-frame { flex: none; aspect-ratio: 1 / 1; }
}

/* Tablets and phones: swap the nav links for the Menu button */
@media (max-width: 820px) {
  .nav { flex-wrap: nowrap; gap: 16px; }
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .brand { margin-right: auto; }

  .h1 { font-size: 46px; }
  .h2,
  .h2-sm { font-size: 36px; }
}

/* Narrow phones: move "Book a consultation" into the menu, tighten spacing */
@media (max-width: 560px) {
  .nav-cta { display: none; }

  .section { padding-block: 80px; }
  .section-about { padding-bottom: 80px; }
  .hero-inner { padding-top: 64px; padding-bottom: 56px; gap: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-art img { max-width: 240px; }

  .section-head,
  .section-head-center { margin-bottom: 48px; }
  .section-head-split { margin-bottom: 40px; }

  .card { padding: 28px; }
  .plan { padding: 36px 24px 32px; }
  .plan-badge { left: 24px; }
  .about-body { padding: 32px 24px; }
  .contact { gap: 48px; }
  .contact-form { padding: 28px 20px; }
  .contact-phone { font-size: 38px; }
}

/* When the footer stacks (below ~820px), line the links and icons up on the left */
@media (max-width: 820px) {
  .footer-links { align-items: flex-start; }
  .social { margin: 0 0 0 -11px; }
}

@media (max-width: 400px) {
  .h1 { font-size: 40px; }
  .h2,
  .h2-sm { font-size: 32px; }
  .btn-row .btn { width: 100%; }
}
