/* =============================================================================
   FONTS
   ============================================================================= */

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display/dm-serif-display-v17-latin-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Display';
  src: url('../fonts/dm-serif-display/dm-serif-display-v17-latin-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans/nunito-sans-v19-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans/nunito-sans-v19-latin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans/nunito-sans-v19-latin-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* =============================================================================
   VARIABLES
   ============================================================================= */

:root {
  /* Fonts */
  --font-sans:  'Nunito Sans', sans-serif;
  --font-serif: 'DM Serif Display', serif;

  /* Colors */
  --pure-white:  #FFFFFF;
  --warm-white:  #FDFAF7;
  --cream:       #F4EFE9;
  --bone:        #DDD4C6;
  --text:        #6B5B4E;
  --text-faded:  #CCC2B8;
  --brown:       #3A3028;
  --orange:      #AC5635;
  --light-orange:#C97045;
  --green:       #64733A;
  --light-green: #8A9E5C;
  --yellow:      #D4A017;
}


/* =============================================================================
   RESET
   ============================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
}

p a, ul a, ol a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
}

.breadcrumbs a {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}



/* =============================================================================
   SKIP NAVIGATION
   ============================================================================= */

.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 24px;
  background-color: var(--brown);
  color: var(--warm-white);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 5px 0;
  transition: top 0.2s;
}

.skip-nav:focus {
  top: 0;
}


/* =============================================================================
   BASE
   ============================================================================= */

body {
  background-color: var(--warm-white);
  font-family: var(--font-sans);
  color: var(--text);
  line-height: 1.5;
  font-size: 17px;
  font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--brown);
  line-height: 1.1;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  margin: 0 0 20px;
}

p:last-child {
  margin-bottom: 0;
}


/* =============================================================================
   LAYOUT
   ============================================================================= */

.layout-section__outer {
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
}

.layout-section__inner {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

.layout-section__sidebar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 100px;
  align-items: start;
}


/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-block;
  padding: 8px 24px;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.5;
  min-width: 225px;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn--icon {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.btn--solid {
  color: var(--warm-white);
}

.btn--outline {
  background-color: transparent;
  font-weight: 600;
}

/* Orange */
.btn--solid.btn--orange {
  background-color: var(--orange);
  border-color: var(--orange);
}

@media (hover: hover) {
  .btn--solid.btn--orange:hover {
    background-color: var(--light-orange);
    border-color: var(--light-orange);
    transform: translateY(-1px);
  }
}

.btn--outline.btn--orange {
  color: var(--orange);
  border-color: var(--orange);
}

@media (hover: hover) {
  .btn--outline.btn--orange:hover {
    color: var(--light-orange);
    border-color: var(--light-orange);
    transform: translateY(-1px);
  }
}

/* Green */
.btn--solid.btn--green {
  background: var(--green);
  border-color: var(--green);
}

@media (hover: hover) {
  .btn--solid.btn--green:hover {
    background-color: var(--light-green);
    border-color: var(--light-green);
    transform: translateY(-1px);
  }
}

.btn--outline.btn--green {
  color: var(--green);
  border-color: var(--green);
}

@media (hover: hover) {
  .btn--outline.btn--green:hover {
    color: var(--light-green);
    border-color: var(--light-green);
    transform: translateY(-1px);
  }
}


/* =============================================================================
   TYPOGRAPHY
   ============================================================================= */

.overline {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0!important;
  color: var(--orange);
  line-height: 1.1!important;
  letter-spacing: 1px;
}


/* =============================================================================
   BREADCRUMBS
   ============================================================================= */

.breadcrumbs {
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "\203A";
  margin: 0 8px;
  color: var(--text);
  font-weight: bold;
}

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

@media (hover: hover) {
  .breadcrumbs a:hover {
    text-decoration: underline;
  }
}

.breadcrumbs li[aria-current="page"] {
  color: var(--text);
}


/* =============================================================================
   WORD SEARCH LIST
   ============================================================================= */

.word-search-list {
  margin-top: 0;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 25px;
  padding: 0;
  list-style: none;
}

.word-search-list__card {
  border: solid 1px var(--bone);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .word-search-list__card:hover {
    transform: translateY(-2px);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  }
}

.word-search-list__link {
  text-decoration: none;
}

.word-search-list__image img {
  display: block;
  width: 100%;
  height: auto;
}

.word-search-list__content {
  padding: 10px;
  background-color: var(--warm-white);
  border-top: solid 1px var(--bone);
  text-align: center;
}

.word-search-list__title {
  font-size: 20px;
}


/* =============================================================================
   HEADER
   ============================================================================= */

.site-header {
  position: relative;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--bone);
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header__logo img {
  display: block;
  height: 60px;
  width: auto;
}

/* Nav links */
.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  transition: color 0.2s;
}

@media (hover: hover) {
  .site-header__nav a:hover {
    color: var(--orange);
  }
}

/* Hamburger button */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.site-header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--brown);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X */
.site-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =============================================================================
   PAGE HERO
   ============================================================================= */

.page-hero {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: var(--cream);
  border-bottom: solid 1px var(--bone);
}

.page-hero .breadcrumbs {
  margin-bottom: 20px;
}

.page-hero__title {
  margin-bottom: 5px;
}

.page-hero__description {
  max-width: 600px;
}


/* =============================================================================
   ARTICLE
   ============================================================================= */

.article h2, .article h3, .article h4 {
  margin-bottom: 15px;
}

.article h3, .article h4 {
  margin-top: 35px;
}

.article strong {
  font-weight: 900;
}

.article ul {
  list-style: none;
  padding-left: 5px;
  margin-bottom: 20px;
}

.article ul li {
  position: relative;
  padding-left: 20px;
}

.article ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background-color: var(--orange);
  border-radius: 50%;
}

.article ul li strong {
  color: var(--brown);
}


/* =============================================================================
   FOOTER
   ============================================================================= */

.site-footer {
  margin-top: auto;
  background-color: var(--brown);
}

/* Email CTA */
.site-footer__cta {
  background-color: var(--orange);
  padding-top: 50px;
  padding-bottom: 35px;
  text-align: center;
}

.site-footer__cta-text {
  max-width: 560px;
  margin: 0 auto 25px;
}

.site-footer__cta-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0;
  color: var(--warm-white);
  line-height: 1.1;
  letter-spacing: 1px;
}

.site-footer__cta-heading {
  font-family: var(--font-serif);
  font-size: 34px;
  color: var(--warm-white);
  margin-bottom: 0px;
}

.site-footer__cta-form .fluentform .ff-btn-submit {
  background-color: var(--brown)!important;
  border-color: var(--brown)!important;
}

/* Main columns */
.site-footer__main {
  padding-top: 70px;
  padding-bottom: 70px;
}

.site-footer__columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Brand column */
.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 10px;
}

.site-footer__logo-link img {
  height: 60px;
}

.site-footer__tagline {
  font-size: 14px;
  line-height: 1.7;
  color: var(--bone);
  margin-bottom: 25px;
  max-width: 360px;
}

.site-footer__badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--bone);
  background-color: rgba(255, 255, 255, 0.08);
  border: solid 1px rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 5px 12px;
}

/* Nav columns */
.site-footer__nav-heading {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faded);
  margin-top: 0;
  margin-bottom: 18px;
}

.site-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.site-footer__nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bone);
  text-decoration: none;
  transition: color 0.2s;
}

@media (hover: hover) {
  .site-footer__nav-list a:hover {
    color: var(--warm-white);
  }
}

/* Bottom bar */
.site-footer__bottom {
  background-color: rgba(255, 255, 255, 0.08);
  border-top: solid 1px rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__copyright {
  font-size: 14px;
  color: var(--text-faded);
  margin: 0;
}

.site-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.site-footer__legal a {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-faded);
  transition: color 0.2s;
}

@media (hover: hover) {
  .site-footer__legal a:hover {
    color: var(--warm-white);
  }
}

.site-footer__view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: solid 1px rgba(255, 255, 255, 0.1);
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-faded);
  transition: color 0.2s;
}

@media (hover: hover) {
  .site-footer__view-all:hover {
    color: var(--warm-white);
  }
}



/* =============================================================================
   FLUENT FORMS — Global defaults (light background context)
   Footer CTA form overrides these via .site-footer__cta-form
   ============================================================================= */

.fluentform .ff-el-group {
  margin-bottom: 15px!important;
}

.fluentform .ff-el-input--label label {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 7px;
}

.fluentform .ff-el-form-control {
  width: 100%;
  padding: 11px 14px;
  background-color: var(--warm-white);
  border: solid 1px var(--bone);
  border-radius: 5px;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.fluentform .ff-el-form-control:focus {
  outline: none;
  border-color: var(--brown);
}

.fluentform .ff-el-form-control::placeholder {
  color: var(--brown)!important;
}

.fluentform .ff-el-form-check-input {
  accent-color: var(--orange);
}

.fluentform textarea.ff-el-form-control {
  min-height: 150px;
  resize: vertical;
}

.fluentform select.ff-el-form-control {
  line-height: 1.5;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%233A3028' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.fluentform .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 11px 28px;
  background-color: var(--orange) !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border: solid 1px var(--orange) !important;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 0!important;
}

/* Validation errors */
.fluentform .ff-el-group.ff-has-error .ff-el-form-control,
.fluentform .ff-el-is-error .ff-el-form-control {
  border-color: #c0392b;
}

.fluentform .error.text-danger,
.fluentform .ff-el-is-error .text-danger {
  display: block;
  font-size: 13px;
  color: #c0392b;
  margin-top: 5px;
}

/* Success message */
.fluentform .ff-message-success {
  padding: 18px 22px;
  background-color: #f2f7ee;
  border: solid 1px #b5d4a8;
  border-radius: 5px;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
  .site-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__tagline {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .site-header__hamburger {
    display: flex;
  }

  .site-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--warm-white);
    border-bottom: 1px solid var(--bone);
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-header__nav.is-open {
    max-height: 400px;
  }

  .site-header__nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0;
  }

  .site-header__nav li {
    width: 100%;
  }

  .site-header__nav a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--bone);
    font-size: 16px;
  }

  .site-header__nav li:last-child a {
    border-bottom: none;
  }

  .word-search-list {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 10px;
  }

  .word-search-list__title {
    font-size: 17px;
  }
}

@media (max-width: 560px) {
  .page-hero__title {
    font-size: 36px;
  }

  .site-footer__columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer__main {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .site-footer__cta {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .site-footer__cta-heading {
    font-size: 24px;
    max-width: 300px;
    margin: 5px auto 0 auto;
    line-height: 1.1;
  }

  .site-footer__cta-form .ff-t-container {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

/* =============================================================================
   ACCORDION
   ============================================================================= */

.accordion {
  border: solid 1px var(--bone);
  border-radius: 5px;
  overflow: hidden;
}

.accordion__item:not(:last-child) {
  border-bottom: solid 1px var(--bone);
}


/* Trigger (button) */

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: var(--warm-white);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--brown);
  user-select: none;
  transition: background-color 0.15s;
}

@media (hover: hover) {
  .accordion__trigger:hover {
    background-color: var(--cream);
  }
}

.accordion__item.is-open .accordion__trigger {
  background-color: var(--cream);
}


/* Chevron */

.accordion__chevron {
  flex-shrink: 0;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.accordion__item.is-open .accordion__chevron {
  transform: rotate(180deg);
}


/* Panel — grid trick for smooth height animation */

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.accordion__item.is-open .accordion__panel {
  grid-template-rows: 1fr;
}

.accordion__panel-inner {
  overflow: hidden;
}

.accordion__panel-body {
  padding: 20px 24px;
  color: var(--text);
  border-top: solid 1px var(--bone);
}

.accordion__panel-body p:first-child {
  margin-top: 0;
}

.accordion__panel-body p:last-child {
  margin-bottom: 0;
}

.accordion__panel-body a {
  color: var(--orange);
  font-weight: 600;
}

@media (hover: hover) {
  .accordion__panel-body a:hover {
    color: var(--light-orange);
  }
}
