/*
Theme Name: NS Legal Services
Author: PreetAI
Description: Responsive navy and gold WordPress theme based on the supplied NS Legal Services design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ns-legal-services
*/
:root {
  --navy: #071d33;
  --gold: #a77b29;
  --cream: #f7f6f4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.wrap {
  width: 87.3%;
  max-width: 1440px;
  margin: auto;
}
.topbar {
  background: linear-gradient(110deg, #06192b, #0f2b46);
  color: white;
  font-size: 13px;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 38px;
  position: relative;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(110deg, #ad8438, #c99b41);
  color: white;
  padding: 15px 28px;
  border: 1px solid #c99b41;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px #0002;
}
.top-book {
  margin-left: auto;
  padding: 9px 22px;
  position: relative;
  z-index: 2;
  font-size: 14px;
}
.site-header {
  background: #fff;
  position: relative;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 78px;
}
.brand {
    display: block;
    width: 200px;
    max-width: 32%;
}
.brand img {
  width: 100%;
  height: auto;
  display: block;
}
.menu {
  display: flex;
  align-items: center;
  gap: 38px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}
.menu a {
  display: block;
  padding: 20px 0;
}
.menu a:hover {
  color: var(--gold);
}
.menu li {
  position: relative;
}
.menu .sub-menu {
  display: none;
  list-style: none;
  position: absolute;
  background: white;
  padding: 10px 20px;
  min-width: 220px;
  box-shadow: 0 8px 20px #0002;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu {
  display: block;
}
.header-search summary {
  cursor: pointer;
  list-style: none;
}
.header-search form {
  position: absolute;
  right: 6%;
  top: 100%;
  padding: 20px;
  background: white;
  box-shadow: 0 5px 20px #0002;
}
.hero {
  position: relative;
  background: #f4f3f1;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 50%;
  background-size: cover;
  background-position: center;
}
.hero-photo:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f4f3f1, transparent 19%);
}
.hero-inner {
  position: relative;
  min-height: 462px;
  display: flex;
  align-items: center;
}
.hero-copy {
  width: 54%;
  padding: 35px 0 34px 3.4%;
}
.eyebrow {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #111;
  margin: 0 0 8px;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.02;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 4vw, 64px);
  letter-spacing: -1.5px;
}
h1 span {
  color: #997022;
}
.intro {
  font-size: 17px;
  line-height: 1.45;
  margin: 15px 0 22px;
  max-width: 605px;
}
.hero-actions {
  display: flex;
  gap: 27px;
}
.outline {
  color: #111;
  background: #ffffffba;
  border: 1px solid #111;
  box-shadow: 0 2px 6px #0002;
}
.hero-benefits {
  display: flex;
  gap: 24px;
  margin-top: 35px;
  color: #111;
  font-size: 14px;
  font-weight: 600;
}
.hero-benefits > div {
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid #ddd;
  padding-right: 24px;
}
.hero-benefits > div:last-child {
  border: 0;
  padding: 0;
}
.hero-benefits svg {
  width: 40px;
  height: 40px;
}
.services {
  background: linear-gradient(110deg, #f6f5f3, #faf9f8);
  padding: 18px 0 15px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 8px 8px;
}
.section-heading .eyebrow {
  margin: 0;
}
h2 {
  font-size: 36px;
}
.gold-line {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-top: 10px;
}
.section-heading > a {
  font-size: 14px;
  font-weight: 600;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.service-card {
  background: #ffffffb3;
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 23px 30px 15px;
  display: flex;
  flex-direction: column;
  min-height: 205px;
}
.service-card > svg {
  width: 40px;
  height: 40px;
  color: #a67a24;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.service-card p {
  font-size: 14px;
  line-height: 1.3;
  margin: 0 0 14px;
  color: #344258;
}
.service-card a {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
}
.service-card a span {
  color: #956a22;
}
.service-card:hover {
  box-shadow: 0 7px 20px #09203810;
}
.trust-strip {
  background: linear-gradient(110deg, #0b2137, #142e47);
  color: white;
  padding: 40px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.trust-inner > div {
  display: flex;
  align-items: center;
  gap: 20px;
  border-right: 1px solid #ffffff66;
  padding-right: 40px;
}
.trust-inner > div:nth-child(3) {
  border: 0;
  padding-right: 0;
}
.trust-inner p {
  font-size: 17px;
  line-height: 1.3;
  margin: 0;
}
.trust-inner > div > svg {
  width: 46px;
  height: 46px;
}
.trust-inner .button {
  white-space: nowrap;
}
.menu-toggle {
  display: none;
}
.skip-link,
.screen-reader-text {
  position: absolute;
  left: -10000px;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  padding: 15px;
  background: white;
  z-index: 100;
}
.page-content {
  padding: 65px 0;
  min-height: 65vh;
}
.page-content h1 {
  font-size: 42px;
  margin-bottom: 25px;
}
.page-content article {
  margin-bottom: 40px;
}
:focus-visible {
  outline: 3px solid #b98a32;
  outline-offset: 4px;
}
@media (min-width: 1600px) {
  .hero-inner {
    min-height: 520px;
  }
  .service-card {
    min-height: 225px;
  }
}
@media (max-width: 1200px) {
  .menu {
    gap: 22px;
  }
  .service-card {
    padding: 20px 18px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero-benefits {
    gap: 12px;
  }
  .hero-benefits > div {
    padding-right: 12px;
    gap: 8px;
  }
  .hero-actions {
    gap: 15px;
  }
  .button {
    padding: 14px 20px;
  }
  .trust-inner {
    gap: 16px;
  }
  .trust-inner > div {
    padding-right: 20px;
    gap: 12px;
  }
  .trust-inner p {
    font-size: 15px;
  }
}
@media (max-width: 980px) {
  .wrap {
    width: 92%;
  }
  .brand {
    max-width: 52%;
    width: 340px;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 24px;
  }
  #primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 4%;
    box-shadow: 0 8px 15px #0002;
  }
  #primary-nav.open {
    display: block;
  }
  .menu {
    display: block;
  }
  .menu a {
    padding: 12px 0;
  }
  .menu .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
  }
  .hero-copy {
    width: 58%;
  }
  .hero-photo {
    left: 48%;
  }
  .intro {
    font-size: 15px;
  }
  .hero-benefits {
    font-size: 12px;
    gap: 10px;
  }
  .hero-benefits svg {
    width: 30px;
    height: 30px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .button {
    font-size: 14px;
    padding: 12px;
  }
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-inner {
    flex-wrap: wrap;
  }
  .trust-inner > div {
    border: 0;
    flex: 1;
  }
  .trust-inner > .button {
    margin: auto;
  }
  .top-inner {
    gap: 15px;
    font-size: 11px;
  }
}
@media (max-width: 620px) {
  .top-inner {
    justify-content: center;
    padding: 8px 0;
    min-height: 34px;
  }
  .top-inner > span {
    font-size: 10px;
  }
  .top-inner > a:not(.top-book) {
    display: none;
  }
  .top-book {
    padding: 7px 10px;
    font-size: 10px;
    margin: 0;
  }
  .header-inner {
    min-height: 74px;
    gap: 14px;
  }
  .brand {
    max-width: 72%;
  }
  .hero-inner {
    display: block;
    min-height: 0;
  }
  .hero-photo {
    position: relative;
    inset: auto;
    height: 300px;
    background-position: center;
  }
  .hero-photo:before {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column-reverse;
  }
  .hero-copy {
    width: 100%;
    padding: 30px 2%;
  }
  .hero h1 {
    font-size: 42px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
  }
  .intro {
    font-size: 16px;
  }
  .hero-actions {
    flex-wrap: wrap;
  }
  .hero-actions .button {
    padding: 13px 16px;
  }
  .hero-benefits {
    margin-top: 27px;
    justify-content: space-between;
  }
  .hero-benefits > div {
    padding-right: 8px;
    gap: 6px;
    font-size: 10px;
  }
  .hero-benefits svg {
    width: 26px;
    height: 26px;
  }
  .services {
    padding: 26px 0;
  }
  .section-heading {
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 29px;
  }
  .section-heading > a {
    font-size: 11px;
    text-align: right;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .service-card {
    padding: 20px 18px;
    min-height: 224px;
  }
  .service-card h3 {
    font-size: 16px;
  }
  .service-card p {
    font-size: 14px;
  }
  .trust-strip {
    padding: 28px 0;
  }
  .trust-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .trust-inner > div {
    justify-content: flex-start;
    padding: 0 8%;
  }
  .trust-inner > div > svg {
    width: 36px;
    height: 36px;
  }
  .trust-inner p {
    font-size: 16px;
  }
  .trust-inner > .button {
    width: 100%;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
