/*
Theme Name: Tots Ice Cream
Theme URI: https://totsicecream.com/
Author: Tots Ice Cream
Description: Lightweight, accessible, mobile-first classic theme for Tots Ice Cream (Penn Laird, VA). Brand palette, self-hosted fonts, sticky mobile Order Ahead bar, no page builder, no jQuery. Pair with the Tots Site Setup plugin.
Version: 1.0.3
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tots-theme
Tags: one-column, custom-logo, custom-menu, accessibility-ready, block-styles, wide-blocks
*/

@font-face{font-family:"Nunito";src:url(assets/fonts/nunito-latin-var.woff2) format("woff2");font-weight:400 800;font-style:normal;font-display:swap}
@font-face{font-family:"Caveat Brush";src:url(assets/fonts/caveat-brush-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}

:root{
  --tots-pink:#FBC5C5;--tots-mint:#9BD3AD;--tots-cherry:#C8102E;--tots-cherry-dark:#A00D25;
  --tots-cone:#D7944D;--tots-fudge:#5A0C0A;--tots-text:#1A1A1A;--tots-cream:#FFF8F0;--tots-valley-mint:#2F6B5E;
  --font-body:"Nunito",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --font-display:"Caveat Brush","Marker Felt","Comic Sans MS",cursive;
  --wrap:72rem;--gap:clamp(1rem,3vw,2rem);--radius:1rem;--bar-h:3.75rem;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scroll-padding-top:5rem}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
body{margin:0;background:var(--tots-cream);color:var(--tots-text);font-family:var(--font-body);font-size:1.0625rem;line-height:1.6;padding-bottom:var(--bar-h)}
@media (min-width:60em){body{padding-bottom:0}}
img,svg,video,iframe{max-width:100%;height:auto}
img{display:block;border-radius:var(--radius)}
a{color:var(--tots-valley-mint);text-underline-offset:.15em}
a:hover{color:var(--tots-cherry)}
:focus-visible{outline:3px solid var(--tots-cherry);outline-offset:3px;border-radius:4px}
h1,h2,h3{line-height:1.15;margin:0 0 .5em;color:var(--tots-text)}
h1,h2{font-family:var(--font-display);font-weight:400;letter-spacing:.01em}
h1{font-size:clamp(2.4rem,7vw,4rem)}
h2{font-size:clamp(1.9rem,5vw,2.8rem)}
h3{font-size:1.2rem;font-weight:800}
h3 a{color:inherit;text-decoration:none}
h3 a:hover{color:var(--tots-cherry)}
p{margin:0 0 1rem}
address{font-style:normal}
.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!important;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;position:fixed!important;top:.5rem;left:.5rem;z-index:1000;background:#fff;color:var(--tots-text);padding:.75rem 1rem;border-radius:.5rem}

/* Buttons */
.btn,.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:2.875rem;padding:.65rem 1.35rem;border-radius:999px;font-weight:800;font-size:1rem;line-height:1.2;text-decoration:none;border:2px solid transparent;cursor:pointer;font-family:inherit;transition:background-color .15s,transform .15s}
.btn--cherry,.is-style-cherry .wp-block-button__link,.wp-block-button:not([class*=is-style]) .wp-block-button__link{background:var(--tots-cherry);color:#fff}
.btn--cherry:hover,.is-style-cherry .wp-block-button__link:hover,.wp-block-button:not([class*=is-style]) .wp-block-button__link:hover{background:var(--tots-cherry-dark);color:#fff;transform:translateY(-1px)}
.is-style-mint .wp-block-button__link{background:var(--tots-valley-mint);color:#fff}
.is-style-mint .wp-block-button__link:hover{background:#23544a;color:#fff}
.is-style-outline .wp-block-button__link{background:transparent;color:var(--tots-text);border-color:var(--tots-text)}
.is-style-outline .wp-block-button__link:hover{background:var(--tots-text);color:#fff}
.wp-block-buttons{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.25rem 0}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--tots-pink);box-shadow:0 2px 0 rgba(0,0,0,.06)}
.site-header__inner{max-width:var(--wrap);margin:0 auto;padding:.4rem var(--gap);display:flex;align-items:center;gap:1rem;flex-wrap:wrap}
.site-logo{display:block;flex:0 0 auto}
.site-logo__img{width:3.75rem;height:3.75rem;border-radius:50%}
@media (min-width:60em){.site-logo__img{width:4.75rem;height:4.75rem}}
.nav-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:.4rem;background:transparent;border:2px solid var(--tots-text);border-radius:999px;padding:.45rem .9rem;font:inherit;font-weight:800;color:var(--tots-text);cursor:pointer;min-height:2.75rem}
.site-nav{display:none;flex-basis:100%}
.site-nav.is-open{display:block}
.site-nav .menu{list-style:none;margin:0;padding:.25rem 0 .75rem;display:flex;flex-direction:column}
.site-nav a{display:block;padding:.7rem .25rem;font-weight:800;font-size:1.1rem;color:var(--tots-text);text-decoration:none;border-bottom:1px solid rgba(0,0,0,.08)}
.site-nav .current-menu-item>a,.site-nav a:hover{color:var(--tots-cherry)}
.site-header__actions{display:none}
@media (min-width:60em){
  .nav-toggle{display:none}
  .site-nav{display:block!important;flex-basis:auto;margin-left:auto}
  .site-nav .menu{flex-direction:row;gap:.25rem;padding:0}
  .site-nav a{border:0;padding:.5rem .8rem;border-radius:999px}
  .site-nav .current-menu-item>a{background:rgba(255,255,255,.55)}
  .site-header__actions{display:flex;align-items:center;gap:.9rem}
  .header-call{display:inline-flex;align-items:center;gap:.35rem;font-weight:800;color:var(--tots-text);text-decoration:none}
}

/* Mobile sticky bar */
.mobile-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;height:var(--bar-h);display:grid;grid-template-columns:1fr 1fr 1.4fr;background:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.12);padding-bottom:env(safe-area-inset-bottom)}
.mobile-bar a{display:flex;align-items:center;justify-content:center;gap:.4rem;font-weight:800;color:var(--tots-text);text-decoration:none;font-size:.95rem}
.mobile-bar__order{background:var(--tots-cherry);color:#fff!important}
@media (min-width:60em){.mobile-bar{display:none}}

/* Dated notice */
.tots-notice{background:var(--tots-cherry);color:#fff;text-align:center;font-weight:800;padding:.6rem var(--gap)}
.tots-notice p{margin:0;max-width:var(--wrap);margin-inline:auto}

/* Layout */
.site-main{display:block;outline:0}
.entry{max-width:var(--wrap);margin:0 auto;padding:clamp(1.5rem,4vw,3rem) var(--gap) 3rem}
.entry-content>*+*{margin-top:0}
.tots-section{margin:0 0 clamp(2rem,5vw,3.5rem)}
.tots-band{padding:clamp(1.5rem,4vw,3rem);border-radius:calc(var(--radius)*1.5)}
.tots-band--pink{background:var(--tots-pink)}
.tots-band--mint{background:var(--tots-mint)}
.tots-band--cream{background:#fff}
.tots-hero,.tots-page-hero{margin-bottom:clamp(2rem,5vw,3rem)}
.tots-eyebrow{font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem;color:var(--tots-valley-mint);margin-bottom:.25rem}
.tots-lead{font-size:1.2rem}
.tots-note{font-size:.95rem;font-style:italic;color:#444}
.tots-price{font-size:1.15rem;color:var(--tots-fudge)}
.tots-badge{display:inline-block;background:var(--tots-cone);color:var(--tots-text);font-size:.8rem;font-weight:800;padding:.1rem .55rem;border-radius:999px;margin-left:.35rem;vertical-align:middle;white-space:nowrap}
.tots-cta-band{background:var(--tots-fudge);color:#fff;border-radius:calc(var(--radius)*1.5);padding:2rem;text-align:center}
.tots-cta-band__text{font-family:var(--font-display);font-size:clamp(1.6rem,4vw,2.2rem);margin:0}
.tots-cta-band .wp-block-buttons{justify-content:center}
.tots-giftup:empty{display:none}
.tots-draft-note{background:#fff3cd;border:2px dashed var(--tots-cone);padding:1rem;border-radius:var(--radius)}

/* Columns (mobile first; core CSS also loads) */
.wp-block-columns{display:flex;flex-wrap:wrap;gap:var(--gap);align-items:center;margin:0 0 1.5rem}
.wp-block-column{flex:1 1 100%;min-width:0}
@media (min-width:48em){.wp-block-columns{flex-wrap:nowrap}.wp-block-column{flex-basis:0;flex-grow:1}}
.tots-tiles,.tots-gallery{align-items:stretch}
@media (max-width:48.8125em){
  .wp-block-columns.tots-tiles,.wp-block-columns.tots-gallery{flex-wrap:wrap!important}
  .wp-block-columns.tots-tiles:not(.tots-x)>.wp-block-column,.wp-block-columns.tots-gallery:not(.tots-x)>.wp-block-column{flex-basis:calc(50% - var(--gap)/2)!important;flex-grow:0}
  .wp-block-table th,.wp-block-table td{padding:.5rem .55rem;font-size:.95rem}
  .wp-block-table td:first-child{min-width:6.5rem;font-weight:700}
}
.tots-tiles .wp-block-column{background:#fff;border-radius:var(--radius);padding:.75rem .75rem 1rem;box-shadow:0 2px 0 rgba(0,0,0,.05)}
.tots-tiles .wp-block-image{margin:0 0 .75rem}
.tots-tiles img,.tots-gallery img{width:100%;aspect-ratio:1/1;object-fit:cover}
.tots-gallery .wp-block-image{margin:0}
.wp-block-image{margin:0 0 1rem}
.wp-block-image img{height:auto}
.tots-section .wp-block-column>.wp-block-image img{width:100%;max-height:30rem;object-fit:cover}
.tots-hero img,.tots-page-hero img{width:100%;aspect-ratio:4/3;object-fit:cover}

/* Today strip */
.tots-today{background:var(--tots-mint);border-radius:999px;padding:.6rem 1.25rem;margin:0 0 2.5rem;text-align:center;font-weight:800}
.tots-today p{margin:0}
.tots-today__link{margin-left:.5rem;color:var(--tots-text)}

/* Flavors */
.entry-content .tots-flavors{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(14rem,1fr));gap:1rem}
.tots-flavor{background:#fff;border-radius:var(--radius);padding:1rem 1.15rem;border-top:6px solid var(--tots-pink)}
.tots-flavor:nth-child(3n+2){border-top-color:var(--tots-mint)}
.tots-flavor:nth-child(3n){border-top-color:var(--tots-cone)}
.tots-flavor__name{margin:0 0 .25rem;font-size:1.15rem}
.tots-flavor__desc{margin:0;font-size:.98rem}
.tots-flavor__note{margin:.4rem 0 0;font-size:.85rem;font-weight:800;color:var(--tots-fudge)}
.tots-flavors__month{font-weight:800;color:var(--tots-valley-mint)}

/* Tables */
.wp-block-table{margin:0 0 1rem;overflow-x:auto}
.wp-block-table table,.tots-hours{width:100%;border-collapse:collapse;background:#fff;border-radius:var(--radius);overflow:hidden}
.wp-block-table th,.wp-block-table td,.tots-hours th,.tots-hours td{padding:.6rem .85rem;text-align:left;border-bottom:1px solid rgba(0,0,0,.08);vertical-align:top}
.wp-block-table thead th{background:var(--tots-fudge);color:#fff;font-weight:800}
.wp-block-table td:last-child{white-space:nowrap;font-weight:800}
.tots-hours th{font-weight:800;width:40%}
.wp-block-table figcaption{font-size:.9rem}

/* Lists */
.entry-content ul,.entry-content ol{padding-left:1.35rem;margin:0 0 1rem}
.entry-content li{margin-bottom:.35rem}

/* FAQ */
.tots-faq h3{margin-top:1.5rem}

/* Map */
.tots-map{background:#fff;border-radius:var(--radius);min-height:14rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;padding:1rem;text-align:center}
.tots-map iframe{width:100%;height:22rem;border:0;border-radius:var(--radius)}
.tots-map__btn{font:inherit;font-weight:800;background:var(--tots-valley-mint);color:#fff;border:0;border-radius:999px;padding:.7rem 1.4rem;cursor:pointer;min-height:2.75rem}
.tots-map.is-loaded{padding:0;display:block}
.tots-map.is-loaded .tots-map__alt{padding:.5rem 1rem}

/* Forms */
.tots-form{display:grid;gap:1rem;max-width:40rem}
.tots-field label,.tots-field legend{display:block;font-weight:800;margin-bottom:.3rem}
.tots-field fieldset{border:0;margin:0;padding:0}
.tots-field input:not([type=radio]),.tots-field select,.tots-field textarea{width:100%;font:inherit;padding:.7rem .85rem;border:2px solid #6b6b6b;border-radius:.6rem;background:#fff;color:var(--tots-text);min-height:2.875rem}
.tots-field input:focus,.tots-field select:focus,.tots-field textarea:focus{border-color:var(--tots-valley-mint);outline:3px solid rgba(47,107,94,.35);outline-offset:0}
.tots-radio{display:inline-flex!important;align-items:center;gap:.35rem;font-weight:600!important;margin-right:1.25rem;min-height:2.75rem}
.tots-radio input{width:1.25rem;height:1.25rem}
.tots-req{color:var(--tots-cherry)}
.tots-form__req-note{font-size:.9rem;margin:0}
.tots-form__msg{padding:1rem;border-radius:var(--radius);font-weight:800}
.tots-form__msg--ok{background:#fff;border-left:6px solid var(--tots-valley-mint)}
.tots-form__msg--err{background:#fff;border-left:6px solid var(--tots-cherry)}
.tots-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Footer */
.site-footer{background:var(--tots-fudge);color:#fff;padding:3rem var(--gap) 1.5rem}
.site-footer a{color:#fff}
.site-footer a:hover{color:var(--tots-pink)}
.site-footer__inner{max-width:var(--wrap);margin:0 auto;display:grid;gap:2rem;grid-template-columns:1fr}
@media (min-width:48em){.site-footer__inner{grid-template-columns:repeat(3,1fr)}}
.site-footer__title{color:var(--tots-pink);font-size:1.9rem}
.tots-hours--footer{background:transparent}
.tots-hours--footer th,.tots-hours--footer td{border-color:rgba(255,255,255,.18);padding:.35rem 0;color:#fff}
.footer-menu{list-style:none;margin:0 0 1rem;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:.25rem 1rem}
.footer-menu a{display:inline-block;padding:.35rem 0}
.footer-map{display:inline-flex;align-items:center;gap:.35rem}
.social{display:flex;gap:.75rem}
.social a{display:inline-flex;width:2.75rem;height:2.75rem;align-items:center;justify-content:center;border-radius:50%;background:rgba(255,255,255,.12)}
.social .icon{width:1.4rem;height:1.4rem}
.site-footer__area{max-width:var(--wrap);margin:2rem auto 0;font-size:.95rem;text-align:center;opacity:.95}
.site-footer__area a{color:#fff;text-decoration:underline;text-underline-offset:.2em}
.site-footer__copy{max-width:var(--wrap);margin:2rem auto 0;padding-top:1rem;border-top:1px solid rgba(255,255,255,.18);font-size:.9rem;text-align:center}
.site-footer .btn--cherry{border-color:#fff}
.site-footer__credit{display:block;margin-top:.4rem;font-size:.8rem;opacity:.85}
.site-footer__credit a{text-decoration:underline;text-underline-offset:.2em}
@media (min-width:48em){.site-footer__credit{display:inline;margin:0 0 0 .75em;padding-left:.75em;border-left:1px solid rgba(255,255,255,.35)}}
.card{background:#fff;border-radius:var(--radius);padding:1.25rem;margin-bottom:1rem}

/* 1.0.3 (Nov 1, 2026): on phones the footer clears the fixed mobile bar, and footer links are 44px tall to tap.
   "html body" outranks WordPress's global-styles body{padding:0}, which prints after this file and zeroed the old rule. */
@media (max-width:59.99em){
html body{padding-bottom:calc(60px + env(safe-area-inset-bottom))}
.site-footer .tots-nap a,.site-footer .footer-map{display:inline-flex;align-items:center;min-height:44px}
.site-footer .footer-menu{gap:0 1rem}
.site-footer .footer-menu a{display:inline-flex;align-items:center;min-height:44px;padding:0}
.site-footer .site-footer__area a{display:inline-flex;align-items:center;min-height:44px;vertical-align:middle}
.site-footer .site-footer__credit{margin-top:0}
.site-footer .site-footer__credit a{display:inline-flex;align-items:center;min-height:44px}
}
