/* ==========================================================================
   Trenhew — brand variables
   ========================================================================== */
:root {
  --navy: #1c2541;
  --navy-dark: #141a2c;
  --navy-darker: #10142280;
  --gold: #c9973e;
  --gold-dark: #ad7f2e;
  --text-light: #f5f6fa;
  --text-muted: #aab0c2;
  --body-gray: #5c6478;
  --border-light: rgba(255, 255, 255, 0.12);

  /* Logo font: Adobe Fonts (Typekit) — Eurostile Extd Medium.
     Add your Adobe Fonts kit <script> embed in <head>, then this
     family name will pick it up. Fallback shown until the kit loads. */
  --font-logo: "eurostile-extended-2", "Arial Narrow", sans-serif;
  --font-heading: "Plus Jakarta Sans", sans-serif;
  --font-display: "Cantata One", serif;
  --font-body: "Roboto", sans-serif;

  --header-height: 86px;
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--body-gray);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
}

h1, h2 {
  font-family: var(--font-display);
}

section[id] {
  scroll-margin-top: var(--header-height);
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-dark);
  text-decoration: none;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 0.4rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-gold:hover,
.btn-gold:focus {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

.btn-outline-gold {
  background-color: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 600;
  border-radius: 0.4rem;
}
.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--navy-dark);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background-color: var(--navy);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  z-index: 1030;
}

.site-header .navbar {
  width: 100%;
  padding: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo .logo-icon {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
}

.brand-logo .logo-text {
  font-family: var(--font-logo);
  font-weight: 500;
  color: #fff;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0 0.65rem;
  padding: 0.5rem 0;
  position: relative;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: #fff;
}

.site-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
}

.site-header .navbar-toggler {
  border-color: var(--border-light);
}

.site-header .navbar-toggler-icon {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  background:
    linear-gradient(120deg, rgba(20, 26, 44, 0.83) 0%, rgba(28, 37, 65, 0.75) 60%, rgba(28, 37, 65, 0.65) 100%),
    url("../images/bg-intro.jpg") center/cover no-repeat;
  padding-top: 7rem;
  padding-bottom: 2rem;
}

.hero-title {
  color: #fff;
  font-weight: 300;
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  padding-right: 18rem;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

/* Overlapping feature cards */
.hero-feature-cards {
  position: relative;
  z-index: 2;
  margin-top: 5rem;
  margin-bottom: -14rem;
}

.feature-card {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  height: 100%;
  box-shadow: 0 1.25rem 3rem rgba(16, 20, 36, 0.25);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 0.5rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin-bottom: 1.25rem;
}

.feature-card-active .feature-icon {
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.92rem;
  margin-bottom: 1.25rem;
}

.feature-link {
  color: var(--gold-dark);
  font-weight: 600;
  font-size: 0.92rem;
}
.feature-link i {
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}
.feature-link:hover i {
  transform: translateX(3px);
}

.feature-card-active .feature-link {
  display: inline-block;
  background-color: var(--gold);
  color: var(--navy-dark);
  padding: 0.55rem 1.25rem;
  border-radius: 0.4rem;
}
.feature-card-active .feature-link i {
  display: none;
}

/* ==========================================================================
   Section headings (shared)
   ========================================================================== */
.solutions-section {
  padding-top: 18rem;
}

.section-title {
  font-weight: 300;
  font-size: 2.1rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  max-width: 40rem;
  color: var(--body-gray);
}

.text-start .section-subtitle {
  margin-left: 0;
}

/* ==========================================================================
   Solutions cards
   ========================================================================== */
.solution-card {
  background-color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0.5rem 2rem rgba(16, 20, 36, 0.08);
  height: 100%;
}

.solution-img {
  position: relative;
  height: 220px;
}

.solution-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.solution-badge {
  position: absolute;
  bottom: -28px;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background-color: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid var(--gold);
}

.solution-body {
  padding: 2.25rem 1.75rem 1.75rem;
}

.solution-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.solution-body p {
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   How We Work
   ========================================================================== */
.how-section {
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.process-steps {
  gap: 1rem;
}

.process-step {
  position: relative;
  flex: 1;
  padding: 0 0.5rem;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 15%;
  right: 15%;
  border-top: 2px dashed #d7dae2;
  z-index: 0;
}

.process-icon {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  margin: 0 0 1.1rem;
  border-radius: 50%;
  background-color: #eceff4;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--body-gray);
}

/* Consultation form card */
.consultation-card {
  background-color: var(--navy);
  border-radius: var(--radius);
  padding: 2.5rem;
  height: 100%;
  scroll-margin-top: var(--header-height);
}

.consultation-card h3 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.6rem;
  margin-bottom: 1.75rem;
}

.consultation-card .form-control {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.7rem 1rem;
}

.consultation-card .form-control::placeholder {
  color: var(--text-muted);
}

.consultation-card .form-control:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--gold);
  box-shadow: none;
}

/* ==========================================================================
   Resources
   ========================================================================== */
.resources-section {
  background-color: #f7f8fa;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.resource-card {
  background-color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0.5rem 2rem rgba(16, 20, 36, 0.08);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(16, 20, 36, 0.14);
}

.resource-img {
  height: 190px;
  overflow: hidden;
}

.resource-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-body {
  padding: 1.75rem;
}

.resource-tag {
  display: inline-block;
  background-color: rgba(201, 151, 62, 0.12);
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 0.9rem;
}

.resource-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.resource-body p {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.resource-link {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
}
.resource-link i {
  margin-left: 0.35rem;
  color: var(--gold-dark);
  transition: transform 0.2s ease;
}
.resource-link:hover i {
  transform: translateX(3px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: var(--navy-dark);
  color: var(--text-muted);
}

.site-footer .brand-logo .logo-text {
  color: #fff;
}

.footer-blurb {
  font-size: 0.92rem;
  max-width: 24rem;
  margin: 1.25rem 0 1.5rem;
}

.footer-heading {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.footer-contact i {
  color: var(--gold);
  margin-top: 0.2rem;
}

.social-icons {
  display: flex;
  gap: 0.6rem;
}

.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.footer-divider {
  border-color: var(--border-light);
  opacity: 1;
  margin: 0;
}

.footer-bottom {
  font-size: 0.80rem;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--gold);
}

.footer-legal a {
  color: var(--text-muted);
  margin-left: 1.5rem;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero-feature-cards {
    margin-bottom: -13rem;
  }
  .solutions-section {
    padding-top: 15rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-feature-cards {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .solutions-section {
    padding-top: 3rem;
  }
  .process-steps {
    flex-direction: column;
    text-align: center;
  }
  .process-steps::before {
    display: none;
  }
  .process-step {
    margin-bottom: 2rem;
  }
  .process-icon {
    margin: 0 auto 1.1rem;
  }
  #about .section-title {
    text-align: center !important;
  }
  #about .section-subtitle {
    text-align: center !important;
  }
  .footer-legal a {
    margin-left: 0;
    margin-right: 1.25rem;
  }
}
