/**
 * [ws_pizza_header] + [ws_pizza_hero]: Live Pizza & Pasta Catering landing page.
 * Scoped to .ws-ph so Divi and the global Gravity Forms styles don't leak in.
 */

.ws-ph {
  --ws-ph-ink: #1a1612;
  --ws-ph-black: #111111;
  --ws-ph-gold: #b8935a;
  --ws-ph-gold-hover: #cba970;
  --ws-ph-cream: #f8f4ed;
  --ws-ph-muted: #5e5952;
  --ws-ph-soft: #ddd7ce;
  --ws-ph-softer: #d1cbc2;
  --ws-ph-line: #d9d2c8;
  --ws-ph-border: #8c857a;
  --ws-ph-error: #a72a2a;
  --ws-ph-focus: #1c73b8;
  --ws-ph-serif: Georgia, 'Times New Roman', serif;
  --ws-ph-sans: Arial, Helvetica, sans-serif;

  font: 16px/1.6 var(--ws-ph-sans);
  -webkit-font-smoothing: antialiased;
}
.ws-ph *,
.ws-ph *::before,
.ws-ph *::after { box-sizing: border-box; }

.ws-ph p,
.ws-ph h1,
.ws-ph h2 { padding: 0; }                       /* beats Divi's heading/paragraph padding */
:where(.ws-ph) :where(p, h1, h2) { margin: 0; }  /* zero specificity so the class margins below win */

.ws-ph h1,
.ws-ph h2 {
  font-family: var(--ws-ph-serif);
  font-weight: 400;
  line-height: 1.09;
  color: inherit;
}

.ws-ph a { color: inherit; }
.ws-ph img { display: block; max-width: 100%; }

.ws-ph a:focus-visible,
.ws-ph button:focus-visible,
.ws-ph input[type="submit"]:focus-visible,
.ws-ph input[type="button"]:focus-visible {
  outline: 3px solid var(--ws-ph-focus);
  outline-offset: 4px;
}

.ws-ph-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px;
}

.ws-ph-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 23px;
  border: 0;
  border-radius: 3px;
  background: var(--ws-ph-gold);
  color: var(--ws-ph-ink) !important;
  font: 700 16px/1.35 var(--ws-ph-sans);
  text-align: center;
  text-decoration: none;
  transition: background .15s;
}
.ws-ph-button:hover { background: var(--ws-ph-gold-hover); }


/* ---------- Announcement + header ---------- */
.ws-ph-announcement {
  padding: 9px 18px;
  background: var(--ws-ph-cream);
  color: var(--ws-ph-ink);
  font-size: 13px;
  letter-spacing: .35px;
  text-align: center;
}

.ws-ph-header {
  background: var(--ws-ph-black);
  color: #fff;
}
.ws-ph-header .ws-ph-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 94px;
}
.ws-ph-logo {
  width: 178px;
  height: auto;
}
.ws-ph-header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.ws-ph-phone {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: #fff !important;
  text-decoration: none;
}
.ws-ph-phone small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--ws-ph-softer);
}


/* ---------- Hero ---------- */
.ws-ph-hero {
  padding: 28px 0 64px;
  background: var(--ws-ph-black);
  color: #fff;
}
.ws-ph-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 55px;
  align-items: start;
}

.ws-ph-eyebrow {
  margin-bottom: 19px;
  color: var(--ws-ph-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.6;
  text-transform: uppercase;
}

.ws-ph-reviews {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 18px;
  color: var(--ws-ph-soft) !important;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.ws-ph-reviews:hover span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ws-ph-stars {
  display: inline-flex;
  gap: 2px;
}
.ws-ph-stars svg { fill: #fbbc04; }

.ws-ph-hero h1.ws-ph-title {
  max-width: 720px;
  color: #fff;
  font-size: clamp(42px, 4.6vw, 69px);
  letter-spacing: -1.9px;
}

.ws-ph-intro {
  max-width: 570px;
  margin-top: 16px;
  color: var(--ws-ph-soft);
  font-size: 18px;
  line-height: 1.6;
}

.ws-ph-offer {
  margin-top: 21px;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
}
.ws-ph-offer strong {
  font-size: 24px;
  font-weight: 700;
}

.ws-ph-hero-note {
  margin-top: 5px;
  color: var(--ws-ph-softer);
  font-size: 13px;
  line-height: 1.6;
}

.ws-ph-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}
.ws-ph-text-link {
  color: #fff !important;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.ws-ph-hero img.ws-ph-photo {
  width: 100%;
  height: 256px;
  margin-top: 29px;
  border-radius: 3px;
  object-fit: cover;
  object-position: center 53%;
}


/* ---------- Form card ---------- */
.ws-ph-card {
  position: relative;
  margin-top: 5px;
  padding: 30px;
  border-radius: 5px;
  background: #fff;
  color: var(--ws-ph-ink);
  scroll-margin-top: 20px;
}
.ws-ph-anchor {
  position: absolute;
  top: -20px;
}

.ws-ph-card-eyebrow {
  margin-bottom: 13px;
  color: var(--ws-ph-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.6;
  text-transform: uppercase;
}
.ws-ph-card h2.ws-ph-card-title {
  color: var(--ws-ph-ink);
  font-size: 31px;
  letter-spacing: -.6px;
}
.ws-ph-card-intro {
  margin-top: 10px;
  color: var(--ws-ph-muted);
  font-size: 14px;
  line-height: 1.5;
}

.ws-ph-stepper {
  height: 3px;
  margin: 22px 0 30px;
  background: #e8e2d9;
}
.ws-ph-stepper span {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--ws-ph-ink);
  transition: width .2s;
}

.ws-ph-form-note {
  margin-top: 10px;
  color: var(--ws-ph-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.ws-ph-form-note a {
  color: inherit !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ---------- Gravity Forms inside the card ---------- */
.ws-ph-card .gform_wrapper.gravity-theme {
  margin: 0;
  font-family: var(--ws-ph-sans);
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 16px;
  row-gap: 16px;
}
.ws-ph-card .gform_wrapper.gravity-theme .gfield {
  margin: 0;
  padding: 0;
}

/* Labels (the global CSS forces them white) */
.ws-ph-card .gform_wrapper.gravity-theme .gfield_label,
.ws-ph-card .gform_wrapper.gravity-theme .gfield_label.gform-field-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--ws-ph-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.ws-ph-card .gform_wrapper.gravity-theme .gfield_required,
.ws-ph-card .gform_wrapper.gravity-theme .ginput_counter { display: none; }
.ws-ph-card .gform_wrapper.gravity-theme .ws-ph-optional .gfield_label::after {
  content: " (optional)";
  color: var(--ws-ph-muted);
  font-weight: 400;
}

/* Inputs */
.ws-ph-card .gform_wrapper.gravity-theme input[type="text"],
.ws-ph-card .gform_wrapper.gravity-theme input[type="email"],
.ws-ph-card .gform_wrapper.gravity-theme input[type="tel"],
.ws-ph-card .gform_wrapper.gravity-theme input[type="date"],
.ws-ph-card .gform_wrapper.gravity-theme select {
  display: block;
  width: 100% !important;
  min-height: 49px;
  margin: 0;
  padding: 10px 12px !important;
  border: 1px solid var(--ws-ph-border) !important;
  border-radius: 3px;
  background-color: #fff;
  color: var(--ws-ph-ink);
  font: 600 16px/1.35 var(--ws-ph-sans);
  box-shadow: none;
}
.ws-ph-card .gform_wrapper.gravity-theme input::placeholder { color: #8a847b; }
.ws-ph-card .gform_wrapper.gravity-theme input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}
.ws-ph-card .gform_wrapper.gravity-theme input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.ws-ph-card .gform_wrapper.gravity-theme input:disabled {
  background: #eeece7;
  color: #8a847b;
}
.ws-ph-card .gform_wrapper.gravity-theme input:focus,
.ws-ph-card .gform_wrapper.gravity-theme select:focus {
  outline: 3px solid var(--ws-ph-focus);
  outline-offset: 1px;
}

/* "My date is flexible" checkbox */
.ws-ph-card .gform_wrapper.gravity-theme .ws-ph-flexible { margin-top: -6px; }
.ws-ph-card .gform_wrapper.gravity-theme .ws-ph-flexible .gchoice {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ws-ph-card .gform_wrapper.gravity-theme .ws-ph-flexible input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ws-ph-ink);
  cursor: pointer;
}
.ws-ph-card .gform_wrapper.gravity-theme .ws-ph-flexible label {
  margin: 0;
  color: var(--ws-ph-ink) !important;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

/* Footer: buttons + notes. Page 2 order: submit, note, back link. */
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer,
.ws-ph-card .gform_wrapper.gravity-theme .gform_footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 21px 0 0;
  padding: 0;
  border: 0;
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button,
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer .gform_button {
  order: 1;
  width: 100%;
  min-height: 54px;
  margin: 0 !important;
  padding: 14px 20px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: var(--ws-ph-gold) !important;
  color: var(--ws-ph-ink) !important;
  font: 700 16px/1.35 var(--ws-ph-sans) !important;
  white-space: normal;
  cursor: pointer;
  transition: background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer .gform_next_button:hover,
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer .gform_button:hover {
  background: var(--ws-ph-gold-hover) !important;
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer .ws-ph-form-note { order: 2; }
.ws-ph-card .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button {
  order: 3;
  align-self: flex-start;
  width: auto;
  min-height: 40px;
  margin: 14px 0 0 !important;
  padding: 8px 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--ws-ph-ink) !important;
  font: 400 16px/1.35 var(--ws-ph-sans) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_ajax_spinner,
.ws-ph-card .gform_wrapper.gravity-theme .gform-loader {
  order: 2;
  align-self: center;
  margin: 10px auto 0;
}

/* Validation */
.ws-ph-card .gform_wrapper.gravity-theme .gform_validation_errors {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--ws-ph-error);
  border-radius: 3px;
  background: #fbf3f3;
  box-shadow: none;
  outline: none;   /* GF focuses the summary after a failed step */
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_validation_errors > h2 {
  margin: 0;
  color: var(--ws-ph-error);
  font: 600 14px/1.5 var(--ws-ph-sans);
}
.ws-ph-card .gform_wrapper.gravity-theme .gform_validation_errors > h2 .gform-icon { display: none; }
.ws-ph-card .gform_wrapper.gravity-theme .gfield_error input,
.ws-ph-card .gform_wrapper.gravity-theme .gfield_error select { border-color: var(--ws-ph-error) !important; }
.ws-ph-card .gform_wrapper.gravity-theme .gfield_validation_message,
.ws-ph-card .gform_wrapper.gravity-theme .validation_message {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ws-ph-error);
  font-size: 13px;
  line-height: 1.45;
}


/* ---------- Sticky mobile CTA ---------- */
.ws-ph-mobile-bar { display: none; }


/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .ws-ph-wrap { padding: 0 26px; }
  .ws-ph-grid {
    grid-template-columns: 1.12fr 1fr;
    gap: 30px;
  }
  .ws-ph-hero h1.ws-ph-title { font-size: 50px; }
  .ws-ph-card { padding: 25px; }
  .ws-ph-hero img.ws-ph-photo { height: 250px; }
}


/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .ws-ph-wrap { padding: 0 20px; }

  .ws-ph-announcement {
    padding: 7px 12px;
    font-size: 12px;
  }
  .ws-ph-header .ws-ph-wrap { height: 75px; }
  .ws-ph-logo { width: 144px; }
  .ws-ph-header-right { gap: 0; }
  .ws-ph-header-right > .ws-ph-button,
  .ws-ph-phone small { display: none; }
  .ws-ph-phone { font-size: 14px; }

  .ws-ph-hero { padding: 14px 0 36px; }
  .ws-ph-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .ws-ph-eyebrow {
    margin-bottom: 14px;
    font-size: 11px;
    letter-spacing: 1.7px;
  }
  .ws-ph-reviews {
    margin: -2px 0 14px;
    font-size: 13px;
  }
  .ws-ph-hero h1.ws-ph-title {
    font-size: 43px;
    letter-spacing: -1.4px;
    line-height: 1.07;
  }
  .ws-ph-intro {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }
  .ws-ph-offer {
    margin-top: 17px;
    font-size: 15px;
  }
  .ws-ph-offer strong { font-size: 21px; }
  .ws-ph-hero-note { font-size: 12px; }
  .ws-ph-actions {
    gap: 14px;
    margin-top: 21px;
  }
  .ws-ph-actions .ws-ph-button {
    flex: 1;
    padding-left: 13px;
    padding-right: 13px;
    white-space: nowrap;
  }
  .ws-ph-text-link { font-size: 13px; }
  .ws-ph-hero img.ws-ph-photo {
    height: 185px;
    margin-top: 24px;
  }

  .ws-ph-card {
    margin: 0;
    padding: 23px;
  }
  .ws-ph-card h2.ws-ph-card-title { font-size: 30px; }

  .ws-ph-mobile-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--ws-ph-line);
    background: #fff;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, .06);
    transition: transform .15s;
  }
  .ws-ph-mobile-bar.is-hidden { transform: translateY(130%); }
  .ws-ph-mobile-bar .ws-ph-button {
    flex: 1;
    min-height: 48px;
    padding: 10px 15px;
    font-size: 14px;
  }
  .ws-ph-mobile-bar .ws-ph-call {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 65px;
    min-height: 48px;
    color: var(--ws-ph-ink) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
  }

  /* Room for the sticky bar so it never sits over the footer */
  body.ws-ph-has-bar { padding-bottom: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-ph *,
  .ws-ph-mobile-bar { transition: none !important; }
}
