/*
Theme Name: Easywok Restaurant
Theme URI: https://example.test/
Author: Local Restaurant Demo
Description: A lightweight restaurant storefront designed for RestroPress online ordering.
Version: 1.2.2
Text Domain: order-restaurant
*/

:root {
  --ink: #17251e;
  --muted: #66736b;
  --paper: #fffdf8;
  --cream: #f5efe3;
  --green: #154f3b;
  --green-2: #267358;
  --gold: #d79b43;
  --coral: #d9684b;
  --line: rgba(23, 37, 30, .12);
  --shadow: 0 20px 55px rgba(28, 51, 39, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .92);
  backdrop-filter: blur(16px);
}
.utility-bar { color: rgba(255,255,255,.86); background: var(--green); }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.utility-inner a, .welcome-customer { font-size: 12px; font-weight: 750; }
.utility-inner a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.welcome-customer { margin-right: 4px; color: #fff; }
.language-switcher { position: relative; margin-left: 4px; color: var(--ink); }
.language-switcher summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: #fff;
  background: rgba(255,255,255,.1); cursor: pointer; list-style: none; font-size: 12px; font-weight: 800;
}
.language-switcher summary::-webkit-details-marker { display: none; }
.language-switcher summary::after { content: "▾"; font-size: 9px; }
.language-switcher[open] summary::after { transform: rotate(180deg); }
.language-options {
  position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; display: grid;
  min-width: 150px; padding: 8px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); box-shadow: var(--shadow);
}
.language-options a { padding: 9px 11px; border-radius: 9px; color: var(--ink); font-size: 13px; font-weight: 750; }
.language-options a:hover, .language-options a[aria-current=true] { color: var(--green); background: var(--cream); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--green); font-size: 20px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.main-nav a { font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: var(--green-2); }
.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(21,79,59,.22); border-radius: 50%; color: var(--green);
  background: #fff; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary:focus-visible { outline: 3px solid rgba(215,155,67,.55); outline-offset: 3px; }
.mobile-nav-icon,
.mobile-nav-icon::before,
.mobile-nav-icon::after { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
.mobile-nav-icon { position: relative; }
.mobile-nav-icon::before,
.mobile-nav-icon::after { content: ""; position: absolute; left: 0; transition: transform .18s ease, top .18s ease; }
.mobile-nav-icon::before { top: -6px; }
.mobile-nav-icon::after { top: 6px; }
.mobile-nav[open] .mobile-nav-icon { background: transparent; }
.mobile-nav[open] .mobile-nav-icon::before { top: 0; transform: rotate(45deg); }
.mobile-nav[open] .mobile-nav-icon::after { top: 0; transform: rotate(-45deg); }
.mobile-nav-panel {
  position: absolute; top: calc(100% + 14px); right: 0; width: min(330px, calc(100vw - 26px));
  padding: 12px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--paper); box-shadow: var(--shadow);
}
.mobile-nav-panel ul { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.mobile-nav-panel a { display: block; padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 750; }
.mobile-nav-panel a:hover, .mobile-nav-panel a:focus { color: var(--green); background: var(--cream); }
.button, .header-order {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 23px; border: 0; border-radius: 999px; color: #fff;
  background: var(--green); font-weight: 800; box-shadow: 0 10px 24px rgba(21, 79, 59, .18);
}
.button:hover, .header-order:hover { color: #fff; background: var(--green-2); transform: translateY(-1px); }
.button-secondary { color: var(--green); background: #fff; box-shadow: none; border: 1px solid rgba(21,79,59,.22); }
.hero { position: relative; overflow: hidden; padding: 92px 0 82px; background: radial-gradient(circle at 82% 20%, #f2bd75 0 10%, transparent 10.5%), linear-gradient(125deg, #f8f1e5 0%, #fffdf8 58%, #e6efe8 100%); }
.hero::after { content: ""; position: absolute; width: 430px; height: 430px; border: 78px solid rgba(21,79,59,.08); border-radius: 50%; right: -120px; bottom: -260px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 15px; color: var(--coral); font-size: 13px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(47px, 6.3vw, 82px); font-weight: 600; }
.hero-copy { max-width: 620px; margin: 24px 0 31px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-height: 480px; }
.dish { position: absolute; inset: 20px 0 0 20px; display: grid; place-items: center; border: 20px solid #fff; border-radius: 50%; background: radial-gradient(circle at 50% 48%, #f7d27a 0 16%, #db774b 17% 29%, #6d9b65 30% 42%, #f1c15c 43% 56%, #efe9da 57%); box-shadow: var(--shadow); transform: rotate(-8deg); }
.dish::after { content: "Fresh daily"; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; font-weight: 850; text-align: center; transform: rotate(8deg); }
.service-strip { border-block: 1px solid var(--line); background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-item { padding: 25px 30px; text-align: center; border-right: 1px solid var(--line); }
.service-item:last-child { border-right: 0; }
.service-item strong { display: block; font-size: 16px; }
.service-item span { color: var(--muted); font-size: 13px; }
.section { padding: 90px 0; }
.section-tint { background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); font-weight: 600; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); }
.food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.food-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 35px rgba(40, 55, 46, .07); }
.food-visual { position: relative; min-height: 210px; background: linear-gradient(135deg, #e7b36c, #a94f3c); }
.food-card:nth-child(3n+2) .food-visual { background: linear-gradient(135deg, #7d9f70, #e0bd62); }
.food-card:nth-child(3n+3) .food-visual { background: linear-gradient(135deg, #e7d3aa, #ca6c4d); }
.food-visual::before { content: ""; position: absolute; inset: 36px 25%; border: 13px solid rgba(255,255,255,.82); border-radius: 50%; background: rgba(255,255,255,.24); box-shadow: 0 15px 35px rgba(31,37,31,.15); }
.food-visual::after { content: "Chef's pick"; position: absolute; top: 16px; left: 16px; padding: 7px 11px; border-radius: 999px; color: #fff; background: rgba(23,37,30,.82); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.food-visual.has-image { min-height: 0; aspect-ratio: 4 / 3; background: #f7f2e8; }
.food-visual.has-image::before { display: none; }
.food-visual.has-image::after { content: "Easywok"; }
.food-visual.has-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.food-content { padding: 24px; }
.food-content h3 { margin: 0 0 8px; font-size: 22px; }
.food-content p { min-height: 52px; margin: 0 0 17px; color: var(--muted); font-size: 14px; }
.food-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.food-price { color: var(--green); font-size: 18px; font-weight: 850; }
.text-link { color: var(--coral); font-size: 13px; font-weight: 850; }
.story-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 70px; align-items: center; }
.story-art { min-height: 470px; border-radius: 38% 62% 44% 56% / 48% 42% 58% 52%; background: radial-gradient(circle at 34% 32%, rgba(255,255,255,.7) 0 9%, transparent 9.5%), linear-gradient(140deg, #154f3b, #7f9d67 55%, #e1ad5e); box-shadow: var(--shadow); }
.story-copy h2 { margin: 0 0 22px; font-family: Georgia, serif; font-size: clamp(38px, 4.5vw, 58px); font-weight: 600; }
.story-copy p { color: var(--muted); }
.cta { padding: 35px 0 90px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 48px; border-radius: 30px; color: #fff; background: var(--green); }
.cta-inner h2 { max-width: 650px; margin: 0; font-family: Georgia, serif; font-size: clamp(32px, 4vw, 50px); font-weight: 600; }
.cta .button { color: var(--green); background: #fff; white-space: nowrap; }
.content-page { min-height: 60vh; padding: 72px 0 100px; }
.page-title { margin: 0 0 36px; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 68px); font-weight: 600; }
.entry-content { max-width: 920px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 42px; font-family: Georgia, serif; font-size: 34px; }
.entry-content .wp-block-columns { gap: 24px; }
.entry-content .wp-block-column { padding: 25px; border-radius: 18px; background: var(--cream); }
.customer-cart-notice { margin: 0 0 24px; padding: 15px 18px; border: 1px solid rgba(21,79,59,.2); border-radius: 12px; color: var(--green); background: #eef7f1; font-weight: 750; }
.site-footer { padding: 58px 0 26px; color: rgba(255,255,255,.75); background: #102c21; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 45px; }
.footer-grid h3 { margin: 0 0 14px; color: #fff; font-size: 18px; }
.footer-grid p { margin: 5px 0; font-size: 14px; }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }

/* RestroPress integration */
.rpress_fooditems_list, .rpress_fooditems_list .rpress_fooditem_inner { font-family: inherit !important; }
.rpress_fooditems_list .rpress_fooditem { border-color: var(--line) !important; }
.rpress-submit, .rpress_checkout_register_login, #rpress-purchase-button, input.rpress-submit, .rpress_fooditem_buy_button {
  border-radius: 999px !important; color: #fff !important; background: var(--green) !important; border-color: var(--green) !important; font-weight: 750 !important;
}
#rpress_checkout_form_wrap input[type=text], #rpress_checkout_form_wrap input[type=email], #rpress_checkout_form_wrap textarea, #rpress_checkout_form_wrap select { border: 1px solid var(--line) !important; border-radius: 10px !important; padding: 11px !important; }
form.rpress_form input[type="password"] { background-image: none !important; }
.order-test-payment-banner { margin: 0 0 20px; padding: 16px 18px; border: 2px solid #b66a00; border-radius: 14px; color: #623900; background: #fff4d8; }
.order-test-payment-banner strong, .order-test-payment-banner span { display: block; }
.order-test-payment-banner strong { margin-bottom: 3px; font-size: 15px; }
.order-test-payment-banner span { font-size: 13px; }
.order-test-payment-method { margin: 16px 0; padding: 18px; border: 1px solid rgba(21,79,59,.2); border-radius: 14px; color: var(--green); background: #eef7f1; }
.order-test-payment-method p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .header-order { margin-left: auto; }
  .hero-grid, .story-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; max-width: 470px; width: 100%; margin: 0 auto; }
  .food-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-shell { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 70px; }
  .brand-text { display: none; }
  .header-inner { gap: 10px; }
  .mobile-nav { margin-left: 0; }
  .utility-inner { min-height: 36px; gap: 10px; }
  .language-switcher { margin-left: 0; }
  .language-current { display: none; }
  .language-switcher summary { width: 30px; min-height: 26px; justify-content: center; padding: 0; }
  .language-switcher summary::after { display: none; }
  .welcome-customer { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-order { min-height: 42px; padding-inline: 17px; font-size: 13px; }
  .hero { padding: 62px 0 55px; }
  .hero-art { min-height: 300px; }
  .dish { inset: 15px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .service-item:last-child { border-bottom: 0; }
  .section { padding: 65px 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .food-grid { grid-template-columns: 1fr; }
  .story-art { min-height: 340px; }
  .cta-inner { display: block; padding: 34px 27px; }
  .cta-inner .button { margin-top: 25px; }
  .footer-grid { grid-template-columns: 1fr; }
}
