/*Reset*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
body{line-height:1}
ol,ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:"";content:none}
table{border-collapse:collapse;border-spacing:0}

/*Reusable Styles*/
@font-face {
    font-family: "Wingman";
    src: url("../fonts/TAYWingman.otf");
}

@font-face {
    font-family: "Watkins";
    src: url("../fonts/TAYWatkins.otf");
}

@font-face {
    font-family: "Bea";
    src: url("../fonts/TAYBea.otf");
}

.wingman {
    font-family: Wingman;
}

.watkins {
    font-family: Watkins;
}

.bea {
    font-family: Bea;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.link-under {
    text-decoration: underline;
}

.amf-section {
    margin: 0 0 25px 0;
}

h2 {
    margin: 10px 0;
    font-size: 1.5em;
}

a {
    text-decoration-line: none;
    color: #4e5630;
}

.rounded-button {
    padding: 0.6em 1.2em;
    border: 2px solid #84cdc0;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: #f5f5f5;
}

/*Global Styles*/
body {
    background-color: #84cdc0;
    color: #4e5630;
    text-align: center;
    font-size: 100%;
    overflow-x: hidden;
    margin: 0;
    padding-top: 130px;
}

@media (max-width: 900px) {
    body {
        padding-top: 180px;
    }
}

main {
    margin-top: 0;
}

.container {
    margin: 0;
}

/* Section Styles */
.header {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto auto;
    grid-template-areas: "logo title . search nav cart";
    align-items: center;
    gap: 0.5rem;
    padding: 0.75em 1em;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #84cdc0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.header-left {
    grid-area: logo;
    display: flex;
    align-items: center;
    gap: 1em;
}

.title-stack {
    grid-area: title;
    display: flex;
    flex-direction: column;
    line-height: 1.2em;
    text-align: left;
}

#logo img {
    max-width: 60px;
    height: auto;
    display: block;
}

.header h1 {
    margin: 0;
    padding: 0;
    font-family: Watkins, sans-serif;
    font-size: 1.2em;
    white-space: nowrap;
    text-indent: 0;
}

.search-pill-wrapper {
    grid-area: search;
    max-width: 16em;
    justify-self: end;
    position: relative;
    display: inline-block;
    width: 100%;
}

.search-pill-input {
    width: 100%;
    padding: 0.6em 2.5em 0.6em 1em;
    border: none;
    border-radius: 25px;
    min-width: 200px;
    box-sizing: border-box;
}

.search-pill-button {
    position: absolute;
    top: 50%;
    right: 0.6em;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #4e5630;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.search-pill-button:hover {
    color: #a38830;
}

.header-right {
    grid-area: nav;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ec-cart-widget {
    grid-area: cart;
    justify-self: end;
}

@media (max-width: 900px) {
    .header {
        grid-template-columns: auto 1fr auto;
        grid-template-areas:
            "logo title title"
            "nav search cart";
        row-gap: 0.5rem;
        padding: 1em;
    }

    .header-left {
        grid-area: logo;
    }

    .title-stack {
        grid-area: title;
        align-self: center;
    }

    .nav {
        grid-area: nav;
        justify-self: start;
    }

    .search-pill-wrapper {
        grid-area: search;
        max-width: none;
    }

    .ec-cart-widget {
        grid-area: cart;
        justify-self: end;
    }

    .nav-toggle-label {
        display: block;
        padding: 0.5em;
        border: 1px solid #4e5630;
        background: none;
        font-weight: bold;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #84cdc0;
        flex-direction: column;
        padding: 1em;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .nav-toggle:checked+.nav-toggle-label+.nav-menu {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }
}

@media (min-width: 901px) {
    .nav-toggle-label {
        display: none;
    }
}

.nav {
    position: relative;
    background: #84cdc0;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 10px;
    border: 1px solid #4e5630;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 1em;
    margin: 0;
    padding: 1em;
    flex-wrap: nowrap;
    min-width: 0;
}

.nav-menu>li>a,
.nav-menu>li>label,
.dropdown a {
    white-space: nowrap;
}

.nav-menu li {
    position: relative;
}

.nav-menu .dropdown {
    display: none;
    position: absolute;
    background: #fcdacb;
    list-style: none;
    padding: 0.5em;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
}

.nav-menu .dropdown li {
    padding: 5px;
}

.nav-menu li:hover .dropdown {
    display: block;
}

.submenu-toggle {
    display: none;
}

.submenu-label {
    display: block;
    cursor: pointer;
    padding-bottom: 5px;
}

.nav-menu .has-submenu {
    position: relative;
}

@media (max-width: 900px) {
    .nav-toggle-label {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #84cdc0;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        padding: 1em;
        min-width: 150px;
        max-width: 100%;
    }

    .nav-toggle:checked+.nav-toggle-label+.nav-menu {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fcdacb;
        padding: 0.5em;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .has-submenu .dropdown {
        display: none;
    }

    .has-submenu .submenu-toggle:checked+.submenu-label+.dropdown {
        display: block;
    }

    .nav-menu li:hover .dropdown {
        display: none;
    }

    .nav-menu li input[type="checkbox"] {
        display: none;
    }
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 3/2;
    overflow: hidden;
    margin: 0 auto 25px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

#visit-us .amf-address {
    font-size: 1.5em;
    font-weight: normal;
    margin: 0 0 0.25em 0;
}

#visit-us .amf-events {
    margin-top: 15px;
}

#visit-us .store-hours {
    margin: 0 auto;
    border-collapse: collapse;
}

#visit-us .store-hours td {
    padding: 2px 5px;
    vertical-align: top;
    box-sizing: border-box;
}

#visit-us .store-hours .day {
    text-align: left;
    padding-right: 5px;
    white-space: nowrap;
}

#visit-us .store-hours .hours {
    text-align: left;
    white-space: nowrap;
}

/* Events */
#homepage-events {
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}

/* Make the WRAPPER the only scroll container */
.event-scroll-wrapper {
  max-width: 1000px;          /* contain the whole strip */
  margin: 0 auto;
  overflow-x: auto;           /* <— only this element scrolls */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  padding: 0 1rem 1rem;       /* side gutters + a bit of bottom room */
}

/* The SCROLLER is just a flex row, no own scrolling, no max-width */
.event-scroller {
  display: flex;
  gap: 1rem;
  min-width: max-content;     /* don’t shrink below its content width */
  /* REMOVE these if present:
     overflow-x: auto;
     max-width: 930px;
     margin: 0 auto;
     padding-inline: 1rem;
  */
}

/* Center when there are only 1–2 cards */
.event-scroller.center-when-few {
  justify-content: center;
}

.event-card {
  flex: 0 0 300px;
  max-width: 300px;
  scroll-snap-align: start;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

/* Only center the scroller at larger sizes */
@media (min-width: 768px) {
    .event-scroller {
        max-width: 930px;
        margin: 0 auto;
        justify-content: center;
    }
}

.event-card {
  flex: 0 0 300px;
  max-width: 300px;
  scroll-snap-align: start;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  padding: 1rem;
  text-align: center;
  box-sizing: border-box;
}

.event-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.event-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0 0.25rem;
}

.event-meta {
    font-size: 0.9rem;
    color: #555;
    margin: 0.25rem 0;
}

.event-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: bold;
    color: #3178c6;
    text-decoration: none;
}

.event-link:hover {
    text-decoration: underline;
}

#shop-online ul {
    margin: 10px;
}

#shop-online li {
    margin: 5px;
}

#faceout-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

#faceout-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

#faceout-controls select,
#faceout-controls button,
#faceout-show,
#faceout-buttons button {
    font-family: Wingman, sans-serif;
    font-size: 1rem;
    padding: 0.25em 1.2em;
    height: 42px;
    line-height: 1;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#faceout-genre {
    background-color: #fcdacb;
    color: #211d1d;
    border: 2px solid #4e5630;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='30,50 70,90 110,50' stroke='%234E5630' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8em center;
    background-size: 1em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

#faceout-show,
#faceout-buttons button {
    background-color: #4e5630;
    color: #fcdacb;
    border: none;
    margin: 0.5rem;
}

#faceout-show:hover,
#faceout-buttons button:hover {
    background-color: #a38830;
    color: #211d1d;
}

#faceout-result {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
    flex-wrap: wrap;
}

#faceout-cover {
    width: 120px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    border: 1px solid #ccc;
    margin: 0 auto;
}

#faceout-text {
    flex: 1;
    text-align: left;
    min-width: 200px;
}

#faceout-title {
    margin: 0;
    font-size: 1.2rem;
}

#faceout-author {
    margin: 0 0 0.25rem 0;
    font-style: italic;
    color: #555;
}

#faceout-local {
    font-style: italic;
    font-size: 0.9rem;
    color: #84cdc0;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

#faceout-local::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: gold;
    margin-right: 6px;
}

#faceout-new {
    font-size: 0.8rem;
    color: white;
    background-color: #e2725b;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
}

#faceout-talker {
    font-style: italic;
    white-space: pre-wrap;
    line-height: 1.4;
}

#faceout-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    text-align: center;
    gap: 10px;
}

@media (max-width: 500px) {
    #faceout-controls {
        align-items: center;
        justify-content: center;
    }
}

#mc-embedded-subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.input-row {
    display: flex;
    gap: 0.5em;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
    max-width: 18em;
}

#mc-embedded-subscribe-form input[type="email"],
#bookshop-search-form input[type="search"] {
    flex: 1 1 15em;
    padding: 0.6em 1em;
    border: none;
    border-radius: 15px;
    min-width: 200px;
}

#mc-embedded-subscribe {
    padding: 0.6em 1.2em;
    border: 2px solid #84cdc0;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#newsletter .response {
    font-size: 0.9em;
    margin-top: 1em;
    color: #c00;
}

@media (max-width: 400px) {
    .input-row {
        flex-wrap: wrap;
    }
}

#social {
    text-align: center;
    padding: 0 0 1em 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#facebook,
#instagram {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    width: 60px;
    height: 60px;
    display: block;
}

#facebook {
    background-image: url(../../images/Facebook_Logo_Secondary_80.png);
}

#instagram {
    background-image: url(../../images/Instagram_Glyph_White_80.png);
}

@media (max-width: 500px) {

    #facebook,
    #instagram {
        width: 40px;
        height: 40px;
    }
}

#copyright {
    font-style: italic;
    font-size: 0.75em;
}