/*
Theme Name: RVR Union Factory
Theme URI: https://www.rvrunionfactory.com
Author: RVR Union Factory
Description: Custom theme for RVR Union Factory, a plastic bag manufacturer in Baghdad, Iraq. Recreates the site's charcoal + teal design with editable pages, a Products post type (with photos), a manageable navigation menu, and Web3Forms-connected quote/contact forms.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: rvr-union
*/

html { scroll-behavior: smooth; }

.font-display { font-family: 'Poppins', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }

/* Hero diagonal pattern */
.hero-pattern {
  background-image:
    linear-gradient(120deg, rgba(28,31,30,0.94) 0%, rgba(20,44,53,0.96) 55%, rgba(28,31,30,0.97) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 22px);
}

/* Dot grid section divider */
.dot-grid {
  background-image: radial-gradient(rgba(28,31,30,0.15) 1px, transparent 1px);
  background-size: 18px 18px;
}

.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 56px; height: 4px;
  background: #2FB8CC;
  border-radius: 2px;
}
.accent-underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

.card-hover {
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(28,31,30,0.25);
}

.step-line {
  position: relative;
}
.step-line:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.5rem;
  left: 1.25rem;
  width: 2px;
  height: calc(100% - 1rem);
  background: repeating-linear-gradient(to bottom, #2FB8CC 0 6px, transparent 6px 12px);
}

/* form styling */
.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1C1F1E;
  margin-bottom: 0.35rem;
}
.field-input {
  width: 100%;
  border: 1px solid #D9D5CC;
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  color: #1C1F1E;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-input:focus {
  outline: none;
  border-color: #1F5C6B;
  box-shadow: 0 0 0 3px rgba(31,92,107,0.15);
}
.field-input.error {
  border-color: #C0392B;
}
.field-error-msg {
  color: #C0392B;
  font-size: 0.78rem;
  margin-top: 0.25rem;
  display: none;
}
.field-input.error + .field-error-msg,
.field-error-wrap.error .field-error-msg {
  display: block;
}

.form-success {
  display: none;
}
.form-success.show {
  display: flex;
}

/* Primary nav menu (wp_nav_menu output) */
#primary-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
#primary-menu li { position: relative; }
#primary-menu a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: rgba(247,245,240,0.9);
  transition: color .2s ease;
}
#primary-menu a:hover, #primary-menu .current-menu-item > a { color: #2FB8CC; }

#mobile-menu-list { list-style: none; margin: 0; padding: 0; }
#mobile-menu-list a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  color: #F7F5F0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
#mobile-menu-list .current-menu-item > a { color: #2FB8CC; }
/* Photo Gallery page */
.rvr-gallery-wrap .wp-block-gallery {
  gap: 1rem !important;
}
.rvr-gallery-wrap .wp-block-image,
.rvr-gallery-wrap .wp-block-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.75rem;
}
.rvr-gallery-wrap .wp-block-image img,
.rvr-gallery-wrap .wp-block-gallery img {
  border-radius: 0.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rvr-gallery-wrap .wp-block-image:hover img,
.rvr-gallery-wrap .wp-block-gallery figure:hover img {
  transform: scale(1.04);
}