@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 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 LIST STYLE
   =============================== */

/* Limit overall width for readability */
.site-page-partners #main-content {
  max-width: 900px;
  margin: 0 auto 2.5rem auto;
}

/* Make partner images big, centered, and nicely framed */
.site-page-partners #main-content img {
  display: block;
  max-width: 520px;
  width: 100%;
  height: auto;
  margin: 2rem auto 0.75rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Partner name links (the site names) */
.site-page-partners #main-content a[href^="/s/"] {
  display: inline-block;
  font-family: "Open Sans", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-dark);
  text-decoration: none;
  margin-bottom: 0.35rem;
}

.site-page-partners #main-content a[href^="/s/"]:hover {
  color: var(--primary);
}

/* Partner description text */
.site-page-partners #main-content p {
  max-width: 70ch;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #3a312b;
  margin-bottom: 0.5rem;
}

/* Add extra breathing room between partners:
   assume each new partner starts with an image */
.site-page-partners #main-content img + a[href^="/s/"] {
  margin-top: 0.25rem;
}
