/*
Theme Name:   Divi Eatery
Theme URI:    https://eztix.org
Description:  Divi child theme for eateryfoodtrucks.com clone on eztix.org
Author:       The Eatery Food Trucks
Template:     Divi
Version:      1.0.0
Text Domain:  divi-eatery
*/

/* ═══════════════════════════════════════════════════════════════
   CUSTOM FONTS
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Young Serif';
    src: url('../../../wp-content/uploads/fonts/YoungSerif.woff2') format('woff2');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Bouchers Serif';
    src: url('../../../wp-content/uploads/fonts/Bouchers-Serif.otf') format('opentype');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Narto Regular';
    src: url('../../../wp-content/uploads/fonts/Narto-Regular.otf') format('opentype');
    font-weight: normal; font-style: normal;
}
@font-face {
    font-family: 'Bouchers Script';
    src: url('../../../wp-content/uploads/fonts/Bouchers-Script.ttf') format('truetype');
    font-weight: normal; font-style: normal;
}


/* ═══════════════════════════════════════════════════════════════
   GLOBAL TYPOGRAPHY
   Divi's "heading_font" option is kept at Roboto Serif so that
   module-level font overrides (header_2_font="Young Serif") are
   treated as changes and DO generate module-specific CSS.
   We set the actual heading font globally here instead.
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Young Serif', Georgia, serif !important;
    font-weight: 700 !important;
}

h1{ 
    font-size: 48px; 
    line-height: 1em;
}
h2{ 
    font-size: 42px; 
    line-height: 1.25em;
}
h3{ 
    font-size: 36px; 
    line-height: 1.5em;
}
h4{ 
    font-size: 30px; 
    line-height: 1.7em;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER FIX (user's original rule)
   ═══════════════════════════════════════════════════════════════ */

.footer-widget div {
    display: block !important;
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   HERO BACKGROUND IMAGE OVERRIDES
   Divi silently drops rgba() gradient values from shortcode attrs
   and falls back to blue-teal. We override via module IDs.
   ═══════════════════════════════════════════════════════════════ */

/* Home hero — no overlay; the burger image is vivid like the source */
#home-hero.et_pb_section {
    background-image: url('https://www.eateryfoodtrucks.com/wp-content/uploads/2026/05/eatery-hero-burger.jpg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Home CTA — dark overlay on the event photo */
#home-cta.et_pb_section {
    background-image: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.48)), url('https://www.eateryfoodtrucks.com/wp-content/uploads/2026/05/eatery-food-truck-fair.jpeg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Menu and contact — light cream overlay matching source's faded-image aesthetic */
#menu-hero.et_pb_section {
    background-image: linear-gradient(rgba(235,230,218,0.90), rgba(235,230,218,0.90)), url('https://www.eateryfoodtrucks.com/wp-content/uploads/2026/05/eatery-food-truck-fair.jpeg') !important;
    background-size: cover !important;
    background-position: center center !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}
#contact-hero.et_pb_section {
    background-image: linear-gradient(rgba(235,230,218,0.90), rgba(235,230,218,0.90)), url('https://www.eateryfoodtrucks.com/wp-content/uploads/2026/05/eatery-food-truck-fair.jpeg') !important;
    background-size: cover !important;
    background-position: center center !important;
    padding-top: 70px !important;
    padding-bottom: 70px !important;
}


/* ═══════════════════════════════════════════════════════════════
   HERO HEADING SIZES & COLOURS
   Divi's et_pb_text module doesn't generate h1 CSS from shortcode
   attrs (only h2+). When heading_font matches the module font,
   Divi also skips module-specific font-size/color CSS.
   All hero typography is set explicitly here.
   ═══════════════════════════════════════════════════════════════ */

/* Home hero h1 — "The Eatery" */
#home-hero h1 {
    font-size: 80px !important;
    color: #ffffff !important;
    letter-spacing: -1.2px !important;
    line-height: 1.15em !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
}

/* Home hero h2 — "Food Truck Services" */
#home-hero h2 {
    font-size: 60px !important;
    color: #ffffff !important;
    letter-spacing: -0.9px !important;
    line-height: 1.2em !important;
    text-align: center !important;
    margin: 0 !important;
}

/* Menu banner h2 — "Our Menu" — dark olive on cream background */
#menu-hero h2 {
    font-size: 62px !important;
    color: #444e39 !important;
    letter-spacing: -1.2px !important;
    line-height: 1.1em !important;
    text-align: center !important;
}

/* Contact banner h2 — "Contact Us" — dark olive on cream background */
#contact-hero h2 {
    font-size: 62px !important;
    color: #444e39 !important;
    letter-spacing: -1.2px !important;
    text-align: center !important;
}

/* Menu and contact content sections — faded background matching the banner above */
#menu-content.et_pb_section,
#contact-content.et_pb_section {
    background-color: transparent !important;
    background-image: linear-gradient(rgba(235,230,218,0.90), rgba(235,230,218,0.90)), url('https://www.eateryfoodtrucks.com/wp-content/uploads/2026/05/eatery-food-truck-fair.jpeg') !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Service card and truck description body text
   Divi deduplicates body_font_size CSS when it matches global — override here */
#home-services .et_pb_text p,
#home-trucks .et_pb_text p {
    font-size: 17px !important;
    line-height: 1.9em !important;
    font-family: 'Bitter', Georgia, serif !important;
    color: #444e39 !important;
}


/* Home CTA h2 — "Book The Eatery..." */
#home-cta h2 {
    font-size: 52px !important;
    color: #ffffff !important;
    letter-spacing: -1px !important;
    line-height: 1.3em !important;
    text-align: center !important;
}


/* ═══════════════════════════════════════════════════════════════
   IMAGE GRID ALIGNMENT
   Service cards (corporate/wedding/school/brewery) and truck photos
   need equal heights so the 2-col grid lines up regardless of
   the original image aspect ratio.
   ═══════════════════════════════════════════════════════════════ */

#home-services .et_pb_image_wrap,
#home-trucks .et_pb_image_wrap {
    overflow: hidden !important;
    height: 340px !important;
    display: block !important;
}

#home-services .et_pb_image_wrap img,
#home-trucks .et_pb_image_wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

#footer-info{
    font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM — field sizing, placeholder colour, select style
   ═══════════════════════════════════════════════════════════════ */

.et_pb_contact p input.input,
.et_pb_contact p select.input,
.et_pb_contact p textarea {
    background-color: #fff !important;
    color: #333 !important;
    height: 50px !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
}

.et_pb_contact p textarea {
    height: auto !important;
    min-height: 120px !important;
}

.et_pb_contact p input.input:-webkit-autofill,
.et_pb_contact p input.input:-webkit-autofill:hover,
.et_pb_contact p input.input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px #fff inset !important;
    -webkit-text-fill-color: #333 !important;
}

.et_pb_contact p input.input::placeholder,
.et_pb_contact p textarea::placeholder {
    color: #666 !important;
    opacity: 1 !important;
}

.et_pb_contact p input.input:-ms-input-placeholder,
.et_pb_contact p textarea:-ms-input-placeholder {
    color: #666 !important;
}

.et_pb_contact p select.input {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23444e39'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-color: #fff !important;
    padding-right: 36px !important;
    cursor: pointer;
}


/* ═══════════════════════════════════════════════════════════════
   JQUERY UI DATEPICKER
   ═══════════════════════════════════════════════════════════════ */

#ui-datepicker-div.ui-datepicker {
    background: #fff !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    padding: 10px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18) !important;
}

#ui-datepicker-div .ui-datepicker-header {
    background: #444e39 !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 6px 0 !important;
    margin-bottom: 6px !important;
    position: relative !important;
    border: none !important;
}

#ui-datepicker-div .ui-datepicker-title {
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    line-height: 2em;
}

#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    padding: 0 10px !important;
    background: none !important;
    border: none !important;
    text-decoration: none !important;
}

#ui-datepicker-div .ui-datepicker-prev { left: 4px !important; }
#ui-datepicker-div .ui-datepicker-next { right: 4px !important; }

#ui-datepicker-div select.ui-datepicker-month,
#ui-datepicker-div select.ui-datepicker-year {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 1px 3px;
    font-size: 12px;
    color: #333;
}

#ui-datepicker-div table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#ui-datepicker-div th {
    color: #444e39;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 0;
    text-align: center;
}

#ui-datepicker-div td {
    padding: 2px;
    text-align: center;
    background: #fff;
}

#ui-datepicker-div td a,
#ui-datepicker-div td span {
    display: block;
    padding: 5px 6px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

#ui-datepicker-div td a:hover { background: #f2f0eb; color: #444e39; }
#ui-datepicker-div td .ui-state-active { background: #444e39 !important; color: #fff !important; }
#ui-datepicker-div td .ui-state-highlight { border: 1px solid #444e39; color: #444e39; }

#ui-datepicker-div td.ui-datepicker-unselectable span,
#ui-datepicker-div td.ui-state-disabled span {
    color: #ccc !important;
    cursor: default !important;
    background: none !important;
}