/*
  Fiacon casual layout refresh.
  This file intentionally overrides the copied website only; the original site is untouched.
*/
:root {
  --primary: #1f352f;
  --secondary: #9a744f;
  --accent: #b77a43;
  --light: #f4f1ea;
  --soft: #e8e4db;
  --text: #202725;
  --muted: #66716b;
  --white: #fffdf8;
  --shadow: 0 22px 60px rgba(31, 53, 47, 0.12);
}

html {
  background: rgba(244, 241, 234, 0.7);
}

body {
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.72), rgba(244, 241, 234, 1) 520px),
    var(--light);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
.logo span {
  color: var(--primary);
  letter-spacing: 0;
}

p,
li {
  color: var(--muted);
}

.site-header {
  min-height: 86px;
  background: rgba(255, 253, 248, 0.86);
  border-bottom: 1px solid rgba(31, 53, 47, 0.12);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 86px;
}

.logo img {
  filter: saturate(0.84) contrast(1.08);
}

.main-nav {
  gap: 8px;
}

.main-nav a {
  border-radius: 999px;
  color: #344840;
  padding: 10px 13px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.hero-slider {
  min-height: 680px;
  height: min(820px, calc(100vh - 86px));
  background: var(--primary);
}

.slide {
  background-color: var(--primary);
  pointer-events: none;
  z-index: 0;
}

.slide.active {
  pointer-events: auto;
  z-index: 1;
}

.slide-overlay {
  background: linear-gradient(90deg, rgba(20, 28, 24, 0.74), rgba(20, 28, 24, 0.28), rgba(20, 28, 24, 0.2));
  pointer-events: none;
}

.editorial-slide {
  background-position: center center;
}

.editorial-slide .slide-overlay {
  background:
    linear-gradient(90deg, rgba(20, 28, 24, 0.04) 0%, rgba(20, 28, 24, 0.18) 44%, rgba(20, 28, 24, 0.78) 100%);
}

.editorial-slide .slide-content {
  margin-left: max(50vw, 520px);
  width: min(560px, 42vw);
  color: var(--white);
}

.slide-content {
  max-width: 680px;
  pointer-events: auto;
  z-index: 2;
}

.slide-content .button {
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.slider-controls {
  z-index: 4;
}

.slide-content h1 {
  color: var(--white);
  font-size: clamp(3rem, 6vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.slide-content p {
  color: rgba(255, 253, 248, 0.86);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.65;
}

.slider-arrow {
  border: 1px solid rgba(255, 253, 248, 0.35);
  background: rgba(255, 253, 248, 0.12);
  backdrop-filter: blur(14px);
}

.slider-dots button {
  background: rgba(255, 253, 248, 0.42);
}

.slider-dots button.active {
  background: var(--white);
}

.button,
.card-link,
.form-submit,
.dialog-link,
.slider-control {
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.button.secondary,
.ghost-button {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(31, 53, 47, 0.26);
}

.button:hover,
.card-link:hover,
.form-submit:hover,
.dialog-link:hover,
.slider-control:hover {
  background: #162722;
  transform: translateY(-2px);
}

.section {
  padding: 104px 0;
}

.intro {
  background: rgba(244, 241, 234, 0.7);
}

.section-heading,
.intro-copy,
.page-hero-content {
  max-width: 920px;
}

.section-heading .eyebrow,
.eyebrow {
  color: var(--secondary);
  font-size: 0.78rem;
  line-height: 1.25;
  letter-spacing: 0.16em;
}

.slide-content .eyebrow,
.page-hero .eyebrow,
.highlight .eyebrow,
.card .eyebrow,
.employee-card .eyebrow,
.career-brand-copy .eyebrow {
  font-size: 0.78rem;
  line-height: 1.25;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1;
}

.section-heading p {
  font-size: 1.08rem;
}

.cards-section,
.soft,
.soft-section,
.team-section:nth-of-type(even),
.career-contact,
.reference-section {
  background: var(--soft);
}

.card,
.service-card,
.expertise-card,
.team-card,
.career-card,
.benefit-card,
.reference-card,
.form-card,
.contact-card,
.value-card,
.team-member-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(31, 53, 47, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card:hover,
.service-card:hover,
.expertise-card:hover,
.career-card:hover,
.reference-card:hover,
.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(31, 53, 47, 0.16);
}

.linked-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.linked-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.linked-card .card-body p {
  margin-top: 0;
  padding-bottom: 22px;
}

.linked-card:focus-visible {
  outline: 3px solid rgba(31, 53, 47, 0.28);
  outline-offset: 6px;
}

.linked-card-cta {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 750;
  justify-content: center;
  margin-top: auto;
  padding: 11px 17px;
  width: fit-content;
}

.linked-card:hover .linked-card-cta,
.linked-card:focus-visible .linked-card-cta {
  background: #162722;
}

.card img,
.service-card img,
.expertise-card img,
.team-member-card img {
  filter: saturate(0.88) contrast(1.04);
}

.employee-card img.solution-architect-reference {
  object-fit: cover;
  object-position: left center;
}

.service-card img,
.expertise-card img {
  height: 280px;
  object-fit: cover;
}

.page-hero {
  min-height: 540px;
  overflow: hidden;
  border-bottom-left-radius: 46px;
  border-bottom-right-radius: 46px;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 10px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.page-hero-overlay {
  background: linear-gradient(90deg, rgba(20, 28, 24, 0.78), rgba(20, 28, 24, 0.34), rgba(20, 28, 24, 0.18));
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  line-height: 0.98;
}

.page-hero p {
  color: rgba(255, 253, 248, 0.86);
}

.highlight,
.stat-card {
  background:
    linear-gradient(135deg, rgba(183, 122, 67, 0.24), rgba(31, 53, 47, 0.08)),
    var(--primary);
  color: var(--white);
  border-radius: 24px;
}

.home-footer-highlight {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.highlight h2,
.highlight h3,
.stat-card h3,
.stat-card strong {
  color: var(--white);
}

.highlight p,
.highlight li,
.stat-card p {
  color: rgba(255, 253, 248, 0.82);
}

.text-link {
  display: inline-flex;
  font-weight: 800;
  margin-top: 22px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.light-link {
  color: var(--white);
}

.text-link:hover,
.text-link:focus-visible {
  color: #162722;
}

.light-link:hover,
.light-link:focus-visible {
  color: rgba(255, 253, 248, 0.78);
}

.benefit-icon,
.icon,
.feature-icon {
  color: var(--primary);
}

.benefit-card {
  box-shadow: 0 12px 34px rgba(31, 53, 47, 0.1);
}

.benefit-detail {
  background: var(--primary);
  color: var(--white);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(31, 53, 47, 0.2);
}

.dialog,
dialog {
  border-radius: 28px;
  background: var(--white);
  border: 1px solid rgba(31, 53, 47, 0.12);
  box-shadow: 0 36px 100px rgba(18, 30, 27, 0.28);
}

.dialog-visual img,
.giant-dialog img {
  border-radius: 20px;
  filter: saturate(0.9) contrast(1.04);
}

input,
textarea,
select {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(31, 53, 47, 0.22);
  border-radius: 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 53, 47, 0.1);
}

.site-footer {
  background: #172622;
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 253, 248, 0.72);
}

@media (max-width: 900px) {
  .hero-slider {
    min-height: 640px;
  }

  .editorial-slide {
    background-position: 28% center;
  }

  .editorial-slide .slide-overlay {
    background: linear-gradient(180deg, rgba(20, 28, 24, 0.1), rgba(20, 28, 24, 0.78));
  }

  .editorial-slide .slide-content {
    margin-left: 0;
    width: auto;
    max-width: 640px;
    padding-top: 280px;
  }

  .page-hero {
    min-height: 420px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .header-inner {
    min-height: 72px;
  }

  .main-nav a {
    border-radius: 14px;
  }

  .hero-slider {
    min-height: 620px;
    height: auto;
  }

  .slide-content h1 {
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  .page-hero h1 {
    font-size: clamp(2.05rem, 10vw, 3.2rem);
  }

  .page-hero {
    min-height: 390px;
    padding: 96px 0 56px;
  }

  .page-hero p {
    font-size: 1.04rem;
  }

  .section {
    padding: 72px 0;
  }
}

.career-brand-section {
  background: rgba(244, 241, 234, 0.7);
  padding-top: 0;
}

.career-brand {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
}

.career-brand-copy h2 {
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1;
  margin: 0 0 20px;
}

.career-brand-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

.career-brand-image {
  background: var(--white);
  border: 1px solid rgba(31, 53, 47, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.career-brand-image img {
  filter: saturate(0.9) contrast(1.04);
  height: 430px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

@media (max-width: 900px) {
  .career-brand {
    gap: 26px;
    grid-template-columns: 1fr;
  }

  .career-brand-image {
    order: -1;
  }

  .career-brand-image img {
    height: 320px;
  }
}

.hero-slider {
  --brand-logo-width: min(672px, 48vw);
  --brand-logo-right: 140px;
  --brand-band-pad: clamp(28px, 4vw, 60px);
  --brand-logo-ratio: 0.238;
  --brand-band-height: calc(var(--brand-logo-width) * 0.267);
  --brand-band-bottom: 0px;
  --brand-logo-bottom: calc(var(--brand-band-bottom) + (var(--brand-band-height) - (var(--brand-logo-width) * var(--brand-logo-ratio))) / 2);
}

.brand-slide .slide-overlay {
  background: linear-gradient(90deg, rgba(20, 28, 24, 0.78), rgba(20, 28, 24, 0.4), rgba(20, 28, 24, 0.18));
}

.hero-slider::after {
  background: rgba(244, 241, 234, 0.7);
  bottom: var(--brand-band-bottom);
  border-radius: 22px 0 0 0;
  content: "";
  height: var(--brand-band-height);
  left: max(0px, calc(100% - var(--brand-logo-right) - var(--brand-logo-width) - var(--brand-band-pad)));
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 2;
}

.slider-brand-logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  bottom: var(--brand-logo-bottom);
  box-shadow: none;
  padding: 0;
  pointer-events: none;
  position: absolute;
  right: var(--brand-logo-right);
  transform: none;
  width: var(--brand-logo-width);
  z-index: 3;
}

.brand-slide .slide-content {
  max-width: min(620px, 48vw);
}

.slider-controls {
  bottom: calc(var(--brand-band-height) + 18px);
  z-index: 5;
}

@media (max-width: 900px) {
  .hero-slider {
    --brand-logo-width: min(448px, calc(100% - 48px));
    --brand-logo-right: calc(100% - 24px - var(--brand-logo-width));
    --brand-band-pad: 24px;
    --brand-band-height: calc(var(--brand-logo-width) * 0.285);
    min-height: 780px;
  }

  .slider-brand-logo {
    left: 24px;
    right: auto;
    top: auto;
    transform: none;
  }

  .brand-slide {
    align-items: flex-start;
  }

  .brand-slide .slide-content {
    margin-top: clamp(72px, 13vh, 118px);
    max-width: 640px;
    padding-bottom: clamp(180px, 24vh, 240px);
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .hero-slider {
    --brand-logo-width: min(336px, calc(100% - 48px));
    --brand-band-height: calc(var(--brand-logo-width) * 0.31);
    min-height: 760px;
  }

  .brand-slide .slide-content {
    margin-top: clamp(48px, 8vh, 76px);
    padding-bottom: clamp(158px, 25vh, 204px);
    padding-top: 0;
  }
}
body[data-page="index"] .site-header {
  min-height: 58px;
  padding-left: 32px;
}

body[data-page="index"] .header-inner {
  min-height: 58px;
}

body[data-page="index"] .main-nav {
  margin-left: auto;
}

body[data-page="index"] .hero-slider {
  height: min(820px, calc(100vh - 58px));
}

body[data-page="index"] .main-nav a {
  padding-bottom: 8px;
  padding-top: 8px;
}

@media (max-width: 820px) {
  body[data-page="index"] .site-header {
    min-height: 58px;
    padding-left: 20px;
  }

  body[data-page="index"] .main-nav {
    top: 58px;
  }
}
body[data-page="index"] .home-scroll-logo {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  visibility: hidden;
}

body[data-page="index"].show-header-logo .home-scroll-logo {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
body[data-page="index"] .hero-slider .slide-content h1 {
  font-size: clamp(2.15rem, 4.8vw, 4.75rem);
  line-height: 1.1;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  text-align: center;
}

.highlight .contact-actions .button {
  justify-content: center;
  min-width: min(100%, 260px);
  margin-top: 0;
  border: 1px solid rgba(255, 253, 248, 0.48);
  background: transparent;
  color: var(--white);
}

.highlight .contact-actions .button:hover,
.highlight .contact-actions .button:focus-visible {
  background: rgba(255, 253, 248, 0.12);
}
