:root {
  --mg-navy: #202a3b;
  --mg-navy-deep: #151d2a;
  --mg-gold: #c9b38c;
  --mg-gold-dark: #ae9363;
  --mg-ink: #263142;
  --mg-text: #5d6878;
  --mg-surface: #f6f5f2;
  --mg-line: #e6e4df;
  --mg-white: #fff;
  --mg-shadow: 0 18px 50px rgba(26, 36, 51, .1);
}

html { scroll-behavior: smooth; }
body { color: var(--mg-text); background: var(--mg-white); }
p { color: var(--mg-text); line-height: 1.8; }
h1, h2, h3, h4, h5, h6 { color: var(--mg-ink); line-height: 1.2; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(201,179,140,.55); outline-offset: 3px; }
.section-padding { padding: 96px 0; }
.theme-btn, .theme-btn-s2, .theme-btn-s3 { border-radius: 3px; letter-spacing: .04em; font-weight: 700; box-shadow: none; }
.theme-btn { background: var(--mg-gold); }
.theme-btn:hover { background: var(--mg-gold-dark); }

/* Header */
.modern-header { color: #fff; }
.modern-header .modern-topbar { height: 38px; display: flex; align-items: center; background: rgba(14, 21, 31, .78); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.modern-header .topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; font-size: 12px; letter-spacing: .04em; }
.modern-header .topbar-links { display: flex; gap: 26px; }
.modern-header .topbar-links a { color: rgba(255,255,255,.84); }
.modern-header .topbar-links i { margin-right: 8px; color: var(--mg-gold); }
.modern-header .navigation { background: rgba(23, 32, 46, .72) !important; border: 0 !important; border-bottom: 1px solid rgba(255,255,255,.1) !important; backdrop-filter: blur(14px); }
.modern-header .navigation > .container { min-height: 84px; display: flex; align-items: center; }
.modern-header .navbar-header { flex: 0 0 auto; }
.modern-header .navbar-brand { margin: 0 !important; padding: 0 15px; }
.modern-header .navbar-brand img { width: 205px; max-width: 205px !important; }
.modern-header #navbar { margin-right: 0 !important; margin-left: auto; }
.modern-header #navbar > ul > li > a { position: relative; padding: 32px 18px !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: .035em; color: rgba(255,255,255,.9) !important; }
.modern-header #navbar > ul > li:not(.nav-contact) > a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 22px; height: 2px; background: var(--mg-gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.modern-header #navbar > ul > li:hover > a::after, .modern-header #navbar > ul > li.active > a::after { transform: scaleX(1); }
.modern-header #navbar > ul > li.active > a { color: var(--mg-gold) !important; }
.modern-header #navbar > ul > li.active > a, .modern-header #navbar > ul > li.active > a:hover, .modern-header #navbar > ul > li.active > a:focus { background: transparent !important; }
.modern-header #navbar > ul > li.nav-contact { margin-left: 14px; }
.modern-header #navbar > ul > li.nav-contact > a { margin-top: 20px; padding: 12px 18px !important; background: var(--mg-gold); color: var(--mg-navy-deep) !important; border-radius: 3px; }
.modern-header #navbar > ul > li.nav-contact > a:hover { background: #d7c49f; }

/* Hero */
.hero-style-1 { height: min(860px, 100vh); min-height: 700px; }
.hero-style-1 .slide-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,20,30,.55) 0%, rgba(13,20,30,.18) 58%, rgba(13,20,30,.05) 100%); pointer-events: none; }
.hero-style-1 .slide-inner > .container { z-index: 2; }
.hero-style-1 .slide-title { max-width: 720px; }
.hero-style-1 .slide-title h1, .hero-style-1 .slide-title h2 { color: #fff; font-size: clamp(46px, 5vw, 68px); font-weight: 400; line-height: 1.08; letter-spacing: -.025em; margin: 0 0 24px; text-wrap: balance; }
.hero-style-1 .slide-text p { max-width: 570px; font-size: 19px; font-weight: 400; line-height: 1.65; margin-bottom: 34px; }
.hero-style-1 .theme-btn { padding: 16px 27px; color: var(--mg-navy-deep); }
.hero-style-1 .swiper-cust-pagination { display: none !important; }

/* Homepage sections */
.about-section { margin-top: 0; padding: 110px 0 100px; }
.about-section .section-title .icon { margin-bottom: 17px; }
.about-section .section-title span, .section-title-s2 > span, .section-title-s3 > span { color: var(--mg-gold-dark); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; }
.about-section .section-title h2, .section-title-s2 h2, .section-title-s3 h2 { font-weight: 400; letter-spacing: -.02em; }
.about-section .mid-col { position: relative; z-index: 0; }
.about-section .mid-col::before { content: ""; position: absolute; left: -12px; top: 16px; width: 100%; height: 100%; border: 1px solid var(--mg-gold); border-radius: 3px; z-index: -1; }
.about-section .mid-col img { position: relative; z-index: 1; width: 100%; border-radius: 3px; box-shadow: var(--mg-shadow); }
.about-section .right-col { margin-top: 28px; padding: 30px !important; background: var(--mg-navy); border-radius: 3px; box-shadow: var(--mg-shadow); }
.about-section .right-col p, .about-section .right-col h4, .about-section .right-col span { color: #fff; }
.about-section .right-col > p:first-child:first-letter { color: var(--mg-gold); }
.about-section .more-about { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--mg-navy); font-weight: 700; }

.feature-section { padding: 80px 0 82px; background: var(--mg-surface); }
.feature-section .row { display: flex; flex-wrap: wrap; }
.feature-section .row > div { display: flex; }
.feature-section .info-col, .feature-section .feature-grid { width: 100%; min-height: 285px; padding: 38px 28px; border: 1px solid var(--mg-line); border-radius: 4px; background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feature-section .info-col { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; }
.feature-section .info-col::before { background: linear-gradient(145deg, var(--mg-navy), #303d51); opacity: 1; }
.feature-section .feature-grid:hover { transform: translateY(-6px); background: #fff; border-color: rgba(201,179,140,.65); box-shadow: var(--mg-shadow); }
.feature-section .feature-grid:hover h3, .feature-section .feature-grid:hover p { color: inherit; }
.feature-section .feature-grid:hover .fi::before { color: var(--mg-gold-dark); }
.feature-section .feature-grid h3 { font-weight: 400; }

.service-section { margin: 80px auto !important; max-width: 1440px; padding: 0 28px; }
.service-section .content-area { display: flex; min-height: 540px; overflow: hidden; border-radius: 5px; box-shadow: var(--mg-shadow); }
.service-section .left-col { width: 46%; max-width: none; height: auto !important; padding: 60px; float: none; }
.service-section .left-col::before { background: linear-gradient(180deg, rgba(21,29,42,.05), rgba(21,29,42,.88)); }
.service-section .left-col blockquote { font-size: 23px; line-height: 1.65; }
.service-section .right-col { width: 54%; max-width: none; float: none; padding: 80px 70px; display: flex; align-items: center; background: var(--mg-navy); }
.service-section .section-title-s2 p { max-width: 590px; color: rgba(255,255,255,.7); font-size: 17px; }
.service-section .section-title-s2 h2 { color: #fff; font-size: 42px; }

.team-section { background: var(--mg-surface); }
.team-section .section-title-s3 { margin-bottom: 50px; }
.team-section .team-grids .grid { position: relative; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 12px 35px rgba(26,36,51,.08); transition: transform .25s ease, box-shadow .25s ease; }
.team-section .team-grids .grid:hover { transform: translateY(-7px); box-shadow: var(--mg-shadow); }
.team-section .team-grids .img-holder { aspect-ratio: 2 / 3; overflow: hidden; }
.team-section .team-grids .img-holder img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-section .team-grids .details { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; min-height: 125px; padding: 60px 20px 20px; display: flex; align-items: flex-end; justify-content: center; border: 0; background: linear-gradient(180deg, transparent, rgba(9,14,21,.92)); text-align: center; pointer-events: none; }
.team-section .team-grids .details h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.45; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.team-section .team-grids .details h3 a { color: #fff; pointer-events: auto; }

.contact-section .contact-info-col, .contact-section-s3 .contact-info-col { width: 50%; }
.contact-section .contact-form-col, .contact-section-s3 .contact-form-col { width: 50%; padding: 48px 60px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.contact-section .contact-form, .contact-section-s3 .contact-form { padding-left: 0; }
.contact-section .section-title-s2 h2, .contact-section-s3 .section-title-s2 h2 { color: #fff; }
.contact-section .section-title-s2 p, .contact-section-s3 .section-title-s2 p { color: rgba(255,255,255,.68); }
.contact-section input, .contact-section textarea, .contact-section-s3 input, .contact-section-s3 textarea { border: 1px solid rgba(255,255,255,.22) !important; border-radius: 3px !important; background: rgba(255,255,255,.07) !important; color: #fff !important; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.contact-section input:focus, .contact-section textarea:focus, .contact-section-s3 input:focus, .contact-section-s3 textarea:focus { border-color: var(--mg-gold) !important; background: rgba(255,255,255,.1) !important; box-shadow: 0 0 0 3px rgba(201,179,140,.13) !important; }
.contact-section form ::placeholder, .contact-section-s3 form ::placeholder { color: rgba(255,255,255,.58); }

/* Internal pages */
.page-title { min-height: 390px; position: relative; display: flex; align-items: flex-end; padding-bottom: 62px; text-align: left; }
.page-title::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,25,37,.82), rgba(17,25,37,.42)); }
.page-title .container { position: relative; z-index: 1; display: block; width: 1170px; max-width: 100%; height: auto; margin: 0 auto; padding-top: 0 !important; }
.page-title .container > .row { position: static; display: block; transform: none; }
.page-title h1, .page-title h2 { color: #fff; font-size: clamp(38px, 5vw, 58px); font-weight: 400; letter-spacing: -.025em; margin: 0 0 10px; }
.page-title p { max-width: 720px; color: rgba(255,255,255,.8); font-size: 17px; }
.service-single-section { background: #fff; }
.service-single-section > .container > .service-single-content { max-width: 920px; margin: 0 auto; }
.service-single-section .service-single-content > h2 { font-size: 40px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 28px; }
.service-single-section .service-single-content > h3 { margin-top: 38px; color: var(--mg-gold-dark); font-size: 14px; font-family: "Muli", sans-serif; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.service-single-section .service-single-content > p { font-size: 17px; }
.service-features { margin-top: 32px; padding: 28px; background: var(--mg-surface); border-left: 3px solid var(--mg-gold); border-radius: 3px; }
.service-features li { line-height: 1.65; }
.service-features li i { color: var(--mg-gold-dark); }
.service-single-section .service-features-grids { display: flex; align-items: stretch; }
.service-single-section .service-features-grids::before, .service-single-section .service-features-grids::after { display: none; }
.service-single-section .service-features-grids .grid { width: 33.333%; float: none; display: flex; flex-direction: column; border-radius: 0; border: 0; border-right: 1px solid var(--mg-line); box-shadow: none; }
.service-single-section .service-features-grids .grid:last-child { border-right: 0; }
.service-single-section .service-features-grids .grid p { flex: 1; }
.service-sidebar .contact-widget { border-radius: 4px; overflow: hidden; background: var(--mg-navy); box-shadow: var(--mg-shadow); }

.history-section { background: var(--mg-surface); }
.history-section .history-grids::before { background: var(--mg-gold); }
.history-section .history-grids .grid { background: transparent; border-radius: 0; box-shadow: none; }
.history-section .history-grids > .grid { display: flex; align-items: center; justify-content: space-between; }
.history-section .history-grids > .grid .time-title, .history-section .history-grids > .grid .details { float: none; }
.history-section .history-grids > .grid .time-title { padding-top: 30px; padding-bottom: 30px; }
.history-section .time-title h3 { color: var(--mg-gold-dark); font-weight: 500; }
.cta-section.about-pg-cta-section { margin: 0; padding: 92px 0; }
.cta-section.about-pg-cta-section::before { background: linear-gradient(145deg, rgba(21,29,42,.96), rgba(32,42,59,.88)); opacity: 1; }
.cta-section.about-pg-cta-section h2 { font-weight: 400; }

.lawyer-grid { gap: 32px 24px; }
.lawyer-card { overflow: hidden; padding-bottom: 23px; background: #fff; border: 1px solid var(--mg-line); border-radius: 4px; box-shadow: 0 10px 30px rgba(26,36,51,.07); transition: transform .25s ease, box-shadow .25s ease; }
.lawyer-card:hover { transform: translateY(-6px); box-shadow: var(--mg-shadow); }
.lawyer-photo { aspect-ratio: 2 / 3; }
.lawyer-card h3 { padding: 0 14px; font-size: 15px; font-weight: 500; }
.lawyer-profile { padding: 38px; background: var(--mg-surface); border-radius: 4px; }
.profile-photo img { border-radius: 3px; box-shadow: var(--mg-shadow); }
.profile-content h1 { font-weight: 400; letter-spacing: -.02em; }

.contact-pg-section .contact-info { border-radius: 4px; }
.contact-pg-section .contact-form { margin-top: 28px; }
.contact-map iframe { filter: saturate(.65) contrast(.95); }

/* Not found */
.not-found-section { min-height: 760px; height: 78vh; max-height: 920px; padding: 150px 0 70px; display: flex; align-items: center; position: relative; overflow: hidden; background: linear-gradient(145deg, #f7f6f3, #fff); }
.not-found-section::before { content: "404"; position: absolute; right: -35px; bottom: -115px; color: rgba(32,42,59,.035); font-family: "Roboto Slab", serif; font-size: min(36vw, 520px); line-height: 1; pointer-events: none; }
.not-found-section .container { position: relative; z-index: 1; }
.not-found-content { max-width: 760px; margin: 0 auto; text-align: center; }
.not-found-code { display: inline-block; margin-bottom: 17px; color: var(--mg-gold-dark); font-family: "Roboto Slab", serif; font-size: 78px; font-weight: 400; line-height: 1; }
.not-found-label { margin-bottom: 14px; color: var(--mg-gold-dark); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.not-found-content h1 { margin: 0 auto 22px; max-width: 680px; font-size: 43px; font-weight: 400; letter-spacing: -.025em; }
.not-found-text { max-width: 620px; margin: 0 auto 34px; font-size: 17px; }
.not-found-actions { display: flex; align-items: center; justify-content: center; gap: 24px; }
.not-found-contact { color: var(--mg-navy); font-weight: 700; border-bottom: 1px solid var(--mg-gold); }

/* Footer */
.modern-footer { background: var(--mg-navy-deep); }
.modern-footer .footer-cta { padding: 42px 0; background: var(--mg-gold); }
.modern-footer .footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.modern-footer .footer-cta span { color: rgba(21,29,42,.72); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.modern-footer .footer-cta h2 { margin: 7px 0 0; color: var(--mg-navy-deep); font-size: 30px; font-weight: 400; }
.modern-footer .footer-cta-actions { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.modern-footer .footer-phone { color: var(--mg-navy-deep); font-weight: 700; }
.modern-footer .footer-cta .theme-btn { background: var(--mg-navy); color: #fff; }
.modern-footer .upper-footer { padding: 72px 0 60px; }
.modern-footer .upper-footer .col { min-height: 0; }
.modern-footer .footer-brand { max-width: 460px; }
.modern-footer .footer-brand img { width: 230px; margin-bottom: 25px; }
.modern-footer .footer-brand p { max-width: 430px; line-height: 1.8; }
.modern-footer .footer-social { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-top: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; }
.modern-footer .footer-social:hover { background: var(--mg-gold); color: var(--mg-navy); }
.modern-footer .widget-title { margin-bottom: 22px; }
.modern-footer .widget-title h3 { font-size: 17px; font-family: "Muli", sans-serif; font-weight: 700; letter-spacing: .04em; }
.modern-footer .link-widget { padding-left: 0 !important; }
.modern-footer .link-widget ul { width: 100%; float: none; }
.modern-footer .link-widget ul > li + li { margin-top: 11px; }
.modern-footer .link-widget ul a:hover { color: var(--mg-gold); text-decoration: none; }
.modern-footer .contact-widget { padding-left: 0 !important; }
.modern-footer .contact-widget ul { margin-top: 0; }
.modern-footer .contact-widget li { display: flex; align-items: flex-start; gap: 12px; }
.modern-footer .contact-widget li i { margin-top: 4px; color: var(--mg-gold); }
.modern-footer .contact-widget li a { color: #cdced0; overflow-wrap: anywhere; }
.modern-footer .lower-footer { border-top: 1px solid rgba(255,255,255,.09); }
.modern-footer .lower-footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 20px; }
.modern-footer .lower-footer p, .modern-footer .lower-footer span { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; }

@media (max-width: 1199px) {
  .page-title .container { width: 970px; }
  .modern-header #navbar > ul > li > a { padding-left: 13px !important; padding-right: 13px !important; }
  .service-section .right-col { padding: 65px 50px; }
}

@media (max-width: 991px) {
  .page-title .container { width: 750px; }
  .modern-header .modern-topbar { display: none; }
  .modern-header .navigation > .container { min-height: 76px; display: block; }
  .modern-header .navbar-header { min-height: 76px; display: flex; align-items: center; }
  .modern-header .navbar-brand img { width: 185px; }
  .modern-header #navbar { background: var(--mg-navy-deep); }
  .modern-header #navbar > ul > li > a { padding: 14px 20px !important; }
  .modern-header #navbar > ul > li > a::after { display: none; }
  .modern-header #navbar > ul > li.nav-contact { margin: 8px 14px 18px; }
  .modern-header #navbar > ul > li.nav-contact > a { margin: 0; text-align: center; }
  .hero-style-1 { height: 650px; min-height: 650px; }
  .hero-style-1 .slide-inner::after { background: rgba(13,20,30,.48); }
  .about-section .right-col { margin-top: 45px; }
  .feature-section .row > div { margin-bottom: 18px; }
  .service-section .content-area { display: block; }
  .service-section .left-col, .service-section .right-col { width: 100%; }
  .service-section .left-col { min-height: 470px; }
  .contact-section .contact-info-col, .contact-section-s3 .contact-info-col, .contact-section .contact-form-col, .contact-section-s3 .contact-form-col { width: 100%; }
  .contact-section .contact-form-col, .contact-section-s3 .contact-form-col { padding: 48px 40px; }
  .modern-footer .footer-cta-inner { align-items: flex-start; flex-direction: column; }
  .modern-footer .upper-footer .col { margin-bottom: 45px; }
  .not-found-section { min-height: 620px; height: auto; padding: 85px 0; }
}

@media (max-width: 767px) {
  .page-title .container { width: 100%; }
  .section-padding { padding: 72px 0; }
  .hero-style-1 { height: 590px; min-height: 590px; text-align: left; }
  .hero-style-1 .container, .hero-style-1 .slide-title, .hero-style-1 .slide-text, .hero-style-1 .slide-btns { text-align: left; margin-left: 0; }
  .hero-style-1 .slide-title h1, .hero-style-1 .slide-title h2 { font-size: 39px; }
  .hero-style-1 .slide-text p { font-size: 16px; }
  .about-section { padding: 76px 0; }
  .about-section .mid-col { margin-top: 35px; }
  .feature-section .row { display: block; }
  .feature-section .row > div { display: block; }
  .feature-section .info-col, .feature-section .feature-grid { min-height: 0; }
  .service-section { margin: 55px auto !important; padding: 0 15px; }
  .service-section .left-col { min-height: 420px; padding: 35px 25px; }
  .service-section .left-col blockquote { font-size: 19px; }
  .service-section .right-col { padding: 55px 27px; }
  .service-section .section-title-s2 h2 { font-size: 34px; }
  .contact-section .contact-form-col, .contact-section-s3 .contact-form-col { padding: 40px 24px; }
  .service-single-section .service-features-grids { display: block; }
  .service-single-section .service-features-grids .grid { width: 100%; border-right: 0; border-bottom: 1px solid var(--mg-line); }
  .service-single-section .service-features-grids .grid:last-child { border-bottom: 0; }
  .page-title { min-height: 315px; padding-bottom: 38px; }
  .page-title h1, .page-title h2 { font-size: 38px; }
  .service-single-section .service-single-content > h2 { font-size: 32px; }
  .lawyer-profile { padding: 22px; }
  .modern-footer .footer-cta { padding: 35px 0; }
  .modern-footer .footer-cta h2 { font-size: 25px; }
  .modern-footer .footer-cta-actions { width: 100%; align-items: flex-start; flex-direction: column; gap: 15px; }
  .modern-footer .upper-footer { padding: 58px 0 24px; }
  .modern-footer .lower-footer-inner { padding: 20px 0; align-items: flex-start; flex-direction: column; }
  .not-found-section { min-height: 570px; padding: 70px 0; }
  .not-found-code { font-size: 62px; }
  .not-found-content h1 { font-size: 32px; }
  .not-found-text { font-size: 15px; }
  .not-found-actions { flex-direction: column; gap: 18px; }
}

@media (max-width: 500px) {
  .history-section .history-grids > .grid { display: block; }
}
