/* ============ Brand colours, images and shared variables ============ */

:root {
  --photo-gavel: url(images/gavel-overlay.webp);
  --photo-hero: url(images/hero-background.jpg);
  --photo-statue: url(images/statue-photo.jpg);
  --gold: #d0a043;
  --green: #193423;
  --green-light: #1f3f2c;
  --green-deep: #0b1a12;
  --ink: #1b2a22;
  --bg: #fff;
  --soft: #f5f3ef;
  --mute: #5b6274;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  --owner-photo: url(images/owner.webp);
  --logo-light: url(images/logo-light.png);
  --logo-dark: url(images/logo-dark.png)
}

/* ============ Base styles ============ */

* {
  box-sizing: border-box;
  margin: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

body {
  font: 400 16px/1.75 'Mulish', sans-serif;
  color: var(--ink);
  background: var(--bg)
}

h1,
h2,
h3,
.pf {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.15
}

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

.wrap {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px
}

section .wrap,
footer .wrap {
  max-width: 1300px;
  padding: 0 clamp(20px, 3vw, 40px)
}

/* ============ Header: contact strip ============ */

.top {
  font-family: 'Open Sans', sans-serif;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  position: relative;
  z-index: 5
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 20px
}

.top span {
  margin-right: 28px
}

.top .soc {
  display: flex;
  align-items: center
}

.top .soc a {
  color: var(--gold);
  margin-left: 18px;
  display: flex
}

.free {
  background: var(--gold);
  color: #10241a;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  padding: 0 30px;
  height: 58px;
  display: flex;
  align-items: center;
  margin-left: 20px
}

/* ============ Hero ============ */

.hero {
  position: relative;
  background: linear-gradient(100deg, #08150e 25%, #12291d 70%, #193423);
  color: #fff;
  min-height: 690px;
  overflow: visible
}

.court {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--photo-hero) center/cover no-repeat
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(7, 20, 13, .93) 10%, rgba(10, 28, 18, .82) 55%, rgba(14, 38, 25, .72)), linear-gradient(0deg, rgba(6, 16, 10, .5), transparent 40%)
}

.person {
  position: absolute;
  right: calc(50% - 560px);
  top: 75px;
  width: 506px;
  height: 690px;
  background: var(--owner-photo) no-repeat bottom center/contain;
  z-index: 3;
  animation: inR 1.3s .15s cubic-bezier(.2, .7, .2, 1) both
}

@keyframes inR {
  from {
    opacity: 0;
    transform: translateX(110px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes inL {
  from {
    opacity: 0;
    transform: translateX(-110px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.txt>* {
  animation: inL 1.1s cubic-bezier(.2, .7, .2, 1) both
}

.txt>:nth-child(2) {
  animation-delay: .15s
}

.txt>:nth-child(3) {
  animation-delay: .3s
}

.txt>:nth-child(4) {
  animation-delay: .45s
}

@media(prefers-reduced-motion:reduce) {

  .person,
  .txt>* {
    animation: none
  }
}

/* ============ Navigation bar (turns white and sticks on scroll) ============ */

nav {
  font-family: 'Open Sans', sans-serif;
  position: absolute;
  top: 58px;
  left: 0;
  right: 0;
  z-index: 20;
  height: 100px;
  transition: background .2s
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%
}

nav.fix {
  position: fixed;
  top: 0;
  height: 70px;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .12);
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(70px + env(safe-area-inset-top, 0px))
}

.logo {
  display: block
}

.lg {
  width: 104px;
  height: 96px;
  background: var(--logo-light) no-repeat left center/contain
}

nav.fix .lg {
  background-image: var(--logo-dark);
  width: 66px;
  height: 62px
}

.menu {
  display: flex;
  gap: 36px;
  font-weight: 600;
  font-size: 16px
}

.menu a.on,
.menu a:hover {
  color: var(--gold)
}

nav.fix .menu {
  color: #1b2a22
}

.burger {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font-size: 28px;
  cursor: pointer
}

/* ============ Hero text ============ */

.txt {
  position: relative;
  z-index: 3;
  padding: 200px 0 190px
}

.txt .g {
  font: 600 42px 'Cormorant Garamond', serif;
  color: var(--gold)
}

.txt h1 {
  font-size: 60px;
  max-width: 640px;
  font-weight: 700;
  margin: 2px 0 22px
}

.txt p {
  max-width: 470px;
  color: #dfe3ec;
  margin-bottom: 36px
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #10241a;
  font-size: 20px;
  padding: 14px 28px;
  border: 0;
  cursor: pointer;
  font-family: inherit
}

/* ============ Three green boxes under the hero ============ */

.feat {
  position: relative;
  z-index: 6;
  margin-top: -90px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1110px;
  margin-inline: auto;
  color: #fff
}

.feat div {
  padding: 48px 40px;
  display: flex;
  gap: 22px;
  background: var(--green)
}

.feat div:nth-child(2) {
  background: var(--green-light)
}

.feat h3 {
  font: 700 21px/1.35 'Mulish', sans-serif;
  margin-bottom: 10px
}

.feat p {
  font-size: 15.5px;
  color: #d5d9e4;
  line-height: 1.8
}

.feat svg {
  flex: none;
  width: 62px;
  height: 62px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5
}

/* ============ Shared section styles ============ */

section {
  padding: 100px 0
}

.soft {
  background: var(--soft)
}

.ttl {
  font: 400 44px/1.25 'Marcellus', serif;
  border-left: 10px solid var(--gold);
  padding-left: 28px;
  margin-bottom: 28px
}

/* ============ About Us ============ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.about p {
  color: var(--mute);
  margin-bottom: 16px
}


/* ============ Practice Areas (cards) ============ */

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  margin-top: 50px
}

.grid .pa {
  grid-column: span 2
}

.pa {
  background: var(--bg);
  box-shadow: 0 14px 34px rgba(10, 30, 20, .10);
  display: flex;
  flex-direction: column
}

.pic {
  height: 180px;
  position: relative;
  background: var(--src) var(--pos)/var(--sz) auto no-repeat
}

.pic:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 30, 20, .15), rgba(10, 30, 20, .62))
}

.pb {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.pa h3 {
  font-size: 26px;
  margin-bottom: 8px
}

.pa p {
  font-size: 15px;
  color: var(--mute);
  line-height: 1.7;
  margin-bottom: 14px
}

.pa ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.6
}

.pa li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 6px
}

.pa li:before {
  content: "";
  position: absolute;
  left: 2px;
  top: .68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold)
}

.pa .pb a {
  margin-top: auto;
  font-weight: 700;
  color: var(--green)
}

.pa .pb a:hover {
  color: var(--gold)
}

/* ============ Our Approach ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px
}

.steps div {
  border-left: 3px solid var(--gold);
  padding-left: 20px
}

.steps h3 {
  font-size: 25px
}

.steps p {
  color: var(--mute);
  font-size: 15px
}

/* ============ Testimonials and consultation form (shared green style) ============ */

.cq {
  font-family: 'Mulish', sans-serif;
  background: linear-gradient(135deg, #17301f, #25503a);
  color: #fff
}

.cq h2 {
  font: 400 42px/1.25 'Marcellus', serif;
  border-left: 10px solid var(--gold);
  padding-left: 30px
}

.tst {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  align-items: center
}

.tst p {
  margin-top: 30px;
  color: #e3e7f1
}

.tbox {
  background: rgba(6, 18, 12, .4);
  padding: 42px;
  text-align: center;
  font-size: 18px
}

.who {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-align: left
}

.av {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #d0a043;
  display: grid;
  place-items: center;
  color: #1d3a2b;
  font-weight: 700;
  font-size: 20px
}

.who small {
  color: #d0a043;
  display: block
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px
}

.dots i {
  width: 10px;
  height: 4px;
  background: #fff;
  border-radius: 2px
}

.dots i {
  cursor: pointer;
  transition: all .3s
}

.dots i.on {
  width: 34px;
  background: var(--gold)
}

.tbox {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity .3s
}

.tbox.out {
  opacity: 0
}

.tbox p {
  margin-bottom: 0
}

/* ============ Consultation form (Need Legal Advice) ============ */

.quote {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: 50px;
  align-items: end;
  padding-top: 90px
}

.quote .ph {
  min-height: 520px;
  background: var(--owner-photo) no-repeat bottom left/contain
}

.f {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px
}

.f input,
.f select,
.f textarea {
  width: 100%;
  padding: 15px 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
  font: 400 16px 'Mulish', sans-serif
}

.f select option {
  color: #222
}

.f textarea {
  grid-column: 1/3;
  height: 150px
}

.f ::placeholder {
  color: #c3c9d8
}

.send {
  margin-top: 26px;
  background: #d0a043;
  color: #10241a;
  border: 0;
  padding: 18px 34px;
  font: 700 17px 'Mulish', sans-serif;
  cursor: pointer
}

.ok {
  margin-top: 16px;
  color: #d0a043;
  min-height: 24px
}

#contact {
  position: relative;
  overflow: hidden
}

#contact:before {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 62%;
  height: 100%;
  background: var(--photo-gavel) no-repeat right bottom/contain;
  opacity: .3;
  filter: blur(1.5px);
  pointer-events: none
}

#contact .wrap {
  position: relative;
  z-index: 1
}

/* ============ Footer ============ */

footer {
  background: var(--green-deep);
  color: #c9d3cc;
  padding: 80px 0 0;
  font-size: 15px
}

.fg {
  display: grid;
  grid-template-columns: 1.5fr .8fr 1.1fr 1.3fr;
  gap: 48px
}

footer h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative
}

footer h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 3px;
  background: var(--gold)
}

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

footer li {
  margin-bottom: 11px
}

footer li a:hover {
  color: var(--gold)
}

.ct li {
  display: flex;
  gap: 12px;
  align-items: flex-start
}

.ct svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8
}

.follow {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap
}

.soc-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  padding: 11px 18px;
  font-weight: 700;
  border-radius: 4px;
  transition: .2s
}

.soc-btn:hover {
  background: var(--gold);
  color: #10241a
}

.soc-btn svg {
  flex: none
}

.copy {
  background: rgba(0, 0, 0, .3);
  margin-top: 64px;
  padding: 22px 0;
  font-size: 13.5px
}

.copy .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap
}

.copy a {
  color: var(--gold);
  font-weight: 700
}

/* ============ Mobile and tablet (screens under 900px) ============ */

@media(max-width:900px) {
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: #1b2a22;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px
  }

  .menu.open {
    display: flex
  }

  .menu a {
    padding: 12px 0
  }

  .burger {
    display: block
  }

  .top .soc,
  .top span:nth-child(3) {
    display: none
  }

  .person {
    right: -30px;
    top: auto;
    bottom: 0;
    width: 337px;
    height: 460px
  }

  .txt {
    padding: 170px 0 130px
  }

  .txt h1 {
    font-size: 38px
  }

  .txt .g {
    font-size: 30px
  }

  .feat,
  .about,
  .grid,
  .steps,
  .tst,
  .quote,
  .fg {
    grid-template-columns: 1fr
  }

  .f {
    grid-template-columns: 1fr
  }

  .f textarea {
    grid-column: 1
  }

  .top span {
    margin-right: 12px
  }

  .free {
    padding: 0 14px;
    font-size: 14px
  }

  .quote .ph {
    min-height: 340px
  }

  section {
    padding: 70px 0
  }

  .ttl,
  .cq h2 {
    font-size: 30px;
    padding-left: 20px
  }

  .grid .pa,
  .grid .pa:nth-child(7) {
    grid-column: auto
  }
}

@media(max-width:560px) {
  .top span:nth-child(2) {
    display: none
  }
}

/* ============ Final overrides: all headings use Mulish bold; footer lines; hero animation timing ============ */
h1,
h2,
h3,
.pf,
.ttl,
.cq h2,
.txt .g,
footer h3 {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  letter-spacing: 0
}

.txt h1 {
  font-size: 52px;
  line-height: 1.2
}

.txt .g {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 6px
}

.ttl {
  font-size: 36px;
  line-height: 1.3
}

.cq h2 {
  font-size: 34px;
  line-height: 1.3
}

.pa h3,
.steps h3 {
  font-size: 21px
}

footer h3 {
  font-size: 20px
}


/* ============ Visit Our Office and map ============ */

.find {
  background: var(--soft)
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 36px;
  margin-top: 40px
}

.info {
  background: var(--green);
  color: #fff;
  padding: 36px 34px
}

.info h3 {
  font-size: 22px;
  margin-bottom: 22px
}

.info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 26px
}

.info li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  line-height: 1.6
}

.info svg {
  flex: none;
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  margin-top: 3px
}

.info a:hover {
  color: var(--gold)
}

.btns2 {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap
}

.ol {
  color: var(--gold);
  font-weight: 700;
  text-decoration: underline
}

.mapbox {
  position: relative;
  min-height: 440px;
  background: linear-gradient(135deg, #17301f, #25503a);
  overflow: hidden
}

.mapbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0
}

.mapph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(35deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 46px), repeating-linear-gradient(-55deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 58px)
}

.mapph b {
  font-size: 22px
}

.mapph .btn {
  margin-top: 12px
}

/* ============ Footer bottom bar links ============ */

.cl {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap
}

.tcl {
  background: none;
  border: 0;
  color: #c9d3cc;
  cursor: pointer;
  font: inherit;
  text-decoration: underline
}

.tcl:hover {
  color: var(--gold)
}

/* ============ Terms and Conditions pop-up ============ */

dialog.tc {
  border: 0;
  padding: 0;
  max-width: 780px;
  width: 92%;
  max-height: 86vh;
  overflow: auto;
  background: #fff;
  color: #1b2a22;
  margin: auto
}

dialog.tc::backdrop {
  background: rgba(5, 16, 10, .72)
}

.tch {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: var(--green);
  color: #fff;
  position: sticky;
  top: 0
}

.tch h2 {
  font-size: 22px
}

.tch button {
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  cursor: pointer;
  line-height: 1
}

.tcbody {
  padding: 26px 28px 34px;
  font-size: 15px;
  line-height: 1.75
}

.tcbody p {
  margin-bottom: 10px
}

.tcbody h3 {
  font-size: 17px;
  margin: 22px 0 6px;
  color: #10241a
}

@media(max-width:900px) {
  .txt h1 {
    font-size: 34px
  }

  .txt .g {
    font-size: 22px
  }

  .ttl,
  .cq h2 {
    font-size: 26px
  }

  .fgrid {
    grid-template-columns: 1fr
  }

  .mapbox {
    min-height: 340px
  }
}

/* footer headings: side line */
footer h3 {
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--gold);
  line-height: 1.25;
  margin-bottom: 24px
}

footer h3:after {
  display: none
}

/* slower hero entrance, button rises from below */
.person {
  animation-duration: 2.8s;
  animation-delay: .3s
}

.txt>* {
  animation-duration: 2.5s
}

.txt>:nth-child(2) {
  animation-delay: .3s
}

.txt>:nth-child(3) {
  animation-delay: .6s
}

.txt>:nth-child(4) {
  animation-name: inU;
  animation-delay: .9s
}

@keyframes inU {
  from {
    opacity: 0;
    transform: translateY(70px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media(prefers-reduced-motion:reduce) {

  .person,
  .txt>*,
  .txt>:nth-child(4) {
    animation: none
  }
}

/* About: booking form */
/* ============ About: booking form (sends to WhatsApp) ============ */

.bk {
  position: relative;
  background: linear-gradient(rgba(14, 40, 27, .88), rgba(12, 34, 23, .93)), var(--photo-statue) center/cover;
  padding: 42px 40px;
  color: #fff;
  box-shadow: 0 18px 44px rgba(10, 30, 20, .25)
}

.sch {
  color: var(--gold);
  font-size: 18px;
  font-weight: 600
}

.bk h3 {
  font-size: 34px;
  line-height: 1.2;
  margin: 4px 0 0;
  color: #fff
}

.bk .f {
  margin-top: 26px
}

.bk .f textarea {
  height: 130px
}

.bk .send {
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 24px
}

.bk .ok {
  color: var(--gold)
}

.bk .bn {
  display: block;
  margin-top: 12px;
  color: #c3cdc6;
  font-size: 13px
}

@media(max-width:560px) {
  .bk {
    padding: 30px 22px
  }

  .bk h3 {
    font-size: 28px
  }
}