/*
Theme Name: Typickle Premium
Theme URI: https://www.typicklepickles.com/
Author: Typickle Pickles & Grill
Description: Mobile first premium WordPress block theme for Typickle Pickles & Grill. Built for fast restaurant actions, clean pages, branded header/footer, and sticky mobile ordering.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: typickle-premium
*/

:root {
  --typickle-green: #558320;
  --typickle-green-dark: #456d19;
  --typickle-cream: #f7f7f2;
  --typickle-dark: #111827;
  --typickle-text: #4b5563;
  --typickle-forest: #234032;
  --typickle-border: #e5e7eb;
  --typickle-soft-border: #d5dbc8;
  --typickle-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --typickle-radius: 22px;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  background: #ffffff;
  color: var(--typickle-text);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main,
.wp-block-post-content {
  flex: 1;
}

.wp-block-post-content > *:first-child {
  margin-top: 0;
}

.wp-block-post-content > *:last-child {
  margin-bottom: 0;
}

/* Header */
.typickle-site-header-wrap {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid var(--typickle-border);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.typickle-site-header {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.typickle-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--typickle-dark);
  flex-shrink: 0;
}

.typickle-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.typickle-brand-text {
  display: grid;
  gap: 2px;
}

.typickle-brand-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
  color: var(--typickle-dark);
}

.typickle-brand-subtitle {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--typickle-green);
}

.typickle-main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.typickle-main-nav a {
  text-decoration: none;
  color: var(--typickle-dark);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.typickle-main-nav a:hover {
  color: var(--typickle-green);
}

.typickle-header-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--typickle-green);
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(85, 131, 32, 0.24);
}

.typickle-mobile-menu-summary {
  display: none;
}

/* Footer */
.typickle-site-footer-wrap {
  width: 100%;
  background: var(--typickle-green);
  color: #ffffff;
  padding: 48px 20px 28px;
}

.typickle-site-footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.typickle-footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.typickle-footer-logo-row img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 999px;
  padding: 3px;
}

.typickle-footer-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.08;
  color: #ffffff;
}

.typickle-footer-text,
.typickle-footer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.typickle-footer-heading {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.typickle-footer-links {
  display: grid;
  gap: 10px;
}

.typickle-footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.typickle-footer-links a:hover {
  text-decoration: underline;
}

.typickle-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.typickle-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
}

.typickle-footer-bottom {
  width: min(1180px, calc(100vw - 40px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.typickle-footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

/* Mobile action bar */
.typickle-mobile-action-bar {
  display: none;
}

/* Global restaurant block helpers */
.typickle-premium-section {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: hidden;
}

.typickle-premium-button,
.wp-block-button__link {
  border-radius: 8px !important;
  font-weight: 900 !important;
}

/* Mobile polish for existing page custom HTML */
@media screen and (max-width: 768px) {
  body {
    padding-bottom: 86px !important;
  }

  .typickle-site-header {
    min-height: 74px;
  }

  .typickle-brand img {
    width: 52px;
    height: 52px;
  }

  .typickle-brand-title {
    font-size: 16px;
  }

  .typickle-brand-subtitle {
    font-size: 11px;
  }

  .typickle-main-nav {
    display: none;
  }

  .typickle-mobile-menu-summary {
    display: block;
  }

  .typickle-mobile-menu-summary summary {
    list-style: none;
    cursor: pointer;
    background: var(--typickle-cream);
    color: var(--typickle-forest);
    border: 1px solid var(--typickle-soft-border);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 900;
  }

  .typickle-mobile-menu-summary summary::-webkit-details-marker {
    display: none;
  }

  .typickle-mobile-menu-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    background: #ffffff;
    border: 1px solid var(--typickle-border);
    box-shadow: var(--typickle-shadow);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 8px;
  }

  .typickle-mobile-menu-panel a {
    display: block;
    padding: 13px 14px;
    text-decoration: none;
    color: var(--typickle-dark);
    font-size: 15px;
    font-weight: 900;
    background: var(--typickle-cream);
    border-radius: 10px;
  }

  .typickle-mobile-menu-panel .typickle-mobile-menu-order {
    background: var(--typickle-green);
    color: #ffffff;
    text-align: center;
  }

  .typickle-mobile-action-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    display: grid !important;
    grid-template-columns: 1fr 1.35fr 1fr !important;
    gap: 8px !important;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    background: #ffffff !important;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.16) !important;
    border-top: 1px solid var(--typickle-border) !important;
    font-family: Arial, sans-serif !important;
  }

  .typickle-mobile-action-bar a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 50px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  .typickle-mobile-call,
  .typickle-mobile-directions {
    background: var(--typickle-cream) !important;
    color: var(--typickle-forest) !important;
    border: 1px solid var(--typickle-soft-border) !important;
  }

  .typickle-mobile-order {
    background: var(--typickle-green) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(85,131,32,0.28) !important;
  }

  :where([class*="typickle_" i][class*="_title" i]),
  :where([class*="typickle-" i][class*="-title" i]) {
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.08 !important;
  }

  :where([class*="typickle_" i][class*="_text" i]),
  :where([class*="typickle-" i][class*="-text" i]) {
    font-size: 17px !important;
    line-height: 1.55 !important;
  }

  :where([class*="typickle_" i][class*="_container" i]),
  :where([class*="typickle-" i][class*="-container" i]) {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  :where([class*="typickle_" i][class*="_grid" i]),
  :where([class*="typickle-" i][class*="-grid" i]) {
    grid-template-columns: 1fr !important;
  }

  :where([class*="typickle_" i][class*="_button" i]),
  :where([class*="typickle-" i][class*="-button" i]) {
    width: 100% !important;
    text-align: center !important;
  }
}

@media screen and (max-width: 900px) {
  .typickle-site-footer {
    grid-template-columns: 1fr;
  }

  .typickle-footer-bottom {
    display: grid;
    text-align: center;
    justify-content: center;
  }
}
