/* ===================================== */
/* Global Typography                     */
/* ===================================== */

html,
body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif !important;
}

body,
body p,
body li,
body a,
body strong,
body em,
body span,
body div,
body small,
body button,
body input,
body textarea,
body select,
body label,
body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  font-family: "Montserrat", sans-serif !important;
}

/* Force consistent font through theme wrappers */
.intro,
.intro *,
.content,
.content *,
.container,
.container *,
.about-split,
.about-split *,
.fdw-home-hero,
.fdw-home-hero *,
.fdw-home-section,
.fdw-home-section *,
.fdw-home-card,
.fdw-home-card *,
.fdw-home-cred,
.fdw-home-cred *,
.fdw-bannerstrip,
.fdw-bannerstrip *,
.fdw-services-grid,
.fdw-services-grid *,
.fdw-card,
.fdw-card *,
.fdw-service-card,
.fdw-service-card *,
.fdw-media-page,
.fdw-media-page *,
.fdw-media-section,
.fdw-media-section *,
.fdw-media-grid,
.fdw-media-grid *,
.fdw-media-card,
.fdw-media-card *,
footer,
footer *,
.footer,
.footer *,
.sub-footer,
.sub-footer * {
  font-family: "Montserrat", sans-serif !important;
}

/* ===================================== */
/* About Page Split Layout               */
/* ===================================== */

.about-split {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.about-photo {
  width: 320px;
  max-width: 40%;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.about-text {
  flex: 1 1 0;
}

@media (max-width: 800px) {
  .about-split {
    flex-direction: column;
  }

  .about-photo {
    width: 100%;
    max-width: 100%;
  }
}

/* ===================================== */
/* Navigation Link Colors                */
/* ===================================== */

.header a:link,
.header a:visited,
.header a:active,
.header a:focus,
.menu a:link,
.menu a:visited,
.menu a:active,
.menu a:focus,
.nav a:link,
.nav a:visited,
.nav a:active,
.nav a:focus {
  color: #663300 !important;
}

.header a:hover,
.menu a:hover,
.nav a:hover,
.header a:focus,
.menu a:focus,
.nav a:focus {
  color: #8B4513 !important;
}

/* ===================================== */
/* Footer Colors + Font                  */
/* ===================================== */

footer,
.footer {
  background-color: #663300 !important;
  color: #ffffff !important;
}

footer .container,
footer .row,
footer [class*="footer"],
.footer .container,
.footer .row,
.footer [class*="footer"] {
  background-color: transparent !important;
  color: inherit !important;
}

footer a:link,
footer a:visited,
footer a:active,
footer a:focus,
footer a {
  color: #ffffff !important;
}

footer a:hover,
footer a:focus {
  color: #e6e6e6 !important;
}

/* ===================================== */
/* Sub-footer Bar                        */
/* ===================================== */

.sub-footer,
.sub-footer .container,
.sub-footer .row,
.sub-footer .col-12,
.sub-footer .sub-footer-inner,
.sub-footer p,
.sub-footer span,
.sub-footer div,
.sub-footer a,
.sub-footer li,
.sub-footer strong,
.sub-footer em,
.sub-footer small {
  background-color: #195905 !important;
  color: #ffffff !important;
}

.sub-footer {
  border: 0 !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* ===================================== */
/* Section/Page Headings Fonts           */
/* ===================================== */

.intro h1,
.intro h2,
.intro h3,
.about-split h1,
.about-split h2,
.about-split h3,
.fdw-home-section-title,
.fdw-home-card h3,
.fdw-media-section h2,
.fdw-media-card h3,
.fdw-service-card h3,
.fdw-card h3 {
  font-weight: 400 !important;
}

.intro h1 { font-size: 2.6rem !important; line-height: 1.15; }
.intro h2 { font-size: 2.2rem !important; line-height: 1.20; }
.intro h3 { font-size: 1.6rem !important; line-height: 1.25; }

/* Reduce whitespace below banners site-wide */
.intro {
  padding-top: 0 !important;
  padding-bottom: 0.75rem !important;
}

/* ===================================== */
/* Services Banner                       */
/* ===================================== */

.fdw-bannerstrip {
  width: 100%;
  height: 140px;
  overflow: hidden;
  margin: 0 0 1.25rem 0;
  border-radius: 6px;
  position: relative;
}

.fdw-bannerstrip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40% !important;
  display: block;
}

/* ===================================== */
/* Services Grid                         */
/* ===================================== */

.fdw-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(288px, 1fr));
  gap: 2rem;
  width: min(1200px, calc(100vw - 4rem)) !important;
  margin: 2rem auto 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
}

.fdw-card,
.fdw-service-card {
  width: 100%;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.fdw-square-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.container:has(.fdw-services-grid) {
  max-width: 1200px !important;
  width: 100% !important;
}

@media (max-width: 700px) {
  .fdw-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================== */
/* Homepage                              */
/* ===================================== */

.fdw-home-hero,
.fdw-home-section {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
  box-sizing: border-box;
}

.fdw-home-hero {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.fdw-hero-has-bg {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.fdw-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/home/hero.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.55) contrast(1.15);
  transform: scale(1.03);
}

.fdw-hero-has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 12, 0.55);
}

.fdw-hero-inner {
  position: relative;
  z-index: 1;
  color: #ffffff;
}

.fdw-home-hero h1 {
  font-size: clamp(2.0rem, 4.2vw, 2.8rem);
  font-weight: 650;
  margin: 0 0 1rem 0;
}

.fdw-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  max-width: 60ch;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

.fdw-hero-inner p {
  max-width: 70ch;
  margin: 0.75rem auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
}

.fdw-home-cta {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.fdw-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 650;
  line-height: 1;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.fdw-btn-primary {
  background-color: #2f4f3e;
  color: #ffffff;
}

.fdw-btn-primary:hover {
  background-color: #3c6b54;
}

.fdw-btn-secondary {
  border: 2px solid rgba(255,255,255,0.85);
  color: rgba(255,255,255,0.95);
}

.fdw-btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.fdw-home-section {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.fdw-home-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.fdw-home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.fdw-home-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 12px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
  text-align: left;
  box-sizing: border-box;
}

.fdw-home-card p {
  margin: 0;
  line-height: 1.65;
}

.fdw-home-card h3 {
  margin: 0 0 0.5rem 0;
  position: relative;
  padding-top: 0.75rem;
}

.fdw-home-card h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 3px;
  background: #2f4f3e;
}

.fdw-home-card-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.fdw-home-cred {
  margin-top: 2rem;
  padding: 1.25rem 1.25rem;
  border-radius: 12px;
  background: rgba(47,79,62,0.08);
  border: 1px solid rgba(47,79,62,0.18);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  box-sizing: border-box;
}

.fdw-home-cred strong {
  display: inline-block;
  margin-bottom: 0.25rem;
}

@media (max-width: 900px) {
  .fdw-home-cards {
    grid-template-columns: 1fr;
  }

  .fdw-home-cred {
    grid-template-columns: 1fr;
  }
}

/* ===================================== */
/* Media Page Layout                     */
/* ===================================== */

.fdw-media-page {
  margin-top: 1.25rem;
}

.fdw-media-section {
  margin-bottom: 2rem;
}

.fdw-media-section h2 {
  margin: 0 0 0.9rem 0;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #ddd6ca;
}

.fdw-media-section:first-child h2 {
  margin-top: 0;
}

.fdw-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.fdw-media-card {
  background: #ffffff;
  border: 1px solid #d8d4cc;
  border-radius: 10px;
  padding: 0.9rem 1rem 0.85rem 1rem;
  box-shadow: 0 1px 5px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  border-left-width: 6px;
}

.fdw-media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border-color: #b9b3a5;
}

.fdw-media-card h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.02rem;
  line-height: 1.28;
}

.fdw-media-card p {
  margin: 0 0 0.55rem 0;
  font-size: 0.95rem;
  line-height: 1.42;
}

.fdw-media-link {
  margin: 0;
}

.fdw-media-link a {
  font-weight: 700;
  text-decoration: none;
}

.fdw-media-link a:hover {
  text-decoration: underline;
}

@media (max-width: 1000px) {
  .fdw-media-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 700px) {
  .fdw-media-grid {
    grid-template-columns: 1fr;
  }
}

/* Media card category accents */

.fdw-media-card.publication {
  border-left: 4px solid #93ca1c;
}

.fdw-media-card.article {
  border-left: 4px solid #f8e575;
}

.fdw-media-card.video {
  border-left: 4px solid #67a4f1;
}

.fdw-media-card.podcast {
  border-left: 4px solid #a05a2c;
}

/* Media card header label */

.fdw-media-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: #ece7dc;
  color: #6d5b3f;
}

.fdw-media-card.publication .fdw-media-kicker {
  background: #93ca1c;
  color: #6e9715;
}

.fdw-media-card.article .fdw-media-kicker {
  background: #f8e575;
  color: #c5b75d;
}

.fdw-media-card.video .fdw-media-kicker {
  background: #67a4f1;
  color: #4871A6;
}

.fdw-media-card.podcast .fdw-media-kicker {
  background: #D47739;
  color: #6E3E1E;
}

.fdw-media-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.6rem;
}
