/*
Theme Name: Nanwani Solicitors
Theme URI: https://nanwanis.com/
Author: Nanwani Solicitors LLP
Description: Custom one-page WordPress theme for Nanwani Solicitors LLP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: nanwani-solicitors
*/

:root {
  --blue: #1268d8;
  --blue-deep: #0b3f88;
  --slate: #172231;
  --slate-soft: #34445a;
  --mist: #f4f7fb;
  --line: #d8e0ea;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #627085;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Montserrat, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--slate);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.brand small {
  margin-top: 2px;
  color: currentColor;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  opacity: 0.86;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  border-radius: 4px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 16, 27, 0.82) 0%, rgba(9, 16, 27, 0.58) 42%, rgba(9, 16, 27, 0.14) 100%),
    linear-gradient(0deg, rgba(9, 16, 27, 0.22), rgba(9, 16, 27, 0.22));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #80b7ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: inherit;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(50px, 7vw, 92px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 54px);
}

h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.52);
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.notice-band {
  background: var(--slate);
  color: #fff;
}

.notice-band p {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.notice-band a {
  color: #8fc0ff;
  font-weight: 700;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) 1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.intro > p,
.section-heading p,
.approach-panel p,
.contact p {
  color: var(--muted);
  font-size: 17px;
}

.expertise {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.practice-grid article {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 285px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.practice-grid article::before,
.practice-grid article::after {
  position: absolute;
  inset: 0;
  content: "";
}

.practice-grid article::before {
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: saturate(0.78) contrast(0.9);
  opacity: 0.4;
  transform: scale(1.02);
  transition: opacity 220ms ease, filter 220ms ease, transform 220ms ease;
}

.practice-grid article::after {
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66)),
    linear-gradient(0deg, rgba(18, 104, 216, 0.06), rgba(18, 104, 216, 0.06));
  transition: background 220ms ease;
}

.practice-grid article:nth-child(1)::before {
  background-image: url("assets/practice/commercial-litigation.jpg");
}

.practice-grid article:nth-child(2)::before {
  background-image: url("assets/practice/arbitration.jpg");
}

.practice-grid article:nth-child(3)::before {
  background-image: url("assets/practice/family.jpg");
}

.practice-grid article:nth-child(4)::before {
  background-image: url("assets/practice/wills-probate-trusts.jpg");
}

.practice-grid article:nth-child(5)::before {
  background-image: url("assets/practice/fraud-cyber-asset-tracing.jpg");
}

.practice-grid article:nth-child(6)::before {
  background-image: url("assets/practice/insolvency-restructuring.jpg");
}

.practice-grid article:nth-child(7)::before {
  background-image: url("assets/practice/employment-discrimination.jpg");
}

.practice-grid article:nth-child(8)::before {
  background-image: url("assets/practice/personal-injury.jpg");
}

.practice-grid article:hover,
.practice-grid article:focus-within {
  border-color: rgba(18, 104, 216, 0.55);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.practice-grid article:hover::before,
.practice-grid article:focus-within::before {
  filter: saturate(0.95) contrast(1);
  opacity: 0.7;
  transform: scale(1.07);
}

.practice-grid article:hover::after,
.practice-grid article:focus-within::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
    linear-gradient(0deg, rgba(18, 104, 216, 0.12), rgba(18, 104, 216, 0.12));
}

.practice-grid span {
  position: relative;
  display: inline-block;
  margin-bottom: 34px;
  color: var(--blue);
  font-weight: 800;
}

.practice-grid h3,
.practice-grid p {
  position: relative;
}

.practice-grid p,
.insight-list p,
.approach-list span {
  color: var(--muted);
}

.approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 86px);
  width: 100%;
  max-width: none;
  padding: 0;
  background: var(--mist);
}

.approach-panel,
.approach-list {
  padding: 92px clamp(20px, 6vw, 72px);
}

.approach-panel {
  background: var(--slate);
  color: #fff;
}

.approach-panel .eyebrow {
  color: #8fc0ff;
}

.approach-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.approach-list {
  display: grid;
  gap: 18px;
  align-content: center;
}

.approach-list div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.approach-list strong,
.approach-list span {
  display: block;
}

.approach-list strong {
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.insights {
  border-bottom: 1px solid var(--line);
}

.insight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.insight-list article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.insight-list p {
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: clamp(28px, 6vw, 86px);
  padding: 92px clamp(20px, 6vw, 72px);
  background: linear-gradient(135deg, #f5f8fc, #fff);
}

address {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 32px;
  border-left: 4px solid var(--blue);
  background: #fff;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  font-style: normal;
}

address strong {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

address a {
  color: var(--blue-deep);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 56px);
  background: #0d1522;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

@media (max-width: 980px) {
  .practice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .approach,
  .contact {
    grid-template-columns: 1fr;
  }

  .approach-panel,
  .approach-list,
  .contact {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--slate);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  }

  .site-nav ul {
    display: grid;
    width: 100%;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px;
  }

  .hero {
    min-height: 690px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(9, 16, 27, 0.9), rgba(9, 16, 27, 0.52));
  }

  .hero-content {
    padding-top: 90px;
  }

  h1 {
    font-size: 48px;
  }

  .section {
    padding: 70px 0;
  }

  .practice-grid,
  .insight-list {
    grid-template-columns: 1fr;
  }

  .practice-grid article {
    min-height: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand small {
    letter-spacing: 0.08em;
  }

  .brand strong {
    font-size: 20px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }
}
