/*
Theme Name: Wilton Couriers Theme
Theme URI: https://wilton-couriers.com/
Author: Allen Lawson for Market Me
Author URI: https://wilton-couriers.com/
Description: A premium, modern, custom WordPress theme designed for Wilton Couriers. Fully responsive, logistics-focused, optimized for time-critical same day deliveries.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wilton-couriers
Tags: custom-menu, featured-images, translation-ready, dynamic-sidebar

This theme is designed to match the approved modern, trustworthy layout for Wilton Couriers.
It utilizes locally compiled Tailwind CSS alongside specialized WordPress PHP template integration.
*/

/* ==========================================
   1. WordPress Standard Styles & Overrides
   ========================================== */
body {
  font-family: 'Inter', sans-serif;
  color: #1f2933;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* ==========================================
   2. WP Admin Bar Sticky Adjustments
   ========================================== */
.admin-bar header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar header {
    top: 46px;
  }
}

/* ==========================================
   3. Tailwind Fallback Color Rules
   In case inline Tailwind configurations fail to initialize
   ========================================== */
.bg-brand-green,
.bg-brand-green-light {
  background-color: #4e9f52;
}

.text-brand-green,
.text-brand-green-light {
  color: #4e9f52;
}

.border-brand-green,
.border-brand-green-light {
  border-color: #4e9f52;
}

.bg-brand-dark,
.bg-brand-dark-green {
  background-color: #063a35;
}

.text-brand-dark,
.text-brand-dark-green {
  color: #063a35;
}

.border-brand-dark,
.border-brand-dark-green {
  border-color: #063a35;
}

.bg-brand-bg {
  background-color: #f6f8f5;
}

.text-brand-text {
  color: #1f2933;
}

.bg-brand-accent {
  background-color: #3f8242;
}

.text-brand-accent {
  color: #3f8242;
}

.selection\:bg-brand-green ::selection {
  background-color: #4e9f52;
  color: #ffffff;
}

/* ==========================================
   4. WordPress Core Alignments & Embeds
   ========================================== */
.alignleft {
  float: left;
  margin: 0.5em 1.5em 0.5em 0;
}

.alignright {
  float: right;
  margin: 0.5em 0 0.5em 1.5em;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

.wp-caption {
  background: #f6f8f5;
  border: 1px solid #063a35;
  max-width: 100%;
  padding: 5px 3px 10px;
  text-align: center;
}

.wp-caption-text {
  font-size: 0.85em;
  margin: 0;
  padding: 5px 0 0;
}

/* ==========================================
   5. Contact Form 7 Styling Customizations
   ========================================== */
.wpcf7-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important; /* space-y-5 */
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important; /* py-3 px-4 */
  background-color: #ffffff !important; /* bg-brand-white */
  border: 1px solid rgba(6, 58, 53, 0.1) !important; /* border-brand-dark/10 */
  border-radius: 0.5rem !important; /* rounded-lg */
  font-size: 0.875rem !important; /* text-sm */
  color: #1f2933 !important; /* text-brand-text */
  transition: all 0.2s ease-in-out !important;
  outline: none !important;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: #4e9f52 !important; /* focus:border-brand-green */
  box-shadow: 0 0 0 1px #4e9f52 !important; /* focus:ring-brand-green */
}

.wpcf7-form select {
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063a35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1rem !important;
  padding-right: 2.5rem !important;
}

.wpcf7-form .wpcf7-submit {
  width: 100% !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 1rem 1.5rem !important; /* py-4 px-6 */
  background-color: #4e9f52 !important; /* bg-brand-green */
  color: #ffffff !important; /* text-brand-white */
  font-weight: 700 !important;
  border-radius: 0.5rem !important; /* rounded-lg */
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.3s ease-in-out !important;
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: #3f8242 !important; /* hover:bg-brand-accent */
  transform: translateY(-2px) !important;
}

.wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
}

/* Fix validation error styling to look clean and premium */
.wpcf7-not-valid-tip {
  color: #df4747 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  margin-top: 0.25rem !important;
  display: block !important;
}

.wpcf7-response-output {
  margin: 1.5rem 0 0 0 !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  background-color: #f6f8f5 !important;
  border: 1px solid rgba(6, 58, 53, 0.1) !important;
}

/* ==========================================
   5. Dynamic Active Page Menu Indication
   Supports native WP Menus and Fallbacks
   ========================================== */
/* Desktop active links */
.hidden.md\:flex .current-menu-item > a,
.hidden.md\:flex .current_page_item > a,
nav.hidden.md\:flex ul li.current-menu-item a,
nav.hidden.md\:flex ul li.current_page_item a {
  color: #4e9f52 !important;
  font-weight: 700 !important;
}

/* Mobile dropdown active links */
#mobile-menu .current-menu-item > a,
#mobile-menu .current_page_item > a,
#mobile-menu ul li.current-menu-item a,
#mobile-menu ul li.current_page_item a {
  color: #4e9f52 !important;
  font-weight: 700 !important;
  background-color: rgba(78, 159, 82, 0.1) !important;
  border-radius: 0.375rem !important;
}
