/*
Theme Name: Hello Elementor Child (Hawaii Food Products)
Description: Child theme for hawaiifoodproducts.com. Colors and fonts come from Elementor Site Settings (global colors and global fonts); this file handles layout detail.
Template: hello-elementor
Version: 1.0.0
Author: Webmaster Services Hawaii
Text Domain: hello-elementor-child
*/

/* Colors and fonts are read from Elementor's globals, so a change in Site Settings carries through. */
:root {
  --hfp-green: var(--e-global-color-primary, #42702B);
  --hfp-navy: var(--e-global-color-secondary, #0D3E5E);
  --hfp-ink: var(--e-global-color-text, #22323D);
  --hfp-leaf: var(--e-global-color-accent, #A3C856);
  --hfp-coral: var(--e-global-color-hfpcoral, #E8594B);
  --hfp-coral-deep: var(--e-global-color-hfpcoraldeep, #BF3B2C);
  --hfp-leaf-pale: var(--e-global-color-hfpleafpale, #F2F6E8);
  --hfp-white: #FFFFFF;
  --hfp-rule: #C9D6AE;
  --hfp-script: var(--e-global-typography-primary-font-family, "Lobster Two"), "Brush Script MT", cursive;
  --hfp-sans: var(--e-global-typography-text-font-family, "Libre Franklin"), "Franklin Gothic Medium", Arial, sans-serif;
  --hfp-kapa: url(assets/kapa.svg);
}

/* ---------- base ---------- */
body { background: var(--hfp-white); color: var(--hfp-ink); font-family: var(--hfp-sans); font-size: 18px; line-height: 1.6; font-weight: 400; }
a { color: var(--hfp-green); text-underline-offset: 3px; text-decoration: underline; }
a:hover { color: var(--hfp-coral-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--hfp-navy); outline-offset: 3px; }
p { margin: 0 0 1em; }
.elementor-widget-text-editor p { max-width: 68ch; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

h1, h2, h3, h4,
.elementor-widget-heading .elementor-heading-title { color: var(--hfp-navy); margin: 0; }
h1, h2,
.elementor-widget-heading h1.elementor-heading-title,
.elementor-widget-heading h2.elementor-heading-title { font-family: var(--hfp-script); font-weight: 700; font-style: italic; line-height: 1.1; }
h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 64px; }
h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 46px; }
h3, h4,
.elementor-widget-heading h3.elementor-heading-title,
.elementor-widget-heading h4.elementor-heading-title { font-family: var(--hfp-sans); font-weight: 700; font-style: normal; font-size: 22px; line-height: 1.3; }
.hfp-lede, .hfp-lede p { font-size: 21px; line-height: 1.55; }
.hfp-small, .hfp-small p { font-size: 15px; line-height: 1.5; }

/* ---------- layout ---------- */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }
.hfp-wrap > .elementor-container { padding-left: 22px; padding-right: 22px; }
.hfp-section { padding: 88px 0; }
.hfp-section-tight { padding: 56px 0; }
.hfp-pale { background: var(--hfp-leaf-pale); }
.hfp-gap > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-left: 32px; padding-right: 32px; }
.hfp-gap > .elementor-container { padding-left: 0; padding-right: 0; }
.hfp-vcenter > .elementor-container { align-items: center; }

/* ---------- buttons ---------- */
.elementor-button, .elementor-widget-form .elementor-button {
  display: inline-block; padding: 14px 26px; border: 2px solid var(--hfp-green); border-radius: 4px; background: var(--hfp-green); color: var(--hfp-white);
  font-family: var(--hfp-sans); font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; fill: var(--hfp-white);
}
.elementor-button:hover, .elementor-button:focus { background: var(--hfp-navy); border-color: var(--hfp-navy); color: var(--hfp-white); }
.hfp-btn-outline .elementor-button { background: transparent; color: var(--hfp-navy); border-color: var(--hfp-navy); }
.hfp-btn-outline .elementor-button:hover { background: var(--hfp-navy); color: var(--hfp-white); }
.hfp-btn-leaf .elementor-button { background: var(--hfp-leaf); border-color: var(--hfp-leaf); color: var(--hfp-navy); }
.hfp-btn-leaf .elementor-button:hover { background: var(--hfp-white); border-color: var(--hfp-white); color: var(--hfp-navy); }
.hfp-btn-ghost .elementor-button { background: transparent; border-color: var(--hfp-white); color: var(--hfp-white); }
.hfp-btn-ghost .elementor-button:hover { background: var(--hfp-white); color: var(--hfp-navy); }
.hfp-btn-navy .elementor-button { background: var(--hfp-navy); border-color: var(--hfp-navy); color: var(--hfp-white); }
.hfp-btn-navy .elementor-button:hover { background: var(--hfp-white); border-color: var(--hfp-white); color: var(--hfp-navy); }
.hfp-inline.elementor-widget { width: auto; max-width: 100%; margin-right: 14px; }
.hfp-btn-top { margin-top: 10px; }

/* ---------- header ---------- */
.hfp-masthead { padding: 8px 0; background: var(--hfp-white); }
.hfp-masthead > .elementor-container { align-items: center; }
.hfp-logo img { width: 190px; height: auto; }
.hfp-call { text-align: right; }
.hfp-call-label { display: block; font-size: 15px; color: var(--hfp-ink); }
.hfp-call a { font-weight: 800; font-size: 30px; line-height: 1.2; color: var(--hfp-navy); text-decoration: none; }
.hfp-call a:hover { color: var(--hfp-green); }

.hfp-navband { background: var(--hfp-green); }
.hfp-navband > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-top: 0; padding-bottom: 0; }
.hfp-navband .elementor-nav-menu--main .elementor-item { padding: 15px 18px; color: var(--hfp-white); fill: var(--hfp-white); font-family: var(--hfp-sans); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; }
.hfp-navband .elementor-nav-menu--main .elementor-item:hover,
.hfp-navband .elementor-nav-menu--main .elementor-item:focus,
.hfp-navband .elementor-nav-menu--main .elementor-item.elementor-item-active,
.hfp-navband .elementor-nav-menu--main .elementor-item.highlighted,
.hfp-navband .elementor-nav-menu--main .current-menu-ancestor > .elementor-item { background: var(--hfp-navy); color: var(--hfp-white); }
.hfp-navband .elementor-nav-menu--main .elementor-item:before,
.hfp-navband .elementor-nav-menu--main .elementor-item:after { display: none; }
.hfp-navband .elementor-nav-menu--dropdown { background: var(--hfp-green); border: 0; }
.hfp-navband .elementor-nav-menu--main .elementor-nav-menu--dropdown { min-width: 280px; }
.hfp-navband .elementor-nav-menu--dropdown a { padding: 13px 18px; color: var(--hfp-white); fill: var(--hfp-white); font-family: var(--hfp-sans); font-weight: 600; font-size: 16px; text-decoration: none; border-top: 1px solid rgba(255, 255, 255, .25); }
.hfp-navband .elementor-nav-menu--dropdown a:hover,
.hfp-navband .elementor-nav-menu--dropdown a.elementor-item-active,
.hfp-navband .elementor-nav-menu--dropdown a.highlighted { background: var(--hfp-navy); color: var(--hfp-white); }
.hfp-navband .elementor-menu-toggle { margin: 8px 0 8px auto; padding: 8px 10px; background: transparent; color: var(--hfp-white); border-radius: 4px; }
.hfp-navband .elementor-menu-toggle svg { fill: var(--hfp-white); width: 26px; height: 26px; }

.hfp-subnav { background: var(--hfp-leaf-pale); border-bottom: 1px solid #D9E3C4; }
.hfp-subnav .elementor-widget-text-editor { padding: 4px 0; }
.hfp-subnav a { display: inline-block; margin-right: 28px; padding-bottom: 3px; color: var(--hfp-navy); font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 3px solid transparent; }
.hfp-subnav a.is-current, .hfp-subnav a:hover { border-bottom-color: var(--hfp-coral); color: var(--hfp-navy); }

/* ---------- hero photo and navy title band ---------- */
.hfp-hero > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }
.hfp-hero .elementor-widget-image { margin: 0; line-height: 0; }
.hfp-hero .elementor-widget-image img { width: 100%; height: 600px; object-fit: cover; object-position: 30% 55%; }
.hfp-hero-short .elementor-widget-image img { height: 380px; object-position: 50% 45%; }
.hfp-band { background: var(--hfp-navy) var(--hfp-kapa); color: var(--hfp-white); }
.hfp-title-band { padding: 42px 0 48px; border-top: 8px solid var(--hfp-leaf); }
.hfp-band .elementor-heading-title,
.hfp-band .elementor-widget-heading h1.elementor-heading-title,
.hfp-band .elementor-widget-heading h2.elementor-heading-title,
.hfp-band .elementor-widget-heading h3.elementor-heading-title { color: var(--hfp-white); }
.hfp-title-band h1 { max-width: 16em; }
.hfp-title-band .elementor-widget-text-editor { font-size: 21px; }
.hfp-title-band .elementor-widget-text-editor p { max-width: 56ch; }
.hfp-band a { color: var(--hfp-white); }
.hfp-band a:hover { color: var(--hfp-leaf); }

/* ---------- home ---------- */
.hfp-brand-mark img { width: 260px; height: auto; }
.hfp-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hfp-tiles { margin-top: 16px; }
.hfp-tile .elementor-widget-image { margin-bottom: 14px; }
.hfp-tile .elementor-widget-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hfp-tile .elementor-widget-heading { margin-bottom: 8px; }
.hfp-tile .elementor-widget-heading h3.elementor-heading-title { padding-bottom: 8px; border-bottom: 3px solid var(--hfp-leaf); }
.hfp-tile .elementor-heading-title a { color: var(--hfp-navy); text-decoration: none; }
.hfp-tile .elementor-heading-title a:hover { color: var(--hfp-green); }
.hfp-tile .elementor-widget-text-editor { font-size: 16px; line-height: 1.45; }
.hfp-tile .hfp-photo-pending { aspect-ratio: 1 / 1; margin-bottom: 14px; }

.hfp-photo-pending { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 100%; aspect-ratio: 4 / 3; padding: 16px; text-align: center;
  border: 2px dashed var(--hfp-rule); background: var(--hfp-leaf-pale); color: var(--hfp-navy); font-weight: 600; font-size: 16px; line-height: 1.35; }
.hfp-photo-pending strong { font-weight: 800; font-size: 18px; }
.hfp-tag { display: inline-block; padding: 2px 8px; border: 1px dashed var(--hfp-navy); border-radius: 3px; background: #FFF1B8; color: var(--hfp-navy); font-weight: 600; font-size: 13px; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
.hfp-pending-note { padding: 28px 32px; border: 2px dashed var(--hfp-navy); background: #FFF1B8; color: var(--hfp-navy); }
.hfp-pending-note p { max-width: none; }

/* retailer lists (Loop Grid) */
.hfp-stores .elementor-loop-container { gap: 0 40px; }
.hfp-retailer { display: block; padding: 11px 0; border-bottom: 1px solid var(--hfp-rule); }
.hfp-retailer-name, .hfp-retailer-name a { font-weight: 700; font-size: 19px; color: var(--hfp-navy); text-decoration: none; }
.hfp-retailer-name a:hover { color: var(--hfp-green); text-decoration: underline; }
.hfp-retailer-note { display: block; font-size: 15px; color: var(--hfp-ink); }
.hfp-island { margin-top: 36px; }

/* split teasers */
.hfp-teasers > .elementor-container { max-width: none; }
.hfp-teaser > .elementor-widget-wrap { padding: 0 0 56px; align-content: flex-start; }
.hfp-teaser.hfp-band > .elementor-widget-wrap { background: transparent; }
.hfp-teaser .elementor-widget-image { margin-bottom: 44px; line-height: 0; }
.hfp-teaser .elementor-widget-image img { width: 100%; height: 380px; object-fit: cover; }
.hfp-teaser .elementor-widget:not(.elementor-widget-image) { padding-left: 56px; padding-right: 56px; }

/* contact and hours band */
.hfp-contact-band { background: var(--hfp-leaf); color: var(--hfp-navy); padding: 54px 0; }
.hfp-contact-band a { color: var(--hfp-navy); font-weight: 700; }
.hfp-contact-band a:hover { color: var(--hfp-green); }
.hfp-phone a, a.hfp-phone { font-weight: 800; font-size: 34px; line-height: 1.2; text-decoration: none; }
.hfp-hours { width: 100%; border-collapse: collapse; font-size: 18px; margin: 0; background: transparent; }
.hfp-hours th, .hfp-hours td { padding: 7px 0; border: 0; border-bottom: 1px solid rgba(13, 62, 94, .35); text-align: left; font-weight: 400; background: transparent; }
.hfp-hours td { text-align: right; font-weight: 700; }
table.hfp-hours tbody > tr:nth-child(odd) > td, table.hfp-hours tbody > tr:nth-child(odd) > th { background: transparent; }

/* order band */
.hfp-order-band { padding: 50px 0; }
.hfp-order-band > .elementor-container { align-items: center; }
.hfp-order-band .elementor-widget-text-editor { font-size: 21px; }
.hfp-order-band .elementor-widget-text-editor a { font-weight: 800; }
.hfp-order-band .elementor-widget-button { text-align: right; }

/* ---------- footer ---------- */
.hfp-footer { padding: 46px 0 10px; font-size: 16px; }
.hfp-footer .hfp-logo-plate img { width: 200px; padding: 14px; background: var(--hfp-white); }
.hfp-footer .elementor-widget-heading h3.elementor-heading-title { color: var(--hfp-leaf); font-size: 17px; }
.hfp-footer .elementor-widget-heading { margin-bottom: 10px; }
.hfp-footer ul { margin: 0; padding: 0; list-style: none; }
.hfp-footer li { padding: 3px 0; }
.hfp-footer address { font-style: normal; line-height: 1.6; margin: 0; }
.hfp-footer .hfp-fax { font-size: 15px; }
.hfp-legal { padding: 0 0 18px; font-size: 15px; }
.hfp-legal .elementor-widget-text-editor { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .25); }
.hfp-legal .elementor-widget-text-editor p { max-width: none; }

/* ---------- product category pages ---------- */
.hfp-group { padding: 62px 0 24px; }
.hfp-group + .hfp-group { border-top: 1px solid #D9E3C4; }
.hfp-group .elementor-widget-heading { margin-bottom: 20px; }
.hfp-group-intro { margin-bottom: 20px; }
.hfp-group-intro p { max-width: 70ch; }
.hfp-items .elementor-loop-container { gap: 48px 32px; }
.hfp-item > .elementor-container > .elementor-column > .elementor-widget-wrap { padding: 0; }
.hfp-item .elementor-widget { margin-bottom: 0; }
.hfp-item .hfp-product-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hfp-item .elementor-widget-heading { margin-top: 16px; }
.hfp-item .elementor-heading-title a { color: var(--hfp-navy); text-decoration: none; }
.hfp-item .elementor-heading-title a:hover { color: var(--hfp-green); }
.hfp-item-brand { margin: 2px 0 8px; font-size: 15px; font-weight: 700; color: var(--hfp-green); }
.hfp-item-desc { font-size: 17px; line-height: 1.5; }
.hfp-price { margin: 12px 0 0; padding-top: 10px; border-top: 3px solid var(--hfp-coral); font-weight: 800; font-size: 20px; color: var(--hfp-navy); }
.hfp-price small { font-weight: 400; font-size: 15px; color: var(--hfp-ink); }

.hfp-cat-card .elementor-widget-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hfp-cat-card .elementor-widget-heading h2.elementor-heading-title { font-size: 36px; }
.hfp-cat-card .elementor-heading-title a { color: var(--hfp-navy); text-decoration: none; }

.hfp-single-photo .hfp-product-photo, .hfp-single-photo .hfp-photo-pending { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hfp-facts { margin: 0; padding: 0; list-style: none; }
.hfp-facts li { padding: 9px 0; border-bottom: 1px solid var(--hfp-rule); }
.hfp-facts b { display: inline-block; min-width: 9em; color: var(--hfp-navy); }

/* ---------- forms ---------- */
.elementor-field-group > label { font-weight: 600; color: var(--hfp-navy); font-size: 16px; }
.elementor-field-group .elementor-field-textual { border: 1px solid #9FB0BB; border-radius: 4px; padding: 12px 14px; font-family: var(--hfp-sans); font-size: 17px; color: var(--hfp-ink); background: var(--hfp-white); }
.elementor-field-group .elementor-field-textual:focus { border-color: var(--hfp-navy); box-shadow: 0 0 0 2px var(--hfp-leaf); outline: 0; }

/* ---------- gallery and blog ---------- */
.hfp-gallery .gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hfp-gallery .gallery .gallery-item { width: 100%; max-width: none; margin: 0; padding: 0; }
.hfp-gallery .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0; }
.hfp-blog .elementor-post__title, .hfp-blog .elementor-post__title a { font-family: var(--hfp-sans); font-weight: 700; font-style: normal; font-size: 22px; color: var(--hfp-navy); text-decoration: none; }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 52px; }
  .hfp-navband .elementor-nav-menu--dropdown.elementor-nav-menu__container { background: var(--hfp-green); }
  .hfp-teaser .elementor-widget:not(.elementor-widget-image) { padding-left: 32px; padding-right: 32px; }
  .hfp-gallery .gallery { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- mobile (Elementor mobile breakpoint) ---------- */
@media (max-width: 767px) {
  body { font-size: 17px; }
  h1, .elementor-widget-heading h1.elementor-heading-title { font-size: 40px; }
  h2, .elementor-widget-heading h2.elementor-heading-title { font-size: 34px; }
  .hfp-lede, .hfp-lede p, .hfp-title-band .elementor-widget-text-editor, .hfp-order-band .elementor-widget-text-editor { font-size: 18px; }
  .hfp-wrap > .elementor-container { padding-left: 10px; padding-right: 10px; }
  .hfp-gap > .elementor-container > .elementor-column > .elementor-widget-wrap { padding-left: 20px; padding-right: 20px; }
  .hfp-section { padding: 56px 0; }
  .hfp-section-tight { padding: 40px 0; }
  .hfp-masthead { padding: 2px 0; }
  .hfp-logo img { width: 124px; }
  .hfp-call-label { font-size: 13px; }
  .hfp-call a { font-size: 21px; }
  .hfp-hero .elementor-widget-image img { height: 300px; object-position: 35% 60%; }
  .hfp-hero-short .elementor-widget-image img { height: 220px; }
  .hfp-title-band { padding: 24px 0 30px; border-top-width: 6px; }
  .hfp-inline.elementor-widget { width: 100%; margin-right: 0; }
  .elementor-widget-button .elementor-button { width: 100%; text-align: center; }
  .hfp-brand-mark img { width: 200px; }
  .hfp-tile .elementor-widget-heading h3.elementor-heading-title { font-size: 19px; }
  .hfp-tile .elementor-widget-text-editor { font-size: 15px; }
  .hfp-stores .elementor-loop-container { gap: 0 20px; }
  .hfp-retailer-name, .hfp-retailer-name a { font-size: 17px; }
  .hfp-teaser > .elementor-widget-wrap { padding-bottom: 44px; }
  .hfp-teaser .elementor-widget-image { margin-bottom: 32px; }
  .hfp-teaser .elementor-widget-image img { height: 240px; }
  .hfp-teaser .elementor-widget:not(.elementor-widget-image) { padding-left: 20px; padding-right: 20px; }
  .hfp-contact-band { padding: 38px 0; }
  .hfp-order-band { padding: 34px 0; }
  .hfp-order-band .elementor-widget-button { text-align: left; }
  .hfp-group { padding: 40px 0 16px; }
  .hfp-items .elementor-loop-container { gap: 40px; }
  .hfp-gallery .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hfp-pending-note { padding: 20px; }
}

/* ---------- alignment fixes ---------- */
.elementor-widget-image.hfp-brand-mark, .elementor-widget-image.hfp-logo, .elementor-widget-image.hfp-logo-plate { text-align: left; }
.hfp-map .elementor-widget-google_maps { margin: 0; line-height: 0; }
.hfp-map iframe { display: block; width: 100%; height: 380px; border: 0; }
