/* Fort Worth Business Buyers — custom styles */

:root {
  --navy: #1b2a4a;
  --navy-deep: #121c33;
  --navy-mid: #2a3d66;
  --cream: #f7f1e8;
  --cream-deep: #ebe3d6;
  --sand: #f4ede4;
  --terracotta: #c46b3a;
  --terracotta-hover: #a8562c;
  --clay: #e8a87c;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: rgba(27, 42, 74, 0.12);
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 12px 40px rgba(27, 42, 74, 0.08);
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --space: clamp(1rem, 2.5vw, 1.5rem);
  --container: 1120px;
  --narrow: 720px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

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

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

a {
  color: var(--terracotta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

/* Header / sticky nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  min-height: var(--header-h);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.nav__brand:hover {
  color: var(--navy);
}

.nav__mark {
  color: var(--navy);
  flex-shrink: 0;
}

.nav__name {
  max-width: 12rem;
  line-height: 1.2;
}

@media (min-width: 720px) {
  .nav__name {
    max-width: none;
  }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav__links a:hover {
  color: var(--terracotta);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: var(--cream) !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: var(--navy-mid);
  color: var(--cream) !important;
}

@media (max-width: 820px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__cta {
    justify-content: center;
    margin-top: 0.5rem;
    border-bottom: 0 !important;
  }
}

/* Typography */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow--light {
  color: var(--clay);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  font-weight: 700;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.lede {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
}

.lede--light {
  color: rgba(244, 237, 228, 0.85);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: rgba(27, 42, 74, 0.25);
}

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

.btn--full {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(165deg, var(--cream) 0%, var(--sand) 45%, #e8dcc8 100%);
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(4rem, 12vw, 8rem);
  border-bottom: 1px solid var(--line);
}

.hero__glow {
  position: absolute;
  inset: auto -10% -30% 40%;
  height: 70%;
  background:
    radial-gradient(ellipse at center, rgba(232, 168, 124, 0.35) 0%, transparent 65%),
    radial-gradient(ellipse at 20% 40%, rgba(27, 42, 74, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__sub {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

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

.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--sand);
}

.section--navy h2,
.section--navy h3 {
  color: var(--cream);
}

.section__header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section__header--light h2 {
  color: var(--cream);
}

/* Bio */
.bio {
  margin: 1.5rem 0 0;
  padding: 1.75rem 1.5rem 1.75rem 1.75rem;
  border-left: 3px solid var(--terracotta);
  background: var(--white);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.bio p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--ink);
}

@media (min-width: 640px) {
  .bio {
    padding: 2rem 2.25rem;
  }
}

/* LinkedIn profile links */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: border-color .2s, color .2s, transform .2s;
}
.profile-link svg { color: #0a66c2; flex-shrink: 0; }
.profile-link:hover, .profile-link:focus-visible {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-1px);
}
.footer__tag a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  padding: 1.5rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: rgba(196, 107, 58, 0.35);
  box-shadow: var(--shadow);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: var(--white);
  color: var(--terracotta);
  border: 1px solid var(--line);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Why us */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 237, 228, 0.12);
  border-radius: var(--radius-lg);
}

.why-item p {
  margin: 0;
  color: rgba(244, 237, 228, 0.78);
  font-size: 0.98rem;
}

/* Contact */
.section--contact {
  background: var(--sand);
}

.contact {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 880px) {
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
  }
}

.contact__email-block {
  margin: 1.75rem 0 1.25rem;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact__label {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__email {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  word-break: break-all;
}

.contact__email:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

.contact__note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact__note svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--terracotta);
}

.contact__form {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(27, 42, 74, 0.25);
}

.field input:focus,
.field textarea:focus {
  background: var(--white);
  border-color: var(--terracotta);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-hint {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: var(--navy-deep);
  color: rgba(244, 237, 228, 0.7);
  font-size: 0.9rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__inner p {
  margin: 0;
}

.footer__inner a {
  color: var(--cream);
  text-decoration: none;
}

.footer__inner a:hover {
  color: var(--clay);
  text-decoration: underline;
}

.footer__tag {
  opacity: 0.75;
  font-size: 0.85rem;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

/* ------------------------------------------------------------------
   Fort Worth photo backgrounds
   ------------------------------------------------------------------ */

/* Hero: Stockyards longhorn cattle drive on Exchange Ave, navy gradient on the left */
.hero--photo {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgba(18, 28, 51, 0.9) 0%, rgba(18, 28, 51, 0.74) 34%, rgba(18, 28, 51, 0.22) 58%, rgba(18, 28, 51, 0) 78%),
    url("images/fort-worth-stockyards-hero.webp");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  border-bottom: 0;
  color: var(--cream);
}

.hero--photo .hero__glow {
  opacity: 0.3;
}

.hero--photo h1 {
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(10, 16, 30, 0.35);
}

.hero--photo .eyebrow {
  color: var(--clay);
}

.hero--photo .hero__sub {
  color: rgba(247, 241, 232, 0.92);
  text-shadow: 0 1px 12px rgba(10, 16, 30, 0.5);
}

.hero--photo .btn--ghost {
  color: var(--cream);
  border-color: rgba(247, 241, 232, 0.55);
  background: rgba(18, 28, 51, 0.25);
}

.hero--photo .btn--ghost:hover {
  color: var(--navy);
  background: var(--cream);
  border-color: var(--cream);
}

@media (max-width: 719px) {
  .hero--photo {
    /* Keep the twin towers in frame and darken evenly behind stacked text */
    background-image:
      linear-gradient(180deg, rgba(18, 28, 51, 0.7) 0%, rgba(18, 28, 51, 0.62) 50%, rgba(18, 28, 51, 0.5) 72%, rgba(18, 28, 51, 0) 86%),
      url("images/fort-worth-stockyards-hero.webp");
    background-position: 58% center;
    padding-bottom: clamp(11rem, 52vw, 15rem);
  }
}

/* Why Us: Stockyards sign under a heavy navy overlay */
.section--stockyards {
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(90deg, rgba(18, 28, 51, 0.45) 0%, rgba(18, 28, 51, 0.2) 45%, rgba(18, 28, 51, 0) 65%),
    linear-gradient(160deg, rgba(27, 42, 74, 0.9) 0%, rgba(18, 28, 51, 0.93) 100%),
    url("images/fort-worth-stockyards-sign.webp");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
}

@media (max-width: 799px) {
  .section--stockyards {
    background-image:
      linear-gradient(160deg, rgba(27, 42, 74, 0.93) 0%, rgba(18, 28, 51, 0.95) 100%),
      url("images/fort-worth-stockyards-sign.webp");
    background-position: 20% center;
  }
}

.section--stockyards .why-item {
  background: rgba(18, 28, 51, 0.55);
  border-color: rgba(244, 237, 228, 0.16);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Slim photo band: downtown Fort Worth skyline */
.photo-band {
  position: relative;
  height: clamp(180px, 26vw, 340px);
  background-color: var(--navy);
  background-size: cover;
  background-repeat: no-repeat;
}

.photo-band--skyline {
  background-image:
    linear-gradient(180deg, rgba(18, 28, 51, 0.12) 0%, rgba(18, 28, 51, 0) 50%, rgba(18, 28, 51, 0.35) 100%),
    url("images/fort-worth-skyline.webp");
  background-position: center 48%;
}

.photo-band__label {
  position: absolute;
  right: max(1.25rem, calc((100% - var(--container)) / 2));
  bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247, 241, 232, 0.88);
  text-shadow: 0 1px 8px rgba(10, 16, 30, 0.6);
}

/* Footer photo credits */
.footer__credits {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 237, 228, 0.1);
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(244, 237, 228, 0.5);
}

.footer__credits a {
  color: rgba(244, 237, 228, 0.7);
  text-decoration: underline;
  text-decoration-color: rgba(244, 237, 228, 0.25);
}

.footer__credits a:hover {
  color: var(--clay);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
