/* Lewis Lines & Wilkes — layout follows the Mortimers Solicitors site, in LLW brand blue */
:root {
  --brand: #2f5597;
  --brand-dark: #23417a;
  --brand-tint: #eef2f9;
  --text: #555;
  --heading: #1a1a1a;
  --line: #e2e2e2;
  --footer: #3c3d41;
  --footer-bottom: #090a08;
  --white: #fff;
  --max: 1080px;
  --font: "Lato", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { color: var(--heading); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
h2 { font-size: 28px; }
h3 { font-size: 21px; }
p { margin: 0 0 1.1em; }
strong { color: #333; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 10px; top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand); color: #fff; font-size: 16px; font-weight: 700; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 400; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar span { white-space: nowrap; }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 20px; }
.logo img { width: 260px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brand); }
.nav-toggle svg { width: 30px; height: 30px; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 12px; font-size: 15px; color: #555; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"], .main-nav .is-active > a { color: var(--brand); }
.main-nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 7px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.main-nav .sub { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--brand); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.main-nav .has-sub:hover .sub, .main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { color: #fff; padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }
.main-nav .sub a:hover, .main-nav .sub a[aria-current="page"] { background: var(--brand-dark); color: #fff; }
.main-nav .nav-phone a { color: var(--brand); padding: 10px 6px; }
.main-nav .nav-phone svg { width: 17px; height: 17px; vertical-align: -3px; }

/* ---------- Hero / banners ---------- */
.hero { position: relative; min-height: 460px; display: flex; align-items: center; background: #1d2b44 center/cover no-repeat; color: #fff; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 35, 64, .45); }
.hero .container { position: relative; }
.hero h1 { color: #fff; font-size: 46px; font-weight: 300; margin-bottom: .2em; }
.hero p { font-size: 22px; font-weight: 300; margin: 0; }
.page-banner { position: relative; padding: 90px 0; background: #1d2b44 center/cover no-repeat; color: #fff; text-align: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .42); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: 44px; font-weight: 400; margin: 0; }
.page-banner p { color: #fff; font-size: 24px; font-weight: 300; margin: .2em 0 0; }
.page-banner--plain { background: var(--brand); padding: 60px 0; }
.page-banner--plain::before { display: none; }

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.section--tint { background: var(--brand-tint); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 18px; }
.section-title::after, .divider { content: ""; display: block; width: 80px; height: 2px; background: var(--brand); margin: 0 auto; opacity: .7; }
.section-title p { margin: 22px auto 0; max-width: 760px; }
.lead { max-width: 860px; margin: 0 auto; }
.narrow { max-width: 860px; margin: 0 auto; }

/* ---------- Service tiles (flipbox-style) ---------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.tiles .tile { grid-column: span 2; }
.tiles .tile:nth-child(4):nth-last-child(2), .tiles .tile:nth-child(5):last-child { grid-column: span 3; } /* 5 tiles: 3 on top, 2 below */
.tile { position: relative; height: 320px; overflow: hidden; background: #333 center/cover no-repeat; color: #fff; text-decoration: none; display: block; }
.tile::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.37); transition: background .3s; }
.tile__front, .tile__back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; transition: opacity .35s; }
.tile__front h3 { color: #fff; font-size: 34px; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.tile__back { background: #fff; color: var(--text); opacity: 0; border: 1px solid var(--line); }
.tile__back h3 { color: var(--heading); font-size: 22px; margin-bottom: .4em; }
.tile__back p { font-size: 15px; line-height: 1.6; margin-bottom: 1em; }
.tile:hover .tile__back, .tile:focus-visible .tile__back { opacity: 1; }
.tile:hover .tile__front, .tile:focus-visible .tile__front { opacity: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 9px 22px; border: 1px solid var(--brand); color: var(--brand); background: transparent; font-size: 17px; text-decoration: none; border-radius: 3px; transition: .2s; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--brand); color: #fff; }
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--light { border-color: #fff; color: #fff; }
.btn--light:hover { background: #fff; color: var(--brand); }

/* ---------- Team ---------- */
.team { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.member { width: 230px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.member .areas { flex-grow: 1; }
.member img { width: 230px; height: 230px; object-fit: cover; margin: 0 auto 18px; background: #f3f3f3; }
.member h3 { color: var(--brand); font-size: 21px; margin-bottom: .15em; }
.member .role { font-size: 17px; color: #333; margin-bottom: .3em; }
.member .areas { font-size: 15px; line-height: 1.5; }
.member .icons { display: flex; justify-content: center; gap: 28px; margin: 6px 0 14px; }
.member .icons a { color: var(--brand); }
.member .icons svg { width: 18px; height: 18px; }
.member .btn { font-size: 15px; padding: 6px 16px; }

/* Featured team member (Tracy) above the rest */
.featured-member { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: center; max-width: 920px; margin: 0 auto 60px; padding: 34px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); box-shadow: 0 10px 30px rgba(31, 52, 92, .08); }
.featured-member img { width: 320px; height: 320px; object-fit: cover; }
.featured-member h3 { color: var(--brand); font-size: 30px; margin-bottom: .1em; }
.featured-member .role { font-size: 19px; color: #333; margin: 0; }
.featured-member .areas { font-size: 15px; margin-bottom: 1em; }
.featured-member__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 0; }
.featured-member__actions svg { width: 15px; height: 15px; vertical-align: -2px; }
.tagline { display: inline-block; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 3px; margin: 8px 0 10px; }
.team-subhead { text-align: center; font-size: 20px; color: #333; margin: 0 0 30px; }

/* Scrolling row of team members */
.carousel { position: relative; padding: 0 44px; }
.carousel__track { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: thin; scrollbar-color: var(--brand) transparent; }
.carousel__track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.carousel__track .member { flex: 0 0 230px; scroll-snap-align: start; }
.carousel__btn { position: absolute; top: 105px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--brand); background: #fff; color: var(--brand); font-size: 28px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 4px; z-index: 2; }
.carousel__btn:hover { background: var(--brand); color: #fff; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }

.profile { display: grid; grid-template-columns: 300px 1fr; gap: 50px; align-items: start; }
.profile img { width: 300px; }
.profile h1 { font-size: 34px; color: var(--brand); margin-bottom: .1em; }
.profile .role { font-size: 20px; color: #333; margin: 0; }
.profile .areas { margin-bottom: 1.4em; }
.profile .contact-line { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 1.6em; font-size: 16px; }
.profile .contact-line a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.profile .contact-line svg { width: 17px; height: 17px; }


/* ---------- Tabs & accordions ---------- */
.tabs { border: 1px solid var(--line); margin-top: 10px; }
.tab-list { display: flex; flex-wrap: wrap; background: #f7f7f7; border-bottom: 1px solid var(--line); }
.tab-list button { flex: 1 1 auto; font: inherit; font-size: 15px; font-weight: 700; color: #555; background: transparent; border: 0; border-right: 1px solid var(--line); padding: 14px 22px; cursor: pointer; text-align: center; }
.tab-list button:hover { color: var(--brand); }
.tab-list button[aria-selected="true"] { background: var(--brand); color: #fff; }
.tab-panel { padding: 26px 30px 12px; }
.tab-panel h3 { font-size: 20px; }
.no-js .tab-list { display: none; }
.no-js .tab-panel[hidden] { display: block; }

details.accordion { border: 1px solid var(--line); margin: 30px 0 0; background: #fff; }
details.accordion > summary { list-style: none; cursor: pointer; padding: 16px 22px; font-weight: 700; color: var(--heading); position: relative; }
details.accordion > summary::-webkit-details-marker { display: none; }
details.accordion > summary::after { content: "+"; position: absolute; right: 22px; top: 10px; font-size: 26px; font-weight: 300; color: var(--brand); }
details.accordion[open] > summary::after { content: "\2212"; }
details.accordion > .accordion__body { padding: 4px 22px 18px; border-top: 1px solid var(--line); }
.accordion__body h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
.fee-table { width: 100%; border-collapse: collapse; margin: 10px 0 24px; font-size: 15px; }
.fee-table th, .fee-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.fee-table th { background: var(--brand); color: #fff; font-weight: 700; }
.fee-table tr:nth-child(even) td { background: #fafafa; }
.table-wrap { overflow-x: auto; }

ul.ticks { padding-left: 1.2em; }
ul.ticks li { margin-bottom: .4em; }

/* ---------- CTA band ---------- */
.cta { position: relative; padding: 110px 0; background: #1d2b44 center/cover no-repeat; text-align: center; color: #fff; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.cta .container { position: relative; }
.cta h2 { color: #fff; font-size: 44px; font-weight: 300; max-width: 900px; margin: 0 auto 30px; }
.cta--small { padding: 60px 0; background: var(--brand); }
.cta--small::before { display: none; }
.cta--small h2 { font-size: 30px; margin-bottom: 8px; }
.cta--small p { font-size: 20px; font-weight: 300; margin-bottom: 24px; }

/* ---------- Accreditations ---------- */
.accreditations { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 60px; }
.accreditations img { height: 110px; width: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.info-list { list-style: none; padding: 0; margin: 0 0 1.5em; }
.info-list li { display: flex; gap: 14px; margin-bottom: 16px; }
.info-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--brand); margin-top: 3px; }
.info-list strong { display: block; }
.map { position: relative; min-height: 380px; background: var(--brand-tint); display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.notice { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 18px 22px; margin: 0 0 1.5em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #ddd; font-size: 15px; }
.site-footer > .container { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.3fr; gap: 36px; padding-top: 60px; padding-bottom: 50px; }
.site-footer h4 { color: #fff; font-size: 19px; font-weight: 700; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #ddd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer .footer-logo { width: 220px; margin-bottom: 22px; }
.footer-bottom { background: var(--footer-bottom); color: #bbb; font-size: 13px; text-align: center; padding: 16px 0; line-height: 1.6; }
.footer-bottom p { margin: 0 0 4px; }
.footer-bottom a { color: #ddd; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .site-header .container { min-height: 84px; }
  .logo img { width: 200px; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 3px solid var(--brand); box-shadow: 0 10px 20px rgba(0,0,0,.1); display: none; max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 10px 0; gap: 0; }
  .main-nav a { padding: 12px 24px; font-size: 16px; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: #f4f6fa; }
  .main-nav .sub a { color: #555; padding-left: 42px; border: 0; }
  .main-nav .sub a:hover, .main-nav .sub a[aria-current="page"] { background: transparent; color: var(--brand); }
  .main-nav .has-sub > a::after { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .tiles .tile, .tiles .tile:nth-child(4):nth-last-child(2), .tiles .tile:nth-child(5):last-child { grid-column: auto; }
  .featured-member { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; gap: 20px; }
  .featured-member img { width: 260px; height: 260px; margin: 0 auto; }
  .featured-member__actions { justify-content: center; }
  .site-footer > .container { grid-template-columns: 1fr 1fr; }
  .contact-grid, .profile { grid-template-columns: 1fr; }
  .cta h2, .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { font-size: 14px; }
  .topbar .container { justify-content: center; }
  .topbar .hide-sm { display: none; }
  .container { padding: 0 16px; }
  .hero { min-height: 340px; }
  .hero h1, .page-banner h1 { font-size: 32px; }
  .hero p, .page-banner p { font-size: 18px; }
  .page-banner { padding: 60px 0; }
  .section { padding: 50px 0; }
  .tile { height: 260px; }
  .tile__front h3 { font-size: 28px; }
  .cta { padding: 70px 0; }
  .cta h2 { font-size: 28px; }
  .site-footer > .container { grid-template-columns: 1fr; }
  .carousel { padding: 0; }
  .carousel__btn { display: none; }
  .carousel__track .member { flex-basis: 78%; }
  .featured-member img { width: 220px; height: 220px; }
  .tab-list button { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .tab-panel { padding: 20px 18px 6px; }
  .accreditations img { height: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
