:root {
  --chef-charcoal: #171716;
  --chef-cream: #f7f1e7;
  --chef-gold: #c59a5b;
  --chef-warm-white: #fffdf8;
  --chef-text: #4c4a45;
  --chef-header-height: 82px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--chef-header-height);
}

body {
  overflow-x: hidden;
  background: var(--chef-cream);
}

#home,
#about,
#services,
#contact {
  scroll-margin-top: var(--chef-header-height);
}

/* Header ------------------------------------------------------------------ */
.chef-header {
  position: sticky !important;
  top: 0;
  z-index: 999 !important;
  width: 100%;
  transition: background-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

body.admin-bar .chef-header {
  top: 32px;
}

.chef-header.is-scrolled {
  background-color: rgba(23, 23, 22, 0.97) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(12px);
}

.chef-header > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(190px, 1fr) minmax(360px, auto) minmax(190px, 1fr) !important;
  align-items: center !important;
  gap: 28px !important;
  width: 100% !important;
}

.chef-header-logo,
.chef-header-nav,
.chef-header-cta {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

.chef-header-logo {
  justify-self: start;
}

.chef-header-nav {
  justify-self: center;
}

.chef-header-cta {
  justify-self: end;
}

.chef-logo,
.chef-logo .elementor-widget-container,
.chef-logo img {
  display: block;
}

.chef-logo img {
  width: auto !important;
  max-width: 210px !important;
  height: auto !important;
}

.chef-main-nav .elementor-nav-menu--main .elementor-item {
  white-space: nowrap;
}

.chef-main-nav .elementor-menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* General typography ------------------------------------------------------ */
.chef-hero-title .elementor-heading-title {
  max-width: 900px;
  text-wrap: balance;
}

.chef-hero-copy {
  max-width: 690px;
}

.chef-eyebrow .elementor-heading-title {
  letter-spacing: 0.16em;
  font-weight: 700;
}

.chef-section-title .elementor-heading-title,
.chef-cta-title .elementor-heading-title {
  text-wrap: balance;
}

.chef-section-intro {
  max-width: 720px;
}

/* About ------------------------------------------------------------------- */
#about > .e-con-inner,
.chef-about > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) !important;
  align-items: center !important;
  gap: clamp(44px, 6vw, 82px) !important;
  width: 100% !important;
}

.chef-about-media,
.chef-about-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.chef-about-media {
  position: relative !important;
}

.chef-about-image img {
  display: block;
  width: 100% !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
}

.chef-experience-badge {
  width: 210px !important;
  max-width: calc(100% - 28px) !important;
  margin: -82px 0 0 auto !important;
  position: relative !important;
  z-index: 4 !important;
}

.chef-about-content .chef-section-title .elementor-heading-title {
  font-size: clamp(42px, 4vw, 64px) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.025em;
}

/* Services ---------------------------------------------------------------- */
#services,
.chef-services {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
  background-attachment: scroll !important;
}

#services::before,
.chef-services::before,
#services > .elementor-background-overlay,
.chef-services > .elementor-background-overlay {
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

#services > .e-con-inner {
  width: 100% !important;
  max-width: 1280px !important;
}

/* Use native Elementor flex containers. Explicit flex-basis values prevent
   generated Elementor width variables from collapsing the cards. */
.chef-services-grid,
.chef-services-grid > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  align-content: stretch !important;
  gap: 22px 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: transparent !important;
}

.chef-service-grid-item {
  --width: calc((100% - 54px) / 4) !important;
  width: calc((100% - 54px) / 4) !important;
  max-width: calc((100% - 54px) / 4) !important;
  flex: 0 0 calc((100% - 54px) / 4) !important;
  min-width: 0 !important;
  min-height: 320px !important;
  margin: 0 !important;
  align-self: stretch !important;
  background-image: none !important;
}

.chef-service-grid-item::before,
.chef-service-grid-item > .elementor-background-overlay {
  display: none !important;
  background-image: none !important;
}

.chef-service-card {
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.chef-service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(197, 154, 91, 0.65) !important;
  box-shadow: 0 24px 54px rgba(23, 23, 22, 0.18) !important;
}

.chef-service-featured {
  border: 2px solid rgba(167, 120, 63, 0.72) !important;
  background-color: rgba(255, 255, 255, 0.94) !important;
}

.chef-service-icon-box,
.chef-service-icon-box .elementor-widget-container,
.chef-service-icon-box .elementor-icon-box-wrapper {
  width: 100% !important;
  height: 100% !important;
}

.chef-service-icon-box .elementor-icon-box-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
}

.chef-service-icon-box .elementor-icon-box-icon {
  margin: 0 0 22px !important;
}

.chef-service-icon-box .elementor-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f2e6d2;
}

.chef-service-icon-box .elementor-icon-box-title {
  margin: 0 0 12px !important;
  text-align: left !important;
  text-transform: uppercase;
  line-height: 1.12 !important;
}

.chef-service-icon-box .elementor-icon-box-description {
  margin: 0 !important;
  text-align: left !important;
  line-height: 1.65 !important;
}

/* Contact ----------------------------------------------------------------- */
#contact > .e-con-inner,
.chef-contact > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) !important;
  align-items: start !important;
  gap: clamp(42px, 6vw, 82px) !important;
  width: 100% !important;
}

#contact > .e-con-inner > .e-con,
.chef-contact-info,
.chef-contact-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.chef-contact-card {
  background: #efe6d8 !important;
  border-radius: 22px !important;
}

.chef-contact-form .elementor-form-fields-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  column-gap: 16px !important;
  row-gap: 18px !important;
  margin: 0 !important;
}

.chef-contact-form .elementor-field-group {
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.chef-contact-form .elementor-field-group.elementor-col-50 {
  width: calc(50% - 8px) !important;
  max-width: calc(50% - 8px) !important;
  flex: 0 0 calc(50% - 8px) !important;
}

.chef-contact-form .elementor-field-group.elementor-col-100,
.chef-contact-form .elementor-field-type-submit {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

.chef-contact-form .elementor-field-label {
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  color: #2b2a27 !important;
}

/* Do not apply text-field dimensions to consent checkboxes. */
.chef-contact-form input.elementor-field:not([type="checkbox"]):not([type="radio"]),
.chef-contact-form select.elementor-field,
.chef-contact-form textarea.elementor-field {
  width: 100% !important;
  min-height: 50px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  color: #282724 !important;
  background: #fffdf8 !important;
  border: 1px solid #d9d0c2 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.chef-contact-form textarea.elementor-field {
  min-height: 150px !important;
  resize: vertical;
}

.chef-contact-form .elementor-field-type-acceptance {
  align-items: flex-start !important;
}

.chef-contact-form .elementor-field-type-acceptance .elementor-field-option {
  display: flex !important;
  align-items: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.chef-contact-form .elementor-field-type-acceptance input[type="checkbox"] {
  appearance: auto !important;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  min-height: 16px !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  flex: 0 0 16px !important;
  border-radius: 2px !important;
}

.chef-contact-form .elementor-field-type-acceptance label {
  margin: 0 !important;
  flex: 1 1 auto !important;
}

.chef-contact-form .elementor-button {
  width: 100% !important;
  min-height: 52px;
  justify-content: center;
}

/* Footer ------------------------------------------------------------------ */
.chef-footer-main,
.chef-footer-main > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: clamp(24px, 2.4vw, 32px) !important;
  width: 100% !important;
  max-width: 1220px !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.chef-footer-brand {
  --width: 31% !important;
  width: 31% !important;
  max-width: 31% !important;
  flex: 0 0 31% !important;
}

.chef-footer-links {
  --width: 17% !important;
  width: 17% !important;
  max-width: 17% !important;
  flex: 0 0 17% !important;
}

.chef-footer-services,
.chef-footer-contact {
  --width: 22% !important;
  width: 22% !important;
  max-width: 22% !important;
  flex: 0 0 22% !important;
}

.chef-footer-brand,
.chef-footer-links,
.chef-footer-services,
.chef-footer-contact {
  min-width: 0 !important;
  align-items: flex-start !important;
  margin: 0 !important;
}

.chef-footer-logo,
.chef-footer-logo .elementor-widget-container {
  text-align: left !important;
}

.chef-footer-logo img {
  display: block !important;
  width: auto !important;
  max-width: 225px !important;
  height: auto !important;
  margin: 0 !important;
}

.chef-footer-bottom,
.chef-footer-bottom > .e-con-inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px 28px !important;
  width: 100% !important;
  max-width: 1220px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.chef-footer-bottom .elementor-widget {
  width: auto !important;
  max-width: 100% !important;
}

.chef-legal-links .elementor-icon-list-items {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px 16px !important;
}

.chef-footer a,
.chef-contact a,
.chef-header a {
  text-underline-offset: 4px;
}

.chef-section a:focus-visible,
.chef-header a:focus-visible,
.chef-footer a:focus-visible,
.chef-section button:focus-visible,
.chef-section input:focus-visible,
.chef-section select:focus-visible,
.chef-section textarea:focus-visible {
  outline: 3px solid var(--chef-gold);
  outline-offset: 3px;
}

/* Tablet ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  :root {
    --chef-header-height: 76px;
  }

  .chef-header > .e-con-inner {
    grid-template-columns: minmax(180px, 1fr) auto !important;
    gap: 18px !important;
  }

  .chef-header-logo {
    grid-column: 1;
  }

  .chef-header-nav {
    grid-column: 2;
    justify-self: end;
    position: relative !important;
  }

  .chef-header-cta {
    display: none !important;
  }

  .chef-logo img {
    max-width: 185px !important;
  }

  .chef-main-nav .elementor-nav-menu--main {
    display: none !important;
  }

  .chef-main-nav .elementor-menu-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
  }

  .chef-main-nav .elementor-nav-menu__container.elementor-nav-menu--dropdown {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(330px, calc(100vw - 40px)) !important;
    z-index: 1001 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  }

  .chef-main-nav .elementor-nav-menu--dropdown .elementor-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 18px !important;
  }

  #about > .e-con-inner,
  .chef-about > .e-con-inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr) !important;
    gap: 38px !important;
  }

  .chef-about-content .chef-section-title .elementor-heading-title {
    font-size: clamp(36px, 5vw, 50px) !important;
  }

  .chef-service-grid-item {
    --width: calc((100% - 18px) / 2) !important;
    width: calc((100% - 18px) / 2) !important;
    max-width: calc((100% - 18px) / 2) !important;
    flex: 0 0 calc((100% - 18px) / 2) !important;
    min-height: 285px !important;
  }

  #contact > .e-con-inner,
  .chef-contact > .e-con-inner {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr) !important;
    gap: 36px !important;
  }

  .chef-footer-main,
  .chef-footer-main > .e-con-inner {
    flex-wrap: wrap !important;
    gap: 42px 4% !important;
  }

  .chef-footer-brand,
  .chef-footer-links,
  .chef-footer-services,
  .chef-footer-contact {
    --width: 48% !important;
    width: 48% !important;
    max-width: 48% !important;
    flex: 0 0 48% !important;
  }
}

/* Mobile ------------------------------------------------------------------ */
@media (max-width: 767px) {
  :root {
    --chef-header-height: 70px;
  }

  body.admin-bar .chef-header {
    top: 46px;
  }

  .chef-header > .e-con-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
  }

  .chef-logo img {
    max-width: 155px !important;
  }

  .chef-main-nav .elementor-nav-menu__container.elementor-nav-menu--dropdown {
    position: fixed !important;
    top: calc(var(--chef-header-height) + 10px) !important;
    right: 16px !important;
    left: 16px !important;
    width: auto !important;
  }

  body.admin-bar .chef-main-nav .elementor-nav-menu__container.elementor-nav-menu--dropdown {
    top: calc(var(--chef-header-height) + 56px) !important;
  }

  .chef-hero-title .elementor-heading-title {
    font-size: clamp(2.5rem, 12vw, 3.6rem) !important;
    line-height: 1.04 !important;
  }

  .chef-section-title .elementor-heading-title,
  .chef-cta-title .elementor-heading-title,
  .chef-about-content .chef-section-title .elementor-heading-title {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }

  #about > .e-con-inner,
  .chef-about > .e-con-inner,
  #contact > .e-con-inner,
  .chef-contact > .e-con-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  .chef-experience-badge {
    width: min(86%, 320px) !important;
    margin-top: -42px !important;
  }

  .chef-services-grid,
  .chef-services-grid > .e-con-inner {
    gap: 16px !important;
  }

  .chef-service-grid-item {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    min-height: 220px !important;
  }

  .chef-primary-cta,
  .chef-secondary-cta,
  .chef-primary-cta .elementor-button,
  .chef-secondary-cta .elementor-button {
    width: 100%;
  }

  .chef-primary-cta .elementor-button,
  .chef-secondary-cta .elementor-button {
    justify-content: center;
  }

  .chef-service-card:hover {
    transform: none;
  }

  .chef-contact-form .elementor-field-group.elementor-col-50,
  .chef-contact-form .elementor-field-group.elementor-col-100,
  .chef-contact-form .elementor-field-type-submit {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }

  .chef-contact-card {
    padding: 28px 20px !important;
  }

  .chef-footer-main,
  .chef-footer-main > .e-con-inner {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 34px !important;
  }

  .chef-footer-brand,
  .chef-footer-links,
  .chef-footer-services,
  .chef-footer-contact {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  .chef-footer-bottom,
  .chef-footer-bottom > .e-con-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .chef-footer-bottom .elementor-widget {
    width: 100% !important;
  }

  .chef-legal-links .elementor-icon-list-items {
    justify-content: flex-start !important;
  }

  .chef-footer-logo img {
    max-width: 205px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
