/* Theme styles: all components are namespaced to avoid plugin conflicts. */
:root { --toh-red:#EE3D33; --toh-yellow:#FDF100; --toh-cream:#FFF9EE; --toh-ink:#402C23; }
body { margin:0; }
.toh-header { background:#fff; border-bottom:4px solid var(--toh-yellow); box-shadow:0 3px 14px rgba(65,39,26,.06); }
.toh-header-inner { max-width:1180px; margin:0 auto; padding:12px 24px; display:flex; align-items:center; justify-content:space-between; gap:26px; }
.toh-site-logo { display:block; flex:0 0 auto; width:190px; max-width:44vw; }
.toh-site-logo img { display:block; width:100%; height:auto; }
.toh-header .wp-block-navigation { font-weight:700; font-size:15px; }
.toh-header .wp-block-navigation a:hover { color:var(--toh-red); }
.toh-store-nav { background:var(--toh-red); color:#fff!important; border-radius:7px; padding:11px 16px; font-weight:800; display:inline-block; }
.toh-announcement { background:var(--toh-yellow); text-align:center; padding:10px 18px; color:#41211C; font-size:14px; font-weight:800; }
.toh-announcement a { color:#792017; text-decoration:underline; }
.toh-hero { background:var(--toh-cream); overflow:hidden; }
.toh-banner { display:block; width:100%; max-height:350px; object-fit:cover; object-position:center; }
.toh-hero-copy { max-width:1100px; padding:43px 22px 53px; margin:auto; text-align:center; }
.toh-kicker { text-transform:uppercase; letter-spacing:.13em; color:#AE3328; font-weight:850; font-size:13px; margin-bottom:14px; }
.toh-hero-copy h1 { color:#A92F25; font-size:clamp(33px,5.5vw,64px); margin:0 auto 16px; max-width:900px; line-height:1.11; }
.toh-hero-copy p { margin:0 auto 24px; max-width:750px; font-size:clamp(17px,2vw,21px); }
.toh-actions { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px; }
.toh-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 25px; font-family:'Roundest Serial',system-ui,sans-serif; font-weight:700; text-decoration:none; border-radius:9px; min-height:48px; border:2px solid transparent; transition:transform .15s ease,box-shadow .15s ease; }
.toh-btn:hover { transform:translateY(-2px); box-shadow:0 6px 16px rgba(95,44,32,.13); }
.toh-btn-primary { background:var(--toh-red); color:#fff!important; }
.toh-btn-secondary { background:var(--toh-yellow); color:#66281C!important; }
.toh-btn-outline { border-color:var(--toh-red); background:transparent; color:#A52D22!important; }
.toh-section { padding:72px 22px; }
.toh-inner { max-width:1100px; margin:0 auto; }
.toh-section-title { text-align:center; max-width:780px; margin:0 auto 34px; }
.toh-section-title h2 { font-size:clamp(29px,3.8vw,43px); margin:0 0 11px; }
.toh-section-title p { margin:0 auto; }
.toh-packages { background:#fff; }
.toh-grid-two { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:26px; }
.toh-package { border:1px solid #eadfd4; border-radius:14px; overflow:hidden; box-shadow:0 9px 28px rgba(74,45,28,.07); background:#fffdf9; }
.toh-package-top { background:linear-gradient(135deg,#FDF100 0%,#FFED8B 100%); padding:23px 26px 18px; color:#74221b; border-bottom:4px solid var(--toh-red); }
.toh-package-top h3 { color:#A52A24; font-size:clamp(27px,3vw,36px); margin:0; }
.toh-price { font-family:'Roundest Serial',system-ui,sans-serif; color:#AF3025; font-weight:700; font-size:clamp(38px,4.5vw,58px); line-height:1.08; margin:9px 0 4px; }
.toh-package-body { padding:26px 28px 30px; }
.toh-package-body p { margin:0 0 18px; }
.toh-package-body ul { margin:0 0 25px; padding-left:22px; }
.toh-package-body li { margin:5px 0; }
.toh-package-body .toh-btn { width:100%; box-sizing:border-box; }
.toh-pill-note { background:#FFF5C3; border-radius:8px; margin:27px auto 0; padding:14px 18px; text-align:center; max-width:760px; }
.toh-our-story { background:#FFF9EE; }
.toh-story-layout { display:grid; grid-template-columns:1fr 1.1fr; gap:44px; align-items:center; }
.toh-story-art { background:#EE3D33; border-radius:16px; padding:20px; text-align:center; box-sizing:border-box; }
.toh-story-art img { width:100%; height:auto; max-width:460px; display:block; margin:auto; }
.toh-story-copy h2 { font-size:clamp(28px,3.7vw,43px); margin:0 0 18px; }
.toh-story-copy p { margin-bottom:15px; }
.toh-shop { background:#fff; }
.toh-shop-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:19px; }
.toh-shop-card { border:1px solid #eadfd4; border-radius:11px; padding:27px 23px; background:#fffdfa; }
.toh-shop-card h3 { font-size:24px; margin:0 0 13px; }
.toh-shop-card p { margin:0 0 16px; }
.toh-shop-card a { font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.toh-steps { background:#fff7eb; }
.toh-steps-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:26px; }
.toh-step { text-align:center; }
.toh-step-number { display:grid; place-items:center; width:54px; height:54px; margin:0 auto 16px; border-radius:50%; background:var(--toh-red); color:#fff; font-family:'Roundest Serial',sans-serif; font-size:25px; }
.toh-step h3 { margin:0 0 9px; font-size:23px; }
.toh-step p { margin:0; }
.toh-footer { background:#FFF3DE; border-top:5px solid var(--toh-yellow); }
.toh-footer-layout { max-width:1100px; margin:auto; padding:48px 22px 28px; display:grid; grid-template-columns:1.3fr 1fr 1fr; gap:32px; }
.toh-footer img { max-width:175px; height:auto; }
.toh-footer h3 { font-size:20px; margin:0 0 12px; }
.toh-footer a { color:#9d2820; }
.toh-footer p { margin:7px 0; }
.toh-footer-bottom { border-top:1px solid #e7d8c3; text-align:center; padding:15px; font-size:13px; }
.toh-content { padding:52px 22px 85px; }
.toh-content h1 { font-size:clamp(35px,5vw,56px); }
.toh-content .wp-block-post-featured-image img { border-radius:12px; }
.toh-loop-card { padding:25px; border:1px solid #eadfd4; border-radius:12px; }
.toh-loop-card h2 { font-size:25px; }
.toh-missing-photo { background:#FAEDDB; border:2px dashed #D9BFA8; min-height:240px; display:grid; place-items:center; border-radius:12px; text-align:center; padding:20px; }
.toh-footer .wp-block-navigation { gap:10px; }
@media(max-width:850px) {
 .toh-header-inner { flex-direction:column; gap:11px; padding:11px 16px 16px; }
 .toh-site-logo { width:165px; }
 .toh-grid-two,.toh-story-layout { grid-template-columns:1fr; }
 .toh-shop-cards,.toh-steps-grid { grid-template-columns:1fr; }
 .toh-section { padding:55px 18px; }
 .toh-story-art { max-width:480px; width:100%; margin:auto; }
 .toh-footer-layout { grid-template-columns:1fr 1fr; }
}
@media(max-width:540px) {
 .toh-hero-copy { padding:28px 20px 43px; }
 .toh-banner { min-height:110px; object-fit:cover; }
 .toh-actions { flex-direction:column; }
 .toh-actions .toh-btn { width:100%; box-sizing:border-box; }
 .toh-package-body { padding:23px 21px; }
 .toh-footer-layout { grid-template-columns:1fr; text-align:center; }
}
@media(prefers-reduced-motion:reduce){.toh-btn{transition:none}.toh-btn:hover{transform:none}}

/* v1.1: responsive clickable hog package graphics */
.toh-package-graphic-link { display:block; line-height:0; padding:16px 13px 4px; background:#fffdf9; border-radius:14px 14px 0 0; transition:transform .18s ease,filter .18s ease; }
.toh-package-graphic-link:hover { transform:translateY(-3px); filter:brightness(1.045); }
.toh-package-graphic-link:focus-visible { outline:4px solid #EE3D33; outline-offset:-4px; }
.toh-package-graphic { display:block; width:100%; height:auto; aspect-ratio:3/1; object-fit:contain; }
.toh-package-body { padding-top:14px; }
.toh-package-body .toh-btn { margin-top:4px; }
@media (prefers-reduced-motion:reduce) { .toh-package-graphic-link { transition:none; } .toh-package-graphic-link:hover { transform:none; } }


/* v1.2 — polished hero calls to action; only applies to the two hero links. */
.toh-hero .toh-actions { gap: 16px; margin-top: 30px; }
.toh-hero .toh-btn {
  position: relative;
  isolation: isolate;
  min-height: 62px;
  padding: 15px 24px 15px 29px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-size: clamp(15px, 1.45vw, 18px);
  letter-spacing: .005em;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 0 rgba(105, 48, 33, .13), 0 11px 20px rgba(105,48,33,.10);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.toh-hero .toh-btn::after {
  content: "→";
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: 23px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 9px;
  width: 27px;
  transition: transform .2s ease;
}
.toh-hero .toh-btn-primary {
  background: linear-gradient(160deg, #F6554C 0%, #EE3D33 48%, #D93128 100%);
  border-color: #FDF100;
  color: #fff !important;
  box-shadow: 0 4px 0 #E0BC00, 0 11px 20px rgba(134,45,28,.17);
}
.toh-hero .toh-btn-primary::after { color: #FDF100; }
.toh-hero .toh-btn-secondary {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5DA 100%);
  border-color: #EE3D33;
  color: #A92D25 !important;
  box-shadow: 0 4px 0 #E6C7AE, 0 11px 20px rgba(94,59,30,.11);
}
.toh-hero .toh-btn-secondary::after { color: #EE3D33; }
.toh-hero .toh-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(105,48,33,.10), 0 15px 27px rgba(105,48,33,.17);
}
.toh-hero .toh-btn-primary:hover { box-shadow: 0 7px 0 #E0BC00, 0 15px 27px rgba(134,45,28,.22); }
.toh-hero .toh-btn-secondary:hover { box-shadow: 0 7px 0 #E6C7AE, 0 15px 27px rgba(94,59,30,.16); }
.toh-hero .toh-btn:hover::after { transform: translateX(4px); }
.toh-hero .toh-btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(105,48,33,.16); }
.toh-hero .toh-btn:focus-visible { outline: 3px solid #AA2820; outline-offset: 4px; }
@media (max-width: 540px) {
  .toh-hero .toh-actions { gap: 15px; }
  .toh-hero .toh-btn { min-height: 60px; padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .toh-hero .toh-btn, .toh-hero .toh-btn::after { transition: none; }
  .toh-hero .toh-btn:hover, .toh-hero .toh-btn:hover::after { transform: none; }
}

/* v1.3: YouTube identity button and farm tour */
.toh-youtube-btn { background:#fff!important; border-color:#EE3D33; color:#A52E25!important; border-radius:12px; gap:14px; box-shadow:0 4px 14px rgba(90,55,35,.10); }
.toh-youtube-btn:hover,.toh-youtube-btn:focus { background:#FFF8EC!important; color:#A52E25!important; }
.toh-youtube-logo { display:block; width:100px; max-width:26vw; height:auto; flex:0 0 auto; }
.toh-youtube-arrow { font-family:system-ui,sans-serif; font-size:22px; transition:transform .2s ease; }
.toh-youtube-btn:hover .toh-youtube-arrow { transform:translateX(4px); }
.toh-youtube-btn:focus-visible,.toh-tour-link:focus-visible { outline:3px solid #FDF100;outline-offset:4px; }
.toh-tour-promo { background:#FFF4E5; }
.toh-tour-promo-layout { display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center; }
.toh-tour-promo h2 { font-size:clamp(29px,3.7vw,43px);margin:0 0 19px; }
.toh-tour-promo p { margin:0 0 18px; }
.toh-tour-link { margin-top:5px; }
.toh-tour-promo-photo { overflow:hidden;position:relative;border-radius:15px;background:#EE3D33;min-height:250px;box-shadow:0 12px 24px rgba(108,56,27,.13); }
.toh-tour-promo-photo img { display:block;width:100%;height:100%;min-height:250px;object-fit:cover;object-position:center; }
.toh-tour-promo-photo span { position:absolute;bottom:0;left:0;right:0;padding:14px 20px;background:linear-gradient(transparent,rgba(75,29,18,.86));font-family:'Roundest Serial',system-ui,sans-serif;font-size:20px;color:#fff;text-align:center; }
.toh-tour-page { padding-top:60px; }
.toh-tour-page-heading { text-align:center;max-width:860px;margin:0 auto 38px; }
.toh-tour-page-heading h1 { margin-top:0;margin-bottom:12px; }
.toh-tour-page .wp-block-embed { margin-block:28px 40px; }
.toh-tour-page .wp-block-embed iframe { border-radius:12px; }
.toh-tour-page .wp-block-embed__wrapper { max-width:100%; }
/* Gallery blocks on the tour page become scroll-snap carousels with progressive JS controls. */
.toh-tour-page .wp-block-gallery.has-nested-images,.wp-block-gallery.toh-tour-carousel.has-nested-images {
 display:flex!important;flex-wrap:nowrap!important;gap:16px!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
 scroll-behavior:smooth;overscroll-behavior-inline:contain;scrollbar-width:thin;
 padding:7px 4px 16px;align-items:stretch;
}
.toh-tour-page .wp-block-gallery.has-nested-images>.wp-block-image,.wp-block-gallery.toh-tour-carousel.has-nested-images>.wp-block-image {
 flex:0 0 min(78%,690px)!important;width:min(78%,690px)!important;max-width:none!important;min-width:0;scroll-snap-align:center; margin:0!important;display:block;
}
.toh-tour-page .wp-block-gallery.has-nested-images>.wp-block-image img,.wp-block-gallery.toh-tour-carousel.has-nested-images>.wp-block-image img {
 display:block;width:100%;height:auto;max-height:500px;aspect-ratio:16/10;object-fit:cover;border-radius:12px;
}
.toh-gallery-controls { display:flex;justify-content:center;align-items:center;gap:14px;margin:12px 0 40px; }
.toh-gallery-controls button { appearance:none;background:#fff;border:2px solid #EE3D33;border-radius:100%;width:47px;height:47px;font-size:24px;color:#A52D25;cursor:pointer;line-height:1; }
.toh-gallery-controls button:hover:not(:disabled) { background:#FFF4D2; }
.toh-gallery-controls button:focus-visible { outline:3px solid #FDF100;outline-offset:3px; }
.toh-gallery-controls button:disabled { opacity:.4;cursor:not-allowed; }
.toh-gallery-controls .toh-gallery-status { font-size:14px;font-weight:800;min-width:62px;text-align:center;color:#65483A; }
@media(max-width:850px) { .toh-tour-promo-layout { grid-template-columns:1fr; } }
@media(max-width:600px) {
 .toh-tour-page .wp-block-gallery.has-nested-images>.wp-block-image,.wp-block-gallery.toh-tour-carousel.has-nested-images>.wp-block-image { flex-basis:89%!important;width:89%!important; }
 .toh-youtube-btn { flex-wrap:wrap;padding:12px 14px; }
}
@media(prefers-reduced-motion:reduce) { .toh-youtube-arrow{transition:none}.toh-youtube-btn:hover .toh-youtube-arrow{transform:none}.toh-tour-page .wp-block-gallery,.wp-block-gallery.toh-tour-carousel{scroll-behavior:auto!important} }

/* v1.3.2: Makes saved Site Editor homepage links display YouTube branding too.
   Targets ONLY the YouTube link in the Homestead Story section. */
.toh-our-story a.toh-btn[href*="youtube.com/@TheOhseHomestead"] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  min-height:56px;
  padding:12px 20px;
  border:2px solid #EE3D33;
  border-radius:12px;
  background:#FFFFFF !important;
  color:#9C2820 !important;
  text-decoration:none !important;
  font-weight:700;
  box-shadow:0 4px 0 #EAD5C5,0 8px 20px rgba(100,50,30,.10);
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.toh-our-story a.toh-btn[href*="youtube.com/@TheOhseHomestead"]:hover {
  transform:translateY(-2px);
  background:#FFF9EE !important;
  box-shadow:0 6px 0 #EAD5C5,0 12px 22px rgba(100,50,30,.14);
}
.toh-our-story a.toh-btn[href*="youtube.com/@TheOhseHomestead"]:focus-visible {
  outline:3px solid #FDF100;
  outline-offset:4px;
}
/* Old saved Custom HTML still uses the original plain text link. Add logo without editing it. */
.toh-our-story a.toh-btn-secondary[href*="youtube.com/@TheOhseHomestead"]::before {
  content:"";
  display:block;
  flex:0 0 39px;
  width:39px;
  height:28px;
  background: url('../images/youtube-play.svg') center / contain no-repeat;
}
.toh-our-story .toh-youtube-icon {
  display:block;
  width:39px;
  height:28px;
  flex:0 0 39px;
}
@media (max-width:480px) {
  .toh-our-story a.toh-btn[href*="youtube.com/@TheOhseHomestead"] {
    max-width:100%;
    box-sizing:border-box;
    padding:12px 16px;
    font-size:15px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .toh-our-story a.toh-btn[href*="youtube.com/@TheOhseHomestead"] {transition:none;}
  .toh-our-story a.toh-btn[href*="youtube.com/@TheOhseHomestead"]:hover {transform:none;}
}
