/*
Theme Name: Tasty Carrots
Theme URI: https://tastycarrotsbakery.com
Description: Tema khas untuk Tasty Carrots Bakery & Café, Kajang. Laman Utama, Kek Carrot, Pencuci Mulut, Kek Custom dan Biskut Raya.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: tasty-carrots
*/

html { scroll-behavior: smooth; }
body { margin: 0; background: #FBF5EC; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
section[id] { scroll-margin-top: 16px; }

/* Menu labels never break onto two lines */
header nav a { white-space: nowrap; flex-shrink: 0; }
header > div > a:first-child { white-space: nowrap; flex-shrink: 0; }

/* Medium screens: menu moves to its own row under the logo */
@media (min-width: 861px) and (max-width: 1240px) {
  header > div {
    flex-wrap: wrap !important;
    height: auto !important;
    padding-top: 14px !important;
    padding-bottom: 12px !important;
    row-gap: 8px !important;
  }
  header nav { order: 3; flex-basis: 100%; gap: 24px !important; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  header nav::-webkit-scrollbar { display: none; }
}

/* Mobile: show the page menu as a swipeable row under the logo */
@media (max-width: 860px) {
  header > div {
    flex-wrap: wrap !important;
    height: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    row-gap: 10px !important;
  }
  header nav {
    display: flex !important;
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    gap: 18px !important;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  header nav::-webkit-scrollbar { display: none; }
  header nav a { font-size: 14px !important; padding: 8px 0; }
}

/* Simple layout for any other page (e.g. older pages, 404) */
.tc-basic { max-width: 760px; margin: 0 auto; padding: 56px 24px 88px; font-family: 'Plus Jakarta Sans', sans-serif; color: #23301F; line-height: 1.7; font-size: 17px; }
.tc-basic h1 { font-family: Fraunces, serif; color: #2F4A2B; font-size: 44px; line-height: 1.1; margin: 0 0 24px; }
.tc-basic a { color: #C2551A; }
.tc-bar { background: #FBF5EC; border-bottom: 1px solid #EADFCE; }
.tc-bar > div { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tc-bar a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #2F4A2B; font-family: Fraunces, serif; font-size: 24px; font-weight: 700; }
.tc-bar img { width: 60px; height: 60px; }

/* ---------- Blog (listing + articles) ---------- */
.tcb-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.tcb-header, .tcb-main, .tcb-footer { font-family: 'Plus Jakarta Sans', sans-serif; color: #23301F; }
.tcb-header { background: #FBF5EC; border-bottom: 1px solid #EADFCE; }
.tcb-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 88px; }
.tcb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #2F4A2B; font-family: Fraunces, serif; font-size: 24px; font-weight: 700; }
.tcb-brand img { width: 60px; height: 60px; display: block; }
.tcb-brand-light { color: #FFFFFF; font-size: 22px; }
.tcb-brand-light img { width: 56px; height: 56px; }
.tcb-nav { display: flex; gap: 28px; align-items: center; }
.tcb-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: #2F4A2B; }
.tcb-nav a:hover { color: #C2551A; }
.tcb-nav a.is-active { color: #C2551A; font-weight: 700; border-bottom: 2px solid #C2551A; padding-bottom: 2px; }
.tcb-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 999px; min-height: 44px; box-sizing: border-box; }
.tcb-btn-dark { background: #2F4A2B; color: #FFFFFF; }
.tcb-btn-orange { background: #C2551A; color: #FFFFFF; font-size: 16px; padding: 14px 24px; }
.tcb-btn-ghost { color: #2F4A2B; border: 2px solid #2F4A2B; font-size: 16px; padding: 12px 22px; }
.tcb-btn:hover { opacity: .92; color: inherit; }
.tcb-btn-dark:hover, .tcb-btn-orange:hover { color: #FFFFFF; }

.tcb-main { background: #FBF5EC; }
.tcb-hero { padding: 72px 0 40px; }
.tcb-hero-inner { max-width: 780px; text-align: center; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.tcb-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C2551A; }
.tcb-h1 { margin: 0; font-family: Fraunces, serif; font-size: 56px; line-height: 1.06; font-weight: 600; letter-spacing: -.02em; color: #2F4A2B; }
.tcb-lead { margin: 0; font-size: 19px; line-height: 1.6; color: #4A5546; }

.tcb-list { padding: 24px 0 96px; }
.tcb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tcb-card { display: flex; flex-direction: column; background: #FFFFFF; border-radius: 24px; overflow: hidden; text-decoration: none; color: #23301F; }
.tcb-card-img { overflow: hidden; background: #F3EBDD; }
.tcb-card-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s ease; }
.tcb-card:hover .tcb-card-img img { transform: scale(1.04); }
.tcb-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.tcb-date { font-size: 13px; font-weight: 600; color: #8A7A62; }
.tcb-card-title { margin: 0; font-family: Fraunces, serif; font-size: 23px; line-height: 1.2; font-weight: 600; color: #2F4A2B; }
.tcb-card-excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: #5E6A59; }
.tcb-more { font-size: 15px; font-weight: 700; color: #C2551A; margin-top: 4px; }
.tcb-pages { margin-top: 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tcb-pages .page-numbers { padding: 10px 16px; border-radius: 999px; background: #FFFFFF; color: #2F4A2B; text-decoration: none; font-weight: 600; }
.tcb-pages .current { background: #2F4A2B; color: #FFFFFF; }
.tcb-empty { background: #FFFFFF; border-radius: 24px; padding: 48px; text-align: center; }
.tcb-empty h2 { font-family: Fraunces, serif; color: #2F4A2B; margin: 0 0 12px; }
.tcb-empty a { color: #C2551A; }

.tcb-article { padding: 56px 0 96px; }
.tcb-article-head { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.tcb-back { color: #C2551A; text-decoration: none; font-weight: 700; font-size: 15px; }
.tcb-article-title { font-size: 48px; }
.tcb-meta { margin: 0; font-size: 14px; font-weight: 600; color: #8A7A62; }
.tcb-article-hero { max-width: 960px; margin: 36px auto 8px; }
.tcb-article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; display: block; }
.tcb-prose { max-width: 720px; margin: 40px auto 0; font-size: 18px; line-height: 1.75; color: #2E3A2A; }
.tcb-prose > * { margin: 0 0 22px; }
.tcb-prose h2 { font-family: Fraunces, serif; font-size: 32px; line-height: 1.2; font-weight: 600; color: #2F4A2B; margin: 48px 0 16px; }
.tcb-prose h3 { font-family: Fraunces, serif; font-size: 24px; color: #2F4A2B; margin: 32px 0 12px; }
.tcb-prose ul, .tcb-prose ol { padding-left: 24px; }
.tcb-prose li { margin-bottom: 10px; }
.tcb-prose li::marker { color: #C2551A; }
.tcb-prose a { color: #C2551A; font-weight: 600; }
.tcb-prose strong { color: #23301F; }
.tcb-prose figure { margin: 32px 0; }
.tcb-prose img { width: 100%; height: auto; border-radius: 20px; display: block; }
.tcb-prose figcaption { font-size: 14px; color: #8A7A62; margin-top: 10px; text-align: center; }
.tcb-prose blockquote { margin: 28px 0; padding: 20px 24px; background: #FFFFFF; border-radius: 18px; font-style: normal; }
.tcb-prose .tcb-checklist { background: #FFFFFF; border-radius: 20px; padding: 24px 28px 24px 48px; }
.tcb-cta { max-width: 720px; margin: 56px auto 0; background: #2F4A2B; border-radius: 28px; padding: 40px; color: #FFFFFF; text-align: center; }
.tcb-cta h2 { font-family: Fraunces, serif; font-size: 32px; margin: 0 0 10px; color: #FFFFFF; }
.tcb-cta p { margin: 0 0 22px; color: #DCE3D6; font-size: 17px; line-height: 1.6; }
.tcb-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.tcb-cta .tcb-btn-ghost { color: #FFFFFF; border-color: #FFFFFF; }

.tcb-footer { background: #23301F; color: #DCE3D6; padding: 40px 0; }
.tcb-footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.tcb-footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 15px; }
.tcb-footer-links a { color: #FFFFFF; text-decoration: none; }
.tcb-copy { font-size: 14px; color: #A9B4A3; }

@media (max-width: 960px) { .tcb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .tcb-h1 { font-size: 40px; }
  .tcb-article-title { font-size: 34px; }
  .tcb-prose { font-size: 17px; }
  .tcb-prose h2 { font-size: 26px; }
  .tcb-cta { padding: 32px 22px; }
}
@media (max-width: 560px) { .tcb-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Soalan lazim (FAQ) ---------- */
.tc-faq { padding: 88px 0; background: #FFFFFF; font-family: 'Plus Jakarta Sans', sans-serif; color: #23301F; }
.tc-faq-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 28px; }
.tc-faq-eyebrow { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #C2551A; text-align: center; }
.tc-faq h2 { margin: 0; font-family: Fraunces, serif; font-size: 44px; line-height: 1.08; font-weight: 600; color: #2F4A2B; text-align: center; }
.tc-faq-list { display: flex; flex-direction: column; gap: 12px; }
.tc-faq details { background: #FBF5EC; border-radius: 18px; padding: 0 24px; }
.tc-faq summary { list-style: none; cursor: pointer; padding: 20px 32px 20px 0; position: relative; font-size: 18px; font-weight: 700; color: #2F4A2B; line-height: 1.4; }
.tc-faq summary::-webkit-details-marker { display: none; }
.tc-faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 26px; font-weight: 500; color: #C2551A; }
.tc-faq details[open] summary::after { content: "–"; }
.tc-faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.7; color: #4A5546; }
.tc-faq details a { color: #C2551A; font-weight: 600; }
@media (max-width: 860px) { .tc-faq { padding: 64px 0; } .tc-faq h2 { font-size: 32px; } .tc-faq summary { font-size: 17px; } }
