/*
Theme Name: Order Kitchen
Theme URI: https://orderkitchen.com.au/
Author: Order Kitchen
Description: Block theme for the Order Kitchen app website. Brand colours, Inter typography, ready-made sections (hero, features, FAQ, legal pages) and a one-click page setup. Edit everything in the Site Editor and block editor.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orderkitchen
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-logo, editor-style
*/

/* ═══════════════ Base ═══════════════ */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(a, button, summary):focus-visible { outline: 2px solid #2A8F76; outline-offset: 3px; border-radius: 6px; }
.wp-site-blocks { padding-top: 0; }
.ok-main { margin-top: 0 !important; }
[id] { scroll-margin-top: 90px; }

/* ═══════════════ Header ═══════════════ */
.ok-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(15,31,28,.06);
  padding-top: .8rem; padding-bottom: .8rem;
}
.admin-bar .ok-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ok-header { top: 46px; } }
.ok-brand { gap: .6rem; }
.ok-brand .wp-block-site-logo img { border-radius: 10px; }
.ok-header .wp-block-navigation a { color: #4B5D59; }
.ok-header .wp-block-navigation a:hover { color: #0F1F1C; }
.ok-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem; }
@media (max-width: 599px) { .ok-header-cta { display: none !important; } }

/* ═══════════════ Buttons ═══════════════ */
.wp-block-button__link { box-shadow: 0 10px 30px -12px rgba(27,107,90,.45); transition: background-color .15s, transform .15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-ok-outline .wp-block-button__link { background: #fff; color: #175C4D; box-shadow: inset 0 0 0 1px #C3E6DC; }
.wp-block-button.is-style-ok-outline .wp-block-button__link:hover { background: #EEF8F5; }
.wp-block-button.is-style-ok-light .wp-block-button__link { background: #fff; color: #0B201B; box-shadow: none; }
.wp-block-button.is-style-ok-light .wp-block-button__link:hover { background: #EEF8F5; }

/* Store download buttons ([ok_store_buttons]) */
.ok-store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.ok-store-buttons.is-centered { justify-content: center; }
.ok-store-btn { display: inline-flex; align-items: center; gap: .75rem; padding: .6rem 1.1rem; border-radius: 12px; text-decoration: none !important; transition: background-color .15s, transform .15s; background: #fff; color: #0B201B !important; }
.ok-store-btn:hover { background: #EEF8F5; transform: translateY(-1px); }
.ok-store-buttons.is-dark .ok-store-btn { background: #0B201B; color: #fff !important; }
.ok-store-buttons.is-dark .ok-store-btn:hover { background: #0E3B31; }
.ok-store-btn svg { width: 24px; height: 24px; flex: none; }
.ok-store-btn small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .7; line-height: 1.2; }
.ok-store-btn strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.25; }

/* ═══════════════ Shared section bits ═══════════════ */
.ok-eyebrow { font-size: .75rem !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #2A8F76; margin-bottom: .5rem !important; }
.ok-lead { color: #4B5D59; font-size: 1.08rem; max-width: 44rem; }
.ok-section { padding-top: var(--wp--preset--spacing--50) !important; padding-bottom: var(--wp--preset--spacing--50) !important; }
.ok-tint { background: #EEF8F5; }
.ok-dark { background: #0B201B; color: #C3E6DC; }
.ok-dark :where(h1,h2,h3,h4) { color: #fff; }
.ok-dark .ok-eyebrow { color: #6EF2C0; }

/* Card (group block style + class) */
.ok-card, .wp-block-group.is-style-ok-card {
  background: #fff; border-radius: 18px; padding: 1.5rem;
  box-shadow: 0 0 0 1px rgba(15,31,28,.05), 0 8px 24px -12px rgba(15,31,28,.14);
  transition: transform .15s, box-shadow .15s;
}
.ok-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(15,31,28,.05), 0 18px 40px -16px rgba(27,107,90,.3); }
.ok-card h3 { margin-top: 1.1rem !important; margin-bottom: .4rem; }
.ok-card p { color: #4B5D59; font-size: .93rem; margin-top: 0; }
.ok-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #EEF8F5; color: #1B6B5A; box-shadow: inset 0 0 0 1px #E2EEEB; }
.ok-icon svg { width: 24px; height: 24px; }

/* ═══════════════ Hero ═══════════════ */
.ok-hero { position: relative; overflow: hidden; background: linear-gradient(135deg,#2A8F76 0%,#1B6B5A 50%,#0E3B31 100%); color: #E8F5F2; }
.ok-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.ok-hero > * { position: relative; }
.ok-hero h1 { color: #fff; max-width: 15ch; }
.ok-hero h1 em, .ok-hero h1 mark { font-style: normal; color: #6EF2C0; background: none; }
.ok-hero .ok-lead { color: #E8F5F2; }
.ok-pill { display: inline-flex !important; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); font-size: .75rem !important; font-weight: 600; color: #fff; }
.ok-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FBBF24; }
.ok-ticks { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; color: #E8F5F2; }
.ok-ticks li::before { content: "✓"; color: #6EF2C0; font-weight: 700; margin-right: .4rem; }

/* Phone mockup */
.ok-phone-wrap { position: relative; padding: 1rem 0; }
.ok-phone-wrap::before { content: ""; position: absolute; inset: 10% 5%; background: rgba(110,242,192,.22); filter: blur(60px); border-radius: 50%; }
.ok-phone { position: relative; width: 280px; margin: 0 auto; padding: 10px; border-radius: 42px; background: #0B201B; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); font-family: Inter, sans-serif; color: #0F1F1C; }
.ok-phone-screen { overflow: hidden; border-radius: 33px; background: #F0F4F3; }
.ok-ph-top { background: #fff; padding: 28px 16px 12px; }
.ok-ph-row { display: flex; align-items: center; gap: 8px; }
.ok-ph-row img { width: 28px; height: 28px; border-radius: 7px; }
.ok-ph-name { font-size: 11px; font-weight: 700; line-height: 1.2; }
.ok-ph-addr { font-size: 9px; color: #6B7C78; }
.ok-ph-switch { margin-left: auto; font-size: 8px; font-weight: 600; color: #1B6B5A; background: #EEF8F5; padding: 4px 6px; border-radius: 6px; }
.ok-ph-status { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(15,31,28,.06); }
.ok-ph-open { font-size: 9px; font-weight: 600; color: #16A34A; background: #F0FDF4; padding: 4px 8px; border-radius: 6px; }
.ok-ph-open::before { content: "●"; margin-right: 4px; font-size: 7px; }
.ok-ph-auto { font-size: 9px; color: #1B6B5A; border: 1px solid rgba(15,31,28,.1); padding: 3px 8px; border-radius: 6px; }
.ok-ph-tabs { display: flex; gap: 6px; padding: 12px 12px 0; font-size: 9px; font-weight: 600; color: #6B7C78; }
.ok-ph-tabs span { padding: 4px 10px; border-radius: 999px; }
.ok-ph-tabs .is-active { background: #1B6B5A; color: #fff; }
.ok-ph-list { padding: 12px; display: grid; gap: 8px; }
.ok-ph-order { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px rgba(15,31,28,.05); }
.ok-ph-order-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; }
.ok-ph-badge { font-size: 8px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; background: #E8F5F2; color: #1B6B5A; }
.ok-ph-badge.is-amber { background: #FEF3C7; color: #D97706; }
.ok-ph-items { margin-top: 3px; font-size: 10px; color: #6B7C78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-ph-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 9px; }
.ok-ph-meta span:first-child { background: #EEF8F5; color: #4B5D59; padding: 2px 6px; border-radius: 6px; }
.ok-ph-meta span:last-child { font-weight: 700; }
.ok-ph-nav { display: grid; grid-template-columns: repeat(5,1fr); text-align: center; font-size: 8px; color: #6B7C78; background: #fff; padding: 8px 6px 16px; border-top: 1px solid rgba(15,31,28,.06); }
.ok-ph-nav .is-active { color: #1B6B5A; font-weight: 700; }
.ok-toast { position: absolute; left: -10px; bottom: 110px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: 0 0 0 1px rgba(15,31,28,.05), 0 18px 40px -16px rgba(15,31,28,.35); color: #0F1F1C; }
.ok-toast-icon { width: 36px; height: 36px; border-radius: 12px; background: #FEF3C7; color: #D97706; display: flex; align-items: center; justify-content: center; }
.ok-toast-icon svg { width: 20px; height: 20px; }
.ok-toast strong { display: block; font-size: 12px; }
.ok-toast small { display: block; font-size: 11px; color: #6B7C78; }
@media (max-width: 640px) { .ok-toast { display: none; } }

/* ═══════════════ Stats / steps ═══════════════ */
.ok-stat .ok-stat-value { font-size: 2rem !important; font-weight: 800; color: #1B6B5A; line-height: 1.1; margin: 0; }
.ok-stat p:last-child { margin-top: .25rem; }
.ok-checklist { list-style: none; padding: 0 !important; }
.ok-checklist li { position: relative; padding-left: 2rem; margin-top: .7rem; font-size: .95rem; }
.ok-checklist li::before { content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #1B6B5A; color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ok-step { background: rgba(255,255,255,.04); border-radius: 18px; padding: 1.5rem; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.ok-step-num { display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #6EF2C0; color: #0B201B; font-weight: 800; font-size: .9rem !important; margin: 0; }
.ok-step h3 { margin-top: 1rem !important; }
.ok-step p:not(.ok-step-num) { color: #C3E6DC; font-size: .93rem; }
.ok-dark .ok-step .ok-step-num { color: #0B201B; }

/* ═══════════════ FAQ (Details block) ═══════════════ */
.wp-block-details.is-style-ok-faq, .ok-faq .wp-block-details {
  background: #fff; border-radius: 16px; padding: 1.1rem 1.25rem;
  box-shadow: 0 0 0 1px rgba(15,31,28,.06);
}
.ok-faq .wp-block-details + .wp-block-details { margin-top: .75rem; }
.ok-faq .wp-block-details[open] { box-shadow: 0 0 0 1px rgba(15,31,28,.06), 0 8px 24px -12px rgba(15,31,28,.14); }
.ok-faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.ok-faq summary::-webkit-details-marker { display: none; }
.ok-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #EEF8F5; color: #1B6B5A; display: flex; align-items: center; justify-content: center; font-weight: 600; transition: transform .2s; }
.ok-faq details[open] summary::after { transform: rotate(45deg); }
.ok-faq details > :not(summary) { color: #4B5D59; font-size: .93rem; margin-top: .75rem; }

/* ═══════════════ CTA ═══════════════ */
.ok-cta { border-radius: 28px; background: linear-gradient(135deg,#1B6B5A,#0E3B31); color: #E8F5F2; text-align: center; }
.ok-cta h2 { color: #fff; }

/* ═══════════════ Page title band ═══════════════ */
.ok-page-hero { background: #EEF8F5; border-bottom: 1px solid rgba(15,31,28,.05); }
.ok-page-hero .wp-block-post-title { margin-top: .25rem; }
.ok-meta { font-size: .85rem; color: #6B7C78; }
.ok-meta > * { margin: 0 !important; }

/* ═══════════════ Long-form / legal content ═══════════════ */
.ok-prose { font-size: 15.5px; line-height: 1.75; color: #4B5D59; }
.ok-prose :where(h2) { font-size: 1.3rem; margin-top: 2.75rem; color: #0F1F1C; }
.ok-prose :where(h3) { font-size: 1.05rem; margin-top: 1.75rem; color: #0F1F1C; }
.ok-prose strong { color: #0F1F1C; }
.ok-prose ul li::marker { color: #2A8F76; }
.ok-prose ol li::marker { color: #1B6B5A; font-weight: 700; }
.ok-prose a { text-decoration: underline; text-decoration-color: #C3E6DC; text-underline-offset: 3px; font-weight: 500; }
.ok-prose a:hover { text-decoration-color: #1B6B5A; }
.ok-prose .wp-block-table { margin-top: 1rem; }
.ok-prose .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.ok-prose .wp-block-table :where(th, td) { border: 0; border-bottom: 1px solid #E2EEEB; padding: .6rem 1rem .6rem 0; text-align: left; vertical-align: top; }
.ok-prose .wp-block-table thead { border-bottom: 2px solid #C3E6DC; }
.ok-prose .wp-block-table th { color: #0F1F1C; font-weight: 600; }

/* ═══════════════ Footer ═══════════════ */
.ok-footer { background: #0B201B; color: #8FD1BE; font-size: .9rem; }
.ok-footer :where(h2, h3, .wp-block-site-title a) { color: #fff; }
.ok-footer a { color: #C3E6DC; text-decoration: none; }
.ok-footer a:hover { color: #fff; }
.ok-footer-links { list-style: none; padding: 0 !important; }
.ok-footer-links li + li { margin-top: .55rem; }
.ok-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: #8FD1BE; }
.ok-footer-bottom p { margin: 0; }
.ok-footer .wp-block-site-logo img { border-radius: 10px; }

/* Blog bits */
.ok-post-card { border-bottom: 1px solid #E2EEEB; padding-bottom: 1.5rem; }

/* Responsive 3-column card grid (core's fixed column count has no breakpoints) */
@media (max-width: 1024px) { .ok-grid-3.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px)  { .ok-grid-3.is-layout-grid { grid-template-columns: minmax(0, 1fr) !important; } }

/* Full-width sections sit flush against each other */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
