/*
Theme Name: ShizenKo
Theme URI: https://shizenkomatcha.com/
Author: ShizenKo
Description: Custom block theme for ShizenKo, luxury ceremonial matcha supplier in Saudi Arabia. Includes page setup, lead forms and WhatsApp button.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: shizenko
*/

/* ---------- Base ---------- */
body { margin: 0; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #465B34; outline-offset: 3px; }
.sk-main { margin-top: 0 !important; }
.sk-main > .entry-content > *, .sk-main > .wp-block-post-content > * { margin-block-start: 0; }

/* ---------- Header ---------- */
.sk-header { background: #F3EADF; border-bottom: 1px solid #D9B798; padding: 14px 24px; }
.sk-header > .wp-block-group { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.sk-logo img { width: 64px; height: 64px; display: block; }
.sk-logo { margin: 0 !important; }
.sk-nav { gap: 28px; font-size: 15px; font-weight: 500; }
.sk-nav a { color: #24301B; text-decoration: none; }
.sk-nav a:hover { color: #465B34; text-decoration: underline; }
.sk-header .wp-block-button__link { padding: 12px 22px; font-size: 15px; }
.sk-header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ---------- Sections ---------- */
.sk-section { padding: 104px 24px; margin: 0 !important; }
.sk-section > * { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.sk-section.sk-narrow > * { max-width: 820px; }
.sk-section.sk-tight { padding-top: 72px; padding-bottom: 72px; }
.sk-bg-white { background: #FFFFFF; }
.sk-bg-olive { background: #465B34; color: #F3EADF; }
.sk-bg-olive h1, .sk-bg-olive h2, .sk-bg-olive h3 { color: #F7F0E8; }
.sk-bg-olive a { color: #F7F0E8; }
.sk-bg-beige { background: #D9B798; }
.sk-bg-beige h2 { color: #2F3D23; }
.sk-center { text-align: center; }
.sk-center .wp-block-buttons { justify-content: center; }
.sk-lead { font-size: 19px; color: #3D4630; max-width: 540px; }
.sk-center .sk-lead { margin-left: auto; margin-right: auto; }
.sk-muted { color: #4A4E3C; font-size: 15px; }
.sk-accent { font-family: 'Shippori Mincho', Georgia, serif; font-size: 19px; color: #D9B798; }
.sk-section .wp-block-columns { gap: 56px; align-items: center; margin-bottom: 0; }
.sk-top .wp-block-columns { align-items: flex-start; }

/* Buttons */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #465B34; border: 1.5px solid #465B34; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #465B34; color: #FFFFFF; }
.sk-bg-olive .wp-block-button .wp-block-button__link { background: #D9B798; color: #2F3D23; }
.sk-bg-olive .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: #F7F0E8; border-color: #D9B798; }
.sk-bg-beige .wp-block-button.is-style-outline .wp-block-button__link { color: #2F3D23; border-color: #2F3D23; }

/* Images */
.sk-img img { width: 100%; object-fit: cover; border-radius: 8px; display: block; }
.sk-arch img { width: 100%; height: 560px; object-fit: cover; border-radius: 280px 280px 8px 8px; display: block; }
.sk-h-560 img { height: 560px; } .sk-h-500 img { height: 500px; } .sk-h-440 img { height: 440px; } .sk-h-400 img { height: 400px; } .sk-h-300 img { height: 300px; } .sk-h-220 img { height: 220px; }
.sk-flush img { border-radius: 0; }

/* Hero */
.sk-hero { padding-top: 72px; padding-bottom: 56px; }

/* Facts strip */
.sk-facts { padding: 28px 24px; border-top: 1px solid #D9B798; border-bottom: 1px solid #D9B798; }
.sk-facts .wp-block-columns { gap: 24px; align-items: flex-start; }
.sk-stat { font-family: 'Shippori Mincho', Georgia, serif; font-size: 30px; font-weight: 700; color: #465B34; margin: 0 !important; line-height: 1.3; }
.sk-stat-label { font-size: 15px; color: #4A4E3C; margin: 0 !important; }

/* Split image band (Uji) */
.sk-split { padding: 0; }
.sk-split > * { max-width: none; }
.sk-split .wp-block-columns { gap: 0; align-items: stretch; }
.sk-split .sk-split-text { padding: 88px 56px; display: flex; flex-direction: column; justify-content: center; }
.sk-split .sk-img img { height: 100%; min-height: 480px; border-radius: 0; }

/* Lists */
.sk-rows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 40px; }
.sk-rows li { padding: 20px 0; border-top: 1px solid #D9B798; }
.sk-rows li strong { display: block; color: #465B34; font-size: 18px; margin-bottom: 4px; }
.sk-bg-olive .sk-rows li { border-top-color: #6E8159; color: #D9B798; }
.sk-bg-olive .sk-rows li strong { color: #F7F0E8; }
.sk-specs { list-style: none; padding: 0; margin: 0; border-top: 1px solid #D9B798; }
.sk-specs li { padding: 14px 0; border-bottom: 1px solid #D9B798; display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 12px; }
.sk-specs li strong { color: #465B34; }
.sk-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; counter-reset: sk; }
.sk-steps li { counter-increment: sk; font-weight: 600; }
.sk-steps li::before { content: counter(sk); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #465B34; color: #FFF; font-family: 'Shippori Mincho', Georgia, serif; font-size: 20px; margin-bottom: 16px; }
.sk-checklist { list-style: none; padding: 0; margin: 0; }
.sk-checklist li { padding: 12px 0; border-top: 1px solid #D9B798; }
.sk-checklist li:last-child { border-bottom: 1px solid #D9B798; }

/* Cards */
.sk-cards { gap: 20px !important; align-items: stretch !important; }
.sk-card { background: #FFFFFF; border: 1px solid #D9B798; border-radius: 10px; padding: 28px; height: 100%; box-sizing: border-box; }
.sk-card h3 { font-family: Figtree, Arial, sans-serif; font-size: 18px; color: #24301B; margin: 0 0 8px; }
.sk-card p { margin: 0 0 10px; }
.sk-terms { background: #FFFFFF; border: 1px solid #D9B798; border-radius: 8px; padding: 32px; margin-top: 48px !important; }
.sk-bg-white .sk-terms { background: #F3EADF; border-color: #F3EADF; }
.sk-terms .wp-block-columns { gap: 24px; align-items: flex-start; }
.sk-terms p { margin: 0; }

/* Journey */
.sk-journey .wp-block-column { display: flex; flex-direction: column; gap: 8px; }
.sk-journey .sk-img img { height: 200px; }
.sk-num { font-family: 'Shippori Mincho', Georgia, serif; color: #465B34; font-weight: 700; margin: 8px 0 0 !important; }
.sk-journey h3 { font-family: Figtree, Arial, sans-serif; font-size: 18px; margin: 0; color: #24301B; }

/* Taste / values */
.sk-pillars .wp-block-column { border-top: 2px solid #465B34; padding-top: 18px; }
.sk-pillars h3 { margin: 0 0 8px; }

/* FAQ */
.wp-block-details { border-top: 1px solid #D9B798; padding: 20px 0; margin: 0 !important; }
.wp-block-details:last-of-type { border-bottom: 1px solid #D9B798; }
.wp-block-details summary { font-weight: 600; font-size: 18px; cursor: pointer; }
.wp-block-details p { margin: 12px 0 0; }
.sk-faq-group { margin-top: 48px !important; color: #465B34; font-size: 28px; }

/* Table */
.sk-table table { border-collapse: collapse; width: 100%; font-size: 16px; }
.sk-table th, .sk-table td { padding: 16px; border-bottom: 1px solid #D9B798; text-align: left; vertical-align: top; }
.sk-table thead th { border-bottom: 2px solid #465B34; font-family: 'Shippori Mincho', Georgia, serif; font-size: 18px; color: #2F3D23; }
.sk-table td:nth-child(2), .sk-table th:nth-child(2) { background: #F3EADF; }
.sk-table tbody td:first-child { font-weight: 600; color: #465B34; }

/* Big kanji */
.sk-kanji { font-family: 'Shippori Mincho', Georgia, serif; font-size: clamp(72px, 10vw, 120px); line-height: 1; color: #D9B798; letter-spacing: 8px; text-align: center; margin: 0 !important; }

/* Tip */
.sk-tip { background: #D9B798; border-radius: 8px; padding: 22px 26px; }
.sk-placeholder { border: 1.5px dashed #B9A88E; border-radius: 8px; padding: 20px; color: #4A4E3C; font-size: 15px; }

/* Forms */
.sk-form { background: #FFFFFF; border: 1px solid #D9B798; border-radius: 12px; padding: 40px; box-sizing: border-box; }
.sk-form h2 { font-size: 28px; margin: 0 0 6px; }
.sk-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 24px; }
.sk-form-grid .sk-full { grid-column: 1 / -1; }
.sk-form label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; color: #24301B; }
.sk-form input, .sk-form select, .sk-form textarea { width: 100%; box-sizing: border-box; padding: 14px 16px; border: 1px solid #B9A88E; border-radius: 6px; background: #FFFFFF; font: inherit; font-size: 16px; color: #24301B; }
.sk-form button { background: #465B34; color: #FFFFFF; border: 0; padding: 16px 32px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.sk-form button:hover { background: #2F3D23; }
.sk-form .sk-note { font-size: 14px; color: #4A4E3C; }
.sk-form .sk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sk-alert { background: #F7E3D7; border: 1px solid #C98D6B; color: #5A2E16; padding: 14px 16px; border-radius: 6px; margin-top: 16px; }
.sk-bg-olive .sk-form { background: transparent; border: 0; padding: 0; }
.sk-bg-olive .sk-form label { color: #F7F0E8; }
.sk-bg-olive .sk-form button { background: #D9B798; color: #2F3D23; }

/* Map */
.sk-map iframe { width: 100%; height: 320px; border: 0; border-radius: 12px; display: block; }

/* Blog */
.sk-chips ul, ul.sk-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sk-chips li a { display: inline-block; border: 1px solid #465B34; color: #465B34; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; }
.sk-chips li a:hover { background: #465B34; color: #FFFFFF; }
.sk-posts .wp-block-post-template { gap: 40px 32px; }
.sk-posts .wp-block-post-featured-image img { border-radius: 8px; }
.sk-posts .wp-block-post-terms { font-size: 14px; font-weight: 600; margin-top: 12px; }
.sk-posts .wp-block-post-terms a { text-decoration: none; }
.sk-posts .wp-block-post-title { font-size: 22px; line-height: 1.3; margin: 8px 0; }
.sk-posts .wp-block-post-title a { color: #2F3D23; text-decoration: none; }
.sk-posts .wp-block-post-excerpt { font-size: 15px; color: #4A4E3C; }
.sk-posts .wp-block-post-excerpt__more-link { display: none; }
.sk-article .wp-block-post-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.sk-article .wp-block-post-featured-image { max-width: 1000px; margin: 0 auto 40px; }
.sk-article .wp-block-post-featured-image img { border-radius: 10px; }
.sk-article h2 { font-size: 28px; margin-top: 44px; }

/* Footer */
.sk-footer { background: #465B34; color: #F3EADF; padding: 72px 24px 32px; font-size: 15px; }
.sk-footer > * { max-width: 1200px; margin-left: auto !important; margin-right: auto !important; }
.sk-footer a { color: #F3EADF; }
.sk-footer .wp-block-columns { gap: 40px; }
.sk-footer h3 { font-family: Figtree, Arial, sans-serif; font-size: 15px; color: #D9B798; margin: 0 0 10px; }
.sk-footer p { margin: 0 0 6px; }
.sk-footer .sk-logo img { width: 96px; height: 96px; }
.sk-footer-bottom { border-top: 1px solid #6E8159; margin-top: 48px !important; padding-top: 20px; color: #D9B798; font-size: 14px; }

/* WhatsApp floating button */
.sk-wa { position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #465B34; color: #FFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(36,48,27,0.25); }
.sk-wa:hover { background: #2F3D23; }

/* Mobile */
@media (max-width: 781px) {
  .sk-section { padding: 72px 20px; }
  .sk-hero { padding-top: 48px; }
  .sk-arch img, .sk-h-560 img { height: 420px; }
  .sk-split .sk-split-text { padding: 56px 24px; }
  .sk-split .sk-img img { min-height: 320px; }
  .sk-form { padding: 28px 22px; }
  .sk-header { padding: 12px 16px; }
}

/* Left-aligned lead paragraphs directly inside sections keep a readable line length */
.sk-section:not(.sk-center) > p.sk-lead { max-width: 1200px; box-sizing: border-box; padding-right: max(0px, calc(100% - 640px)); }
.sk-section.sk-narrow:not(.sk-center) > p.sk-lead { max-width: 820px; padding-right: 0; }
.sk-card.sk-bg-olive { background: #465B34; border-color: #465B34; padding: 36px; }
.sk-article .wp-block-post-content > p, .sk-article .wp-block-post-content > ul, .sk-article .wp-block-post-content > ol { margin-top: 16px; }
.sk-story-lead { font-family: 'Shippori Mincho', Georgia, serif; font-size: 24px; line-height: 1.4; color: #2F3D23; }
.sk-section:not(.sk-bg-olive) .sk-accent { color: #465B34; }
