/*
Theme Name: Rocklands Bird Sanctuary
Theme URI: https://rocklandsbirdsanctuary.com
Author: One Great Studio
Description: A block theme for Rocklands Bird Sanctuary — a small, peaceful and intimate encounter with nature and Jamaica's wild birds. Earth-toned, image-led, built for WordPress full site editing.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rocklands
Tags: full-site-editing, block-patterns, one-column, custom-colors, custom-logo, editor-style, wide-blocks
*/

/* Block theme styling lives in theme.json. Only what theme.json cannot express belongs here. */

:root { --rk-ink: #1E1C16; }

body { -webkit-font-smoothing: antialiased; text-wrap: pretty; }

/* Sticky site header */
.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 242, 232, 0.94);
//  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36, 55, 19, 0.12);
}

.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }

/* Navigation */
.wp-block-navigation { --navigation-layout-align: center; }
.wp-block-navigation .wp-block-navigation-item__content { padding: 10px 4px }
.wp-block-navigation .wp-block-navigation__submenu-container {
  background: #FFFDF8;
  border: 1px solid rgba(36, 55, 19, 0.12);
  border-radius: 14px;
  padding: 10px;
  min-width: 240px;
  box-shadow: 0 18px 40px -18px rgba(36, 55, 19, 0.35);
}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 9px; }
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: #EFEADB; }

/* Section rhythm */
.rk-section { padding-block-start: clamp(3.5rem, 7vw, 6rem); }
.rk-hero { min-height: min(78vh, 640px); }
.rk-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rk-fill, .rk-fill img { block-size: 100%; }

/* Editorial rows: label column + body column */
.rk-rows > .wp-block-columns { border-bottom: 1px solid rgba(36, 55, 19, 0.16); }
.rk-rows > .wp-block-columns:first-child { border-top: 1px solid rgba(36, 55, 19, 0.16); }

/* Details / FAQ */
.wp-block-details {
  border-bottom: 1px solid rgba(36, 55, 19, 0.16);
  padding-block: 1.5rem;
}
.rk-faq > .wp-block-details:first-child { border-top: 1px solid rgba(36, 55, 19, 0.16); }
.wp-block-details summary {
  cursor: pointer;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
  content: "+";
  color: #243713;
  font-size: 1.25rem;
  line-height: 1;
}
.wp-block-details[open] summary::after { content: "\2013"; }
.wp-block-details > :not(summary) { margin-block-start: 1rem; padding-inline-end: clamp(0px, 6vw, 60px); }

/* Sketch on warm paper */
.rk-sketch img { mix-blend-mode: multiply; object-position: 62% 38%; }

/* Overlay text on media */
/* .rk-overlay { position: relative; isolation: isolate; }
.rk-overlay > .wp-block-cover__background { z-index: 1; } */

/* Forms */
.wp-block-search__input,
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 16px 18px;
  border: 1px solid rgba(36, 55, 19, 0.22);
  border-radius: 12px;
  background: #F6F2E8;
  color: var(--rk-ink);
  width: 100%;
}

/* Footer logo sits on the dark ground */
.rk-footer-mark .wp-block-site-logo img { filter: invert(1) brightness(1.6); }

.review-links a {
  display:flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.wp-block-navigation__responsive-container-close, .wp-block-navigation__responsive-container-open {
    background: var(--wp--preset--color--forest);
    padding: 10px;
    border-radius: 100px;
}
.wp-block-navigation__responsive-container-close svg, .wp-block-navigation__responsive-container-open svg {
  color: var(--wp--preset--color--cream) !important;
}
.has-modal-open .wp-block-navigation__container {
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-family: var(--wp--preset--font-family--display) !important;
}
.has-modal-open .wp-block-navigation__container .wp-block-navigation__submenu-container {
  border: 1px solid rgba(36, 55, 19, 0.22) !important;
  box-shadow: none !important;
  font-size: var(--wp--preset--font-size--large) !important;
  padding: 0 !important;
}
@media (max-width: 781px) {
  .rk-hero { min-height: 70vh; }
  .rk-rows .wp-block-column { flex-basis: 100% !important; }
}

@media print {
  .wp-site-blocks > header.wp-block-template-part { position: static; }
}
@media (max-width: 500px) {
  .nav-btns-wrap {
    /* order: -2;
    flex: 0 0 100%;
    justify-content: space-between;
    border: 1px solid rgba(36, 55, 19, 0.18);
    border-radius: 0 0 20px 20px;
    background-color: var(--wp--preset--color--stone) !important;
    padding: 0 2px 2px 12px;
    border-top: none; */
    bottom: 8px;
    right: 8px;
    position: fixed;
  }
  .nav-btns-wrap .wp-block-group {
    display: none !important;
    visibility: hidden !important;
  }
  /* .nav-btns-wrap .wp-block-button__link {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-left-radius: 18px !important;
    border-bottom-right-radius: 18px !important;
  } */
    .nav-btns-wrap .wp-block-button__link {
    padding: 6px 16px !important;
    border: 1px solid rgba(255,253,248,0.24)!important;
  }
  .nav-btns-wrap img {
    float: left;
    margin-top: 8px;
  }
  header.wp-block-template-part > div {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
  }
  header.wp-block-template-part > div > div {
    gap: 0;
  }
  header .wp-block-site-logo img {
    width: 150px !important;
  }
}
