:root {
  --navy: #1c2543;
  --navy-dark: #1b2543;
  --black: #000;
  --text: #000;
  --muted: #2f2f2f;
  --footer: #ededed;
  --white: #fff;
  --overlay: #06080f;
  --max: 1270px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Baskervville", serif;
  font-size: 18px;
  line-height: 30px;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 10000;
  background: var(--white);
  padding: 8px 12px;
}

/* Header */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 42px 0 48px;
}

.site-header.is-solid {
  position: fixed;
  background: var(--white);
  padding: 24px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-inner nav {
  width: 100%;
}

.nav-desktop {
  display: flex;
  align-items: center;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-transform: uppercase;
}

.nav-desktop a {
  text-decoration: none;
  color: var(--white);
  padding: 0 22px;
}

.nav-desktop a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.site-header.is-solid .nav-desktop a {
  color: var(--black);
}

.nav-desktop li:first-child a {
  padding-left: 0;
}

.nav-desktop li:last-child a {
  padding-right: 0;
}

.nav-desktop .left-last {
  margin-right: auto;
}

.nav-desktop .right-first {
  margin-left: auto;
}

.logo-slot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.logo-white {
  width: 327px;
  max-width: 36vw;
  height: auto;
}

.logo-dark {
  width: 101px;
  height: auto;
  display: none;
}

.site-header.is-solid .logo-white {
  display: none;
}

.site-header.is-solid .logo-dark {
  display: block;
}

.logo-mobile {
  display: none;
  width: 86px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 28px;
  padding: 0;
  border: 0;
  background: url("../img/hamburger-white.svg") center / 22px 18px no-repeat;
  cursor: pointer;
  margin-left: auto;
}

.site-header.is-solid .menu-toggle {
  background-image: url("../img/hamburger.svg");
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy) url("../img/mhd-logo-mobile-menu.svg") left 20px top 30px no-repeat;
  z-index: 200;
  padding: 110px 32px 40px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav a {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 17px 0 18px;
}

.mobile-close {
  position: absolute;
  top: 29px;
  right: 20px;
  width: 30px;
  height: 30px;
  border: 0;
  background: url("../img/close.svg") center / 30px 30px no-repeat;
  cursor: pointer;
}

body.nav-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--navy-dark) url("../img/mhdiroda-mhdiroda-fooldal-bg-v3.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0.8;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 751px;
  padding: 140px 20px 100px;
}

.hero-logo-mobile {
  display: none;
  width: 279px;
  margin: 0 auto 82px;
}

.hero h1 {
  margin: 0 0 96px;
  font-family: "Baskervville", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.37;
}

.hero-mark {
  width: 69px;
  margin: 0 auto;
}

/* Section titles */
.section-title,
h1.section-title {
  font-family: "Baskervville", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: 10px;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  margin: 0;
}

.intro-text {
  font-family: "Baskervville", serif;
  font-size: 32px;
  line-height: 55px;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.intro-frame {
  border-left: 1px solid var(--black);
  border-right: 1px solid var(--black);
  padding: 36px 20px;
}

#rolunk,
#szakteruletek,
#partnerek,
#kapcsolat {
  scroll-margin-top: 110px;
}
.about-intro {
  padding: 90px 0 0;
}

.about-intro .section-title {
  margin-bottom: 40px;
}

.about-spacer {
  height: 180px;
}

.about-team {
  background: var(--navy);
  color: var(--white);
  padding: 80px 20px 80px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: var(--max);
  margin: 0 auto 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.team-card:nth-child(1) {
  padding-right: 12%;
}

.team-card:nth-child(2) {
  padding: 0 6%;
}

.team-card:nth-child(3) {
  padding-left: 12%;
}

.team-card img {
  border-radius: 20px;
  margin-bottom: 7px;
  width: 100%;
}

.team-card h2 {
  font-family: "Baskervville", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 45px;
  letter-spacing: 0.02px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 20px;
}

.team-bio {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 30px;
}

.team-meta {
  font-family: "Baskervville", serif;
  font-size: 18px;
  line-height: 26px;
}

.team-meta a {
  color: var(--white);
  text-decoration: none;
}

.socials {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 16px 0 20px;
}

.socials a {
  display: inline-flex;
  color: currentColor;
}

.socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn {
  display: inline-block;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 48px;
  padding: 6px 22px;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn-navy:hover,
.btn-navy:focus {
  background: var(--white);
  color: var(--navy);
}

/* Specialties */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 80px 0;
}

.split img {
  border-radius: 55px;
  width: 100%;
}

.desktop-only {
  display: block;
}

.mobile-only-img {
  display: none;
  border-radius: 55px;
  margin-bottom: 24px;
}

.split .section-title {
  text-align: left;
  margin-bottom: 50px;
}

.split-lead {
  font-size: 18px;
  line-height: 30px;
  margin-bottom: 20px;
}

.divider {
  height: 1px;
  background: var(--black);
  border: 0;
  margin: 0 auto;
}

.specialties {
  padding: 40px 0 80px;
}

.specialty {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  border: 1px solid var(--black);
  padding: 40px 35px;
  margin-top: -1px;
  cursor: pointer;
}

.specialty-photo {
  border-radius: 25px;
  width: 100%;
}

.specialty-photo-mobile {
  display: none;
  border-radius: 25px;
  width: 100%;
  margin-bottom: 16px;
}

.specialty h3 {
  font-family: "Baskervville", serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 55px;
  margin: 0 0 12px;
}

.specialty-lead {
  margin-bottom: 16px;
}

.specialty-more {
  display: none;
}

.specialty.is-open .specialty-more {
  display: block;
}

.specialty-opener {
  width: 30px;
  height: 30px;
  margin-top: 16px;
  transition: transform 0.3s ease;
}

.specialty.is-open .specialty-opener {
  transform: rotate(180deg);
}

/* Partners */
.partners-intro {
  padding: 90px 0 0;
}

.partners-intro .section-title {
  margin-bottom: 40px;
}

.partners-spacer {
  height: 80px;
}

.partners-grid-wrap {
  padding: 0 20px 80px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
  max-width: var(--max);
  margin: 0 auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
}

.partner-card img {
  border-radius: 20px;
  width: 100%;
  margin-bottom: 12px;
}

.partner-card h2 {
  font-family: "Baskervville", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 35px;
  letter-spacing: 0.02px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.partner-card .bio {
  font-size: 18px;
  line-height: 30px;
  flex: 1;
  margin-bottom: 20px;
}

.partner-card .meta {
  font-size: 18px;
  line-height: 26px;
}

.partner-card .meta a {
  text-decoration: none;
}

.partner-card .socials {
  color: var(--navy);
}

.partner-card .socials svg {
  width: 20px;
  height: 20px;
}

/* Contact */
.contact-intro {
  padding: 90px 0 50px;
  text-align: center;
}

.contact-intro .section-title {
  margin-bottom: 40px;
}

.contact-copy {
  max-width: 734px;
  margin: 0 auto 24px;
}

.contact-address {
  max-width: 734px;
  margin: 0 auto 24px;
}

.contact-address a {
  text-decoration: none;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding-bottom: 50px;
}

.contact-socials {
  justify-content: center;
  color: var(--navy);
  gap: 23px;
}

.contact-socials svg {
  width: 35px;
  height: 35px;
}

.lawyers-reach {
  padding: 40px 20px 50px;
  text-align: center;
}

.lawyers-reach .section-title {
  margin-bottom: 40px;
}

.reach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--max);
  margin: 0 auto;
}

.reach-item {
  padding: 0 24px;
}

.reach-item:nth-child(2) {
  border-left: 1px solid var(--black);
}

.reach-item a {
  text-decoration: none;
}

.map-wrap {
  padding: 0 0 50px;
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--footer);
  padding: 63px 0 42px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
}

.footer-logo {
  width: 74px;
  margin-bottom: 28px;
}

.footer-links {
  list-style: none;
  margin: 0 0 48px;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: -0.015px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
}

.copyright {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: -0.015px;
  color: var(--muted);
  margin: 0;
}

.footer-right {
  text-align: right;
}

.footer-socials {
  justify-content: flex-end;
  color: var(--navy);
  margin: 0 0 54px;
}

.footer-mark {
  width: 41px;
  margin-left: auto;
}

/* Inner pages */
.inner-page .site-header,
.inner-page .site-header.is-solid,
.legal-page .site-header,
.legal-page .site-header.is-solid {
  position: relative;
  background: var(--white);
  box-shadow: none;
}

.inner-page .logo-white,
.legal-page .logo-white {
  display: none;
}

.inner-page .logo-dark,
.legal-page .logo-dark {
  display: block;
}

.inner-page .nav-desktop a,
.legal-page .nav-desktop a {
  color: var(--black);
}

.inner-page .menu-toggle,
.legal-page .menu-toggle {
  background-image: url("../img/hamburger.svg");
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 70px 20px 100px;
}

.legal-content h1 {
  font-family: "Baskervville", serif;
  font-size: 36px;
  line-height: 52px;
  letter-spacing: 10px;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 40px;
}

/* Inner header logo on legal: use compact centered logo */
.inner-page .logo-slot .logo-dark,
.legal-page .logo-slot .logo-dark {
  width: 101px;
}

/* @media (min-width: 1025px) {
  .inner-page .header-inner,
  .legal-page .header-inner {
    min-height: 101px;
  }
} */

@media (max-width: 1024px) {
  .header-inner nav,
  .nav-desktop,
  .logo-slot {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .inner-page .logo-mobile,
  .legal-page .logo-mobile,
  .site-header.is-solid .logo-mobile {
    display: block;
  }

  .hero-logo-mobile {
    display: block;
  }

  .hero h1 {
    font-size: 30px;
    margin-bottom: 64px;
  }

  .section-title {
    font-size: 24px;
    line-height: 35px;
  }

  .intro-text {
    font-size: 28px;
    line-height: 36px;
  }

  .split {
    grid-template-columns: 1fr;
    padding: 80px 0 30px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only-img {
    display: block;
  }

  .split .section-title {
    text-align: center;
    margin-bottom: 75px;
  }

  .team-grid,
  .partners-grid,
  .reach-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .team-card:nth-child(1),
  .team-card:nth-child(2),
  .team-card:nth-child(3) {
    padding: 0 10px 25px;
  }

  .team-card:not(:last-child) {
    border-bottom: 1px solid var(--white);
    margin-bottom: 0;
  }

  .about-team {
    padding: 0 10px 60px;
  }

  .specialty {
    grid-template-columns: 1fr;
    padding: 0 0 15px;
    cursor: pointer;
  }

  .specialty-photo {
    display: none;
  }

  .specialty-head {
    position: relative;
    padding: 15px 50px 15px 0;
  }

  .specialty h3 {
    font-size: 28px;
    line-height: 36px;
    min-height: 46px;
  }

  .specialty-head::after {
    content: "";
    width: 30px;
    height: 30px;
    position: absolute;
    top: 15px;
    right: 0;
    background: url("../img/accordion-opener.svg") center / 30px 30px no-repeat;
    transition: transform 0.3s ease;
  }

  .specialty.is-open .specialty-head::after {
    transform: rotate(180deg);
  }

  .specialty-opener {
    display: none;
  }

  .specialty-body {
    display: none;
    padding: 15px;
    margin: 0 -15px;
    width: auto;
    border-top: 1px solid var(--black);
  }

  .specialty.is-open .specialty-body {
    display: block;
  }

  .specialty-photo-mobile {
    display: block;
  }

  .specialty-more {
    display: block;
  }

  .reach-item:nth-child(2) {
    border: 0;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 25px;
  }

  .site-header {
    padding: 30px 0;
  }

  .hero {
    padding: 0 20px;
  }

  .hero-inner {
    max-width: 315px;
    padding: 138px 0 80px;
  }

  .hero-logo-mobile {
    width: 100%;
    margin-bottom: 82px;
  }

  .hero-mark {
    width: 49px;
  }

  .intro-frame {
    border: 0;
    padding: 0;
  }

  .intro-text {
    font-size: 20px;
    line-height: 36px;
  }

  .about-intro,
  .partners-intro,
  .contact-intro {
    padding: 70px 0 0;
  }

  .about-intro .section-title,
  .contact-intro .section-title {
    padding: 0 20px;
  }

  .about-spacer {
    height: 170px;
  }

  .team-card h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .split img {
    border-radius: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-right {
    text-align: left;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-mark {
    margin-left: 0;
  }
}
