/* Trusted Agency Law — main stylesheet */

:root {
  --navy: #16233a;
  --navy-dark: #0a1220;
  --navy-light: #223353;
  --gold: #c9a227;
  --gold-light: #e2c25a;
  --bg: #0b1220;
  --bg-alt: #131d30;
  --bg-raise: #182339;
  --text: #e7ebf2;
  --text-muted: #9aa7bb;
  --heading: #f5f7fb;
  --border: #263453;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --max-width: 1160px;
  --header-max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
}

ul {
  padding-left: 1.2rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 1.1rem;
  z-index: 100;
  margin: 1.1rem auto 0;
  max-width: var(--header-max);
  padding: 0 1.5rem;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(19, 29, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
}

.brand .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #dfe6ef;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--gold-light);
}

.nav-links .btn {
  color: var(--navy-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

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

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline:hover {
  border-color: #fff;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

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

/* Hero */

.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 5rem 0 6rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 1rem;
  font-weight: 800;
}

.hero .accent {
  color: var(--gold-light);
}

.hero p {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: #cfd9e6;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.trust-strip .container {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Sections */

section {
  padding: 4.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
  color: var(--heading);
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Services grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--heading);
}

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

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--heading);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* About */

.about {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-wrap h2 {
  color: var(--heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 0;
}

.about-wrap p {
  color: var(--text-muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  text-align: center;
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
}

.stat .label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Contact */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
}

.contact-info .card {
  margin-bottom: 1rem;
}

.contact-info .item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-bottom: 1.3rem;
}

.contact-info .item .icon {
  flex: none;
}

.contact-info .item h4 {
  margin: 0 0 0.2rem;
  color: var(--heading);
  font-size: 0.98rem;
}

.contact-info .item p,
.contact-info .item a {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1.1rem;
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-raise);
  color: var(--text);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
}

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

.form-success {
  display: none;
  background: rgba(46, 160, 100, 0.12);
  border: 1px solid rgba(46, 160, 100, 0.35);
  color: #6fe3a4;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

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

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-band p {
  color: #cfd9e6;
  margin: 0 0 1.6rem;
}

/* Footer */

.site-footer {
  background: var(--navy-dark);
  color: #b7c1cf;
  padding: 3rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.6rem;
}

.footer-grid a {
  color: #b7c1cf;
  font-size: 0.88rem;
}

.footer-grid a:hover {
  color: var(--gold-light);
}

.footer-brand p {
  color: #94a2b3;
  font-size: 0.88rem;
  max-width: 320px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: #7c8798;
}

.footer-bottom a {
  color: #9aa6b7;
}

.footer-bottom a:hover {
  color: var(--gold-light);
}

/* Legal pages */

.legal-hero {
  background: var(--navy-dark);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.legal-hero p {
  color: #b7c1cf;
  margin: 0;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  background: var(--bg-alt);
}

.legal-content h2 {
  color: var(--heading);
  margin-top: 2.2rem;
  font-size: 1.25rem;
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.legal-content ul {
  margin-top: 0.5rem;
}

.legal-updated {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */

@media (max-width: 860px) {
  .about-wrap,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    background: rgba(19, 29, 48, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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