/* Custom Styles & Adachinweuba Foundation Theme Enhancements */

/* Exact Brand Color Definitions */
.bg-primary { background-color: hsl(var(--primary)) !important; }
.text-primary { color: hsl(var(--primary)) !important; }
.border-primary { border-color: hsl(var(--primary)) !important; }

.bg-primary-foreground { background-color: hsl(var(--primary-foreground)) !important; }
.text-primary-foreground { color: hsl(var(--primary-foreground)) !important; }

.bg-secondary { background-color: hsl(var(--secondary)) !important; }
.text-secondary { color: hsl(var(--secondary)) !important; }

.bg-accent { background-color: hsl(var(--accent)) !important; }
.text-accent { color: hsl(var(--accent)) !important; }
.text-accent-foreground { color: hsl(var(--accent-foreground)) !important; }

.bg-background { background-color: hsl(var(--background)) !important; }
.text-foreground { color: hsl(var(--foreground)) !important; }
.text-muted-foreground { color: hsl(var(--muted-foreground)) !important; }
.border-border { border-color: hsl(var(--border)) !important; }
.bg-card { background-color: hsl(var(--card)) !important; }

/* Global Container & Layout Consistency */
.container-wide {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container-wide {
    width: min(100% - 1.5rem, 1240px);
  }
}

/* Aspect Ratios */
.aspect-4\/3 { aspect-ratio: 4 / 3; }
.aspect-16\/9 { aspect-ratio: 16 / 9; }

/* Custom Inner Hero Overlays */
.hero-gradient-overlay {
  background: linear-gradient(to right, rgba(28, 69, 52, 0.97), rgba(28, 69, 52, 0.72), rgba(28, 69, 52, 0.16));
}

.inner-hero-overlay {
  background-color: #176B4A;
  opacity: 0.7;
}

/* Scroll Animation Transitions */
.reveal-init {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Offcanvas Mobile Menu */
#mobile-menu {
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Active Nav Link Marker */
.nav-active-link {
  color: hsl(var(--primary)) !important;
  opacity: 1 !important;
  position: relative;
}

.nav-active-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: hsl(var(--accent));
  border-radius: 9999px;
}

/* Header Scrolled & Inner Page Header */
header.header-scrolled,
body:not(.page-home) header {
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  background-color: hsl(var(--background) / 0.95);
  color: hsl(var(--primary));
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body:not(.page-home) header .logo-circle {
  border-color: hsl(var(--primary)) !important;
}

body:not(.page-home) header .logo-dot {
  background-color: hsl(var(--primary)) !important;
}

body:not(.page-home) header #button-mobile-menu {
  border-color: hsl(var(--border)) !important;
}

body:not(.page-home) header nav #primary-menu a:not(.nav-active-link) {
  color: hsl(var(--foreground));
}

body:not(.page-home) header nav #primary-menu a:not(.nav-active-link):hover {
  color: hsl(var(--primary));
}

/* Ensure images fill covers properly */
img {
  max-width: 100%;
  height: auto;
}

.object-cover {
  object-fit: cover;
}

/* ==========================================================================
   Product / Support Card Layout & Action Buttons
   ========================================================================== */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.1), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  border-color: hsl(var(--border) / 0.8);
}

.product-card-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: hsl(var(--muted));
}

.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-image-wrap img {
  transform: scale(1.06);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.product-card-title {
  font-family: var(--app-font-serif, Fraunces, Georgia, serif);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0;
}

.product-card-price {
  font-family: var(--app-font-serif, Fraunces, Georgia, serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1.2;
}

.product-card-desc {
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.8);
}

/* Button: Add */
.btn-add {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 9999px;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.7rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-add:hover {
  background-color: hsl(var(--accent) / 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(220, 140, 20, 0.25);
  color: hsl(var(--accent-foreground));
}

.btn-add:active {
  transform: translateY(0);
}

/* Button: View */
.btn-view {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.35);
  background-color: transparent;
  color: hsl(var(--primary));
  padding: 0.7rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-view:hover {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.06);
  color: hsl(var(--primary));
  transform: translateY(-2px);
}

.btn-view:active {
  transform: translateY(0);
}

/* ==========================================================================
   WordPress Entry Content & Typography Styles
   ========================================================================== */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--app-font-serif, Fraunces, Georgia, serif);
  color: hsl(var(--foreground));
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.entry-content h1 { font-size: 2.25rem; }
.entry-content h2 { font-size: 1.875rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }

.entry-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: hsl(var(--foreground) / 0.88);
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

.entry-content ul { list-style-type: disc; }
.entry-content ol { list-style-type: decimal; }

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.entry-content blockquote {
  border-left: 4px solid hsl(var(--accent));
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: hsl(var(--foreground) / 0.8);
}

.entry-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: hsl(var(--accent));
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.pagination .page-numbers.current {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.pagination .page-numbers:hover:not(.current) {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--secondary));
}

/* Exact Brand Logo Colors as specified */
.site-logo-link .logo-circle {
  border-color: #1C4534 !important;
}

.site-logo-link .logo-circle > span:first-child {
  border-color: #1C4534 !important;
}

.site-logo-link .logo-dot {
  background-color: #1C4534 !important;
}

.site-logo-link .logo-title {
  color: #1C4534 !important;
}

.site-logo-link .logo-subtitle {
  color: #506F61 !important;
  opacity: 1 !important;
}

/* ==========================================================================
   Exact Contact Form Styling (Matches User Design Screenshot)
   ========================================================================== */
.custom-contact-input {
  width: 100%;
  border-radius: 0.875rem !important; /* ~14px rounded rectangle */
  border: 1px solid #dfd8cc !important;
  background-color: transparent !important;
  padding: 0.95rem 1.25rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  color: #1a1a1a !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
  box-sizing: border-box !important;
}

.custom-contact-input::placeholder {
  color: #9ca3af !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.custom-contact-input:focus {
  border-color: #1C4534 !important;
  box-shadow: 0 0 0 2px rgba(28, 69, 52, 0.12) !important;
  background-color: rgba(255, 255, 255, 0.45) !important;
}

/* CF7 fallback styling to match screenshot */
.contact-form-7-wrapper .wpcf7-form p {
  margin-bottom: 1rem;
}

.contact-form-7-wrapper .wpcf7 input[type="text"],
.contact-form-7-wrapper .wpcf7 input[type="email"],
.contact-form-7-wrapper .wpcf7 input[type="tel"],
.contact-form-7-wrapper .wpcf7 textarea {
  width: 100%;
  border-radius: 0.875rem;
  border: 1px solid #dfd8cc;
  background-color: transparent;
  padding: 0.95rem 1.25rem;
  font-size: 0.9375rem;
  color: #1a1a1a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-form-7-wrapper .wpcf7 input[type="text"]:focus,
.contact-form-7-wrapper .wpcf7 input[type="email"]:focus,
.contact-form-7-wrapper .wpcf7 input[type="tel"]:focus,
.contact-form-7-wrapper .wpcf7 textarea:focus {
  border-color: #1C4534;
  box-shadow: 0 0 0 2px rgba(28, 69, 52, 0.12);
  background-color: rgba(255, 255, 255, 0.45);
}

.contact-form-7-wrapper .wpcf7 input[type="submit"] {
  border-radius: 9999px;
  background-color: #1C4534;
  color: #ffffff;
  padding: 0.9rem 2.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.contact-form-7-wrapper .wpcf7 input[type="submit"]:hover {
  background-color: #153629;
  transform: translateY(-2px);
}

