/*
Theme Name: Sioux Falls Concrete Inc (Astra Child)
Theme URI: https://siouxfallsconcreteinc.com/
Description: Custom child theme for Sioux Falls Concrete Inc, built on Astra. Reuses the approved prototype's exact stylesheet (construction-orange + charcoal/concrete-gray palette) for visual parity.
Author: Sioux Falls Concrete Inc
Template: astra
Version: 1.2.0
Text Domain: sfci-astra-child
*/

/* content-prototype.css is enqueued directly in functions.php (no @import chain). */

/* ---------- WP-specific additions (menu structure, CF7 form styling) ---------- */

/* wp_nav_menu() dropdown support (prototype used static HTML dropdowns; WP menu
   walker produces the same DOM shape: li.menu-item-has-children > ul.sub-menu) */
.dropdown-menu, .sub-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 230px;
  padding: 8px 0;
  z-index: 100;
  list-style: none;
  margin: 0;
}
li.menu-item-has-children { position: relative; }
li.menu-item-has-children:hover > .sub-menu,
li.menu-item-has-children:focus-within > .sub-menu { display: block !important; }
.sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 0.9rem;
  white-space: nowrap;
  color: var(--color-slate);
  font-weight: 600;
}
.sub-menu li a:hover { background: var(--color-concrete-lighter); text-decoration: none; }

/* Contact Form 7 field styling to match the prototype's .form-grid look */
.wpcf7-form p { margin-bottom: 16px; }
.wpcf7-form label { font-weight: 700; font-size: 0.9rem; color: var(--color-slate); display: block; margin-bottom: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--color-white);
  box-sizing: border-box;
  font-family: var(--font-body);
}
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus {
  outline: 2px solid var(--color-orange);
  outline-offset: 1px;
}
.wpcf7-form input[type="submit"] {
  background: var(--color-orange);
  color: var(--color-white);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius);
  padding: 16px 32px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
}
.wpcf7-form input[type="submit"]:hover { background: var(--color-orange-dark); border-color: var(--color-orange-dark); }
.wpcf7-form .required { color: var(--color-orange-dark); }
.wpcf7-not-valid-tip { color: var(--color-orange-dark); font-size: 0.85rem; margin-top: 4px; }
.wpcf7-response-output { border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }

body.nav-open .main-nav { display: flex !important; }

/* Accessibility: darken button backgrounds and lighten footer text just
   enough to pass WCAG AA 4.5:1 contrast, without changing the shared
   --color-orange/--color-concrete variables used elsewhere (icons, borders,
   badges) where contrast rules don't apply. */
.btn-primary {
	background: #c94f0a;
	border-color: #c94f0a;
}
.btn-primary:hover {
	background: #a8420c;
	border-color: #a8420c;
}
.footer-note {
	color: #a3a9ae;
}
.mobile-cta-bar .quote-half {
	background: #c94f0a;
}
/* Accessibility: homepage FAQ items use h3 (no h3 category groupings on
   that page, unlike the standalone FAQ page's h3-group/h4-question
   structure) so heading levels don't skip from h2 straight to h4. Match
   the existing .faq-item h4 styling exactly. */
.faq-item h3 {
	margin-bottom: 8px;
	font-size: 1.05rem;
	color: var(--color-charcoal);
}

/* Breadcrumbs (Yoast trail rendered by the child theme) */
.sfci-breadcrumbs {
	font-size: 0.85rem;
	line-height: 1.4;
	margin: 0 0 1.25em;
	color: #6b7280;
}
.sfci-breadcrumbs a {
	color: #6b7280;
	text-decoration: none;
}
.sfci-breadcrumbs a:hover {
	text-decoration: underline;
}
