/*
Theme Name: Amara Snow
Theme URI: https://missamarasnow.com
Author: Miss Amara Snow
Description: Custom block theme for missamarasnow.com.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.6.0
License: GNU General Public License v2 or later
Text Domain: amara-snow
*/

/* ---------- Side margins ---------- */
:root{--am-gutter:clamp(1.25rem, 5vw, 6rem)}
.am-gutter{padding-left:var(--am-gutter)!important;padding-right:var(--am-gutter)!important}

/* ---------- Header ---------- */
.am-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem}
.am-header .am-nav{justify-self:start}
.am-header .wp-block-site-title{justify-self:center;margin:0}
.am-header .am-cta{justify-self:end}
.am-cta a{display:inline-block;padding:.55rem 1.4rem .7rem;border-bottom:1px solid currentColor;text-transform:uppercase;letter-spacing:.06em;font-size:var(--wp--preset--font-size--small);text-decoration:none}
.am-cta a:hover,.am-cta a:focus-visible{border-bottom-width:2px}
.wp-block-site-title a{text-decoration:none}
.am-nav .am-nav-mobile-only{display:none}

/* Header floats over the hero on the homepage only (class set in front-page.html) */
.am-site-header--overlay{position:absolute;top:0;left:0;right:0;z-index:20}
.am-site-header--overlay > .wp-block-group{background:transparent!important}

/* ---------- Hero ---------- */
.am-hero{min-height:100svh!important;align-items:flex-end!important;padding-bottom:clamp(3rem,9vh,6.5rem)!important}
.am-hero .wp-block-cover__background{background:linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.35) 42%,rgba(0,0,0,.12) 100%)!important;opacity:1!important}
.am-hero h1{line-height:.9;letter-spacing:-.01em;margin:0}
.am-hero .am-hero-tagline{text-transform:uppercase;letter-spacing:.08em}

/* ---------- Header: nav never wraps ---------- */
.am-header .am-nav .wp-block-navigation__container{flex-wrap:nowrap;gap:clamp(1rem,1.8vw,2rem)}
.am-header .am-nav{font-size:clamp(.95rem,1.1vw,1.0625rem)}

/* Tablet / small laptop: wordmark on top, menu and button below */
@media (min-width:600px) and (max-width:1180px){
  .am-header{grid-template-columns:1fr auto;row-gap:1.25rem}
  .am-header .wp-block-site-title{grid-column:1 / -1;grid-row:1;justify-self:center}
  .am-header .am-nav{grid-row:2;justify-self:start}
  .am-header .am-cta{grid-row:2;justify-self:end}
}

/* Phones: wordmark left, menu button right (navigation collapses below 600px) */
@media (max-width:599px){
  .am-header{grid-template-columns:1fr auto}
  .am-header .am-nav{order:2;justify-self:end}
  .am-header .wp-block-site-title{justify-self:start}
  .am-header .am-cta{display:none}
  .am-nav .am-nav-mobile-only{display:list-item}
}

/* Portrait hero image on narrow screens */
@media (max-width:781px){
  .am-hero{align-items:flex-end!important;padding-bottom:var(--wp--preset--spacing--60)!important;background:url('assets/images/hero-mobile.webp') 50% 30%/cover no-repeat}
  .am-hero .wp-block-cover__image-background{display:none}
  .am-hero .am-hero-tagline{font-size:var(--wp--preset--font-size--small);letter-spacing:.06em}
}

/* ---------- Editorial details ---------- */
.am-eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:.75rem;color:var(--wp--preset--color--ash);margin-bottom:1.25rem!important}
.am-section{padding-top:clamp(5rem,12vw,10rem)!important;padding-bottom:clamp(5rem,12vw,10rem)!important}
.wp-element-button,.wp-block-button__link{transition:border-color .3s ease,letter-spacing .4s ease}
.wp-block-button__link:hover{letter-spacing:.12em}
a{text-underline-offset:.22em;text-decoration-thickness:1px}

/* Marquee */
.am-marquee{overflow:hidden;border-top:1px solid var(--wp--preset--color--graphite);border-bottom:1px solid var(--wp--preset--color--graphite);padding:1.1rem 0}
.am-marquee__track{display:block;width:max-content!important;max-width:none!important;margin:0!important;white-space:nowrap;font-family:var(--wp--preset--font-family--instrument-serif);font-size:clamp(1.15rem,2.2vw,1.75rem)!important;line-height:1.2!important;text-transform:uppercase;letter-spacing:.04em;text-align:left!important;will-change:transform;-webkit-animation:am-marquee 60s linear infinite;animation:am-marquee 60s linear infinite}
@-webkit-keyframes am-marquee{from{-webkit-transform:translate3d(0,0,0)}to{-webkit-transform:translate3d(-50%,0,0)}}
@keyframes am-marquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
@media (max-width:781px){.am-marquee__track{-webkit-animation-duration:40s;animation-duration:40s}}

/* Experiences rows */
.am-experiences .am-row{gap:clamp(2rem,6vw,6rem)!important;margin-bottom:clamp(4rem,10vw,9rem)!important}
.am-experiences .am-row:last-child{margin-bottom:0!important}
.am-portrait{overflow:hidden;margin:0}
.am-portrait img{width:100%;aspect-ratio:4/5;object-fit:cover;transition:transform 1.2s cubic-bezier(.2,.7,.2,1)}
.am-portrait a:hover img,.am-portrait a:focus-visible img{transform:scale(1.04)}
.am-row__text{max-width:30rem;margin-inline:auto}
.am-row__text h2{font-size:clamp(2.2rem,4.5vw,3.6rem)}

/* Photo strip */
.am-strip{gap:4px!important;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.am-strip::-webkit-scrollbar{display:none}
.am-strip .wp-block-image,.am-strip figure{flex:0 0 clamp(14rem,24vw,22rem)!important;width:auto!important;max-width:none!important;margin:0!important;scroll-snap-align:start}
.am-strip img{width:100%!important;height:clamp(20rem,34vw,32rem)!important;max-width:none!important;object-fit:cover!important;aspect-ratio:auto!important}

/* ---------- Pages ---------- */
.am-page-head{padding-top:clamp(4rem,10vw,8rem)!important;padding-bottom:clamp(2.5rem,6vw,5rem)!important}
.am-page-head h1{font-size:clamp(3rem,7vw,6.5rem)!important;line-height:.95}
.am-page-hero{margin:0 0 clamp(3rem,8vw,6rem)!important}
.am-page-hero picture{display:block;width:100%}
.am-page-hero img{height:min(80vh,56rem)!important;aspect-ratio:auto!important;object-position:50% 30%}
.am-page-body{padding-bottom:clamp(5rem,12vw,10rem)!important}

/* Centred copy throughout page content (front end and editor) */
.am-content,.editor-styles-wrapper .is-root-container{text-align:center}
.am-content h2,.editor-styles-wrapper .is-root-container h2{margin-top:clamp(3.5rem,8vw,6rem);font-size:clamp(2rem,4vw,3rem)}
.am-content h2::before,.editor-styles-wrapper .is-root-container h2::before{content:"";display:block;width:2.5rem;height:1px;background:var(--wp--preset--color--ash);margin:0 auto 2rem}
.am-content h3,.editor-styles-wrapper .is-root-container h3{margin-top:2.75rem;text-transform:uppercase;letter-spacing:.18em;font-size:.8rem;color:var(--wp--preset--color--ash)}
.am-content ul,.am-content ol,.editor-styles-wrapper .is-root-container ul{list-style:none;padding-left:0}
.am-content li,.editor-styles-wrapper .is-root-container li{margin:.45rem 0}
.am-content p,.editor-styles-wrapper .is-root-container p{max-width:34em;margin-left:auto;margin-right:auto;font-size:clamp(1.0625rem,1.25vw,1.1875rem);line-height:1.85}
.am-content p+p{margin-top:1.4em}
.am-content .wp-block-quote,.editor-styles-wrapper .is-root-container .wp-block-quote{border:0;padding:0;margin:clamp(3rem,7vw,5rem) auto;max-width:22em}
.am-content .wp-block-quote p,.editor-styles-wrapper .is-root-container .wp-block-quote p{font-family:var(--wp--preset--font-family--instrument-serif);font-style:italic;font-size:clamp(1.75rem,3.4vw,2.6rem);line-height:1.2;max-width:none}
.am-footer-small a{color:inherit}
.editor-styles-wrapper .editor-post-title,.editor-styles-wrapper .wp-block-post-title{text-align:center;font-size:clamp(3rem,7vw,6.5rem)!important;line-height:.95}
.editor-styles-wrapper .is-root-container .has-large-font-size{font-family:var(--wp--preset--font-family--instrument-serif);font-size:clamp(1.6rem,3vw,2.2rem)!important;line-height:1.25}
.am-content .has-large-font-size{font-family:var(--wp--preset--font-family--instrument-serif);font-size:clamp(1.6rem,3vw,2.2rem)!important;line-height:1.25}
.am-content .wp-block-buttons,.editor-styles-wrapper .is-root-container .wp-block-buttons{justify-content:center}
.wp-block-gallery.am-gallery img{object-fit:cover}


/* Respect reduced-motion preferences (applies to the hero video once added) */
@media (prefers-reduced-motion: reduce){
  .wp-block-cover__video-background{display:none}
  .am-marquee__track{animation:none}
  .am-portrait img,.wp-block-button__link{transition:none}
}

/* Visible keyboard focus */
:where(a,button,input,textarea,select):focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Phones: experience rows stack with the photo first */
@media (max-width:781px){
  .am-row--reverse .am-row__media{order:-1}
}

/* ---------- Mobile menu overlay ---------- */
.wp-block-navigation__responsive-container.is-menu-open{padding:var(--am-gutter)!important;background:#000!important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close{position:absolute;top:1.5rem;right:var(--am-gutter);max-width:none}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{display:flex;flex-direction:column;align-items:center!important;justify-content:center!important;min-height:100%;padding-top:0!important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{align-items:center!important;justify-content:center!important;gap:1.1rem!important;text-align:center}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{justify-content:center!important;opacity:0;animation:am-menu-in .7s cubic-bezier(.2,.7,.2,1) forwards}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(2){animation-delay:.06s}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(3){animation-delay:.12s}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(4){animation-delay:.18s}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(5){animation-delay:.24s}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(6){animation-delay:.3s}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:nth-child(7){animation-delay:.36s}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-family:var(--wp--preset--font-family--instrument-serif);font-size:clamp(2.4rem,10vw,3.4rem);text-transform:uppercase;line-height:1;letter-spacing:0;text-decoration:none}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover{font-style:italic}
.wp-block-navigation__responsive-container.is-menu-open .am-nav-mobile-only{margin-top:2rem}
.wp-block-navigation__responsive-container.is-menu-open .am-nav-mobile-only .wp-block-navigation-item__content{font-family:var(--wp--preset--font-family--space-grotesk);font-size:.85rem;letter-spacing:.22em;padding-bottom:.7rem;border-bottom:1px solid currentColor}
@keyframes am-menu-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item{animation:none;opacity:1}}

/* ---------- Booking form (Contact Form 7) ---------- */
.wpcf7{max-width:34em;margin:clamp(3rem,7vw,5rem) auto 0;text-align:left}
.wpcf7 p{margin:0 0 1.9rem!important;max-width:none!important;font-size:1rem!important;line-height:1.5!important}
.wpcf7 label{display:block;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:var(--wp--preset--color--ash)}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 select,.wpcf7 textarea{display:block;width:100%;margin-top:.6rem;padding:.7rem 0;background:transparent;border:0;border-bottom:1px solid var(--wp--preset--color--ash);border-radius:0;color:var(--wp--preset--color--white);font:inherit;font-size:1.05rem;letter-spacing:0;text-transform:none;transition:border-color .3s ease}
.wpcf7 select{appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 12px) 55%,calc(100% - 6px) 55%;background-size:6px 6px;background-repeat:no-repeat}
.wpcf7 select option{background:#000;color:#fff}
.wpcf7 textarea{min-height:7.5rem;resize:vertical}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:none;border-bottom-color:var(--wp--preset--color--white)}
.wpcf7 .wpcf7-list-item{display:block;margin:.7rem 0 0;text-transform:none;letter-spacing:0;font-size:1rem;color:var(--wp--preset--color--white)}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label,.wpcf7 .wpcf7-radio .wpcf7-list-item-label{font-size:.95rem;line-height:1.5;color:var(--wp--preset--color--white);text-transform:none;letter-spacing:0}
.wpcf7 input[type=checkbox],.wpcf7 input[type=radio]{accent-color:#fff;margin-right:.6rem}
.wpcf7 input[type=submit]{display:block;margin:2.5rem auto 0;padding:.8rem 2.2rem;background:transparent;color:#fff;border:0;border-bottom:1px solid #fff;text-transform:uppercase;letter-spacing:.14em;font:inherit;font-size:.85rem;cursor:pointer;transition:letter-spacing .4s ease}
.wpcf7 input[type=submit]:hover{letter-spacing:.2em}
.wpcf7 .wpcf7-not-valid-tip{color:#ff8a8a;font-size:.8rem;margin-top:.4rem;text-transform:none;letter-spacing:0}
.wpcf7 form .wpcf7-response-output{border:1px solid var(--wp--preset--color--ash);margin:2rem 0 0;padding:1rem;text-align:center;color:#fff}
.wpcf7 fieldset{border:0!important;padding:0!important;margin:0 0 2.6rem!important;min-width:0}
.wpcf7 legend{padding:0;margin-bottom:.2rem;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:var(--wp--preset--color--ash)}

/* ---------- Mailing list form (The Newsletter Plugin) ---------- */
.tnp-subscription,.tnp-subscription-minimal{max-width:30em;margin:2.5rem auto 0;text-align:left}
.tnp-subscription .tnp-field{margin-bottom:1.6rem}
.tnp-subscription label{display:block;text-transform:uppercase;letter-spacing:.16em;font-size:.72rem;color:var(--wp--preset--color--ash);margin-bottom:.5rem}
.tnp-subscription input[type=email],.tnp-subscription input[type=text],.tnp-subscription-minimal input[type=email]{display:block;width:100%;padding:.7rem 0;background:transparent!important;border:0!important;border-bottom:1px solid var(--wp--preset--color--ash)!important;border-radius:0!important;color:#fff!important;font:inherit;font-size:1.05rem}
.tnp-subscription input:focus{outline:none;border-bottom-color:#fff!important}
.tnp-subscription .tnp-privacy-field label{text-transform:none;letter-spacing:0;font-size:.95rem;color:#fff}
.tnp-subscription .tnp-privacy-field a{color:inherit}
.tnp-subscription input[type=checkbox]{accent-color:#fff;margin-right:.6rem}
.tnp-subscription .tnp-field-button{text-align:center}
.tnp-subscription input.tnp-submit,.tnp-subscription-minimal input.tnp-submit{display:inline-block;width:auto!important;margin-top:1rem;padding:.8rem 2.2rem!important;background:transparent!important;color:#fff!important;border:0!important;border-bottom:1px solid #fff!important;border-radius:0!important;text-transform:uppercase;letter-spacing:.14em;font:inherit;font-size:.85rem!important;cursor:pointer;transition:letter-spacing .4s ease}
.tnp-subscription input.tnp-submit:hover{letter-spacing:.2em}

/* ---------- 21+ entry screen ---------- */
.am-age{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:#000;color:#fff;padding:var(--am-gutter);text-align:center}
.am-age[hidden]{display:none}
html.am-age-open,html.am-age-open body{overflow:hidden}
.am-age__inner{max-width:30rem;animation:am-age-in .8s ease both}
.am-age__name{font-family:var(--wp--preset--font-family--instrument-serif);font-size:clamp(2.6rem,7vw,4.5rem);line-height:1;text-transform:uppercase;margin:0}
.am-age__rule{display:block;width:3rem;height:1px;background:#fff;margin:1.8rem auto}
.am-age__text{font-size:1rem;line-height:1.7;color:#d8d8d8;margin:0 0 2.2rem}
.am-age__enter{display:inline-block;padding:.9rem 3rem;background:#fff;color:#000;border:0;border-radius:0;font:inherit;font-size:.85rem;text-transform:uppercase;letter-spacing:.18em;cursor:pointer;transition:letter-spacing .4s ease}
.am-age__enter:hover{letter-spacing:.24em}
.am-age__leave{display:block;margin-top:1.4rem;font-size:.8rem;color:#8e9095}
@keyframes am-age-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.am-age__inner{animation:none}}

.am-content .wp-block-gallery figcaption{text-align:center;font-style:italic;color:var(--wp--preset--color--ash);margin-top:.8rem}
