/*
Theme Name: Normandy Community
Description: A native WordPress block theme for the Normandy Community Shop and Café test site. Uses core blocks and local assets. No page builder or premium plugin required.
Version: 0.5.1
Requires at least: 6.6
Requires PHP: 7.4
Author: Normandy Community Shop & Café
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: normandy-community
Tags: block-patterns, full-site-editing, wide-blocks, custom-colors, editor-style
*/

html { scroll-padding-top: 2rem; }
* { box-sizing: border-box; }
body { margin: 0; }
a { text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #a7352b; outline-offset: 5px;
}
.wp-site-blocks > * { margin-block-start: 0; }
.wp-block-template-part { margin: 0; }
.wp-block-image img { height: auto; }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button__link:hover { filter: brightness(.91); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid currentColor; }
.nc-site-header { background: #fffdf8; border-bottom: 1px solid #d8dbcc; }
.nc-test-banner { padding: .55rem 1.25rem; background: #e7eadf; text-align: center; font-size: .72rem; }
.nc-test-banner p { margin: 0; }
.nc-header-inner { padding-block: 1.1rem; gap: 2rem; }
.nc-brand { margin: 0; flex-shrink: 0; }
.nc-brand img { width: 255px; max-width: 100%; height: auto; }
.nc-site-header .wp-block-navigation { gap: 1.6rem; }
.nc-site-header .wp-block-navigation-item__content { text-decoration: none; padding-block: .55rem; }
.nc-site-header .wp-block-navigation-item__content:hover { color: #a7352b; }
.nc-site-header :is(.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close) {
  min-width: 44px; min-height: 44px; padding: 10px; align-items: center; justify-content: center;
}
.nc-home > * { margin-block-start: 0; }
.nc-home > [id] { scroll-margin-top: 1rem; }
.nc-section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.nc-eyebrow { color: #586354; font-size: .7rem; line-height: 1.5; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.nc-hero { padding-block: 1.75rem 3rem; }
.nc-hero .wp-block-columns { gap: 3rem; margin: 0; }
.nc-hero-copy { padding-block: .75rem; }
.nc-hero-copy h1 { margin-block: 1rem; font-size: clamp(3rem, 5.2vw, 4.6rem); line-height: 1.03; }
.nc-hero-copy h1 em { color: #a7352b; font-weight: 400; }
.nc-hero-description { max-width: 380px; color: #586354; }
.nc-owned { font-size: .8rem; color: #657063; margin-block-start: 1.25rem; }
.nc-hero-picture { position: relative; }
.nc-exterior { margin: 0; }
.nc-exterior img { width: 100%; height: 460px; object-fit: cover; object-position: 51% center; }
.nc-round-mark { position: absolute; right: -22px; top: 22px; width: 105px; margin: 0 !important; }
.nc-round-mark img { width: 105px; height: 105px; }
.nc-caption { margin-top: .8rem !important; color: #657063; font-size: .7rem; letter-spacing: .04em; }
.nc-quick-strip { background: #e7eadf; border-block: 1px solid #d8dbcc; }
.nc-quick-strip .wp-block-columns { gap: 0; margin: 0; }
.nc-quick-strip .wp-block-column { padding: 1.6rem; border-right: 1px solid #cbd3bd; }
.nc-quick-strip .wp-block-column:first-child { padding-left: 0; }
.nc-quick-strip .wp-block-column:last-child { border: 0; }
.nc-quick-strip p { margin: 0; font-size: .9rem; }
.nc-quick-strip a { display: inline-block; padding-block: .25rem; font-weight: 600; color: #28382d; text-decoration: underline; text-decoration-thickness: 1px; }
.nc-quick-strip a:hover { color: #a7352b; }
.nc-quick-strip a:focus-visible { outline: 3px solid #a7352b; outline-offset: 4px; }
.nc-quick-strip small { color: #586354; font-size: .875rem; }
.nc-welcome .wp-block-columns { align-items: center; gap: 3rem; margin: 0; }
.nc-welcome h2 { font-size: clamp(2rem, 3.3vw, 2.65rem); }
.nc-welcome .wp-block-column:last-child p { font-size: .95rem; color: #586354; }
.nc-shop { padding-top: 0; }
.nc-section-heading { margin-bottom: 2rem; }
.nc-shop-cards { gap: 1.3rem; }
.nc-shop-card { background: #e7eadf; border-top: 4px solid #748963; padding: 2rem; min-height: 310px; height: 100%; }
.nc-shop-card.nc-honey { background: #f0e8d5; border-color: #b59955; }
.nc-shop-card.nc-refill { background: #e7e8e1; border-color: #7c8d78; }
.nc-shop-card .nc-eyebrow { font-size: .65rem; margin-bottom: 2rem; }
.nc-shop-card h3 { font-size: 2rem; }
.nc-shop-card p { font-size: .9rem; }
.nc-cafe { background: #eee5d7; }
.nc-cafe .wp-block-columns { margin: 0; gap: 0; }
.nc-cafe-art { min-height: 530px; background: #e5d5bf; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem; }
.nc-cafe-art::before, .nc-cafe-art::after { content: ''; position: absolute; width: 360px; height: 360px; border: 1px solid #c4b79f; border-radius: 50%; }
.nc-cafe-art::after { width: 420px; height: 420px; }
.nc-cafe-art .wp-block-group { z-index: 1; position: relative; }
.nc-cafe-art h3, .nc-cafe-art .nc-cafe-wordmark {
  margin: 0; font: italic 400 3.4rem/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -.035em; color: #a7352b;
}
.nc-cafe-art p { font-size: .7rem; letter-spacing: .14em; }
.nc-cafe-copy { padding: clamp(3rem, 5.5vw, 5rem); }
.nc-cafe-copy h2 { font-size: clamp(2.5rem, 4.2vw, 3.6rem); }
.nc-cafe-copy p:not(.nc-eyebrow) { font-size: .95rem; }
.nc-menu-structure { padding-top: 2rem; }
.nc-menu-card { border-top: 1px solid #d8dbcc; padding-top: 1.4rem; }
.nc-menu-card h3 { font-size: 1.65rem; }
.nc-menu-card p { font-size: .875rem; }
.nc-review-note { color: #586354; font-size: .8rem; }
.nc-opening-note {
  margin-block: 1.25rem 0; padding: 1rem 1.25rem;
  border: 1px solid #d8dbcc; border-left: 4px solid #a7352b;
  background: #fffdf8; color: #28382d; font-size: .9rem; line-height: 1.6;
}
.nc-opening-note > :first-child { margin-block-start: 0; }
.nc-opening-note > :last-child { margin-block-end: 0; }
.nc-opening-note a { font-weight: 600; }
.nc-home-news {
  padding: clamp(1.5rem, 3vw, 2.75rem); border: 1px solid #d8dbcc; background: #fffdf8;
}
.nc-home-news h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
.nc-home-news .wp-block-columns { margin-block: 0; align-items: center; }
.nc-home-news p:not(.nc-eyebrow) { max-width: 42rem; font-size: .95rem; }
.nc-home-news > :first-child { margin-block-start: 0; }
.nc-home-news > :last-child { margin-block-end: 0; }
.nc-events { padding-top: 0; }
.nc-event-card { border-block: 1px solid #d8dbcc; padding-block: 2rem; }
.nc-event-card .wp-block-columns { align-items: center; margin: 0; }
.nc-event-day { background: #e7eadf; text-align: center; padding: 1.5rem 1rem; }
.nc-event-day p { font-size: .7rem; letter-spacing: .1em; margin: 0; }
.nc-event-day h3 { color: #a7352b; font-size: 2.8rem; margin-block: .3rem; }
.nc-event-copy p { max-width: 650px; font-size: .9rem; }
.nc-volunteer { background: #3e573b; color: #fffdf8; }
.nc-volunteer > .wp-block-columns { gap: 0; margin: 0; }
.nc-footpath { margin: 0; height: 100%; }
.nc-footpath img { width: 100%; height: 540px; object-fit: cover; }
.nc-volunteer-copy { padding: clamp(3rem, 6vw, 5.5rem); }
.nc-volunteer .nc-eyebrow { color: #d2dcb9; }
.nc-volunteer-copy p { font-size: .95rem; }
.nc-volunteer .wp-block-button__link { background: #faf7ef; color: #28382d; }
.nc-volunteer a:not(.wp-block-button__link) { color: #fffdf8; }
.nc-volunteer a:focus-visible, .nc-volunteer button:focus-visible { outline-color: #fffdf8; }
.nc-visit .wp-block-columns { gap: clamp(2rem, 5vw, 5rem); }
.nc-visit address { font-style: normal; }
.nc-contact { font-size: .95rem; }
.nc-hours { background: #e7eadf; padding: clamp(1.5rem, 3vw, 2.5rem); }
.nc-hours h3 { font-size: 2rem; }
.nc-hours .wp-block-table { margin-inline: 0; }
.nc-hours table { font-size: .875rem; border-collapse: collapse; width: 100%; }
.nc-hours th, .nc-hours td { border: 0; border-bottom: 1px solid #cbd3bd; padding: .85rem .3rem; text-align: left; }
.nc-hours th { font-weight: 600; }
.nc-hours figcaption { font-size: .875rem; line-height: 1.6; color: #586354; text-align: left; margin-top: 1rem; }
.nc-visit-summary p { font-size: .95rem; }
.nc-visit-summary .nc-review-note { font-size: .875rem; }
.nc-visit-summary .wp-block-buttons { margin-block-start: 1.25rem; }
.nc-planned { padding-top: 0; }
.nc-planned-inner { border: 1px solid #d8dbcc; padding: clamp(1.5rem, 3.5vw, 3rem); background: #fffdf8; }
.nc-planned h2 { font-size: 2.4rem; }
.nc-planned .wp-block-details { border-bottom: 1px solid #d8dbcc; padding-block: .9rem; margin-top: 0; font-size: .875rem; }
.nc-planned summary { cursor: pointer; font-weight: 600; padding-block: .2rem; }
.nc-planned .wp-block-details p { font-size: .85rem; }
.nc-site-footer { background: #e7eadf; padding-block: 3rem 1.5rem; }
.nc-footer-inner { gap: 3rem; padding-bottom: 2rem; }
.nc-footer-logo img { width: 255px; height: auto; }
.nc-footer-message { font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; line-height: 1.35; }
.nc-footer-links { font-size: .8rem; }
.nc-footer-links p { margin-top: .5rem; }
.nc-footer-bottom { border-top: 1px solid #cbd3bd; padding-top: 1.25rem; font-size: .72rem; color: #586354; }
.nc-page, .nc-post, .nc-archive { padding-block: clamp(3rem, 6vw, 5rem); min-height: 50vh; }
.nc-page .wp-block-post-title, .nc-post .wp-block-post-title, .nc-archive h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
.nc-post-list { padding: 0; list-style: none; }
.nc-post-card { padding-block: 2rem; border-bottom: 1px solid #d8dbcc; }
.nc-post-card .wp-block-post-title { font-size: 2rem; }
.nc-post-card .wp-block-post-title a { color: #28382d; text-decoration: none; }
.nc-post-card .wp-block-post-title a:hover { color: #a7352b; }
.nc-post-date { font-size: .75rem; color: #657063; }
.wp-block-query-pagination { margin-top: 2rem; }

/* Use the native menu before the six desktop links wrap onto a second row. */
@media (max-width: 900px) {
  .nc-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .nc-site-header .wp-block-navigation__responsive-container-open { display: flex; }
  .nc-site-header .is-menu-open .wp-block-navigation__container { font-size: 1.1rem; gap: .35rem; }
  .nc-site-header .is-menu-open .wp-block-navigation-item__content { min-height: 44px; padding-block: .65rem; }
}
@media (min-width: 782px) and (max-width: 1050px) {
  .nc-brand img { width: 235px; }
  .nc-site-header .wp-block-navigation { gap: 1rem; font-size: .8rem; }
  .nc-hero .wp-block-columns { gap: 2rem; }
  .nc-exterior img { height: 420px; }
  .nc-shop-card { padding: 1.5rem; }
  .nc-cafe-copy { padding: 3rem 2rem; }
  .nc-volunteer-copy { padding: 3rem 2rem; }
}
@media (max-width: 781px) {
  .nc-header-inner { padding-block: .9rem; }
  .nc-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
  .nc-site-header .wp-block-navigation__responsive-container-open { display: flex; }
  .nc-brand img { width: min(235px, 55vw); }
  .nc-hero { padding-block: 1rem 2rem; }
  .nc-hero .wp-block-columns { gap: 1.25rem; }
  .nc-hero-copy { padding-top: .5rem; }
  .nc-hero-copy h1 { font-size: clamp(3rem, 10.5vw, 3.75rem); }
  .nc-exterior img { height: 280px; }
  .nc-round-mark { width: 80px; right: -10px; top: 16px; }
  .nc-round-mark img { width: 80px; height: 80px; }
  .nc-quick-strip .wp-block-column { padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid #cbd3bd; }
  .nc-quick-strip .wp-block-columns { gap: 0; }
  .nc-welcome .wp-block-columns { gap: 1rem; }
  .nc-section { padding-block: 3.5rem; }
  .nc-home-news { padding: 1.5rem; }
  .nc-shop, .nc-events, .nc-planned { padding-top: 0; }
  .nc-shop-cards { gap: 1rem; }
  .nc-shop-card { min-height: 0; }
  .nc-cafe-art { min-height: 220px; padding: 1.75rem 1.25rem; }
  .nc-cafe-art::before { width: 180px; height: 180px; }
  .nc-cafe-art::after { width: 216px; height: 216px; }
  .nc-cafe-art h3, .nc-cafe-art .nc-cafe-wordmark { font-size: 2.3rem; }
  .nc-cafe-art .wp-block-group > p:last-child:not(.nc-cafe-wordmark) { margin-block-start: 1rem; }
  .nc-cafe-copy, .nc-volunteer-copy { padding: 3rem 1.5rem; }
  .nc-event-card .wp-block-columns { gap: 1rem; }
  .nc-event-day { max-width: 180px; }
  .nc-footpath img { height: 320px; }
  .nc-volunteer > .wp-block-columns { gap: 0; }
  .nc-footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nc-footer-bottom { display: block; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Inner-page rhythm and optional service plugins. These are presentation only. */
.nc-page > .wp-block-post-title {
  margin-block-start: 0;
  margin-block-end: clamp(2rem, 4vw, 3.5rem);
  padding-block-end: 1.25rem;
  border-bottom: 1px solid #d8dbcc;
  line-height: 1.08;
}
.nc-page .wp-block-post-content { font-size: 1.025rem; }
.nc-page .wp-block-post-content p { text-wrap: pretty; }
.nc-page .wp-block-post-content :is(h2, h3, h4) { scroll-margin-top: 2rem; }
.nc-page .wp-block-post-content > :first-child { margin-block-start: 0; }

/* The Events Calendar: retain its controls, responsive layout and state styling. */
.tribe-events {
  --tec-color-text-primary: #28382d;
  --tec-color-text-secondary: #586354;
  --tec-color-accent-primary: #a7352b;
  --tec-color-accent-primary-hover: #8c2c24;
  --tec-color-background: #faf7ef;
  --tec-color-border-default: #d8dbcc;
  --tec-font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #28382d;
  font-family: var(--tec-font-family-sans-serif);
}
body .tribe-events.tribe-common {
  --tec-color-accent-primary: #a7352b;
  --tec-color-accent-primary-hover: #8c2c24;
  --tec-color-accent-primary-active: #7b2b20;
}
.tribe-events :is(.tribe-common-h2, .tribe-common-h3, .tribe-common-h4) {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.025em;
}
.tribe-events .tribe-events-calendar-list__event-title-link { color: #28382d; text-decoration-thickness: 1px; }
.tribe-events .tribe-events-calendar-list__event-title-link:hover { color: #a7352b; }
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday { color: #49643f; letter-spacing: .08em; }
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum { font-family: Georgia, "Times New Roman", serif; color: #a7352b; }
.tribe-events .tribe-events-calendar-list__month-separator-text { color: #49643f; }
.tribe-events .tribe-events-header__events-bar { border-color: #d8dbcc; background: #fffdf8; }
.tribe-events .tribe-events-c-search__input { font-size: 1rem; }
body .tribe-events.tribe-common .tribe-events-c-search__button { background: #a7352b; color: #fffdf8; border-radius: 0; min-height: 48px; }
body .tribe-events.tribe-common .tribe-events-c-search__button:hover { background: #8c2c24; color: #fffdf8; }
body .tribe-events.tribe-common .tribe-events-c-search__button:active { background: #7b2b20; color: #fffdf8; }

/* Restaurant Reservations: keep plugin validation and date/time picker behaviour. */
.rtb-booking-form {
  max-width: 100%;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: #fffdf8;
  border: 1px solid #d8dbcc;
  color: #28382d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
.rtb-booking-form fieldset { border: 0; padding: 0; margin: 0 0 2rem; min-width: 0; }
.rtb-booking-form legend { padding: 0; margin-bottom: 1.1rem; font: 400 1.7rem/1.2 Georgia, "Times New Roman", serif; }
.rtb-booking-form label { color: #28382d; font-size: .875rem; font-weight: 600; }
.rtb-booking-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], textarea, select) {
  width: 100%; max-width: 100%; min-height: 48px;
  padding: .75rem .85rem; border: 1px solid #74816d; border-radius: 0;
  background: #faf7ef; color: #28382d; font: inherit;
}
.rtb-booking-form textarea { min-height: 120px; resize: vertical; }
.rtb-booking-form :is(button[type="submit"], input[type="submit"]) {
  min-height: 48px; padding: .85rem 1.4rem; border: 1px solid #a7352b; border-radius: 0;
  background: #a7352b; color: #fffdf8; font: 600 .9rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.rtb-booking-form :is(button[type="submit"], input[type="submit"]):hover { background: #8c2c24; }
.rtb-booking-form .rtb-error { color: #7b2b20; background: #f7e6d7; padding: 12px; font-size: .875rem; line-height: 1.6; }

/* MailPoet: light overrides without changing form logic, consent or visibility. */
.mailpoet_form {
  max-width: 100%; padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #d8dbcc; background: #fffdf8; color: #28382d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
.mailpoet_form .mailpoet_paragraph { margin-bottom: 1.25rem; }
.mailpoet_form label { color: #28382d; font-size: .875rem; }
.mailpoet_form :is(.mailpoet_text, .mailpoet_textarea, .mailpoet_select) {
  width: 100%; max-width: 100%; min-height: 48px; padding: .75rem .85rem;
  border: 1px solid #74816d; border-radius: 0; background: #faf7ef; color: #28382d;
  font: 400 1rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.mailpoet_form :is(input[type="checkbox"], input[type="radio"]) { accent-color: #49643f; }
.mailpoet_form .mailpoet_submit {
  min-height: 48px; padding: .85rem 1.4rem; border: 1px solid #a7352b; border-radius: 0;
  background: #a7352b; color: #fffdf8; font: 600 .9rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.mailpoet_form .mailpoet_submit:hover { background: #8c2c24; }
.mailpoet_form :is(.mailpoet_validate_error, .mailpoet_error) { color: #a7352b; }
.mailpoet_form .mailpoet_validate_success { color: #49643f; }
@media (max-width: 600px) {
  .rtb-booking-form, .mailpoet_form { padding: 1.25rem; }
  .nc-page > .wp-block-post-title { margin-block-end: 2rem; }
}

/* Social updates: provider content is requested only after a visitor clicks. */
.nc-social-updates { margin-block: 3rem; scroll-margin-top: 2rem; }
.nc-social-updates > h2 { margin-block: .75rem 1rem; }
.nc-social-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.nc-social-card { min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #74816d; background: #fffdf8; }
.nc-social-card h3 { margin-top: 0; font-size: 1.8rem; }
.nc-social-card p { font-size: .9rem; overflow-wrap: anywhere; }
.nc-social-card .nc-social-status { color: #586354; font-size: .8rem; }
.nc-social-load { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; max-width: 100%; padding: .85rem 1.25rem; background: #a7352b; color: #fffdf8; border: 1px solid #a7352b; border-radius: 0; font: 600 .875rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.nc-social-load:hover { background: #8c2c24; }
.nc-social-load:disabled { cursor: wait; }
.nc-social-card [hidden] { display: none !important; }
.nc-social-feed { width: 100%; max-width: 500px; min-width: 0; margin: 1.25rem auto 0; }
.nc-social-feed iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.nc-social-feed .twitter-timeline { max-width: 100% !important; }
@media (max-width: 781px) {
  .nc-social-grid { grid-template-columns: minmax(0, 1fr); }
}
