/*
  Legum Presidium Website
  Bootstrap 5 Responsive Corporate Law Firm Theme
  Colour base inspired by the blue-white visiting card theme.
*/

:root {
  --lp-navy: #071c45;
  --lp-navy-2: #0d2f6d;
  --lp-blue: #1f5fbf;
  --lp-light-blue: #75b6ff;
  --lp-soft-blue: #eef6ff;
  --lp-white: #ffffff;
  --lp-offwhite: #f8fbff;
  --lp-border: rgba(7, 28, 69, 0.12);
  --lp-text: #13213a;
  --lp-muted: #64718a;
  --lp-shadow: 0 22px 70px rgba(7, 28, 69, 0.12);
  --lp-radius: 20px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--lp-text);
  background: var(--lp-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

p {
  line-height: 1.75;
}

/* Utilities */
.section-padding {
  padding: 96px 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lp-blue);
  margin-bottom: 14px;
}

.section-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  display: inline-block;
  background: currentColor;
}

.text-light-blue {
  color: var(--lp-light-blue) !important;
}

.section-title {
  font-family: var(--font-heading);
  color: var(--lp-navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-size: clamp(2rem, 4vw, 3.35rem);
  margin-bottom: 20px;
}

.lead-text {
  font-size: 1.05rem;
  color: var(--lp-text);
  margin-bottom: 18px;
}

.muted-text {
  color: var(--lp-muted);
  margin-bottom: 0;
}

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

.btn {
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.78rem 1.25rem;
}

.btn-sm {
  padding: 0.62rem 1.05rem;
}

.btn-lg {
  padding: 0.88rem 1.6rem;
  font-size: 0.96rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--lp-navy), var(--lp-blue));
  border-color: var(--lp-navy);
  box-shadow: 0 14px 28px rgba(7, 28, 69, 0.16);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--lp-blue), var(--lp-navy));
  border-color: var(--lp-blue);
}

.btn-outline-primary {
  border-color: var(--lp-navy);
  color: var(--lp-navy);
}

.btn-outline-primary:hover {
  background: var(--lp-navy);
  border-color: var(--lp-navy);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--lp-white);
}

.btn-outline-light:hover {
  background: var(--lp-white);
  color: var(--lp-navy);
}

/* Topbar */
.topbar {
  background: var(--lp-navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  padding: 9px 0;
}

.topbar a,
.topbar span {
  color: rgba(255, 255, 255, 0.82);
}

.topbar a:hover {
  color: var(--lp-white);
}

.topbar-left {
  display: flex;
  gap: 22px;
  align-items: center;
}

.topbar i {
  margin-right: 6px;
  color: var(--lp-light-blue);
}

/* Navbar */
.navbar {
  min-height: 82px;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-logo-box {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  position: relative;
}

.brand-logo-box::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 12%;
  width: 1px;
  height: 76%;
  background: rgba(7, 28, 69, 0.2);
}

.brand-logo-box img {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}

.footer-logo-box::after {
  background: rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  color: var(--lp-navy);
}

.brand-text span {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--lp-navy);
  margin-top: 4px;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.light-text span,
.light-text small {
  color: #fff;
}

.navbar .nav-link {
  color: var(--lp-navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.65rem 0.85rem !important;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.42rem;
  height: 2px;
  background: var(--lp-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  color: #fff !important;
}

.dropdown-menu {
  border: 0;
  box-shadow: var(--lp-shadow);
  border-radius: 12px;
  padding: 10px;
}

.dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  color: var(--lp-text);
  padding: 10px 12px;
}

.dropdown-item:hover {
  background: var(--lp-soft-blue);
  color: var(--lp-navy);
}

.navbar-toggler {
  border: 0;
  padding: 0.2rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.mobile-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 0 !important;
  color: var(--lp-navy);
  border-bottom: 1px solid var(--lp-border);
}

.mobile-contact-card {
  padding: 22px;
  background: var(--lp-soft-blue);
  border-radius: 16px;
  color: var(--lp-navy);
  font-weight: 600;
}

.mobile-contact-card i {
  color: var(--lp-blue);
  margin-right: 8px;
}

/* Hero */
.hero-section {
  min-height: 660px;
  position: relative;
  color: var(--lp-white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 28, 69, 0.96) 0%, rgba(7, 28, 69, 0.82) 44%, rgba(7, 28, 69, 0.65) 100%),
    radial-gradient(circle at 80% 40%, rgba(117, 182, 255, 0.25), transparent 30%),
    linear-gradient(135deg, #071c45, #020817 70%);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
}

.hero-section::after {
  content: '§';
  position: absolute;
  right: 7vw;
  top: 16%;
  font-family: Georgia, serif;
  font-size: clamp(12rem, 25vw, 28rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(2, 8, 23, 0.65), transparent);
}

.min-vh-hero {
  min-height: 660px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.hero-title span {
  display: block;
  color: var(--lp-light-blue);
}

.hero-subtitle {
  max-width: 650px;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.hero-emblem {
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  margin-left: auto;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.2);
}

.hero-emblem i {
  font-size: 9rem;
  color: rgba(255, 255, 255, 0.62);
}

/* About / Values */
.value-card {
  padding: 30px;
  min-height: 230px;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  background: #fff;
  transition: all 0.28s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lp-shadow);
  border-color: rgba(31, 95, 191, 0.25);
}

.value-card i {
  font-size: 2.2rem;
  color: var(--lp-blue);
  margin-bottom: 18px;
  display: inline-flex;
}

.value-card h3 {
  font-size: 1.03rem;
  font-weight: 800;
  color: var(--lp-navy);
  margin-bottom: 10px;
}

.value-card p {
  color: var(--lp-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
}

/* Practice */
.practice-section {
  background: linear-gradient(180deg, var(--lp-offwhite), var(--lp-soft-blue));
}

.practice-card {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(7, 28, 69, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  transition: all 0.28s ease;
  backdrop-filter: blur(10px);
}

.practice-card:hover {
  transform: translateY(-7px);
  background: var(--lp-white);
  box-shadow: var(--lp-shadow);
  border-color: rgba(31, 95, 191, 0.25);
}

.practice-card i {
  display: inline-flex;
  font-size: 2.6rem;
  color: var(--lp-navy-2);
  margin-bottom: 18px;
}

.practice-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--lp-navy);
  margin-bottom: 12px;
}

.practice-card p {
  color: var(--lp-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Team */
.partner-card {
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: #fff;
  box-shadow: 0 12px 40px rgba(7, 28, 69, 0.06);
  overflow: hidden;
  transition: all 0.28s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lp-shadow);
}

.partner-photo {
  position: relative;
  height: 460px;
  background: linear-gradient(180deg, #f7f8fb, #dfe3eb);
  overflow: hidden;
}

.partner-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(7, 28, 69, 0.16));
  pointer-events: none;
}

.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s ease;
}

.partner-card:hover .partner-photo img {
  transform: scale(1.035);
}

.partner-top {
  padding: 28px 32px 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, var(--lp-navy), var(--lp-navy-2));
  color: #fff;
}

.partner-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lp-light-blue);
  font-weight: 800;
  margin-bottom: 8px;
}

.partner-top h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 2.05rem;
}

.partner-top p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.partner-body {
  padding: 32px;
}

.partner-body p {
  color: var(--lp-muted);
}

.partner-body h4 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lp-blue);
  font-weight: 800;
  margin: 24px 0 14px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.clean-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--lp-text);
}

.clean-list i {
  color: var(--lp-blue);
}

.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.partner-mail,
.partner-whatsapp {
  color: var(--lp-navy);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.partner-mail i,
.partner-whatsapp i {
  color: var(--lp-blue);
  margin-right: 6px;
}

.partner-whatsapp {
  color: #128c4a;
}

.whatsapp-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Approach */
.approach-section {
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}

.process-card {
  position: relative;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--lp-border);
  min-height: 190px;
  overflow: hidden;
}

.process-card span {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: rgba(31, 95, 191, 0.13);
  position: absolute;
  top: 10px;
  right: 22px;
}

.process-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--lp-navy);
  margin-bottom: 12px;
  position: relative;
}

.process-card p {
  color: var(--lp-muted);
  margin-bottom: 0;
  font-size: 0.94rem;
  position: relative;
}

/* Insights */
.insight-card {
  padding: 30px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: #fff;
  transition: all 0.28s ease;
}

.insight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lp-shadow);
}

.insight-card span {
  display: inline-flex;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-blue);
  font-weight: 800;
  margin-bottom: 14px;
}

.insight-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--lp-navy);
  margin-bottom: 14px;
}

.insight-card p {
  color: var(--lp-muted);
}

.insight-card a {
  color: var(--lp-navy);
  font-weight: 800;
}

/* Contact */
.contact-section {
  background:
    linear-gradient(135deg, rgba(7, 28, 69, 0.98), rgba(13, 47, 109, 0.96)),
    radial-gradient(circle at top right, rgba(117, 182, 255, 0.28), transparent 28%);
  color: #fff;
}

.contact-intro {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.contact-info-list {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.contact-info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.contact-info-item > i {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--lp-light-blue);
  font-size: 1.4rem;
  flex: 0 0 auto;
}

.contact-info-item h3 {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 5px;
}

.contact-info-item p,
.contact-info-item a {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.contact-info-item a:hover {
  color: #fff;
}

.contact-form-card {
  background: #fff;
  color: var(--lp-text);
  border-radius: var(--lp-radius);
  padding: 42px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  color: var(--lp-navy);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-form-card p {
  color: var(--lp-muted);
  margin-bottom: 24px;
}

.form-label {
  font-weight: 700;
  color: var(--lp-navy);
  font-size: 0.9rem;
}

.form-control,
.form-select {
  min-height: 52px;
  border-radius: 0;
  border-color: rgba(7, 28, 69, 0.16);
  color: var(--lp-text);
}

textarea.form-control {
  min-height: 140px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--lp-blue);
  box-shadow: 0 0 0 0.2rem rgba(31, 95, 191, 0.12);
}

.small-check {
  font-size: 0.9rem;
  color: var(--lp-muted);
}

/* Footer */
.footer-section {
  background: #020817;
  color: #fff;
  padding: 70px 0 26px;
}

.footer-section h3 {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lp-light-blue);
  font-weight: 800;
  margin-bottom: 18px;
}

.footer-text {
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-section li {
  margin-bottom: 10px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-section a:hover {
  color: #fff;
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 46px 0 24px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Disclaimer Modal */
.disclaimer-content {
  border-radius: var(--lp-radius);
  overflow: hidden;
  border: 0;
}

.disclaimer-content .modal-header {
  background: var(--lp-navy);
  color: #fff;
  border-bottom: 0;
  padding: 24px 28px;
}

.disclaimer-content .modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.disclaimer-content .modal-body {
  padding: 28px;
}

.disclaimer-content .modal-body p {
  color: var(--lp-muted);
}

.disclaimer-content .modal-footer {
  border-top: 1px solid var(--lp-border);
  padding: 18px 28px;
}

/* Responsive */
@media (max-width: 1199.98px) {
  .hero-emblem {
    width: 320px;
    height: 320px;
  }

  .hero-emblem i {
    font-size: 7.5rem;
  }
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 76px 0;
  }

  .navbar {
    min-height: 76px;
  }

  .hero-section,
  .min-vh-hero {
    min-height: 610px;
  }

  .hero-title {
    max-width: 760px;
  }

  .contact-form-card {
    padding: 34px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 62px 0;
  }

  .brand-logo-box {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand-logo-box img {
    height: 41px;
  }

  .brand-text span {
    font-size: 0.94rem;
    letter-spacing: 0.01em;
  }

  .brand-text small {
    font-size: 0.64rem;
  }

  .hero-section,
  .min-vh-hero {
    min-height: 640px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 10.5vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .value-card,
  .partner-body,
  .contact-form-card {
    padding: 26px;
  }

  .partner-photo {
    height: 390px;
  }

  .partner-top {
    padding: 24px 26px;
    align-items: flex-start;
  }

  .partner-avatar {
    width: 76px;
    height: 76px;
  }

  .partner-top h3 {
    font-size: 1.7rem;
  }

  .practice-card {
    padding: 24px 14px;
  }

  .practice-card i {
    font-size: 2.2rem;
  }

  .practice-card h3 {
    font-size: 0.9rem;
  }

  .practice-card p {
    display: none;
  }

  .contact-info-item {
    gap: 14px;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section-title {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .section-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }

  .hero-section,
  .min-vh-hero {
    min-height: 600px;
  }

  .hero-title {
    font-size: clamp(2rem, 10.8vw, 3rem);
  }

  .partner-photo {
    height: 350px;
  }

  .partner-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-form-card {
    border-radius: 16px;
  }

  .footer-section {
    padding-top: 54px;
  }
}
