/* =====================================================================
   Café 31 Bakery & Food — shared styles for every page of the site
   ===================================================================== */

/* ===== BRAND COLOURS ===== */
:root {
  --green: #87a65a;       /* logo green */
  --green-dark: #5a7636;  /* darker logo green, for buttons and links */
  --green-soft: #e9efdd;
  --cream: #fbf7ef;
  --bg: #f6ecdf;          /* main page background: light tint of the logo's latte beige */
  --bg-alt: #e6eed9;      /* alternate sections: light tint of the logo green */
  --wood: #ebcda7;        /* logo latte beige */
  --ink: #402c13;         /* logo coffee brown */
  --muted: #6b6a63;
  --badge: #b8432c;       /* "Best seller" stamp red, as on the printed menu */
  --line: #e7e1d3;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--green-dark); margin-bottom: .8em; }

/* Language switching: only the active language is shown */
[data-lang="es"] [lang="en"], [data-lang="en"] [lang="es"] { display: none !important; }

/* ===== HEADER ===== */
header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo img { display: block; height: 48px; width: auto; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
nav a:hover { color: var(--green-dark); }
.lang { border: 1px solid var(--green-dark); background: none; color: var(--green-dark); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
@media (max-width: 640px) { nav a { display: none; } }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--green-dark); }
.btn.primary { background: var(--green-dark); color: #fff; }
.btn.ghost { color: var(--green-dark); background: transparent; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ===== PHOTOS ===== */
img.photo { display: block; width: 100%; object-fit: cover; border-radius: var(--radius); background: #fff; }
.hero img.photo { aspect-ratio: 5 / 6; max-height: 560px; box-shadow: 0 10px 30px rgba(64,44,19,.10); }
.card img.photo { aspect-ratio: 3 / 2; border-radius: 0; }
.gallery img.photo { aspect-ratio: 1 / 1; }

/* ===== HOME: HERO ===== */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.quick { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 6px; font-size: .95rem; font-weight: 500; }
.quick > span::before { content: "•"; color: var(--green); margin-right: 8px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero img.photo { order: -1; } }

/* ===== HOME: MENU CARDS (each one links to its category page) ===== */
#carta { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover, a.card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(64,44,19,.13); }
.card div.txt { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.card .more { margin-top: auto; font-weight: 600; font-size: .92rem; color: var(--green-dark); }
.card .more::after { content: " →"; display: inline-block; transition: transform .2s ease; }
a.card:hover .more::after { transform: translateX(4px); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* ===== HOME: ABOUT ===== */
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.facts li { padding-left: 28px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-radius: 0 10px 0 10px; background: var(--green); }
@media (max-width: 820px) { .about .wrap { grid-template-columns: 1fr; } }

/* ===== HOME: GALLERY ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } }

/* ===== HOME: VISIT ===== */
#visita { background: var(--green-dark); color: #fff; }
#visita .eyebrow, #visita a { color: #dbe8d5; }
#visita .wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.hours { width: 100%; border-collapse: collapse; margin: 6px 0 22px; }
.hours td { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.hours td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
#visita .btn { border-color: #fff; background: #fff; color: var(--green-dark); }
iframe { width: 100%; height: 400px; border: 0; border-radius: var(--radius); }
@media (max-width: 820px) { #visita .wrap { grid-template-columns: 1fr; } iframe { height: 300px; } }

/* ===== CATEGORY PAGES ===== */
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; text-decoration: none; margin-bottom: 22px; }
.crumb::before { content: "←"; }
.cat-hero { padding: 40px 0 56px; }
.cat-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.cat-hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 32em; }
.cat-hero img.photo { aspect-ratio: 4 / 3; box-shadow: 0 10px 30px rgba(64,44,19,.10); }
@media (max-width: 820px) { .cat-hero .wrap { grid-template-columns: 1fr; gap: 28px; } .cat-hero img.photo { order: -1; } }

.note { display: inline-block; background: var(--green-soft); color: var(--green-dark); border-radius: 10px; padding: 10px 14px; font-size: .92rem; font-weight: 500; margin: 4px 0 0; }

.products-section { background: var(--bg-alt); padding: 56px 0; }
.products-section .note { background: #fff; }
.products-section + .products-section { padding-top: 0; }
.products-section h2 { margin-bottom: 26px; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .products { grid-template-columns: 1fr; } }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.product.best { border-color: #e6c3b6; background: #fffaf6; }
.p-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.p-head h3 { margin: 0; font-size: 1.15rem; }
.price { font-family: Fraunces, Georgia, serif; font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: var(--green-dark); }
.product p { margin: 0; color: var(--muted); font-size: .95rem; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; background: var(--badge); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge::before { content: "★"; font-size: .8rem; }

.cat-cta { padding: 56px 0 64px; }
.cat-cta h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cat-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.cat-links a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; }
.cat-links a:hover { border-color: var(--green-dark); color: var(--green-dark); }

/* ===== FOOTER ===== */
footer { padding: 32px 0; font-size: .9rem; background: var(--ink); color: var(--wood); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

/* Instagram button */
.ig-btn { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 4px 14px rgba(64,44,19,.08); transition: transform .2s ease, box-shadow .2s ease; }
.ig-btn:hover, .ig-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(214,41,118,.22); }
.ig-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ig-icon svg { width: 26px; height: 26px; }
.ig-text { display: flex; flex-direction: column; line-height: 1.25; }
.ig-text small { font-size: .78rem; color: var(--muted); }
.ig-text strong { font-size: 1.02rem; font-weight: 600; }
