@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&display=swap');

/* ===============================
   GLOBAL COLORS & TYPOGRAPHY
   =============================== */

/* Warm adobe + deep adobe + turquoise */
:root {
  --primary: #8c3b1a;        /* adobe / red earth */
  --primary-dark: #5f2410;   /* deeper adobe for headers, footer */
  --accent-turquoise: #007d7c;
}

/* Body text = clean sans-serif + sand background */
body {
  font-family: "Open Sans", Arial, sans-serif;
  color: #2b2521;
  background-color: #f5efe7;
}

/* Headings = bookish serif (site-wide) */
h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Serif", Georgia, serif;
  letter-spacing: 0.03em;
  color: var(--primary-dark);
}

/* Slightly emphasize h4 on welcome page */
.page.site-page-welcome h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ===============================
   LINKS & NAVIGATION
   =============================== */

/* Global links */
a {
  color: var(--primary);
}

a:hover,
a:focus {
  color: var(--accent-turquoise);
}

/* Top navigation links */
.main-header .navigation > li > a {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.2rem;
}

/* Hover/active underline with turquoise */
.main-header .navigation > li > a:hover,
.main-header .navigation > li.current > a,
.main-header .navigation > li.active > a {
  border-bottom: 2px solid var(--accent-turquoise);
}

/* Primary buttons / submit */
button,
input[type="submit"],
.main-header__search-form button {
  background-color: var(--primary);
  border: none;
  color: #ffffff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.main-header__search-form button:hover {
  background-color: var(--accent-turquoise);
}

/* === DROPDOWN MENU OVERRIDE === */

/* Background for the dropdown panel and its items */
.main-header ul.navigation li ul,
.main-header ul.navigation li ul li,
.main-header ul.navigation li ul li a {
  background: var(--primary) !important;      /* adobe */
  background-image: none !important;          /* kill any gradient */
}

/* Text color inside dropdown */
.main-header ul.navigation li ul li a {
  color: #ffffff !important;                  /* white text */
  font-weight: 500;
  border: none !important;
}

/* Hover state for dropdown links */
.main-header ul.navigation li ul li a:hover {
  color: #f5efe7 !important;                  /* sand text on hover */
}

/* Shape + shadow of the dropdown panel */
.main-header ul.navigation li ul {
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

/* ===============================
   BANNER (GLOBAL)
   =============================== */

/* Two-line banner hierarchy – applies on all site pages */
.banner .banner__heading {
  font-family: "Crimson Pro", serif;
  font-weight: 700;
  font-size: 5.5rem;
  line-height: 1.00;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8),
               0 3px 8px rgba(0,0,0,0.6);
}

/* Second line under "manitos" using the banner description field */
.banner .banner__description {
  font-family: "Crimson Pro", serif;
  font-weight: 500;
  font-size: 3.5rem; /* slightly smaller */
  line-height: 1.00;
  color: #ffffff; /* same color as header */
  letter-spacing: 0.01em;
  text-transform: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8),
               0 3px 8px rgba(0,0,0,0.6);
}

/* Remove default margins between the two lines */
.banner .banner__heading,
.banner .banner__description {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Custom, small gap between the two lines */
.banner .banner__description {
  margin-top: 0.075rem !important; /* tune this number if needed */
}

/* Remove banner darkening overlay (global) */
.banner.has-text::before {
  background: none !important;
}

/* ===============================
   FOOTER – Sand + Adobe Dark
   =============================== */

/* === TOP FOOTER STRIP (navigation/info) === */
.main-footer__top {
  background-color: #f5efe7 !important; /* sand */
  color: var(--primary-dark) !important;
  padding: 1.5rem 0;
}

/* footer top links */
.main-footer__top a {
  color: var(--primary-dark) !important;
  text-decoration: none;
  font-weight: 600;
}

.main-footer__top a:hover {
  color: var(--primary) !important; /* adobe hover */
}

/* === BOTTOM FOOTER STRIP (legal/powered by) === */
.main-footer__bottom {
  background-color: var(--primary-dark) !important; /* dark adobe */
  color: #f9f5f2 !important;
  padding: 0.75rem 0;
}

.main-footer__bottom a {
  color: #f9f5f2 !important;
  text-decoration: none;
}

/* ===============================
   PAGE BACKGROUND & CONTENT BLOCKS
   =============================== */

/* Main content blocks on pages */
#main-content .block-html,
#main-content .block {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

/* Generic layout padding */
.blocks-inner.page-layout-normal {
  padding-top: 1rem;
  padding-bottom: 2rem;
}
/* ===============================
   WELCOME PAGE – HOME CTA BUTTONS
   =============================== */

.page.site-page-welcome .home-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.75rem 0 0 0; /* space above buttons */
}

/* Base button style */
.page.site-page-welcome .home-cta-buttons .cta-button {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--primary);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

/* Primary: solid adobe */
.page.site-page-welcome .home-cta-buttons .cta-primary {
  background-color: var(--primary);
  color: #ffffff;
}

/* Secondary: sand outline */
.page.site-page-welcome .home-cta-buttons .cta-secondary {
  background-color: #f5efe7;
  color: var(--primary-dark);
}

/* Hover states */
.page.site-page-welcome .home-cta-buttons .cta-button:hover {
  transform: translateY(-1px);
}

.page.site-page-welcome .home-cta-buttons .cta-primary:hover {
  background-color: var(--accent-turquoise);
  border-color: var(--accent-turquoise);
  color: #ffffff;
}

.page.site-page-welcome .home-cta-buttons .cta-secondary:hover {
  background-color: #ffffff;
  border-color: var(--accent-turquoise);
  color: var(--accent-turquoise);
}

/* Responsive: stack nicely on narrow screens */
@media (max-width: 640px) {
  .page.site-page-welcome .home-cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .page.site-page-welcome .home-cta-buttons .cta-button {
    text-align: center;
  }
}

/* ===============================
   WELCOME PAGE LAYOUT (SAND & PANEL)
   =============================== */

/* Sand background behind entire main content on welcome */
.page.site-page-welcome #main-content {
  background-color: #f5efe7;
}

/* Remove extra backgrounds/shadows for wrappers on welcome */
.page.site-page-welcome .blocks,
.page.site-page-welcome .blocks-inner.page-layout-normal {
  background: none;
  box-shadow: none;
}

/* Partners section: framed white panel on sand */
.page.site-page-welcome .partners-tiles {
  background-color: #ffffff;       /* white panel surface */
  border: 1px solid rgba(0,0,0,0.12); /* subtle archival border */
  border-radius: 10px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1600px;                /* prevents it from stretching too far */
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===============================
   PARTNERS GRID – BIG CARDS (3 ACROSS)
   =============================== */

/* 1) Grid of cards */
.page.site-page-welcome .partners-tiles .site-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  justify-items: center;
  padding-bottom: 1rem;
}

/* 2) Individual card */
.page.site-page-welcome .partners-tiles .site {
  background: #ffffff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
  width: 100%;
  max-width: 480px; /* allows 3 cards per row on desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease, background 0.15s ease;
}

/* 3) Wrapper around the image */
.page.site-page-welcome .partners-tiles .site-thumbnail {
  width: 100%;
  margin-bottom: 0.75rem;
}

/* 4) IMAGE – big, responsive, not flattened */
.page.site-page-welcome .partners-tiles .site-thumbnail,
.page.site-page-welcome .partners-tiles .site-thumbnail-image {
  height: auto !important;
  max-height: none !important;
}

.page.site-page-welcome .partners-tiles .site-thumbnail-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;  /* show full image */
  background-color: #ffffff;
  border-radius: 6px;
}

/* 5) Text under the image */
.page.site-page-welcome .partners-tiles .site-text {
  width: 100%;
  margin-top: 0.25rem;
}

.page.site-page-welcome .partners-tiles .site-link {
  display: inline-block;
  width: 100%;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  text-align: center;
  white-space: normal; /* allow wrapping */
}

/* 6) Hover effect */
.page.site-page-welcome .partners-tiles .site:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.18);
  border: 1px solid rgba(140, 59, 26, 0.4); /* adobe-ish */
  background: linear-gradient(
    to bottom,
    #fffdf9,
    #fff7ee
  );
}

/* ===============================
   WELCOME PAGE – REMOVE OLD DECORATIVE UNDERLINES
   =============================== */

/* Remove decorative heading lines on welcome page */
.page.site-page-welcome h2::after,
.page.site-page-welcome h4::after {
  content: none !important;
  display: none !important;
}

.page.site-page-welcome h2,
.page.site-page-welcome h4 {
  padding-bottom: 0 !important;
}
/* ===============================
   REDUCE TOP GAP BELOW NAV / BANNER
   =============================== */

/* Removes excess padding above first content block */
#main-content {
  padding-top: 0.25rem !important;
}

/* Shrinks block wrapper spacing */
.blocks-inner.page-layout-normal {
  padding-top: 0.5rem !important;
}

/* Kill default top margins on first heading */
#main-content h1:first-child,
#main-content h2:first-child,
#main-content h3:first-child {
  margin-top: 0.25rem !important;
}
/* TEST: sand nav bar */
.main-header {
  background-color: #f5efe7 !important;
}
/* ===============================
   PARTNERS PAGE – EDITORIAL TWO-COLUMN LAYOUT
   =============================== */

/* Wider readable column for partner features */
.page.site-page-partners #main-content {
  max-width: 1200px !important;
  width: 100%;
  margin: 0 auto 3rem auto;
  padding: 0 2rem;   /* keeps text off screen edges on large screens */
}

/* Remove the white card background from blocks on this page */
.page.site-page-partners .blocks,
.page.site-page-partners .blocks-inner.page-layout-normal,
.page.site-page-partners #main-content .block-html,
.page.site-page-partners #main-content .block {
  background: none !important;
  box-shadow: none !important;
  padding: 0;
}

/* === LAYOUT THE PARTNER LIST AS HORIZONTAL FEATURES (IMAGE LEFT, TEXT RIGHT) === */

/* Stack partners vertically with space between */
.page.site-page-partners .partners-list .site-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;              /* space between partners */
  margin-top: 1.5rem;
}

/* Each partner block: two-column layout on desktop */
.page.site-page-partners .partners-list .site {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  column-gap: 2rem;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Thumbnail wrapper – a bit wider so logos feel bigger */
.page.site-page-partners .partners-list .site-thumbnail {
  width: 100%;
  max-width: 420px;   /* was 320px */
  margin: 0;
}

/* Partner image – let it use its natural height, no forced white box */
.page.site-page-partners .partners-list .site-thumbnail-image {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;          /* natural aspect ratio */
  max-height: none !important;
  object-fit: contain !important;   /* just in case */
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);  /* very light frame */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  background-color: transparent;    /* no solid white box */
}


/* Text wrapper on the right */
.page.site-page-partners .partners-list .site-text {
  width: 100%;
  max-width: 75ch;
  margin: 0;
  text-align: left;
}

/* Partner name link */
.page.site-page-partners .partners-list .site-link {
  display: block;
  margin: 0 0 0.4rem 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--primary-dark);
}

.page.site-page-partners .partners-list .site-link:hover {
  color: var(--primary);
}

/* Partner description text */
.page.site-page-partners .partners-list .site-summary {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3a312b;
  margin: 0 0 0.85rem 0;
}

/* Optional: subtle divider if you add <hr class="partner-divider"> in the block */
.page.site-page-partners #main-content hr.partner-divider {
  border: 0;
  height: 1px;
  max-width: 520px;
  margin: 1.75rem auto 0 auto;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0),
    rgba(0,0,0,0.18),
    rgba(0,0,0,0)
  );
}

/* === RESPONSIVE: stack on small screens === */
@media (max-width: 800px) {
  .page.site-page-partners .partners-list .site {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .page.site-page-partners .partners-list .site-thumbnail {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }

  .page.site-page-partners .partners-list .site-thumbnail-image {
    height: 200px !important;  /* slightly shorter on mobile */
  }
}
/* ===============================
   PARTNERS PAGE – SECTION DIVIDER (BORDER STYLE)
   =============================== */

/* Add a soft divider line above each partner, except the first */
.page.site-page-partners .partners-list .site {
  border-top: 1px solid rgba(0,0,0,0.18);
  padding-top: 1.75rem;     /* space above content after the line */
  margin-top: 1.75rem;      /* space between sections */
}

/* Remove the line on the very first partner */
.page.site-page-partners .partners-list .site:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
/* ===============================
   RESOURCES PAGE – EDITORIAL TWO-COLUMN LAYOUT
   =============================== */

/* Wider readable column for resource features */
.page.site-page-resources #main-content {
  max-width: 1200px !important;
  width: 100%;
  margin: 0 auto 3rem auto;
  padding: 0 2rem;   /* keeps text off screen edges on large screens */
}

/* Remove the white card background from blocks on this page */
.page.site-page-resources .blocks,
.page.site-page-resources .blocks-inner.page-layout-normal,
.page.site-page-resources #main-content .block-html,
.page.site-page-resources #main-content .block {
  background: none !important;
  box-shadow: none !important;
  padding: 0;
}

/* === LAYOUT THE RESOURCES LIST AS HORIZONTAL FEATURES (IMAGE LEFT, TEXT RIGHT) === */

/* Stack resources vertically with space between */
.page.site-page-resources .resources-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;              /* space between resources */
  margin-top: 1.5rem;
}

/* Each resource block: two-column layout on desktop */
.page.site-page-resources .resources-list .resource {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  column-gap: 2rem;
  align-items: flex-start;
  max-width: 1100px;
  margin: 0 auto;
}

/* Thumbnail wrapper – a bit wider so logos/images feel substantial */
.page.site-page-resources .resources-list .resource-thumb {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

/* Resource image – natural aspect ratio, light frame */
.page.site-page-resources .resources-list .resource-thumb img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;          /* natural aspect ratio */
  max-height: none !important;
  object-fit: contain !important;   /* just in case */
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);  /* very light frame */
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  background-color: transparent;
}

/* Text wrapper on the right */
.page.site-page-resources .resources-list .resource-text {
  width: 100%;
  max-width: 75ch;
  margin: 0;
  text-align: left;
}

/* Resource name/title */
.page.site-page-resources .resources-list .resource-text h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.3rem;
}

/* Resource title link */
.page.site-page-resources .resources-list .resource-text h3 a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
}

.page.site-page-resources .resources-list .resource-text h3 a:hover {
  color: var(--primary);
}

/* Resource description text */
.page.site-page-resources .resources-list .resource-text p {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #3a312b;
  margin: 0 0 0.85rem 0;
}

/* SECTION DIVIDER – soft line between resources */
.page.site-page-resources .resources-list .resource {
  border-top: 1px solid rgba(0,0,0,0.18);
  padding-top: 1.75rem;     /* space above content after the line */
  margin-top: 1.75rem;      /* space between sections */
}

/* Remove the line on the very first resource */
.page.site-page-resources .resources-list .resource:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* === RESPONSIVE: stack on small screens === */
@media (max-width: 800px) {
  .page.site-page-resources .resources-list .resource {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .page.site-page-resources .resources-list .resource-thumb {
    max-width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Hide auto image captions inside resource thumbnails on the Resources page */
.page.site-page-resources .resources-list .resource-thumb figcaption,
.page.site-page-resources .resources-list .resource-thumb .media-caption,
.page.site-page-resources .resources-list .resource-thumb .caption {
  display: none !important;
}
/* ===============================
   FAQ PAGE STYLES (SCOPED CORRECTLY)
   =============================== */

/* Page-level wrapper */
.page.site-page-faq {
  /* nothing needed here — this just scopes the page */
}

/* Page heading */
.page.site-page-faq #main-content h2 {
  font-family: "Crimson Pro", serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
  text-align: left;
}

/* Question headers (only target FAQ h3, not banner!) */
.page.site-page-faq #main-content h3 {
  font-family: "Crimson Pro", serif;
  font-size: 1.32rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
  border-bottom: 2px solid rgba(0,0,0,0.12);
  padding-bottom: 0.25rem;
}

/* Answers */
.page.site-page-faq #main-content p,
.page.site-page-faq #main-content ul {
  font-size: 1.1rem;
  line-height: 1.55;
  color: #3a312b;
  margin-bottom: 0.65rem;
  max-width: 75ch;
}

/* Remove card shells on FAQ page */
.page.site-page-faq .blocks,
.page.site-page-faq .blocks-inner.page-layout-normal,
.page.site-page-faq #main-content .block-html,
.page.site-page-faq #main-content .block {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* ===============================
   "WHO WE ARE" PAGE STYLING
   =============================== */

.page.site-page-who-we-are #main-content .who-we-are {
  max-width: none;
  width: 100%;
  margin: 0 0 3rem 0;   /* no extra centering margins */
  padding: 0;           /* no extra inner padding */
}

/* Remove white card shells just on this page */
.page.site-page-who-we-are .blocks,
.page.site-page-who-we-are .blocks-inner.page-layout-normal,
.page.site-page-who-we-are #main-content .block-html,
.page.site-page-who-we-are #main-content .block {
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Main heading */
.page.site-page-who-we-are #main-content .who-we-are h2 {
  font-family: "Crimson Pro", serif;
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
}

/* Section headings */
.page.site-page-who-we-are #main-content .who-we-are h3 {
  font-family: "Crimson Pro", serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
  border-bottom: 2px solid rgba(0,0,0,0.10);
  padding-bottom: 0.25rem;
}

/* Body text & lists */
.page.site-page-who-we-are #main-content .who-we-are p,
.page.site-page-who-we-are #main-content .who-we-are ul {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #3a312b;
  margin-bottom: 0.7rem;
  max-width: 75ch;
}

/* List styling */
.page.site-page-who-we-are #main-content .who-we-are ul {
  padding-left: 1.2rem;
}

/* Links inside this page */
.page.site-page-who-we-are #main-content .who-we-are a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page.site-page-who-we-are #main-content .who-we-are a:hover {
  color: var(--accent-turquoise);
  text-decoration: underline;
}
