/*
Theme Name: Tainos Site
Theme URI: https://tainos.vip
Author: Tainos.vip
Description: Bilingual editorial theme for Taíno heritage, Puerto Rico, travel, food, community, and practical island resources.
Version: 2.0.43
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tainos-site
*/

/* Media selected from the Tainos library and bundled with the immutable theme release. */
[data-photo="coast"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/luquillo-beach.webp");
}

[data-photo="west-coast"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/rincon-west-coast.webp");
}

[data-photo="rainforest"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/el-yunque.webp");
}

[data-photo="stone"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/petroglyphs.webp");
}

[data-photo="food"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/puerto-rico-food.webp");
}

[data-photo="sanjuan"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/old-san-juan.webp");
}

[data-photo="mountain"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/central-highlands-coffee.webp");
}

[data-photo="community"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/bomba-community.webp");
}

[data-photo="diaspora"] {
  background-image: url("/wp-content/themes/tainos-site/assets/images/puerto-rican-diaspora.webp");
}

.home-hero .hero-coast {
  background-image: url("/wp-content/themes/tainos-site/assets/images/batu-caguana.webp");
  background-position: center 47%;
}

.home-hero .hero-forest {
  background-image: url("/wp-content/themes/tainos-site/assets/images/family-meal.webp");
  background-position: center;
}

.home-hero .hero-stone {
  background-image: url("/wp-content/themes/tainos-site/assets/images/petroglyphs.webp");
}

.heritage-cover-art .media,
.article-wide-media {
  background-image: url("/wp-content/themes/tainos-site/assets/images/batu-batey.webp");
}

.food-cover .media {
  background-image: url("/wp-content/themes/tainos-site/assets/images/puerto-rico-food.webp");
}

.community-cover-grid .media {
  background-image: url("/wp-content/themes/tainos-site/assets/images/bomba-community.webp");
}

.about-cover {
  background-image: linear-gradient(90deg, rgba(17, 51, 43, .9), rgba(17, 51, 43, .35)), url("/wp-content/themes/tainos-site/assets/images/old-san-juan.webp");
  background-position: center;
  background-size: cover;
}

.utility {
  min-height: 34px;
  height: auto;
  padding-block: 6px;
}

.utility-content {
  min-height: 22px;
}

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .utility-content > div:last-child {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Floating glass navigation matched to the Tainos site header. */
.utility { display: none !important; }
.site-header { position: sticky; top: 15px; z-index: 100; margin: 15px 0 -91px; padding: 0; background: transparent; border: 0; box-shadow: none; }
.header-inner { width: min(1280px, calc(100% - 48px)); height: 76px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: linear-gradient(108deg, rgba(29,32,18,.52) 0%, rgba(78,87,92,.54) 55%, rgba(128,134,141,.72) 100%); box-shadow: 0 10px 28px rgba(12,20,22,.16); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; min-width: 0; color: #fff; }
.brand img { display: block; width: 124px; height: auto; max-height: 42px; object-fit: contain; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 34px; height: auto; margin-left: auto; }
.main-nav .nav-root { color: #fff; font: 600 16px/1 Arial, sans-serif; text-shadow: 0 1px 3px rgba(0,0,0,.18); transition: opacity .2s ease; }
.main-nav .nav-root:hover, .main-nav .nav-root:focus-visible { color: #fff; opacity: .78; }
.hamburger { width: 40px; padding: 5px; border: 0; background: transparent; }
.hamburger span { height: 2px; background: #fff; margin: 6px 0; }
.mobile-nav { position: relative; z-index: 99; width: min(1280px, calc(100% - 48px)); margin: 6px auto 0; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(54,65,69,.94); color: #fff; box-shadow: 0 12px 28px rgba(12,20,22,.22); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mobile-nav nav { padding: 10px 18px; }
.mobile-nav a { color: #fff; border-color: rgba(255,255,255,.15); padding: 13px 8px; }
.mobile-nav a:last-child { border-bottom: 0; }
@media (max-width: 930px) { .site-header { top: 12px; margin: 12px 0 -84px; } .header-inner { width: calc(100% - 32px); height: 70px; padding: 0 20px; border-radius: 16px; } .main-nav { display: none; } .hamburger { display: block; } .brand img { width: 112px; } .mobile-nav { width: calc(100% - 32px); } }
@media (max-width: 420px) { .header-inner { height: 64px; padding: 0 15px; } .brand img { width: 105px; } }

@media (max-width: 1200px) and (min-width: 931px) { .header-inner { padding-inline: 22px; gap: 14px; } .main-nav { gap: 13px; } .main-nav .nav-root { font-size: 13px; } .header-actions { gap: 9px; } .brand img { width: 112px; } }
@media (max-width: 1050px) and (min-width: 931px) { .main-nav { gap: 9px; } .main-nav .nav-root { font-size: 12px; } .nav-caret { padding: 4px 2px; } .header-actions { gap: 5px; } .search-trigger { padding: 5px; } }
.header-actions { display: flex; align-items: center; gap: 13px; color: #fff; }
.header-actions .search-trigger { color: #fff; background: transparent; border: 0; padding: 6px; }
.header-actions .lang-control { display: flex; align-items: center; gap: 5px; color: rgba(255,255,255,.75); font-size: 11px; }
.header-actions .lang-btn { padding: 3px; color: rgba(255,255,255,.8); background: transparent; border: 0; font-size: 11px; }
.header-actions .lang-btn.selected { color: #fff; text-decoration-color: rgba(255,255,255,.8); }
.mobile-nav details { padding: 11px 8px; border-bottom: 1px solid rgba(255,255,255,.15); }
.mobile-nav summary { cursor: pointer; font-weight: 600; list-style-position: inside; }
.mobile-nav details a { display: block; margin-left: 18px; padding: 8px; border: 0; color: rgba(255,255,255,.88); font-size: 13px; }
.mobile-nav a { display: block; }
.mobile-languages { display: flex; align-items: center; gap: 8px; padding: 12px 8px 3px; color: rgba(255,255,255,.8); }
.mobile-languages .lang-btn { padding: 4px; border: 0; background: transparent; color: #fff; }
@media (max-width: 930px) { .header-actions .search-trigger, .header-actions .lang-control { display: none; } .header-inner { gap: 12px; } }

.main-nav { gap: 34px; }
.main-nav .nav-item { gap: 0; }
.main-nav .nav-root { color: #fff; font: 600 16px/1 Arial, sans-serif; }
.main-nav .nav-dropdown { top: 100%; min-width: 220px; padding: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(38,47,51,.72); color: #fff; box-shadow: 0 14px 28px rgba(0,0,0,.2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.main-nav .nav-dropdown::before { content: ""; position: absolute; top: -16px; left: 12px; right: auto; width: 90px; height: 18px; pointer-events: auto; }
.main-nav .nav-item.open > .nav-dropdown { display: grid; }
.main-nav .nav-dropdown a { color: #fff; padding: 10px 11px; border-radius: 5px; font: 500 13px/1.35 Arial,sans-serif; }
.main-nav .nav-dropdown a:hover, .main-nav .nav-dropdown a:focus-visible { background: rgba(255,255,255,.12); color: #fff; }
.footer-tools { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 20px 22px; color: rgba(255,255,255,.8); }
.footer-search { border: 0; border-bottom: 1px solid rgba(255,255,255,.45); padding: 4px 0; background: transparent; color: #fff; font-size: 12px; }
.footer-languages { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.footer-languages .lang-btn { border: 0; padding: 4px; background: transparent; color: #fff; font-size: 11px; }
.mobile-search { padding: 10px 8px; color: #fff; background: transparent; border: 0; text-align: left; border-bottom: 1px solid rgba(255,255,255,.15); }
@media (max-width: 1200px) and (min-width: 931px) { .main-nav { gap: 26px; } .main-nav .nav-root { font-size: 15px; } }
@media (max-width: 1050px) and (min-width: 931px) { .main-nav { gap: 20px; } .main-nav .nav-root { font-size: 14px; } }

#search-panel { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-start; justify-content: center; padding: 110px 24px 24px; background: transparent; box-shadow: none; pointer-events: none; }
#search-panel[hidden] { display: none; }
#search-panel .search-shell { width: min(680px, calc(100vw - 32px)); max-width: 680px; margin: 0; padding: 0; pointer-events: auto; }
#search-panel .search-field { display: flex; align-items: center; gap: 8px; height: 56px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.27); border-radius: 16px; background: linear-gradient(108deg,rgba(29,32,18,.76) 0%,rgba(69,80,88,.84) 60%,rgba(111,119,126,.88) 100%); box-shadow: 0 10px 28px rgba(12,20,22,.2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
#search-panel .search-field input { flex: 1; min-width: 0; height: 38px; margin: 0; padding: 0 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.96); color: #172221; font: 400 14px/1 Arial,sans-serif; }
#search-panel .search-field input::placeholder { color: #485450; opacity: 1; }
#search-panel .search-field #search-submit { display: inline-flex; align-items: center; justify-content: center; height: 38px; min-height: 38px; padding: 0 15px; border: 0; border-radius: 9px; background: #193f37; color: #fff; font: 600 13px/1 Arial,sans-serif; white-space: nowrap; box-shadow: none; }
#search-panel .search-field #search-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(255,255,255,.12); color: #fff; font: 400 23px/1 Arial,sans-serif; }
@media (max-width: 930px) { #search-panel { padding: 96px 16px 16px; } .admin-bar #search-panel { padding-top: 132px; } }
.admin-bar #search-panel { padding-top: 142px; }
.tainos-site a,
.tainos-site a:hover,
.tainos-site a:focus,
.tainos-site a:focus-visible { text-decoration: none !important; }
.tainos-site a { transition: color .2s ease; }
.tainos-site a:not(.btn):not(.nav-root):not(.brand):hover { color: var(--copper); }
.site-language-picker { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.site-language-picker a { color: inherit; }
.tainos-site a.btn-text { border-bottom: 0 !important; }

/* Keep contained page content 20px below the floating navigation on every screen size. */
#page-heritage .heritage-cover-grid,
#page-puerto-rico .split-grid,
#page-food .food-cover-grid,
#page-community .community-cover-grid,
#page-journal .journal-top,
#page-article .article-head,
#page-services .resource-cover-content,
#page-guide .guide-cover,
#page-design .design-top { padding-top: 110px; }
#page-search .search-results.section-pad { padding-top: 110px; }
#page-guide .guide-cover { padding-top: 65px; }
#page-puerto-rico .split-grid,
#page-food .food-cover-grid { padding-top: 110px; }
@media (min-width: 931px) {
  #page-puerto-rico .split-copy,
  #page-food .food-cover-copy { padding-top: 20px; justify-content: flex-start; }
}
#page-heritage .heritage-cover-grid,
#page-community .community-cover-grid { align-items: start; }
#page-community .community-cover-grid > div:first-child { padding-top: 0; }

/* Contact page: balance the floating navigation with a compact, responsive page frame. */
#page-contact { min-height: 0 !important; }
#page-contact .contact-grid { padding-top: 110px !important; padding-bottom: 72px !important; }
@media (max-width: 930px) {
  #page-contact .contact-grid { padding-top: 104px !important; padding-bottom: 52px !important; }
}
@media (max-width: 420px) {
  #page-contact .contact-grid { padding-top: 104px !important; padding-bottom: 44px !important; }
}

/* Keep resource filters inside the narrow mobile content column. */
@media (max-width: 650px) {
  #page-services .resource-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
  }

  #page-services .resource-sidebar .eyebrow {
    grid-column: 1 / -1;
    width: auto;
  }

  #page-services .resource-filter {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
    text-align: center;
  }
}

/* Keep photographic headers vivid while retaining enough shade for white copy. */
.home-hero .hero-coast,
.home-hero .hero-forest,
.home-hero .hero-stone {
  filter: saturate(.96) brightness(.9);
}

.home-hero .hero-vignette {
  background: linear-gradient(90deg, rgba(9, 31, 30, .42), rgba(9, 31, 30, .18) 58%, rgba(0, 0, 0, .02));
}

.destinations-cover > .media {
  filter: none !important;
}

.destinations-cover .destinations-cover-shade {
  background: linear-gradient(90deg, rgba(9, 41, 37, .24), rgba(9, 41, 37, .08) 38%, transparent 72%) !important;
}

.about-cover {
  background-image: linear-gradient(90deg, rgba(17, 51, 43, .30), rgba(17, 51, 43, .06)), url("/wp-content/themes/tainos-site/assets/images/old-san-juan.webp");
}

/* Keep non-hero photography natural; limit dark gradients to the text area. */
.tainos-view .media {
  filter: none !important;
}

.destinations-cover .destinations-cover-shade {
  background: linear-gradient(90deg, rgba(9, 41, 37, .24), rgba(9, 41, 37, .08) 38%, transparent 72%) !important;
}

.place-overlay {
  background: linear-gradient(0deg, rgba(11, 41, 39, .68), rgba(11, 41, 39, .14) 40%, transparent 72%) !important;
}

/* Keep the submenu connected to its trigger so it closes exactly when the pointer leaves the menu group. */
.main-nav .nav-dropdown::before {
  top: -16px;
  left: 12px;
  right: auto;
  width: 90px;
  height: 18px;
}

/* Keep contained mobile page titles clear of the floating glass navigation. */
@media (max-width: 930px) {
  #page-heritage .heritage-cover-grid,
  #page-journal .journal-top,
  #page-article .article-head,
  #page-services .resource-cover-content,
  #page-community .community-cover-grid,
  #page-design .design-top,
  #page-search .search-results.section-pad { padding-top: 110px !important; }
  #page-puerto-rico .split-grid,
  #page-food .food-cover-grid { padding-top: 55px !important; }
  #page-guide .guide-cover { padding-top: 64px !important; }
}
@media (max-width: 420px) {
  #page-heritage .heritage-cover-grid,
  #page-journal .journal-top,
  #page-article .article-head,
  #page-services .resource-cover-content,
  #page-community .community-cover-grid,
  #page-design .design-top,
  #page-search .search-results.section-pad { padding-top: 104px !important; }
  #page-puerto-rico .split-grid,
  #page-food .food-cover-grid { padding-top: 50px !important; }
  #page-guide .guide-cover { padding-top: 58px !important; }
  #page-destinations .dest-cover-text h1 {
    font-size: clamp(42px, 13vw, 48px) !important;
    line-height: 1.04 !important;
    max-width: 100% !important;
  }
}


/* Shared horizontal tabs: use tab semantics for accessible panels across the Tainos theme. */
.tainos-view [role="tablist"] {
  display: flex !important;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px 14px;
  width: 100%;
  margin: 25px 0 0;
  padding: 0 8px;
  border: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-padding-inline: 12px;
  -webkit-overflow-scrolling: touch;
}
.tainos-view [role="tablist"] > [role="tab"] {
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  flex: 0 0 auto !important;
  position: relative;
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  margin: 0;
  padding: 13px 14px 12px;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font: 600 14px/1.25 Arial, 'Helvetica Neue', sans-serif !important;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tainos-view [role="tablist"] > [role="tab"] svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tainos-view [role="tablist"] > [role="tab"]:hover,
.tainos-view [role="tablist"] > [role="tab"]:focus-visible {
  color: var(--copper) !important;
  background: rgba(182, 124, 75, .07) !important;
}
.tainos-view [role="tablist"] > [role="tab"]:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
.tainos-view [role="tablist"] > [role="tab"][aria-selected="true"] {
  color: var(--forest) !important;
  border-bottom-color: var(--copper) !important;
  font-weight: 700 !important;
}
.tainos-view [role="tabpanel"] {
  width: 100%;
  scroll-margin-top: 110px;
}
.tainos-view .history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.tainos-view .history-content {
  min-width: 0;
  padding: 25px 18px 10px;
}
@media (max-width: 650px) {
  .tainos-view [role="tablist"] {
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 20px;
    padding-inline: 2px;
  }
  .tainos-view [role="tablist"] > [role="tab"] {
    min-height: 52px;
    gap: 7px;
    padding: 12px 11px 10px;
    font-size: 13px !important;
  }
  .tainos-view [role="tablist"] > [role="tab"] svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .tainos-view .history-content {
    padding: 19px 2px 8px;
  }
}
