/* =====================================================
   Hannah's Happiness Project – Main Stylesheet
   Faithful replication of hannahshappinessproject.com
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.66;
}

h1, h2, h3, h4 {
  clear: both;
  line-height: 1.4;
  margin: 0 0 0.75em;
  padding: 0;
}

h1 { font-size: 1.5rem; font-weight: 300; }
h2 { font-size: 1.5rem; font-weight: 300; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1.5em; padding: 0; }

a {
  color: #222;
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul {
  margin: 0 0 1.5em;
  padding: 0 0 0 2em;
  list-style: disc;
}

img, video {
  height: auto;
  max-width: 100%;
}

button { cursor: pointer; }

.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ---- Layout Wrap ---- */
.wrap {
  margin-left: auto;
  margin-right: auto;
  max-width: 700px;
  padding-left: 2em;
  padding-right: 2em;
}
.wrap::after { clear: both; content: ""; display: block; }

/* ---- Site Page Container ---- */
#page { position: relative; word-wrap: break-word; }

/* =====================================================
   FLOATING SOCIAL SIDEBAR
   ===================================================== */
#icon_wrapper {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 99999;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.fuse_social_link {
  display: block;
  width: 48px;
  height: 48px;
  line-height: 48px;
  text-align: center;
  outline: none;
}

.social-icon {
  color: #fff !important;
  font-size: 22px;
  line-height: 48px;
  display: block;
  text-shadow: 2px 2px 4px #000;
  width: 48px;
  height: 48px;
  text-align: center;
}

.facebook-icon { background: #3b5998; }
.instagram-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.envelope-icon { background: #ccc; }

/* =====================================================
   HEADER + HERO
   ===================================================== */
.site-header {
  background-color: #fafafa;
  position: relative;
}

.custom-header {
  position: relative;
  display: table;
  height: 75vh;
  width: 100%;
  min-height: 300px;
}

.custom-header-media {
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
}

.custom-header-media::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 75%, rgba(0,0,0,0.3) 100%);
  bottom: 0;
  content: "";
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 2;
}

.header-bg-image {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.site-branding {
  display: table-cell;
  height: 100%;
  vertical-align: bottom;
  padding-bottom: 70px;
  position: relative;
  z-index: 3;
}

.site-branding .wrap { position: relative; }

.custom-logo-link {
  display: inline-block;
  padding-right: 1em;
  vertical-align: middle;
}

.custom-logo-link img {
  display: inline-block;
  max-height: 200px;
  max-width: 350px;
  width: auto;
}

.site-branding-text { display: none; } /* Hidden — logo only shown */

.site-title,
.site-description {
  position: absolute;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
}

/* ---- Navigation ---- */
.navigation-top {
  background: #fff;
  border-bottom: 1px solid #eee;
  border-top: 1px solid #eee;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  width: 100%; z-index: 3;
}

/* Inner flex row: logo (hidden by default) | menu | hamburger */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2em;
  height: 56px;
}

/* Logo inside nav — only shown when sticky */
.nav-logo {
  display: none;
  flex-shrink: 0;
  margin-right: 1.5em;
}
.nav-logo img { height: 36px; width: auto; display: block; filter: invert(1); }
.navigation-top.is-sticky .nav-logo { display: flex; align-items: center; }

/* Main nav */
.main-navigation {
  flex: 1;
  display: flex;
  align-items: center;
}

.main-navigation .menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
}

.main-navigation .menu > li {
  position: relative;
  display: flex;
  align-items: center;
}

.main-navigation .menu > li > a {
  color: #222;
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 1em 0.9em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.main-navigation .menu > li > a:hover { color: var(--accent); text-decoration: none; }
.main-navigation .menu > li.current-menu-item > a { color: var(--accent); }

/* Sub-menu toggle arrow button (desktop hidden, mobile visible) */
.sub-toggle {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 0.6rem;
  padding: 0 0.5em 0 0;
  line-height: 1;
  transition: transform 0.2s;
  display: none; /* hidden on desktop — desktop uses hover */
}
.sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }

/* Desktop dropdown */
.main-navigation .sub-menu {
  background: #fff;
  border-top: 2px solid var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  list-style: none;
  margin: 0; padding: 0.4em 0;
  min-width: 220px;
  position: absolute;
  top: 100%; left: 0;
  z-index: 200;
  display: none;
  animation: dropIn 0.18s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main-navigation .sub-menu li { display: block; }
.main-navigation .sub-menu a {
  color: #333;
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.6em 1.2em;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s, color 0.15s;
}
.main-navigation .sub-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
  text-decoration: none;
}

/* Desktop: show sub-menu on hover/focus */
@media (min-width: 769px) {
  .main-navigation .menu > li.has-children:hover .sub-menu,
  .main-navigation .menu > li.has-children:focus-within .sub-menu {
    display: block;
  }
}

/* Hamburger button */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animated X state */
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-toggle-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #333;
  display: block;
  margin-top: 2px;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */
.site-content-contain { background: #fff; position: relative; z-index: 1; }
#content { }
#primary { }
#main { }

article.page { }

.panel-content {
  padding-top: 0;
}

.entry-header {
  padding: 3em 0 1em;
}

.entry-title {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
}

.entry-content { padding-bottom: 2em; }

.wp-block-image { margin: 1.5em 0; }
.wp-block-image img {
  box-sizing: border-box;
  height: auto;
  max-width: 100%;
  vertical-align: bottom;
}

.wp-block-image.is-style-rounded img {
  border-radius: 9999px;
}

.wp-block-image.size-large img {
  border-radius: 12px;
  width: 100%;
}

.wp-block-heading { margin-top: 2em; }

.wp-block-list {
  padding-left: 2em;
  margin-bottom: 1.5em;
}

.wp-block-list li { margin-bottom: 0.5em; }

/* YouTube embed */
.wp-block-embed.wp-has-aspect-ratio { margin: 2em 0; }

.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   FOOTER CONTENT BLOCK (Search + Social inside content)
   ===================================================== */
.footer-content-block {
  background: rgba(0,0,0,0.03);
  margin-top: 3em;
  padding: 1.5em 1em;
  margin-left: -2em;
  margin-right: -2em;
}

.footer-content-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  gap: 2em;
  flex-wrap: wrap;
}

.footer-label {
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 0.75em;
}

.footer-search-col { flex: 1; min-width: 200px; }
.footer-social-col { min-width: 120px; }

.search-form { }
.search-inner {
  display: flex;
  border: 1px solid #ccc;
  overflow: hidden;
}

.search-input {
  border: none;
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  padding: 0.4em 0.75em;
  width: 100%;
}

.search-btn {
  background: #fff;
  border: none;
  border-left: 1px solid #ccc;
  cursor: pointer;
  padding: 0.4em 0.75em;
  display: flex;
  align-items: center;
}

.search-btn svg { fill: #333; display: block; }

.footer-social-links p { margin: 0 0 0.4em; font-size: 0.9rem; }
.footer-social-links a { box-shadow: inset 0 -1px 0 rgba(15,15,15,1); }

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
}

.site-title-footer {
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
  clear: none;
}

.site-title-footer a { box-shadow: inset 0 -1px 0 rgba(15,15,15,1); }

.footer-powered { font-size: 0.875rem; margin: 0; }
.footer-powered a { box-shadow: inset 0 -1px 0 rgba(15,15,15,1); }

/* =====================================================
   SITE FOOTER
   ===================================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid #eee;
  margin-top: 2em;
}

.site-footer .wrap { max-width: 1000px; }

.widget-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1em;
}

/* =====================================================
   INSTAGRAM GRID
   ===================================================== */
.instagram-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.instagram-grid-item {
  width: 150px;
  height: 150px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}

.instagram-grid-item a {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: opacity 0.2s;
}

.instagram-grid-item a:hover { opacity: 0.85; }

.insta-type-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  color: #fff;
  font-size: 14px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  pointer-events: none;
}

.site-info {
  border-top: 1px solid #eee;
  font-size: 0.875rem;
  padding: 1em 0;
  text-align: center;
}

.site-info a { box-shadow: inset 0 -1px 0 rgba(15,15,15,1); }

/* =====================================================
   LIGHTBOX
   ===================================================== */
.lightbox-overlay {
  box-sizing: border-box;
  cursor: zoom-out;
  height: 100vh;
  left: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  visibility: hidden;
  width: 100%;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.25s, visibility 0.25s;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  visibility: visible;
  opacity: 1;
}

.lightbox-content {
  display: flex;
  background: #fff;
  border-radius: 4px;
  max-height: 80vh;
  width: 90vw;
  max-width: 1000px;
  position: relative;
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  padding: 0;
}

.lightbox-close:hover { color: #000; }

.lightbox-image-container {
  flex-grow: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 70%;
  overflow: hidden;
}

.lightbox-img {
  max-height: 80vh;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-details {
  width: 30%;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid #efefef;
}

.lightbox-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #efefef;
}

.lightbox-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.lightbox-username-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.lightbox-username {
  color: #262626;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.lightbox-follow {
  color: #0095f6;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.lightbox-caption {
  color: #262626;
  font-size: 14px;
  line-height: 1.5;
  padding: 16px;
  overflow-y: auto;
  max-height: 300px;
  border-bottom: 1px solid #efefef;
  flex-grow: 1;
}

.lightbox-date {
  font-size: 11px;
  padding: 16px;
  color: #8e8e8e;
}

.lightbox-view-post {
  padding: 16px;
  border-top: 1px solid #efefef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  gap: 8px;
}

.lightbox-view-post a {
  color: #262626;
  font-size: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lightbox-delimiter { color: #aaa; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  color: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.lightbox-nav.prev { left: 12px; }
.lightbox-nav.next { right: 12px; }
.lightbox-nav:hover { background: #fff; }

/* =====================================================
   CALENDLY WIDGET
   ===================================================== */
.calendly-inline-widget {
  min-width: 320px;
  height: 700px;
  margin: 2em 0;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media screen and (min-width: 30em) {
  body, button { font-size: 1.125rem; }
  h1 { font-size: 1.875rem; }
  .site-branding { padding-bottom: 3em; }
}

@media screen and (min-width: 48em) {
  body, button { font-size: 1rem; line-height: 1.5; }
  .wrap { max-width: 1000px; padding-left: 3em; padding-right: 3em; }

  .custom-logo-link img {
    max-width: 350px;
  }

  .navigation-top {
    font-size: 0.875rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .navigation-top .wrap {
    max-width: 1000px;
    padding: 0.75em 3.4166666666667em;
  }

  .main-navigation ul { flex-wrap: nowrap; }

  .menu-toggle { display: none; }

  .menu-scroll-down { display: block; }
}

@media screen and (min-width: 67em) {
  .navigation-top .wrap { padding: 0.75em 2em; }
}

@media screen and (max-width: 768px) {
  /* Show hamburger */
  .menu-toggle { display: flex; }

  /* Show sub-toggle arrows on mobile */
  .sub-toggle { display: flex; align-items: center; justify-content: center; }

  /* Nav becomes fixed at top on mobile */
  .navigation-top {
    position: fixed;
    top: 0; bottom: auto;
    border-top: none;
    border-bottom: 1px solid #eee;
    z-index: 9000;
  }

  /* Push the header itself down to clear the fixed nav bar.
     body padding-top alone is insufficient because the hero lives
     inside site-header which starts at the top of the page. */
  body { padding-top: 0; }
  #page { padding-top: 56px; }

  /* Hero: sits directly inside site-header, needs no extra offset */
  .custom-header {
    height: 70vw;
    min-height: 260px;
    max-height: 420px;
    display: block;
    position: relative;
    overflow: hidden;
  }

  .custom-header-media { position: absolute; inset: 0; height: 100%; }
  .header-bg-image { position: absolute; height: 100%; width: 100%; object-fit: cover; object-position: center 20%; }

  .site-branding {
    display: table;
    width: 100%;
    height: 100%;
    vertical-align: bottom;
    padding-bottom: 0;
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .site-branding .wrap {
    display: table-cell;
    vertical-align: bottom;
    padding-bottom: 1.5em;
  }

  .custom-logo-link img { max-height: 120px; max-width: 240px; }

  /* Slide-down mobile drawer */
  .main-navigation {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    padding: 1em 0 2em;
    border-top: 1px solid #eee;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    z-index: 8999;
    flex-direction: column;
    animation: drawerIn 0.25s ease;
  }

  @keyframes drawerIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .main-navigation.open {
    display: flex;
  }

  .main-navigation .menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .main-navigation .menu > li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
  }

  .main-navigation .menu > li > a {
    flex: 1;
    font-size: 1rem;
    padding: 1em 1.5em;
    color: #222;
  }

  .sub-toggle {
    display: flex;
    padding: 1em 1.5em;
    font-size: 0.75rem;
    color: #888;
    border-left: 1px solid #f0f0f0;
  }

  /* Mobile sub-menu: collapsed by default */
  .main-navigation .sub-menu {
    display: none;
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--accent);
    background: #faf8f6;
    padding: 0;
    width: 100%;
    animation: none;
  }

  .main-navigation .sub-menu.open {
    display: block;
  }

  .main-navigation .sub-menu a {
    padding: 0.75em 2em;
    font-size: 0.9rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Scroll-cue hidden on mobile */
  .scroll-cue { display: none; }

  /* Sticky overrides not needed on mobile (it's always fixed) */
  .navigation-top.is-sticky { animation: none; }
  /* Do NOT add body/page padding here — already handled above */
}

@media screen and (max-width: 600px) {
  .instagram-grid-item { width: calc(50% - 3px); }
  .footer-content-block { margin-left: 0; margin-right: 0; }
}

/* =====================================================
   MODERNISATION LAYER
   ===================================================== */
:root {
  --nav-bg: rgba(255,255,255,0.93);
  --t: 0.25s ease;
}
.entry-title { font-size: 1.6rem; line-height: 1.35; letter-spacing: -0.01em; }
.entry-content p { line-height: 1.75; }
h2.wp-block-heading { padding-bottom: 0.4em; border-bottom: 1px solid #e8e0d8; margin-bottom: 1em; }
h3.wp-block-heading { color: var(--accent); letter-spacing: 0.06em; }
a { transition: color var(--t), opacity var(--t); }

/* Sticky nav */
.navigation-top.is-sticky {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: auto; width: 100%; z-index: 9000;
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
  border-top: none;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@media (min-width: 769px) { body.nav-is-sticky #page { padding-top: 56px; } }

/* Nav hover underline */
.main-navigation > div > ul > li > a { position: relative; }
.main-navigation > div > ul > li > a::after {
  content: ''; position: absolute; bottom: 6px; left: 1.25em; right: 1.25em;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: center; transition: transform 0.22s ease;
}
.main-navigation > div > ul > li > a:hover::after,
.main-navigation > div > ul > li.current-menu-item > a::after { transform: scaleX(1); }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 68px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; text-decoration: none;
}
.scroll-cue-arrow {
  display: block; width: 18px; height: 18px;
  border-right: 2px solid rgba(255,255,255,0.85);
  border-bottom: 2px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.8; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* Scroll fade-up */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* Image hover */
.wp-block-image.size-large { transition: transform var(--t), box-shadow var(--t); }
.wp-block-image.size-large:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }

/* Instagram hover overlay */
.instagram-grid-item a::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(176,141,114,0.32); opacity: 0; transition: opacity 0.22s ease;
}
.instagram-grid-item a:hover { opacity: 1; }
.instagram-grid-item a:hover::after { opacity: 1; }

/* Scroll-to-top button */
#scroll-top {
  position: fixed; bottom: 28px; right: 20px; width: 40px; height: 40px;
  background: var(--accent); color: #fff; border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; z-index: 9999; opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 14px rgba(176,141,114,0.4);
}
#scroll-top.visible { opacity: 1; transform: translateY(0); }
#scroll-top:hover { background: var(--accent-dark); }

/* Footer accents */
.footer-social-links a {
  box-shadow: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px;
  color: #333; transition: color var(--t);
}
.footer-social-links a:hover { color: var(--accent); text-decoration: none; }
.widget-title { color: var(--accent); letter-spacing: 0.1em; }
.site-footer { border-top: 3px solid var(--accent); }

/* Mobile: lightbox + instagram fixes (moved from old block) */
@media screen and (max-width: 768px) {
  .lightbox-content { flex-direction: column; max-height: 90vh; overflow-y: auto; }
  .lightbox-image-container { max-width: 100%; }
  .lightbox-details { width: 100%; border-left: none; border-top: 1px solid #efefef; }
  .instagram-grid { gap: 6px; }
  .instagram-grid-item { width: calc(33.333% - 4px); height: 110px; }
  .footer-top-row { flex-direction: column; }
  #scroll-top { bottom: 16px; right: 14px; width: 36px; height: 36px; font-size: 1rem; }
}
@media screen and (max-width: 480px) {
  .instagram-grid-item { width: calc(50% - 3px); }
  .footer-content-block { margin-left: 0; margin-right: 0; }
  .nav-inner { padding: 0 1em; }
}

/* =====================================================
   INNER PAGES
   ===================================================== */

/* Shorter hero for inner pages */
.page-header .page-hero {
  position: relative;
  height: 40vh;
  min-height: 220px;
  max-height: 360px;
  overflow: hidden;
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.page-hero-media .header-bg-image {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.page-hero-branding {
  position: absolute;
  bottom: 1.5em;
  left: 0; right: 0;
  z-index: 2;
  padding: 0 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.page-hero-branding .custom-logo {
  max-height: 110px;
  width: auto;
}

/* Inner page content */
.inner-page-content {
  padding: 2em 0 3em;
  max-width: 740px;
}

.inner-page-content .entry-title,
.inner-page-content h1.entry-title {
  font-size: 2rem;
  font-weight: 300;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.5em;
  margin-bottom: 1em;
}

.inner-page-content h2.wp-block-heading {
  margin-top: 2em;
}

/* Blog index */
.page-blog .entry-content article {
  border-bottom: 1px solid #eee;
  padding: 2em 0;
}

.page-blog .entry-content article:last-child { border-bottom: none; }

.page-blog .entry-content .entry-title {
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  padding: 0;
  margin: 0 0 0.5em;
}

.post-thumbnail img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

/* Sponsors / press grid */
.wp-block-image.alignleft,
.wp-block-image.alignright {
  border-radius: 6px;
  overflow: hidden;
}

/* Contact form */
.contact-form-wrap {
  background: #faf8f6;
  border: 1px solid #e8e0d8;
  border-radius: 8px;
  padding: 2em;
  margin: 2em 0;
}

.simple-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.simple-contact-form input,
.simple-contact-form textarea {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75em 1em;
  width: 100%;
  transition: border-color 0.2s;
}

.simple-contact-form input:focus,
.simple-contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.simple-contact-form button {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85em 2em;
  align-self: flex-start;
  transition: background 0.2s;
}

.simple-contact-form button:hover { background: var(--accent-dark); }

/* Footer on inner pages */
.site-footer .footer-home-link {
  font-weight: 600;
  color: var(--accent);
}

@media screen and (max-width: 768px) {
  /* Inner page hero: same fixed-nav clearance as homepage */
  .page-header .page-hero {
    height: 45vw;
    min-height: 200px;
    max-height: 320px;
  }
  /* #page handles the 56px gap on inner pages too */
  .page-hero-branding .custom-logo { max-height: 80px; }
  .page-hero-branding { bottom: 1em; }
  .inner-page-content { padding: 1.5em 0 2em; }
  .contact-form-wrap { padding: 1.25em; }
}
