/* Sovereign Plains Ventures — static site styles
   Palette and layout follow the current sovereignplains.com design. */

:root {
  --navy: #0a2540;
  --navy-rgb: 10, 37, 64;
  --green: #1a3c34;
  --green-hover: #0f2620;
  --gold: #c9a24b;
  --gold-hover: #b8923f;
  --gold-dark: #8a6d2f;
  --cream: #f5f1e8;
  --white: #ffffff;
  --text: #4b5563;
  --text-dark: #1f2937;
  --muted: #6b7280;
  --border: #d1d5db;
  --danger: #dc2626;
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Playfair Display", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --max: 80rem;
  --header-h: 5.25rem;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.18);
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.6rem 1rem;
  border-radius: 0.375rem;
}
.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;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.15rem 0;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-solid,
.site-header.is-open {
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 0.75rem 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  background: linear-gradient(to bottom right, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}
.brand-name {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--white);
}
.brand-sub {
  display: block;
  color: var(--gold);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-desktop a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--gold); }

.header-actions {
  display: none;
  align-items: center;
  gap: 1.1rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--gold); }
.header-phone svg { flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  border-radius: 0.375rem;
  transition: background 0.2s, transform 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(201, 162, 75, 0.35);
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 60, 52, 0.3);
}
.btn-green:hover { background: var(--green-hover); }
.btn-lg { font-size: 1.125rem; padding: 1rem 2rem; }
.btn-md { font-size: 0.875rem; padding: 0.65rem 1.25rem; }
.btn-full { width: 100%; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 0;
  color: var(--white);
  cursor: pointer;
  padding: 0;
}
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.nav-mobile {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 1.25rem 1.25rem;
}
.site-header.is-open .nav-mobile { display: block; }
.nav-mobile a {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.55rem 0;
  font-weight: 500;
}
.nav-mobile a:hover { color: var(--gold); }
.nav-mobile .header-phone {
  color: var(--gold);
  padding: 0.55rem 0 0.85rem;
}
.nav-mobile .btn { margin-top: 0.25rem; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile,
  .site-header.is-open .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  text-align: center;
  padding: 7.5rem 0 4.5rem;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(var(--navy-rgb), 0.8),
    rgba(var(--navy-rgb), 0.55) 45%,
    rgba(var(--navy-rgb), 0.85)
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 56rem);
  padding-top: 2.5rem;
}
.eyebrow {
  display: inline-block;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 1.35rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  max-width: 36rem;
  margin: 0 auto 2.4rem;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3.25rem;
}
.hero-pills {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  max-width: 48rem;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
}
.pill {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pill svg { color: var(--gold); margin-bottom: 0.45rem; }
.pill-title { font-weight: 600; font-size: 0.9rem; }
.pill-desc { font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@media (min-width: 640px) {
  .eyebrow { font-size: 0.8125rem; }
  .hero-ctas { flex-direction: row; }
  .hero-pills { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }

.kicker {
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--green);
  margin-bottom: 0.7rem;
}
.kicker-gold { color: var(--gold); }

h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.25rem;
  margin: 0 0 0.7rem;
  line-height: 1.3;
}

.lede {
  font-size: 1.125rem;
  color: var(--text);
  margin: 0 0 1.15rem;
  line-height: 1.7;
}
.body-copy { margin: 0 0 1.75rem; line-height: 1.75; }

.center { text-align: center; }
.center-max {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3.5rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
.about-visual { position: relative; }
.about-visual img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}
.about-badge {
  position: absolute;
  right: 0.5rem;
  bottom: -1.6rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 0.75rem;
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  min-width: 8.5rem;
}
.about-badge strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.about-badge span {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
}

.about-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 0.25rem;
}
.about-point { display: flex; flex-direction: column; }
.about-point svg { color: var(--green); margin-bottom: 0.35rem; }
.about-point strong { color: var(--navy); font-size: 1rem; }
.about-point span { font-size: 0.875rem; color: #6b7280; }

@media (min-width: 640px) {
  .about-points { grid-template-columns: repeat(3, 1fr); }
  .about-visual img { height: 30rem; }
  .about-badge { right: 2rem; }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
}

/* Services */
.services { background: var(--cream); }
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border-radius: 0.9rem;
  padding: 1.75rem 1.5rem 1.6rem;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.06);
  border-top: 4px solid transparent;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-top-color: var(--gold);
  box-shadow: 0 16px 32px rgba(10, 37, 64, 0.1);
}
.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--navy);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  transition: background 0.2s;
}
.card:hover .card-icon { background: var(--green); }
.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
}
.services-cta { text-align: center; margin-top: 3rem; }

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

/* Difference */
.difference {
  background: var(--navy);
  color: var(--white);
}
.difference h2,
.difference h3 { color: var(--white); }
.difference .lede,
.difference .center-max p { color: rgba(255, 255, 255, 0.7); }
.diff-grid {
  display: grid;
  gap: 1.35rem;
  margin-bottom: 3.5rem;
}
.diff-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.7rem 1.55rem;
}
.diff-card svg { color: var(--gold); margin-bottom: 0.9rem; }
.diff-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
  text-align: center;
  padding-top: 0.5rem;
}
.stat-value {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.15rem);
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .diff-grid { grid-template-columns: repeat(3, 1fr); }
  .diff-grid .diff-card:nth-child(4),
  .diff-grid .diff-card:nth-child(5) { /* keep last two from looking stranded: let them sit naturally */ }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* Contact */
.contact {
  background: var(--green);
  color: var(--white);
}
.contact h2 { color: var(--white); }
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.contact-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0 0 2rem;
}
.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--white);
}
.method-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.contact-method:hover .method-icon {
  background: var(--gold);
  color: var(--navy);
}
.method-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.method-value {
  display: block;
  font-weight: 700;
  font-size: 1.125rem;
  word-break: break-word;
}

.form-card {
  background: var(--white);
  color: var(--text-dark);
  border-radius: 1rem;
  padding: 1.75rem 1.35rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}
.form-grid { display: grid; gap: 1rem; }
.form-grid-2,
.form-grid-3 { display: grid; gap: 1rem; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  color: #1f2937;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder,
.field textarea::placeholder { color: #9ca3af; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.3);
}
.field textarea { resize: vertical; min-height: 6rem; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1.55;
  cursor: pointer;
}
.consent input {
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--gold-dark);
}

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin: 0;
}
.form-error[hidden],
.form-success[hidden] { display: none !important; }

.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.form-success svg { color: var(--green); margin: 0 auto 1rem; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 0.7rem; }
.form-success p { color: var(--text); margin: 0; }

@media (min-width: 640px) {
  .form-card { padding: 2rem; }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.4rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 1.15rem 0 0;
  max-width: 18rem;
}
.site-footer h4 {
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem;
  font-family: var(--font-sans);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.5rem; }
.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.site-footer a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}

/* ---------- Legal / 404 ---------- */
.legal-main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 8.5rem 1.25rem 5rem;
}
.legal-main h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.legal-updated {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 2.4rem;
}
.legal-body { color: #374151; line-height: 1.75; }
.legal-body h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.7rem;
}
.legal-body p,
.legal-body ul { margin: 0 0 1rem; }
.legal-body ul { padding-left: 1.5rem; }
.legal-body li + li { margin-top: 0.4rem; }
.legal-callout {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.2rem 1.25rem;
  margin: 0 0 1rem;
}
.legal-header-bar {
  /* legal pages use a solid header, so main needs offset already handled */
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}
.legal-back:hover { color: var(--white); }

.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 6rem 1.25rem 3rem;
  text-align: center;
}
.page-404 h1 {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1;
}
.page-404 p { font-size: 1.25rem; margin: 0 0 1.5rem; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-scroll { animation: none; }
}

.hero-break { display: none; }
@media (min-width: 640px) {
  .hero-break { display: block; }
}

.about-visual { padding-bottom: 2.25rem; }

.is-legal .brand-name { font-size: 1.05rem; }
.is-legal .header-inner { min-height: 2.5rem; }
@media (max-width: 420px) {
  .is-legal .legal-back span { display: none; }
}

.page-404 {
  min-height: auto;
  padding: 9rem 1.25rem 5rem;
}

/* Visual polish after screenshot review */
.hero-sub { max-width: 46rem; }

@media (max-width: 639px) {
  .hero {
    padding: 5.75rem 0 2.5rem;
  }
  .hero-content { padding-top: 0.35rem; }
  .hero-sub { margin-bottom: 1.6rem; }
  .hero-ctas { margin-bottom: 1.6rem; gap: 0.75rem; }
  .btn-lg { font-size: 1rem; padding: 0.9rem 1.25rem; }
  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.68rem;
    margin-bottom: 1rem;
  }
  .hero-pills {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
    align-items: start;
  }
  .pill svg { width: 22px; height: 22px; margin-bottom: 0.3rem; }
  .pill-title { font-size: 0.68rem; line-height: 1.25; }
  .pill-desc { font-size: 0.6rem; line-height: 1.3; }
  .hero-scroll { bottom: 0.6rem; }
  .about-points { gap: 1rem; }
}

body { overflow-x: hidden; }

#about, #services, #why-us, #contact, #hero {
  scroll-margin-top: 5.5rem;
}
