/*
Theme Name: Caribou Coffee Menu
Theme URI: https://cariboucoffeemenu.example
Author: Caribou Coffee Menu
Author URI: https://cariboucoffeemenu.example
Description: Complete online menu theme for Caribou Coffee — full drinks, food and bakery menu with prices and images, gift cards, about and contact pages. Fast, mobile-first and SEO optimized.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: caribou-coffee-menu
Tags: cafe, coffee-shop, menu, food, restaurant, one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --teal: #2d8c9e;
  --teal-dark: #1f6373;
  --teal-darker: #164a56;
  --teal-light: #a8d0d6;
  --teal-pale: #e7f2f3;
  --brown: #3d2b1f;
  --brown-light: #6b4a35;
  --tan: #d9b98a;
  --gold: #c99a4e;
  --cream: #faf7f2;
  --white: #ffffff;
  --off-white: #f6f2ec;
  --text-dark: #241a13;
  --text-mid: #5a4d43;
  --text-light: #8a7d72;
  --border: #e6ddd0;
  --success: #3f7d4c;
  --shadow-sm: 0 2px 8px rgba(31,99,115,0.08);
  --shadow-md: 0 6px 24px rgba(31,99,115,0.12);
  --shadow-lg: 0 12px 48px rgba(31,99,115,0.18);
  --radius: 10px;
  --radius-lg: 20px;
  --font-heading: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; color: var(--brown); line-height: 1.15; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--teal-dark); color: #fff; padding: 10px 18px; z-index: 9999; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ============================================
   BUTTONS
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 28px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b3853c; transform: translateY(-2px); }

/* ============================================
   HEADER
   ============================================ */
.top-banner { background: var(--teal-dark); color: #fff; text-align: center; font-size: 0.85rem; padding: 9px 16px; }
.top-banner a { text-decoration: underline; font-weight: 600; }

.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 500; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; color: var(--teal-dark); }
.logo .logo-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.logo .logo-sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.62rem; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a { padding: 10px 16px; font-weight: 700; font-size: 0.92rem; color: var(--brown); border-radius: 999px; transition: var(--transition); letter-spacing: 0.02em; }
.main-nav a:hover, .main-nav a.active { background: var(--teal-pale); color: var(--teal-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 22px; font-size: 0.86rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--teal-dark); padding: 6px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85vw); background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px; box-shadow: var(--shadow-lg); transition: right 0.3s ease; overflow-y: auto; }
  .main-nav.open { right: 0; }
  .main-nav a { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(20,20,20,0.5); z-index: 400; }
  .nav-backdrop.open { display: block; }
  .header-actions .btn-outline { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero { background: linear-gradient(135deg, var(--teal-darker) 0%, var(--teal) 100%); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.hero-inner { position: relative; z-index: 2; max-width: 720px; }
.hero-eyebrow { display: inline-block; background: rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.hero h1 span { color: var(--tan); }
.hero p { font-size: 1.05rem; opacity: 0.92; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero-actions .btn-outline:hover { background: #fff; color: var(--teal-dark); }

/* ============================================
   VALUE STRIP
   ============================================ */
.value-strip { background: var(--brown); color: #fff; padding: 12px 0; }
.value-strip-inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: 0.86rem; font-weight: 600; }
.value-strip-inner span { color: var(--tan); }

/* ============================================
   CATEGORY NAV (sticky pills)
   ============================================ */
.cat-nav-wrap { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 65px; z-index: 400; box-shadow: 0 2px 6px rgba(0,0,0,0.03); }
.cat-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.cat-nav::-webkit-scrollbar { height: 5px; }
.cat-nav::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 4px; }
.cat-pill { flex-shrink: 0; padding: 9px 18px; border-radius: 999px; background: var(--off-white); font-weight: 700; font-size: 0.85rem; color: var(--brown); white-space: nowrap; transition: var(--transition); border: 1px solid transparent; }
.cat-pill:hover, .cat-pill.active { background: var(--teal); color: #fff; }

/* ============================================
   MENU SECTIONS
   ============================================ */
.menu-section { padding: 52px 0 8px; scroll-margin-top: 130px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-eyebrow { display: block; color: var(--gold); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--text-mid); max-width: 620px; margin: 10px auto 0; font-size: 0.95rem; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; margin-bottom: 20px; }

.product-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--teal-pale); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.07); }
.product-price-badge { position: absolute; top: 10px; right: 10px; background: var(--brown); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.product-tag { position: absolute; top: 10px; left: 10px; background: var(--gold); color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.product-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; color: var(--brown); margin-bottom: 4px; }
.product-desc { font-size: 0.83rem; color: var(--text-light); flex: 1; }

.sub-title { font-size: 1.1rem; font-weight: 800; color: var(--teal-dark); margin: 30px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 44px 0; }

/* ============================================
   VALUE MENU (special cards)
   ============================================ */
.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.value-card { background: var(--teal-pale); border: 1px solid var(--teal-light); border-radius: var(--radius-lg); padding: 18px; text-align: center; transition: var(--transition); }
.value-card:hover { background: #fff; box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-card img { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.value-price { font-family: var(--font-heading); font-weight: 800; color: var(--teal-dark); font-size: 1.3rem; }
.value-name { font-weight: 700; font-size: 0.88rem; color: var(--brown); margin-top: 4px; }

/* ============================================
   FEATURE / ABOUT SECTIONS
   ============================================ */
.page-hero { background: linear-gradient(135deg, var(--teal-darker), var(--teal)); color: #fff; padding: 60px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; }
.page-hero p { opacity: 0.92; max-width: 600px; margin: 0 auto; }

.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 64px 0; }
.about-grid img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.about-grid h2 { font-size: 1.9rem; margin-bottom: 16px; }
.about-grid p { color: var(--text-mid); margin-bottom: 14px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; padding: 40px 0; } }

.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding: 20px 0 64px; }
.value-box { background: #fff; border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.value-box .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-pale); color: var(--teal-dark); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 14px; }
.value-box h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-box p { font-size: 0.88rem; color: var(--text-mid); }

/* ============================================
   CONTACT
   ============================================ */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; padding: 60px 0; }
@media (max-width: 850px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--brown); color: #fff; border-radius: var(--radius-lg); padding: 34px; }
.contact-info-card h3 { color: #fff; margin-bottom: 16px; }
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-row .icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--tan); }
.contact-row a, .contact-row span { font-size: 0.92rem; opacity: 0.92; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-row a:hover { background: var(--teal); }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--brown); }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 8px; background: var(--off-white); transition: var(--transition); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px var(--teal-pale); }
.form-row textarea { min-height: 130px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-msg { padding: 12px 16px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; margin-bottom: 16px; display: none; }
.form-msg.success { background: #e6f4e9; color: var(--success); display: block; }
.form-msg.error { background: #fbe7e5; color: #c0392b; display: block; }

/* ============================================
   GIFT CARDS
   ============================================ */
.gift-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; padding: 20px 0 60px; }
.gift-card { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; color: #fff; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; transition: var(--transition); }
.gift-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow-lg); }
.gift-card.teal { background: linear-gradient(135deg, var(--teal-dark), var(--teal)); }
.gift-card.brown { background: linear-gradient(135deg, #2a1c12, var(--brown-light)); }
.gift-card.gold { background: linear-gradient(135deg, #9c7530, var(--gold)); }
.gift-card .amt { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; }
.gift-how { background: var(--teal-pale); border-radius: var(--radius-lg); padding: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 20px 0 60px; }
@media (max-width: 700px) { .gift-how { grid-template-columns: 1fr; } }
.gift-how-step { text-align: center; }
.gift-how-step .num { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--teal-darker); color: rgba(255,255,255,0.85); padding: 56px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.3rem; color: #fff; margin-bottom: 12px; }
.footer-grid p { font-size: 0.88rem; opacity: 0.85; margin-bottom: 14px; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a { font-size: 0.88rem; opacity: 0.85; transition: var(--transition); }
.footer-grid ul a:hover { opacity: 1; color: var(--tan); }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; text-align: center; font-size: 0.8rem; opacity: 0.7; }
.footer-bottom a { text-decoration: underline; }

/* ============================================
   MISC
   ============================================ */
.disclaimer-bar { background: var(--off-white); padding: 20px 0; border-top: 1px solid var(--border); }
.disclaimer-bar p { text-align: center; font-size: 0.8rem; color: var(--text-light); max-width: 820px; margin: 0 auto; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); font-size: 1.2rem; opacity: 0; pointer-events: none; transition: var(--transition); z-index: 300; }
.back-to-top.show { opacity: 1; pointer-events: auto; }

@media (max-width: 600px) {
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .product-name { font-size: 0.9rem; }
  .hero { padding: 44px 0 40px; }
  .menu-section { padding: 36px 0 4px; }
}

/* animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp 0.6s ease both; }
