/* ===================================================================
   FILE        : home.css
   PROJECT     : Lexvora Consulting
   PURPOSE     : Home page (index.html) ONLY visual styling — topbar,
                 hero, services/expertise cards, about band, stats,
                 cta strip, trusted strip, and the home page's own
                 header + footer. This file must never be loaded by
                 any other page, and no other page's markup should
                 rely on classes defined here.
   NOTE        : Truly shared tokens/resets/buttons/labels live in
                 main-theme.css. Home menu (.main-nav) styling lives in
                 menu-home.css.
   =================================================================== */

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(18px, 2.2vw, 34px) clamp(24px, 5vw, 72px);
  color: #fff;
}

.logo-area {
  width: 150px;
  overflow: hidden;
}

.logo-area img {
  width: 100%;
  height: auto;
  display: block;
}

.hero {
  position: relative;
  min-height: clamp(620px, 56vw, 850px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-building-lexvora.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,14,22,.88) 0%, rgba(7,20,33,.77) 28%, rgba(7,20,33,.38) 55%, rgba(7,20,33,.08) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.14));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: clamp(26px, 5vw, 72px);
  padding-top: clamp(80px, 8vw, 135px);
  color: #fff;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 500;
  line-height: 1.05;
  margin-bottom: 18px;
}

.accent-line,
.small-line {
  width: 58px;
  height: 2px;
  background: var(--gold-light);
  margin: 0 0 25px 0;
}

.small-line {
  margin: 12px auto 0;
}

.hero-desc {
  max-width: 610px;
  color: #f1f1f1;
  font-size: clamp(16px, 1.24vw, 19px);
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
}

/* Services / Expertise cards */
.services {
  padding: clamp(54px, 6vw, 88px) clamp(20px, 4vw, 58px);
  background: linear-gradient(180deg, #fff, #f6f1ea);
  text-align: center;
}

.services h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.3vw, 50px);
  line-height: 1.14;
  font-weight: 500;
  color: var(--text);
}

.services .section-label {
  margin-bottom: 12px;
}

.services .small-line {
  margin: 14px auto 0;
}

.cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 315px;
  padding: 34px 20px 26px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(184, 132, 69, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 132, 69, 0.42);
  box-shadow: 0 14px 34px rgba(6, 20, 33, 0.08);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-icon img {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  min-height: 46px !important;
  max-width: 46px !important;
  max-height: 46px !important;
  display: block;
  object-fit: contain;
}

.card h3 {
  font-size: 17px;
  line-height: 1.32;
  margin-bottom: 16px;
  color: var(--text);
}

.card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.card a {
  margin-top: auto;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.card a span {
  transition: transform 0.25s ease;
}

.card:hover a span {
  transform: translateX(3px);
}

/* Home "about" band */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(120deg, var(--dark), var(--blue));
  color: #fff;
}

.about h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.3vw, 50px);
  line-height: 1.14;
  font-weight: 500;
}

.about-content {
  padding: clamp(48px, 6vw, 82px) clamp(26px, 5vw, 72px);
}

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

.about-content p {
  color: #dbe5eb;
  font-size: 16px;
  line-height: 1.7;
}

.about-image {
  min-height: 460px;
  background-image: url("../images/about-boardroom.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.stats {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stats div {
  border-right: 1px solid rgba(210,161,95,.25);
  padding-right: 14px;
}

.stats div:last-child {
  border-right: 0;
}

.stat-icon {
  color: var(--gold-light);
  font-size: 30px;
  display: block;
  margin-bottom: 8px;
}

.stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--gold-light);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
}

.stats small {
  color: #dbe5eb;
  font-size: 13px;
}

.cta-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  padding: clamp(38px, 4.6vw, 62px) clamp(24px, 5vw, 70px);
  background: linear-gradient(135deg, #fff, #f3ede5);
}

.cta-strip h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3.3vw, 50px);
  line-height: 1.14;
  font-weight: 500;
}

.phone-box {
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 58px;
  width: 112px;
  height: 92px;
  display: grid;
  place-items: center;
}

.cta-copy p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 16px;
}

.trusted {
  background: #071421;
  color: #fff;
  padding: 26px clamp(24px, 5vw, 70px) 30px;
  text-align: center;
  border-top: 1px solid rgba(184,132,69,.25);
  border-bottom: 1px solid rgba(184,132,69,.25);
}

.trusted p {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.brand-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 24px;
}

.brand-row span {
  color: rgba(255,255,255,.58);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: .04em;
}

/* Home footer */
.footer {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 48%, rgba(210,161,95,.07), transparent 28%),
    linear-gradient(rgba(5,17,29,.97), rgba(4,15,26,.99)),
    url("../images/dark-pattern.svg");
  color: #fff;
  padding: clamp(48px, 5vw, 76px) clamp(24px, 5vw, 72px) 0;
  isolation: isolate;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: .7;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  width: min(100%, 1700px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(145px, .78fr) minmax(180px, .95fr) minmax(165px, .82fr) minmax(335px, 1.55fr);
  align-items: start;
  gap: clamp(24px, 2.45vw, 46px);
}

.footer-section {
  min-width: 0;
}

.footer-grid > .footer-section:not(:first-child) {
  border-left: 1px solid rgba(210,161,95,.28);
  padding-left: clamp(18px, 1.7vw, 30px);
}

.footer-brand img {
  display: block;
  width: clamp(155px, 13vw, 220px);
  max-width: 100%;
  height: auto;
  margin: 0 0 22px;
}

.footer h2 {
  color: var(--gold-light);
  font-size: 14px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 26px;
}

.footer h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin-top: 12px;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.footer p,
.footer a {
  color: #d2dce3;
  font-size: 14px;
  line-height: 1.68;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color .22s ease, transform .22s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #f1c873;
  transform: translateX(4px);
}

.footer a:focus-visible {
  outline: 2px solid #f1c873;
  outline-offset: 4px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials span,
.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(210,161,95,.75);
  color: #e8b862;
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 7px;
  background: rgba(255,255,255,.015);
  transition: color .22s ease, background .22s ease, border-color .22s ease, transform .22s ease;
}

.socials a:hover,
.socials a:focus-visible {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-color: #edc575;
  color: #071421;
  transform: translateY(-2px);
}

.footer-contact h2 {
  margin-bottom: 18px;
}

.footer-office {
  display: block;
  margin: 0 0 12px;
  padding: 17px 18px 14px;
  color: #071421;
  font-style: normal;
  border: 1px solid rgba(255,225,154,.88);
  border-radius: 12px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.26), transparent 32%),
    linear-gradient(145deg, #f7d98e 0%, #f0c66e 42%, #e6ad47 100%);
  box-shadow:
    0 13px 28px rgba(0,0,0,.2),
    0 0 22px rgba(226,173,71,.13),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.footer .footer-office--regional {
  border-color: rgba(224,210,171,.88);
  background:
    linear-gradient(115deg, rgba(255,255,255,.28), transparent 34%),
    linear-gradient(145deg, #ded6bf 0%, #c8ba94 48%, #ac996c 100%);
  box-shadow:
    0 13px 28px rgba(0,0,0,.2),
    0 0 20px rgba(190,170,118,.12),
    inset 0 1px 0 rgba(255,255,255,.58);
}

.office-heading {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.office-icon {
  display: block;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1px solid rgba(7,20,33,.66);
  border-radius: 8px;
  object-fit: contain;
}

.footer-office h3 {
  margin: 1px 0 6px;
  color: #071421;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.footer .footer-office p,
.footer .footer-office a {
  color: #071421;
  font-size: 12.5px;
  line-height: 1.52;
}

.footer .footer-office p {
  margin: 0;
}

.office-phone {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(7,20,33,.35);
  font-weight: 700;
  text-decoration: none;
}

.office-phone img {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 6px;
  border: 1px solid rgba(7,20,33,.66);
  border-radius: 8px;
  object-fit: contain;
}

.office-phone:hover,
.office-phone:focus-visible {
  color: #000 !important;
}

.footer-direct-contact {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.footer-direct-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .22s ease;
}

.footer-direct-contact a img {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 6px;
  border: 1px solid rgba(210,161,95,.7);
  border-radius: 8px;
  object-fit: contain;
}

.footer-direct-contact a:hover,
.footer-direct-contact a:focus-visible {
  color: #f1c873;
}

.footer-bottom {
  position: relative;
  z-index: 1;
  width: min(100%, 1700px);
  margin: clamp(38px, 4vw, 58px) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #cfd8df;
  font-size: 13px;
  border-top: 1px solid rgba(210,161,95,.72);
  padding: 22px 0 24px;
}

.footer-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 17px;
  color: #d9e0e5;
  text-decoration: none;
  border: 1px solid rgba(207,216,223,.28);
  border-radius: 999px;
  transition: color .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
  color: #071421;
  background: linear-gradient(135deg, #f1f3f4 0%, #c8ced2 52%, #aeb6bd 100%);
  border-color: #e7eaec;
  box-shadow: 0 8px 18px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.78);
  transform: translateY(-1px);
}

.footer-menu a:focus-visible {
  outline: 2px solid #f1c873;
  outline-offset: 3px;
}

.footer.footer-js .footer-section {
  opacity: 0;
  transform: translateY(12px);
}

.footer.footer-js.footer-visible .footer-section {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}

.footer.footer-js.footer-visible .footer-section:nth-child(2) { transition-delay: .06s; }
.footer.footer-js.footer-visible .footer-section:nth-child(3) { transition-delay: .12s; }
.footer.footer-js.footer-visible .footer-section:nth-child(4) { transition-delay: .18s; }
.footer.footer-js.footer-visible .footer-section:nth-child(5) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .footer.footer-js .footer-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.28);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
}

/* Tablet */
@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .desktop-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 32px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-grid > .footer-section:not(:first-child) {
    padding-left: 24px;
  }

  .footer-brand {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: end;
    gap: 28px;
  }

  .footer-brand img,
  .footer-brand p,
  .socials {
    margin: 0;
  }

  .footer-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .footer-contact h2,
  .footer-direct-contact {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .topbar {
    position: fixed;
    background: rgba(7,20,33,.96);
    padding: 12px 18px;
  }

  .logo-area img {
    width: 112px;
  }

  .hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .hero-bg {
    background-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(7,20,33,.78) 0%, rgba(7,20,33,.58) 35%, rgba(7,20,33,.95) 100%);
  }

  .hero-content {
    margin-left: 0;
    width: 100%;
    padding: 125px 22px 52px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 300px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats div {
    border-right: 0;
  }

  .cta-strip {
    grid-template-columns: 1fr;
  }

  .phone-box {
    width: 90px;
    height: 76px;
    font-size: 42px;
  }

  .brand-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding-inline: 22px;
  }

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

  .footer-brand,
  .footer-contact {
    grid-column: auto;
    display: block;
  }

  .footer-brand img {
    margin-bottom: 20px;
  }

  .footer-brand p {
    margin-bottom: 20px;
  }

  .footer-grid > .footer-section:not(:first-child) {
    border-left: 0;
    border-top: 1px solid rgba(210,161,95,.22);
    padding: 28px 0 0;
  }

  .footer-direct-contact {
    display: grid;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-menu {
    flex-wrap: wrap;
  }
}

/* Small Mobile */
@media (max-width: 420px) {
  .hero {
    min-height: 710px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .brand-row {
    grid-template-columns: 1fr;
  }
}
