/**
 * Flatsome Core Layout CSS — Álvarez Legal Theme
 * Bundled to avoid hotlink restrictions from Inventiva server.
 * Covers: flex grid, sections, nav, buttons, header, banners, forms.
 */

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: inherit; overflow-x: hidden; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; line-height: 1.2; }

/* =========================================================
   CSS CUSTOM PROPERTIES
   ========================================================= */
:root {
  --primary-color: #871719;
  --primary-color-dark: #531319;
  --primary-color-opacity: rgba(135,23,25,0.1);
  --header-height: 159px;
  --container-width: 1200px;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Raleway', sans-serif;
}

/* =========================================================
   CONTAINER
   ========================================================= */
.container {
  max-width: var(--container-width);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.row-large .container,
.container.large-container { max-width: 1400px; }
.container.small-container { max-width: 780px; }
.full-width { width: 100%; }

/* =========================================================
   FLEX GRID SYSTEM
   ========================================================= */
.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
}
.flex-col { flex: 0 0 auto; }
.flex-left  { margin-right: auto; }
.flex-right { margin-left: auto; }
.flex-center { margin-left: auto; margin-right: auto; }
.flex-grow { flex-grow: 1; }
.flex-middle { align-self: center; }
.flex-top    { align-self: flex-start; }
.flex-bottom { align-self: flex-end; }

/* =========================================================
   ROW / COLUMN GRID
   ========================================================= */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}
.row.align-center  { justify-content: center; }
.row.align-right   { justify-content: flex-end; }
.row.align-equal > .col { display: flex; }
.row.align-equal > .col > .col-inner { width: 100%; }

.col {
  flex: 0 0 auto;
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}
.col-inner { width: 100%; }

/* Column widths (medium = desktop ≥768px) */
@media (min-width: 768px) {
  .medium-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .medium-2  { flex: 0 0 16.666%; max-width: 16.666%; }
  .medium-3  { flex: 0 0 25%;     max-width: 25%; }
  .medium-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .medium-5  { flex: 0 0 41.666%; max-width: 41.666%; }
  .medium-6  { flex: 0 0 50%;     max-width: 50%; }
  .medium-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .medium-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .medium-9  { flex: 0 0 75%;     max-width: 75%; }
  .medium-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .medium-11 { flex: 0 0 91.666%; max-width: 91.666%; }
  .medium-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* Column widths (large = desktop ≥1024px) */
@media (min-width: 1024px) {
  .large-1  { flex: 0 0 8.333%;  max-width: 8.333%; }
  .large-2  { flex: 0 0 16.666%; max-width: 16.666%; }
  .large-3  { flex: 0 0 25%;     max-width: 25%; }
  .large-4  { flex: 0 0 33.333%; max-width: 33.333%; }
  .large-5  { flex: 0 0 41.666%; max-width: 41.666%; }
  .large-6  { flex: 0 0 50%;     max-width: 50%; }
  .large-7  { flex: 0 0 58.333%; max-width: 58.333%; }
  .large-8  { flex: 0 0 66.666%; max-width: 66.666%; }
  .large-9  { flex: 0 0 75%;     max-width: 75%; }
  .large-10 { flex: 0 0 83.333%; max-width: 83.333%; }
  .large-11 { flex: 0 0 91.666%; max-width: 91.666%; }
  .large-12 { flex: 0 0 100%;    max-width: 100%; }
}

/* Visibility helpers */
.hide-for-medium { display: block; }
.show-for-medium { display: none; }
@media (max-width: 767px) {
  .hide-for-medium { display: none !important; }
  .show-for-medium { display: block !important; }
}
.hide-for-small { display: block; }
@media (max-width: 549px) {
  .hide-for-small { display: none !important; }
}

/* =========================================================
   SECTION
   ========================================================= */
.section {
  position: relative;
  width: 100%;
}
.section-content {
  position: relative;
  z-index: 2;
  padding: 48px 0;
}
.section.dark { color: #fff; }
.section.dark h1, .section.dark h2, .section.dark h3,
.section.dark h4, .section.dark h5, .section.dark h6 { color: #fff; }

/* Section BG */
.bg, .section-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.bg.fill, .section-bg.fill { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.bg-fill { background-size: cover; background-position: center; background-repeat: no-repeat; }
.absolute { position: absolute; }
.fill { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.relative { position: relative; }
.section-bg-overlay { z-index: 1; }

/* =========================================================
   BANNER
   ========================================================= */
.banner {
  position: relative;
  overflow: hidden;
  display: block;
}
.banner-inner { position: relative; }
.banner-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
.banner-bg .bg { background-size: cover; background-position: center; }
.banner-layers { position: relative; z-index: 2; }
.banner-link { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; }
.has-hover { transition: transform 0.3s; }
.has-hover:hover { transform: translateY(-3px); }

/* =========================================================
   HEADER
   ========================================================= */
#wrapper { width: 100%; overflow-x: hidden; }
#header {
  position: relative;
  z-index: 100;
  width: 100%;
}
.header-wrapper { position: relative; }

/* Top Bar */
#top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
}
#top-bar a { color: #fff; }
#top-bar .flex-row { min-height: 36px; }
.header-top { background-color: var(--primary-color); color: #fff; }
.header-top .nav { color: #fff; }
.nav-dark a, .nav-dark .nav > li > a { color: #fff !important; }

/* Masthead */
#masthead {
  background-color: #fff;
  padding: 10px 0;
}
#masthead .header-inner { min-height: 80px; }
.show-logo-center #logo { text-align: center; }

/* Logo */
#logo { padding: 10px 0; }
#logo img { max-height: 60px; width: auto; display: inline-block; }
.header-logo { display: inline-block; }
.header-logo-dark { display: none !important; }

/* Wide nav / Bottom nav bar */
#wide-nav {
  background-color: var(--primary-color);
  padding: 0;
}
#wide-nav .flex-row { min-height: 50px; }
#wide-nav .nav a { color: #fff; }

/* Sticky header */
.has-sticky.is-sticky #header { position: fixed; top: 0; width: 100%; }

/* Header BG */
.header-bg-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.header-bg-image, .header-bg-color { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav > li { position: relative; }
.nav > li > a {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
}
.nav-top-link { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; }

/* Nav center/left/right alignment */
.nav-center { justify-content: center; }
.nav-left { justify-content: flex-start; }
.nav-right { justify-content: flex-end; }
.nav-small > li > a { padding: 6px 10px; font-size: 13px; }
.nav-uppercase > li > a { text-transform: uppercase; }

/* Nav spacing */
.nav-spacing-large > li > a { padding-left: 18px; padding-right: 18px; }
.nav-divided > li:not(:last-child) > a { border-right: 1px solid rgba(255,255,255,0.2); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 200;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  display: none;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  border: 1px solid rgba(0,0,0,0.08);
}
.nav-dropdown-default { border-top: 2px solid var(--primary-color); }
.nav-dropdown li { position: relative; }
.nav-dropdown li a {
  display: block;
  padding: 8px 18px;
  color: #333;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown li a:hover { color: var(--primary-color); background: #f8f8f8; }
.menu-item-has-children:hover > .nav-dropdown,
.menu-item-has-children:focus-within > .nav-dropdown { display: block; }
.menu-item-has-children > a .icon-angle-down { margin-left: 4px; font-size: 11px; }

/* Dropdown arrow indicator */
.nav-dropdown-has-arrow .nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 18px;
  width: 10px; height: 10px;
  background: #fff;
  border-left: 1px solid rgba(0,0,0,0.08);
  border-top: 1px solid rgba(0,0,0,0.08);
  transform: rotate(45deg);
}

/* Wide nav right dropdown */
#wide-nav .nav-dropdown li a { color: #333; }
#wide-nav .nav-dropdown { left: auto; }
#wide-nav .flex-col.flex-right .nav-dropdown { right: 0; left: auto; }

/* Mobile nav */
#main-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 280px; height: 100vh;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s;
  box-shadow: 2px 0 10px rgba(0,0,0,0.15);
}
#main-menu.is-visible { display: block; transform: translateX(0); }

/* Header nav bottom line */
.nav-line-bottom > li > a { border-bottom: 2px solid transparent; }
.nav-line-bottom > li:hover > a,
.nav-line-bottom > li.current-menu-item > a { border-bottom-color: #fff; }

/* =========================================================
   BUTTONS
   ========================================================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.4em;
  height: 2.6em;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.button span { display: inline-block; }
.button i { margin-left: 6px; }

.button.primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.button.primary:hover {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  color: #fff;
}
.button.primary.is-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.button.primary.is-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}
.button.white { background: #fff; color: #333; border-color: #fff; }
.button.white:hover { background: transparent; color: #fff; }
.button.secondary {
  background-color: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  color: #fff;
}
.button.icon { padding: 0 .8em; }
.button.large { font-size: 16px; height: 3em; padding: 0 2em; }

/* =========================================================
   ICONS (Flatsome icon font fallback)
   ========================================================= */
[class^="icon-"], [class*=" icon-"] {
  font-family: 'fl-flatsome-icons', 'Font Awesome 5 Free', sans-serif;
  font-style: normal;
  display: inline-block;
  line-height: 1;
}
.icon-angle-down::before { content: "▾"; font-family: sans-serif; font-size: 10px; }
.icon-angle-right::before { content: "›"; font-family: sans-serif; }
.icon-linkedin::before { content: "in"; font-family: sans-serif; font-size: 12px; font-weight: bold; }
.icon-phone::before { content: "✆"; font-family: sans-serif; }
.icon-search::before { content: "🔍"; font-family: sans-serif; font-size: 12px; }
.icon-menu::before { content: "☰"; font-family: sans-serif; }
.icon-angle-up::before { content: "▴"; font-family: sans-serif; font-size: 10px; }

/* =========================================================
   SOCIAL ICONS
   ========================================================= */
.social-icons { display: flex; gap: 8px; align-items: center; }
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
}
.social-icons.follow-icons a { color: #fff; }
.social-icons a.linkedin { background: rgba(255,255,255,0.15); }
.social-icons a.linkedin:hover { background: #0077b5; }

/* =========================================================
   TYPOGRAPHY UTILITIES
   ========================================================= */
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-shadow-5 span { text-shadow: 2px 2px 25px rgba(0,0,0,0.8); }
.alt-font {
  opacity: 0.65;
  font-size: 1.05em;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
h4 { font-weight: 100; }
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6, .dark p { color: #fff; }

/* =========================================================
   ICON BOX
   ========================================================= */
.icon-box { display: flex; gap: 16px; }
.icon-box.icon-box-top { align-items: flex-start; }
.icon-box .icon-box-img { flex-shrink: 0; }
.icon-box .icon-box-text { flex-grow: 1; }
.icon-box .icon { display: flex; align-items: center; justify-content: center; }
.icon-box .icon-inner svg * { fill: var(--primary-color); }

/* =========================================================
   VIDEO BACKGROUND
   ========================================================= */
video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
}
.bg-video-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
#main { position: relative; z-index: 1; }
.content-area { width: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
#footer { position: relative; }
.footer-center { text-align: center; }
.footer-copy { font-size: 13px; opacity: 0.7; }

/* =========================================================
   FORMS
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--primary-color); }
label { font-weight: 600; display: block; margin-bottom: 4px; }
textarea { resize: vertical; }

/* =========================================================
   SEARCH FORM
   ========================================================= */
.searchform { width: 100%; }
.ux-search-box { display: flex; }
.ux-search-box .flex-row { display: flex; }
.ux-search-box .flex-grow { flex-grow: 1; }
.ux-search-box input { border-right: none; border-radius: 3px 0 0 3px; }
.ux-search-submit { border-radius: 0 3px 3px 0; }
.live-search-results { position: relative; }

/* =========================================================
   HEADER SOCIAL ICONS / LANGUAGE SWITCHER
   ========================================================= */
.header-language-dropdown { position: relative; }
.header-language-dropdown a { display: flex; align-items: center; gap: 6px; color: #fff; }
.header-language-dropdown .nav-dropdown a { color: #333; }
.header-language-dropdown .nav-dropdown { right: 0; left: auto; }

/* =========================================================
   TOOLTIP
   ========================================================= */
.tooltip { position: relative; cursor: pointer; }
.tooltip[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 999;
}

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 40px; height: 40px;
  background: var(--primary-color);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 20px;
  cursor: pointer;
  text-decoration: none;
}
.back-to-top.is-visible { opacity: 1; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
  .container { padding-left: 15px; padding-right: 15px; }
  .section-content { padding: 36px 0; }
  h1 { font-size: 1.8em; }
  h2 { font-size: 1.4em; }
  #wide-nav { display: none; }
  #top-bar .hide-for-medium { display: none !important; }
  #top-bar .show-for-medium { display: flex !important; }
  .row { margin-left: -10px; margin-right: -10px; }
  .col { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 549px) {
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
}

/* =========================================================
   MISC
   ========================================================= */
.z-top { z-index: 999; }
.mb-0 { margin-bottom: 0 !important; }
.last-reset > *:last-child { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.screen-reader-text { position: absolute; left: -9999px; }


/* ── Logo centering fixes (added by Firm Forward) ── */
.header-inner.logo-center #logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  line-height: 0;
}
.header-inner.logo-center #logo img {
  max-height: 58px;
  width: auto;
  display: block;
}
#masthead {
  overflow: hidden !important;
}