/*
Theme Name: Costa Coffee Menu
Theme URI: https://costacoffeemenu.example
Author: Costa Coffee Menu
Author URI: https://costacoffeemenu.example
Description: Complete online menu theme for Costa Coffee UK — full drinks and food 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: costa-coffee-menu
Tags: cafe, coffee-shop, menu, food, restaurant, one-column, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES — Costa Coffee brand palette
   ============================================ */
:root {
  --teal: #8b1d31;
  --teal-dark: #6c1626;
  --teal-darker: #4a0f1a;
  --teal-light: #e6b8c2;
  --teal-pale: #fbeef1;
  --brown: #2b1210;
  --brown-light: #6b4a35;
  --tan: #e8c07a;
  --gold: #c99a4e;
  --cream: #fbf7f2;
  --white: #ffffff;
  --off-white: #f7f0ea;
  --text-dark: #241a13;
  --text-mid: #5a4d43;
  --text-light: #8a7d72;
  --border: #ecdfe0;
  --success: #3f7d4c;
  --shadow-sm: 0 2px 8px rgba(139,29,49,0.08);
  --shadow-md: 0 8px 26px rgba(139,29,49,0.14);
  --shadow-lg: 0 16px 50px rgba(139,29,49,0.2);
  --radius: 8px;
  --radius-lg: 14px;
  --font-heading: 'Poppins', 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.22s 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: 800; color: var(--brown); line-height: 1.1; letter-spacing: -0.01em; }
.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 — squared-off, bold, high-street feel
   ============================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 30px; border-radius: 6px; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; transition: var(--transition); cursor: pointer; }
.btn-primary { background: var(--gold); color: var(--brown); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #b3853c; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--teal); }
.btn-gold { background: #fff; color: var(--teal); }
.btn-gold:hover { background: var(--brown); color: #fff; transform: translateY(-2px); }

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

.site-header { background: var(--teal); border-bottom: 4px solid var(--brown); position: sticky; top: 0; z-index: 500; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 900; font-size: 1.25rem; color: #fff; text-transform: uppercase; letter-spacing: -0.01em; }
.logo .logo-mark { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--gold); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 1.4rem; flex-shrink: 0; }
.logo .logo-sub { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.16em; color: var(--tan); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 10px 16px; font-weight: 700; font-size: 0.88rem; color: #fff; border-bottom: 3px solid transparent; transition: var(--transition); letter-spacing: 0.02em; }
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--gold); color: var(--tan); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: 10px 20px; font-size: 0.8rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: #fff; padding: 6px; }

@media (max-width: 900px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85vw); background: var(--teal-darker); 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 rgba(255,255,255,0.15); }
  .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 — bold red block with corner stamp badge
   ============================================ */
.hero { background: var(--teal); color: #fff; padding: 60px 0 60px; position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; max-width: 620px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brown); padding: 7px 16px; border-radius: 4px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.6rem); margin-bottom: 16px; text-transform: uppercase; }
.hero h1 span { color: var(--gold); display: block; }
.hero p { font-size: 1.05rem; opacity: 0.92; max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stamp { position: absolute; top: 40px; right: 40px; width: 140px; height: 140px; border: 3px dashed rgba(255,255,255,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 2; }
.hero-stamp-inner { font-family: var(--font-heading); font-weight: 900; font-size: 0.78rem; text-transform: uppercase; line-height: 1.5; color: #fff; letter-spacing: 0.05em; }
.hero-stamp-inner b { display: block; font-size: 1.5rem; color: var(--gold); }
@media (max-width: 700px) { .hero-stamp { display: none; } }

/* ============================================
   VALUE STRIP
   ============================================ */
.value-strip { background: var(--brown); color: #fff; padding: 14px 0; }
.value-strip-inner { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 700; }
.value-strip-inner span { color: var(--gold); font-family: var(--font-heading); font-weight: 800; }

/* ============================================
   CATEGORY NAV — underline tab style
   ============================================ */
.cat-nav-wrap { background: var(--white); border-bottom: 2px solid var(--border); position: sticky; top: 65px; z-index: 400; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.cat-nav { display: flex; gap: 4px; overflow-x: auto; padding: 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: 16px 18px; font-weight: 700; font-size: 0.82rem; color: var(--text-mid); white-space: nowrap; transition: var(--transition); border-bottom: 3px solid transparent; text-transform: uppercase; letter-spacing: 0.02em; }
.cat-pill:hover { color: var(--teal); }
.cat-pill.active { color: var(--teal); border-bottom-color: var(--teal); }

/* ============================================
   MENU SECTIONS
   ============================================ */
.menu-section { padding: 52px 0 8px; scroll-margin-top: 130px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-eyebrow { display: inline-block; color: var(--teal); background: var(--teal-pale); padding: 5px 14px; border-radius: 4px; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-transform: uppercase; }
.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(210px, 1fr)); gap: 8px 20px; margin-bottom: 20px; }

/* Circular badge-style product cards — echoes Costa's round logo motif */
.product-card { background: transparent; border-radius: 0; overflow: visible; box-shadow: none; border: none; transition: var(--transition); display: flex; flex-direction: column; align-items: center; text-align: center; padding: 18px 8px; }
.product-card:hover { transform: translateY(-4px); }
.product-img-wrap { position: relative; width: 148px; height: 148px; border-radius: 50%; overflow: hidden; background: var(--teal-pale); border: 4px solid #fff; box-shadow: var(--shadow-md); margin-bottom: 14px; }
.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.08); }
.product-price-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 4px 13px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,0.25); border: 2px solid #fff; white-space: nowrap; }
.product-tag { position: absolute; top: 2px; right: 2px; background: var(--gold); color: #fff; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; z-index: 2; }
.product-body { padding: 8px 4px 0; flex: 1; display: flex; flex-direction: column; }
.product-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.92rem; color: var(--brown); margin-bottom: 4px; text-transform: uppercase; letter-spacing: -0.01em; }
.product-desc { font-size: 0.8rem; color: var(--text-light); flex: 1; }

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

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

/* ============================================
   FEATURE / ABOUT SECTIONS
   ============================================ */
.page-hero { background: var(--teal); color: #fff; padding: 60px 0; text-align: center; position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 12px; text-transform: uppercase; }
.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.8rem; margin-bottom: 16px; text-transform: uppercase; }
.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: 4px 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-top: 4px solid var(--teal); }
.value-box .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--teal-pale); color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 14px; }
.value-box h3 { font-size: 1rem; margin-bottom: 8px; text-transform: uppercase; }
.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(--teal); color: #fff; border-radius: var(--radius-lg); padding: 34px; }
.contact-info-card h3 { color: #fff; margin-bottom: 16px; text-transform: uppercase; }
.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.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gold); }
.contact-row a, .contact-row span { font-size: 0.92rem; opacity: 0.95; }
.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.15); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-row a:hover { background: var(--gold); }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 6px; color: var(--brown); text-transform: uppercase; letter-spacing: 0.02em; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 6px; 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: 6px; 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: var(--teal); }
.gift-card.brown { background: var(--brown); }
.gift-card.gold { background: var(--gold); }
.gift-card .amt { font-family: var(--font-heading); font-size: 2rem; font-weight: 900; }
.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(--brown); 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: 900; font-size: 1.2rem; color: #fff; margin-bottom: 12px; text-transform: uppercase; }
.footer-grid p { font-size: 0.88rem; opacity: 0.85; margin-bottom: 14px; }
.footer-grid h4 { color: var(--gold); font-family: var(--font-body); font-size: 0.82rem; 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(130px, 1fr)); gap: 4px 12px; }
  .product-img-wrap { width: 108px; height: 108px; }
  .product-name { font-size: 0.8rem; }
  .hero { padding: 40px 0; }
  .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; }
