/*
Theme Name: Corner Market
Template: twentytwentyfive
Description: Example site theme for a Cyprus mini market (TillMark website service).
Version: 1.0
Text Domain: corner-market
*/

:root { --tm-accent: #1e5b3a; --tm-cta: #d9412b; --tm-ink: #1b1f1c; --tm-radius: 999px; --cm-green: #1e5b3a; --cm-green-2: #164a2f; --cm-red: #d9412b; --cm-sun: #ffcf4a; --cm-cream: #fbf7ef; --cm-ink: #1b1f1c; --cm-muted: #5d6660; --cm-line: #e7e1d4; }

body { background: var(--cm-cream); }
.wp-site-blocks { padding-top: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Header ---------- */
.cm-topbar { background: var(--cm-green-2); color: #e7f1ea; font-size: 0.82rem; padding: 7px 5vw !important; }
.cm-topbar p { margin: 0; }
.cm-topbar a { color: #fff; text-decoration: none; }
.cm-header { background: #fff; padding: 14px 5vw !important; border-bottom: 1px solid var(--cm-line); position: sticky; top: 0; z-index: 50; box-shadow: 0 6px 18px -14px rgba(0,0,0,.35); }
.cm-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cm-ink); }
.cm-logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--cm-green); display: grid; place-items: center; }
.cm-logo-text strong { display: block; font-family: var(--wp--preset--font-family--platypi); font-size: 1.35rem; line-height: 1; }
.cm-logo-text span { font-size: 0.72rem; color: var(--cm-muted); letter-spacing: .08em; text-transform: uppercase; }
.cm-header .wp-block-navigation { font-weight: 600; font-size: 0.98rem; gap: 26px; }
.cm-header .wp-block-navigation a:hover { color: var(--cm-green); }
.cm-cta .wp-block-button__link { background: var(--cm-red); border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 0.95rem; }
.cm-cta .wp-block-button__link:hover { background: #bf3421; }

/* ---------- Buttons ---------- */
.cm-btn-sun .wp-block-button__link { background: var(--cm-sun); color: var(--cm-ink); border-radius: 999px; font-weight: 700; padding: 15px 28px; }
.cm-btn-ghost .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.8); border-radius: 999px; font-weight: 700; padding: 13px 26px; }
.cm-btn-green .wp-block-button__link { background: var(--cm-green); color: #fff; border-radius: 999px; font-weight: 700; padding: 14px 26px; }
.cm-btn-outline .wp-block-button__link { background: transparent; color: var(--cm-green); border: 2px solid var(--cm-green); border-radius: 999px; font-weight: 700; padding: 12px 24px; }

/* ---------- Hero ---------- */
.cm-hero { position: relative; min-height: 600px; display: flex; align-items: center; padding: 90px 5vw !important; color: #fff;
  background: linear-gradient(95deg, rgba(14,40,26,.92) 0%, rgba(14,40,26,.78) 42%, rgba(14,40,26,.15) 100%), url(assets/img/hero.webp) center/cover no-repeat; }
.cm-hero > * { max-width: 640px; }
.cm-eyebrow { color: var(--cm-sun); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; margin: 0 0 14px; }
.cm-hero h1 { font-family: var(--wp--preset--font-family--platypi); font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; color: #fff; margin: 0 0 18px; font-weight: 700; }
.cm-hero .cm-lead { font-size: 1.15rem; color: #e3eee7; margin: 0 0 28px; max-width: 540px; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px !important; }
.cm-chips p { margin: 0; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 7px 14px; font-size: .85rem; backdrop-filter: blur(4px); }

/* ---------- Sections ---------- */
.cm-section { padding: 80px 5vw !important; }
.cm-section-tight { padding: 56px 5vw !important; }
.cm-bg-white { background: #fff; }
.cm-bg-green { background: var(--cm-green); color: #fff; }
.cm-kicker { color: var(--cm-red); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin: 0 0 8px !important; }
.cm-h2 { font-family: var(--wp--preset--font-family--platypi); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; margin: 0 0 12px !important; font-weight: 700; }
.cm-sub { color: var(--cm-muted); font-size: 1.05rem; margin: 0 0 36px !important; max-width: 620px; }
.cm-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.cm-head-row .cm-sub { margin-bottom: 0 !important; }

/* Feature strip */
.cm-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cm-feature { display: flex; gap: 14px; align-items: flex-start; }
.cm-feature-icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: #eaf3ec; display: grid; place-items: center; font-size: 1.5rem; margin: 0 !important; }
.cm-feature h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.cm-feature p { margin: 0; color: var(--cm-muted); font-size: .92rem; }

/* Offer cards */
.cm-offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cm-offer { position: relative; background: #fff; border: 1px solid var(--cm-line); border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; margin: 0 !important; }
.cm-offer:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(0,0,0,.45); }
.cm-offer .wp-block-image { margin: 0; }
.cm-offer .wp-block-image img { width: 100%; height: 170px; object-fit: cover; display: block; }
.cm-offer-body { padding: 16px 18px 18px; }
.cm-offer-body h3 { font-size: 1.05rem; margin: 0 0 2px; }
.cm-offer-body .cm-unit { color: var(--cm-muted); font-size: .85rem; margin: 0 0 10px; }
.cm-price { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--cm-green); }
.cm-price s { color: #9aa29d; font-size: 1rem; font-weight: 600; margin-left: 8px; }
.cm-badge { position: absolute; top: 12px; left: 12px; z-index: 2; margin: 0 !important; background: var(--cm-red); color: #fff; font-weight: 800; font-size: .85rem; padding: 6px 11px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(217,65,43,.8); }

/* Aisle tiles */
.cm-aisles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cm-aisle { position: relative; min-height: 220px; border-radius: 20px; overflow: hidden; display: flex; align-items: flex-end; padding: 22px !important; color: #fff; background-size: cover; background-position: center; margin: 0 !important; transition: transform .25s; }
.cm-aisle::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.cm-aisle:hover { transform: scale(1.015); }
.cm-aisle > * { position: relative; }
.cm-aisle h3 { color: #fff; font-size: 1.35rem; margin: 0; font-family: var(--wp--preset--font-family--platypi); }
.cm-aisle p { margin: 2px 0 0; color: #e8efe9; font-size: .9rem; }
.cm-aisle-bakery { background-image: url(assets/img/bakery.webp); }
.cm-aisle-produce { background-image: url(assets/img/produce.webp); }
.cm-aisle-dairy { background-image: url(assets/img/dairy.webp); }
.cm-aisle-drinks { background-image: url(assets/img/drinks.webp); }
.cm-aisle-coffee { background-image: url(assets/img/coffee.webp); }
.cm-aisle-kiosk { background-image: url(assets/img/aisle.webp); }

/* Split story */
.cm-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.cm-split .wp-block-image img { border-radius: 24px; width: 100%; height: 440px; object-fit: cover; box-shadow: 0 30px 60px -35px rgba(0,0,0,.55); }
.cm-ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.cm-ticks li { padding-left: 34px; position: relative; font-weight: 600; }
.cm-ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 50%; background: #e2f0e6; color: var(--cm-green); display: grid; place-items: center; font-size: .85rem; font-weight: 900; }

/* Promo panels */
.cm-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cm-panel { border-radius: 22px; padding: 40px !important; margin: 0 !important; position: relative; overflow: hidden; }
.cm-panel h3 { font-family: var(--wp--preset--font-family--platypi); font-size: 1.8rem; margin: 0 0 10px; }
.cm-panel p { margin: 0 0 20px; }
.cm-panel-red { background: var(--cm-red); color: #fff; }
.cm-panel-red h3 { color: #fff; }
.cm-panel-sun { background: var(--cm-sun); color: var(--cm-ink); }
.cm-panel-big { position: absolute; right: -10px; bottom: -30px; font-size: 9rem; opacity: .16; margin: 0 !important; line-height: 1; }

/* Reviews */
.cm-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cm-review { background: #fff; border: 1px solid var(--cm-line); border-radius: 18px; padding: 26px !important; margin: 0 !important; }
.cm-stars { color: #f2a900; letter-spacing: 3px; font-size: 1.05rem; margin: 0 0 10px !important; }
.cm-review blockquote, .cm-review p.cm-quote { font-size: 1.02rem; margin: 0 0 16px; }
.cm-review .cm-who { color: var(--cm-muted); font-size: .88rem; font-weight: 700; margin: 0; }

/* Visit */
.cm-visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; background: #fff; border: 1px solid var(--cm-line); }
.cm-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(.9); }
.cm-visit-info { padding: 40px !important; margin: 0 !important; }
.cm-hours { width: 100%; border-collapse: collapse; margin: 14px 0 24px; }
.cm-hours td { padding: 8px 0; border-bottom: 1px dashed var(--cm-line); }
.cm-hours td:last-child { text-align: right; font-weight: 700; }
.cm-open-now { display: inline-block; background: #e2f0e6; color: var(--cm-green); font-weight: 800; font-size: .8rem; padding: 5px 12px; border-radius: 999px; margin: 0 0 6px !important; }

/* Page intro band (inner pages) */
.cm-band { padding: 70px 5vw 60px !important; color: #fff; background: linear-gradient(95deg, rgba(14,40,26,.94), rgba(14,40,26,.72)), url(assets/img/aisle.webp) center/cover; }
.cm-band h1 { color: #fff; font-family: var(--wp--preset--font-family--platypi); font-size: clamp(2.3rem, 4.5vw, 3.6rem); margin: 0 0 8px; }
.cm-band p { color: #e3eee7; font-size: 1.1rem; margin: 0; max-width: 620px; }

/* ---------- Footer ---------- */
.cm-footer { background: #10281b; color: #cfdcd3; padding: 64px 5vw 26px !important; font-size: .95rem; }
.cm-footer a { color: #fff; text-decoration: none; }
.cm-footer a:hover { text-decoration: underline; }
.cm-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.cm-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.cm-footer p { margin: 0 0 8px; }
.cm-social { display: flex; gap: 10px; margin-top: 16px !important; }
.cm-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.cm-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px !important; padding-top: 20px !important; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #9fb3a6; }


/* Buttons inside the promo panels */
.cm-pill { display: inline-block; position: relative; z-index: 1; padding: 12px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; line-height: 1.2; }
.cm-pill-white { background: #fff; color: var(--cm-red); }
.cm-pill-dark { background: var(--cm-ink); color: #fff; }
.cm-pill:hover { filter: brightness(.95); }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .cm-features, .cm-aisles, .cm-reviews, .cm-offers { grid-template-columns: 1fr 1fr; }
  .cm-split, .cm-panels, .cm-visit, .cm-footer-grid { grid-template-columns: 1fr; }
  .cm-split .wp-block-image img { height: 300px; }
  .cm-topbar .cm-hide-sm { display: none; }
  .cm-hero { min-height: 520px; background: linear-gradient(180deg, rgba(14,40,26,.9), rgba(14,40,26,.75)), url(assets/img/hero.webp) center/cover; }
}
@media (max-width: 700px) {
  .cm-header .cm-cta { display: none !important; }
  .cm-logo-text strong { font-size: 1.15rem; white-space: nowrap; }
  .cm-logo-text span { white-space: nowrap; font-size: .66rem; }
  .cm-logo-mark { width: 36px; height: 36px; }
  .cm-topbar { justify-content: center !important; }
  .cm-topbar p:first-child { display: none; }
}
@media (max-width: 560px) {
  .cm-features, .cm-aisles, .cm-reviews { grid-template-columns: 1fr; }
  .cm-offers { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cm-offer .wp-block-image img { height: 120px; }
  .cm-offer-body { padding: 12px; }
  .cm-price { font-size: 1.3rem; }
  .cm-section { padding: 56px 5vw !important; }
  .cm-panel { padding: 28px !important; }
}
