/*
Theme Name: Crane
Theme URI: https://example.com/crane
Author: Crane Team
Author URI: https://example.com
Description: A clean, lightweight starter theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: crane
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* Basic sensible defaults */
:root {
  --crane-max-width: 72rem;
  --crane-gutter: 1.25rem;
  --crane-text: #111827;
  --crane-muted: #6b7280;
  --crane-bg: #ffffff;
  --crane-border: #e5e7eb;
  --crane-link: #2563eb;
  --crane-footer-bg: #6e7ead;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--crane-text);
  background: var(--crane-bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

/* Wix header/menu: prevent hydration from hiding it */
#SITE_HEADER .hidden-during-prewarmup,
#SITE_HEADER wix-dropdown-menu.hidden-during-prewarmup {
  visibility: visible !important;
  display: block !important;
  opacity: 1 !important;
}

/* Extra safety: some pages get inline visibility styles */
#SITE_HEADER wix-dropdown-menu,
#SITE_HEADER wix-dropdown-menu#comp-kz4bym5d {
  visibility: visible !important;
}

/* Book Online product grid (3 columns) */
.crane-products__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .crane-products__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .crane-products__list {
    grid-template-columns: 1fr;
  }
}

.crane-product {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.crane-product__image {
  display: block;
  margin: 0 0 10px;
}

.crane-product__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.crane-product__cta {
  display: inline-block;
  margin-top: 10px;
  color: var(--crane-link);
  font-weight: 600;
}

a.crane-product__cta {
  cursor: pointer;
  text-decoration: none;
}

a.crane-product__cta:hover,
a.crane-product__cta:focus {
  text-decoration: underline;
}

a {
  color: var(--crane-link);
}

.crane-container {
  max-width: var(--crane-max-width);
  padding: 0 var(--crane-gutter);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--crane-border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-title {
  margin: 0;
  font-size: 1.125rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-description {
  margin: 0.125rem 0 0;
  color: var(--crane-muted);
  font-size: 0.9375rem;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  text-decoration: none;
}

main.site-main {
  padding: 2rem 0;
}

.post-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--crane-border);
}

.post-card:last-child {
  border-bottom: 0;
}

.post-card h2 {
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.post-meta {
  color: var(--crane-muted);
  font-size: 0.9375rem;
  margin: 0 0 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--crane-border);
  padding: 1.25rem 0;
  color: var(--crane-muted);
  font-size: 0.9375rem;
}

.wp-block-image img {
  height: auto;
}

img {
  max-width: 100%;
}

/* Make the imported Wix footer readable without Wix CSS */
#SITE_FOOTER {
  background: var(--crane-footer-bg);
  color: #fff;
  padding: 1.5rem 0;
}

#SITE_FOOTER,
#SITE_FOOTER * {
  color: #fff !important;
}

#SITE_FOOTER a {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#SITE_FOOTER a:hover,
#SITE_FOOTER a:focus {
  opacity: 0.9;
}

#SITE_FOOTER [data-testid="mesh-container-content"] {
  max-width: var(--crane-max-width);
  padding: 0 var(--crane-gutter);
  margin: 0 auto;
}

/* Policy bar injected into static Wix HTML pages */
#crane-policy-footer {
  background: var(--crane-footer-bg);
  color: #fff;
  padding: 1rem 0;
}

#crane-policy-footer,
#crane-policy-footer * {
  color: #fff !important;
}

#crane-policy-footer .crane-policy-footer-inner {
  max-width: var(--crane-max-width);
  padding: 0 var(--crane-gutter);
  margin: 0 auto;
  text-align: center;
}

#crane-policy-footer .crane-policy-links,
#crane-policy-footer .crane-policy-copyright {
  margin: 0.25rem 0;
  font-size: 15px;
  line-height: 1.875em;
}

#crane-policy-footer a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#SITE_FOOTER .crane-policy-dialog-open,
#crane-policy-footer .crane-policy-dialog-open {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

#SITE_FOOTER .crane-policy-dialog-open:hover,
#SITE_FOOTER .crane-policy-dialog-open:focus,
#crane-policy-footer .crane-policy-dialog-open:hover,
#crane-policy-footer .crane-policy-dialog-open:focus {
  opacity: 0.9;
}

.crane-policy-dialog {
  max-width: min(720px, 92vw);
  width: 100%;
  max-height: 88vh;
  padding: 0;
  border: none;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.crane-policy-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.crane-policy-dialog__shell {
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.crane-policy-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f7f8fb;
}

.crane-policy-dialog__title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #151414 !important;
}

.crane-policy-dialog__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  color: #151414;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.crane-policy-dialog__close:hover,
.crane-policy-dialog__close:focus {
  background: rgba(0, 0, 0, 0.1);
}

.crane-policy-dialog__body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  color: #222 !important;
  text-align: left;
}

.crane-policy-dialog__body h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: #151414 !important;
}

.crane-policy-dialog__body h2:first-of-type {
  margin-top: 0;
}

.crane-policy-dialog__body p,
.crane-policy-dialog__body li {
  color: #333 !important;
  line-height: 1.55;
}

.crane-policy-dialog__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.crane-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(21, 20, 20, 0.96);
  color: #fff;
  padding: 0.9rem 0;
}

.crane-cookie-banner__inner {
  max-width: var(--crane-max-width);
  padding: 0 var(--crane-gutter);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.crane-cookie-banner__text {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.35;
  font-size: 0.9375rem;
}

.crane-cookie-banner__link {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 0 0.35rem;
  font: inherit;
  color: #fff;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.crane-cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.crane-cookie-banner__btn {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #fff;
}

.crane-cookie-banner__btn--primary {
  background: #fff;
  color: #151414;
  border-color: #fff;
}

@media (max-width: 700px) {
  .crane-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .crane-cookie-banner__actions {
    justify-content: flex-end;
  }
}

/* Contact page: remove Wix-imposed min-height spacer */
[data-mesh-id="comp-kysqratoinlineContent-gridContainer"] {
  min-height: 0 !important;
}

/* Contact page: remove forced page min-height that creates a white gap */
#rqtjo,
[data-mesh-id="ContainerrqtjoinlineContent-gridContainer"] {
  min-height: 0 !important;
}

