/*
Theme Name: Push Mower Theme
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: #e6f0ff; /* light blue */
  color: #1a1a1a;
}

/* Banner */
.banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background-color: #003087; /* Air Force blue */
    position: relative; /* Essential for absolute positioning of dropdown */
    z-index: 1000;
}

/* Hamburger Button */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
}

/* Dropdown Menu */
.menu-dropdown {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: absolute;
    top: 100%; /* Sits exactly at the bottom of the banner */
    right: 0;
    width: 250px; /* Adjust width as needed */
    background-color: #003087;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Show class toggled by JS */
.menu-dropdown.show {
    display: flex;
}

/* Links inside dropdown */
.menu-dropdown a {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.menu-dropdown a:hover {
    background-color: #0044c4; /* Slightly lighter blue */
}

/* Remove border from last link */
.menu-dropdown a:last-child {
    border-bottom: none;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 48px;
  margin-right: 12px;
}


/* Default (Desktop/Tablets): Show both */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 48px; /* Your preferred desktop size */
    width: auto;
}

.site-name {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffffff;
}

/* Mobile View: Hide the text when screen is 600px or smaller */
@media (max-width: 600px) {
    .site-name {
        display: none; /* Only the logo remains visible */
    }
    
    .site-logo {
        height: 40px; /* Optional: make logo slightly smaller on mobile */
    }
}

/* Menu */
.menu {
  display: flex;
  gap: 24px;
}

.menu a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
}

.menu a:hover {
  text-decoration: underline;
}

/* Main content */
.content {
  padding: 60px 40px;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  background-color: #003087;
  color: #ffffff;
}

/* Inventory Grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}


/* Inventory Card */
.inventory-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.inventory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

/* Inventory Link */
.inventory-link {
  text-decoration: none;
  color: inherit;
}


/* Info Section */
.inventory-info {
  padding: 12px;
}

.inventory-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.inventory-price {
  font-size: 1rem;
  font-weight: 700;
  color: #003087; /* Air Force blue */
}


/* Image Styling */
.inventory-image {
  width: 100%;
  aspect-ratio: 1 / 1;        /* Forces a square */
  overflow: hidden;
  background-color: #e6f0fa;  /* Light blue fallback */
  border-radius: 6px;
}

.inventory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Crops without distortion */
  display: block;
}


/* Inventory Detail Page */
.inventory-detail {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

.inventory-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.inventory-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

/* Carousel Styles */
.inventory-slider-container {
    position: relative;
    max-width: 600px; /* Adjust to your preferred size */
    margin: 0 auto 24px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.inventory-reel {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.reel-slide {
    min-width: 100%;
    aspect-ratio: 4 / 3; /* Facebook Marketplace typically uses a 4:3 or square ratio */
    display: flex;
    align-items: center;
    justify-content: center;
}

.reel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Zooms/crops to fill the container without stretching */
    object-position: center; /* Keeps the middle of the photo in view */
}

/* Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}

.slider-arrow:hover { background: rgba(255, 255, 255, 0.9); }
.prev { left: 15px; }
.next { right: 15px; }

/* Container for submit and cancel buttons */
.submit-buttons {
    display: flex;         /* horizontal layout */
    align-items: center;   /* vertical alignment */
    gap: 10px;             /* space between buttons */
}

/* Optional: make the cancel button visually secondary */
.submit-buttons .button-secondary {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ccc;
}

/* Optional: change hover state */
.submit-buttons .button-secondary:hover {
    background-color: #e2e2e2;
    color: #000;
}

.inventory-status {
    font-weight: bold;
}

.pmg-contact-form input,
.pmg-contact-form textarea {
    width: 100%;
    max-width: 400px;
}

.pmg-contact-form button {
    padding: 8px 16px;
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 15px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-icon {
    font-size: 18px;
    color: #555;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.footer-contact a:hover {
    text-decoration: underline;
}

/* Mobile stacking */
@media (max-width: 600px) {
    .footer-contact {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.home-buy-callout {
    background: #f7f7f7;
    border: 2px solid #e2e2e2;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
    text-align: center;
}

.home-buy-callout h2 {
    margin-bottom: 0.75rem;
    font-size: 1.6rem;
}

.home-buy-callout p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #333;
}

.home-buy-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.buy-contact-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    text-decoration: none;
    color: #222;
}

.buy-contact-link .dashicons {
    font-size: 18px;
}

.buy-contact-link:hover {
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 600px) {
    .home-buy-callout {
        padding: 1.5rem 1rem;
    }

    .home-buy-contact {
        flex-direction: column;
        gap: 0.75rem;
    }
}

.local-note {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.inventory-contact-actions {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.inventory-contact-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;

    border-radius: 6px;
    text-decoration: none;
    color: #fff;
}

.inventory-contact-button .dashicons {
    font-size: 1.4rem;
}

/* Call button */
.inventory-contact-button.call {
    background-color: #2e7d32; /* green */
}

/* Email button */
.inventory-contact-button.email {
    background-color: #1565c0; /* blue */
}

/* Mobile-friendly */
@media (max-width: 600px) {
    .inventory-contact-actions {
        flex-direction: column;
    }

    .inventory-contact-button {
        justify-content: center;
        font-size: 1.2rem;
    }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  width: 48px;          /* adjust size as needed */
  height: 48px;
  object-fit: contain; /* prevents distortion */
  border-radius: 50%;  /* ensures circular crop */
  background-color: transparent;
}













