/* La Tavola Site — layout fixes. Each block names the root cause it addresses. */

/* Light-only design (see color-scheme meta in lt-site.php). */
:root{color-scheme:only light;}

/* White strip above the footer on every page: Hello's #site-footer has 16px padding on a white
   background, and the navy footer band (.lt-footer-info) sits inside it. */
#site-footer.site-footer{padding:0 !important;background:#0E1D49;}

/* Paired buttons that meet in the middle (Home hero "Reserve a Table" + "View Menu", "Reserve Online" + "Call"):
   one is right-aligned in the left column, the other left-aligned in the right column. With different widths
   (216px vs 171px) the pair leaned 23px left of centre on laptops. Equal widths make the pair exactly centred. */
@media (min-width:768px){
  .elementor-widget-button.elementor-align-right .elementor-button,
  .elementor-widget-button.elementor-align-left .elementor-button{min-width:230px;justify-content:center;box-sizing:border-box;}
}

/* Contact Form 7 (Location page) was unstyled and its button picked up Hello's pink-red #c36. */
.wpcf7 form label{display:block;margin:0 0 16px;font-family:'Lato',sans-serif;font-size:12px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;color:#0E1D49;}
.wpcf7 form .wpcf7-form-control-wrap{display:block;margin-top:6px;}
.wpcf7 form input[type=text],.wpcf7 form input[type=email],.wpcf7 form input[type=tel],.wpcf7 form textarea{width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid rgba(14,29,73,.25);border-radius:2px;background:#fff;color:#0E1D49;font:400 15px/1.4 'Lato',sans-serif;letter-spacing:0;text-transform:none;}
.wpcf7 form textarea{height:150px;resize:vertical;}
.wpcf7 form input:focus,.wpcf7 form textarea:focus{outline:none;border-color:#D19E12;box-shadow:0 0 0 3px rgba(209,158,18,.2);}
.wpcf7 form .wpcf7-submit,.wpcf7 form .wpcf7-submit:hover,.wpcf7 form .wpcf7-submit:focus{background:#D19E12;color:#0E1D49;border:0;border-radius:2px;padding:15px 34px;font:700 12.5px 'Lato',sans-serif;letter-spacing:2px;text-transform:uppercase;cursor:pointer;}
.wpcf7 form .wpcf7-submit:hover{background:#0E1D49;color:#DDC8A2;}
.wpcf7 form .wpcf7-submit:focus-visible{outline:2px solid #0E1D49;outline-offset:2px;}

/* Live Google reviews ([lt_google_reviews]) — styled like the old "From the Table" testimonials. */
.lt-reviews{max-width:1100px;margin:0 auto;text-align:center;color:#0E1D49;font-family:'Lato',sans-serif;}
.lt-reviews-sum{margin:0 0 26px;font-size:13px;letter-spacing:.6px;color:#4a505f;}
.lt-reviews-sum-stars{color:#D19E12;font-size:16px;}
.lt-reviews-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:34px 40px;}
.lt-review{margin:0;display:flex;flex-direction:column;align-items:center;}
.lt-review-stars{color:#D19E12;letter-spacing:6px;font-size:17px;margin:0 0 14px;}
.lt-review-text{margin:0;padding:0;border:0;}
.lt-review-text p{margin:0;font-style:italic;font-size:15px;line-height:1.65;color:#2b3242;}
.lt-review-text.is-clamped p{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;}
.lt-review-more,.lt-review-more:hover,.lt-review-more:focus{background:none;border:0;padding:6px 0 0;color:#9a7c20;font:700 11px 'Lato',sans-serif;letter-spacing:1.4px;text-transform:uppercase;cursor:pointer;}
.lt-review-by{display:flex;align-items:center;gap:10px;margin-top:16px;text-align:left;}
.lt-review-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none;}
.lt-review-who{display:flex;flex-direction:column;line-height:1.3;}
.lt-review-name{font-weight:700;font-size:13.5px;color:#0E1D49 !important;text-decoration:none;}
.lt-review-meta{font-size:11.5px;color:#6a7080;}
.lt-review-meta a{color:#6a7080 !important;text-decoration:underline;text-underline-offset:2px;}
.lt-reviews-foot{margin:30px 0 0;}
.lt-reviews-all{display:inline-block;border:1px solid #D19E12;color:#0E1D49 !important;text-decoration:none;padding:12px 26px;font:700 11.5px 'Lato',sans-serif;letter-spacing:1.8px;text-transform:uppercase;}
.lt-reviews-all:hover{background:#D19E12;}
.lt-reviews:not(.is-loaded):not(.is-fallback) .lt-reviews-foot{visibility:hidden;}

@media (max-width:767px){

  /* Paired buttons (hero "Reserve a Table / View Menu", "Reserve Online / Call") are aligned right + left
     so they meet in the middle on desktop; stacked on a phone they zig-zag. Centre them, equal width. */
  .elementor-widget-button.elementor-align-left,
  .elementor-widget-button.elementor-align-right,
  .elementor-widget-button .elementor-button-wrapper{text-align:center !important;}
  /* min() so a 250px button never spills out of a narrower column (it pushed the hero pair 10px right). */
  .elementor-widget-button .elementor-button{min-width:min(250px,100%);max-width:100%;box-sizing:border-box;justify-content:center;}
  /* Small text-link buttons (e.g. "Explore →") shouldn't be stretched or wrap their arrow. */
  .elementor-widget-button .elementor-button-text{white-space:nowrap;}
  .elementor-widget-button .elementor-button.elementor-size-xs,
  .elementor-widget-button .elementor-button.elementor-size-sm{min-width:0;}

  /* Mixed left/centre alignment across stacked sections looked ragged on a phone (e.g. Home "Host Your Moment",
     Location "Our Location & Hours"). The site is centred everywhere else, so centre short blocks on mobile. */
  .elementor-top-section .elementor-widget-heading .elementor-heading-title,
  .elementor-top-section .elementor-widget-text-editor{text-align:center !important;}
  /* Dividers: Elementor's per-element CSS (.elementor-NN .elementor-element.elementor-element-xx …) pins left-aligned
     ones with margin-right:auto and adds 15px padding on top of the widget's own spacing. */
  html body .elementor-top-section .elementor-widget-divider{margin:4px 0 14px !important;padding:0 !important;}
  html body .elementor-top-section .elementor-widget-divider .elementor-divider{justify-content:center !important;text-align:center !important;padding-top:6px !important;padding-bottom:6px !important;}
  html body .elementor-top-section .elementor-widget-divider .elementor-divider-separator{margin-left:auto !important;margin-right:auto !important;}
  .elementor-top-section .elementor-widget-image{text-align:center;}
  /* Two-column sections (Home events band, Location) carry desktop gutters on the inner side only (30px right on
     the image column, 30px left on the text column), so once stacked they shifted in opposite directions. */
  html body .elementor-top-section > .elementor-container > .elementor-col-50 > .elementor-widget-wrap{padding-left:10px !important;padding-right:10px !important;}
  html body .elementor-top-section > .elementor-container > .elementor-col-50 + .elementor-col-50{margin-top:22px;}
  /* An image directly above a heading (Home events band) only had 5px clearance. */
  html body .elementor-top-section .elementor-widget-image + .elementor-widget-heading{margin-top:18px !important;}

  /* "What We Offer" cards (About, Private Events): flex-basis 260px became a fixed *height* once the row
     stacked into a column, leaving a big empty box under each card's text. */
  .lt-svc-grid .lt-card{flex-basis:auto !important;min-height:0 !important;}

  /* Rows of image-only columns (Private Events room, Gallery categories, Home "Happening") stacked one photo
     per screen. Lay them out two-up, with an odd last photo spanning the full width. */
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) > .elementor-container{
    display:grid !important;grid-template-columns:1fr 1fr;gap:12px;
  }
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) > .elementor-container > .elementor-column{
    width:100% !important;margin:0 !important;
  }
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) > .elementor-container > .elementor-column:last-child:nth-child(odd){
    grid-column:1 / -1;
  }
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) .elementor-widget-wrap{padding:0 !important;}
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) .elementor-widget-image{margin:0 !important;padding:3px !important;}
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) .elementor-widget-image img{
    max-height:none !important;width:100% !important;aspect-ratio:1/1;object-fit:cover;
  }
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) > .elementor-container > .elementor-column:last-child:nth-child(odd) img{
    aspect-ratio:16/10;
  }
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)) .elementor-widget-spacer{display:none !important;}
  /* Consecutive image rows in one section: keep the same 12px rhythm between rows. */
  html body .elementor-inner-section:has(.elementor-widget-image):not(:has(.elementor-widget-heading,.elementor-widget-text-editor,.elementor-widget-button,.elementor-widget-html,.elementor-widget-shortcode,.elementor-widget-icon-list)){padding:0 !important;margin-bottom:12px !important;}

  /* Home "Inside La Tavola": 9 photos in a 2-up grid left one orphan; 3-up keeps it a tidy 3x3. */
  html body .lt-gal-grid{grid-template-columns:repeat(3,1fr) !important;gap:8px !important;}
  html body .lt-gal-grid img{box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(209,158,18,.5) !important;}

  .wpcf7 form .wpcf7-submit{width:100%;}
}

/* Happenings "Coming soon" block: the page CSS caps every <p> at 620px and centres it with margin:auto, but the gold
   eyebrow's own margin:0 0 10px drops the auto — on laptops its box sits ~46px left of centre (phones are narrower
   than 620px, so it looked fine there). */
html body .lt-cs .eyebrow{margin-left:auto;margin-right:auto;}
