/* ============================================================
   Foody — Contact page (from design reference contact.html /
   js/pages/contact.js pageContact()).
   Loaded via inherited view: website.foody_header_style -> website.layout
   Scoped to .foody-contact. Design tokens + .f-wrap + #wrap .eyebrow
   + #wrap .sec come from foody_home.css (also loaded globally).

   NOTE: the contact form itself is the STANDARD Odoo website form
   (s_website_form). Its fields and submission plumbing are left
   untouched — this file only restyles the existing markup.
   ============================================================ */

.foody-contact {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}

/* ---------- Page hero ---------- */
.foody-contact .page-hero {
  background: linear-gradient(120deg, var(--mint), var(--pink-soft));
  padding: 3.6rem 0;
  border-radius: 0 0 32px 32px;
}

.foody-contact .page-hero h1 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: .5rem 0 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.foody-contact .page-hero p {
  max-width: 56ch;
  color: var(--muted);
  margin-top: .8rem;
}

/* ---------- Two-column layout ----------
   #wrap prefix raises specificity above the global `#wrap .split`
   (id-level) rule in foody_home.css, which otherwise forces
   align-items:center. Contact columns align to the top instead. */
#wrap .foody-contact .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

#wrap .foody-contact .split.narrowl {
  grid-template-columns: .85fr 1.15fr;
}

@media (max-width:900px) {
  #wrap .foody-contact .split,
  #wrap .foody-contact .split.narrowl {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

/* ---------- Cards ---------- */
.foody-contact .card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
}

.foody-contact .contact-info {
  display: grid;
  gap: 1rem;
}

.foody-contact .info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.foody-contact .info-card .ic {
  color: var(--green);
  flex-shrink: 0;
  line-height: 0;
}

.foody-contact .info-card b {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
}

.foody-contact .info-card p {
  font-size: .88rem;
  margin: .25rem 0 0;
}

/* USPS-convention address (uppercase, one element per line) */
.foody-contact .usps-address {
  font-size: .85rem;
  line-height: 1.5;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.foody-contact .usps-address div {
  margin: 0;
}

/* dynamic email / phone links */
.foody-contact .info-card a {
  color: inherit;
  text-decoration: none;
}

.foody-contact .info-card a:hover {
  color: var(--green);
  text-decoration: underline;
}

/* ---------- Form card heading ---------- */
.foody-contact .form-card .form-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
}

/* ============================================================
   Restyle the EXISTING Odoo website form (fields unchanged)
   ============================================================ */
.foody-contact .s_website_form .container {
  max-width: none;
  padding: 0;
}

.foody-contact .s_website_form_rows {
  --bs-gutter-x: 1rem;
  row-gap: 1rem;
  margin: 0;
}

/* The website editor's "Create a Lead" action regenerates each field into a
   Bootstrap horizontal row (a 200px label beside the input, in an inner
   `.row > label.col-sm-auto + .col-sm`). Neutralize that inner grid so the
   label stacks above a full-width input — matching the design. Harmless for
   the simpler label+input structure too. */
.foody-contact .s_website_form_field > .row {
  display: block;
  margin: 0;
  --bs-gutter-x: 0;
}

.foody-contact .s_website_form_field > .row > .col-sm,
.foody-contact .s_website_form_field > .row > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  padding: 0;
}

/* col-form-label adds vertical padding for inline alignment — drop it once stacked */
.foody-contact .s_website_form_field .col-form-label {
  padding-top: 0;
  padding-bottom: 0;
}

/* labels — override the inline width:200px, stack above the input */
.foody-contact .s_website_form_label {
  width: auto !important;
  display: block;
  margin: 0 0 .35rem;
  padding: 0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.foody-contact .s_website_form_mark {
  color: var(--rose-deep);
}

/* inputs / textarea */
.foody-contact .s_website_form_input,
.foody-contact .form-control {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: .8rem 1rem;
  background: #fff;
  outline: none;
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .15s;
}

.foody-contact .s_website_form_input:focus,
.foody-contact .form-control:focus {
  border-color: var(--green);
  box-shadow: none;
}

.foody-contact textarea.s_website_form_input {
  min-height: 120px;
  resize: vertical;
}

/* submit row — drop the 200px label spacer, left-align, pill button */
.foody-contact .s_website_form_submit {
  text-align: left !important;
}

.foody-contact .s_website_form_submit > .s_website_form_label {
  display: none !important;
}

.foody-contact .s_website_form_send,
.foody-contact a.s_website_form_send.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: none;
  border-radius: 999px;
  padding: .85rem 1.8rem;
  font-weight: 700;
  font-size: .94rem;
  line-height: 1.1;
  font-family: "Manrope", sans-serif;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s;
}

.foody-contact .s_website_form_send:hover,
.foody-contact a.s_website_form_send.btn:hover {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
