/*
 Theme Name: HERELIES Child
 Theme URI: https://example.com/herelies
 Description: Child theme for HERELIES built on Twenty Twenty.
 Author: Your Team
 Template: twentytwenty
 Version: 1.0.0
*/
        :root {
            --primary-navy: #1a365d !important;
            --secondary-navy: #2d5282 !important;
            --accent-red: #c53030 !important;
            --accent-white: #ffffff !important;
            --light-gray: #f7fafc !important;
            --medium-gray: #e2e8f0 !important;
            --dark-gray: #2d3748 !important;
            --text-light: #718096 !important;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important; 
            --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1) !important;
            --patriot-gradient: linear-gradient(135deg, #1a365d 0%, #c53030 50%, #ffffff 100%) !important;
            --honor-gradient: linear-gradient(135deg, #1a365d 0%, #2d5282 100%) !important;
        }

/* 🔒 Disable browser auto-suggestions globally */
input,
textarea,
select {
  autocomplete: off !important;
  -webkit-appearance: none !important;
  -webkit-text-fill-color: inherit;
  background-clip: padding-box;
}

/* Prevent input dropdown arrows / suggestions */
input::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button {
  display: none !important;
  visibility: hidden !important;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            color: var(--dark-gray);
            background-color: var(--accent-white);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .header {
            background: var(--accent-white);
            box-shadow: var(--shadow);
            position: fixed;
            top: 0;  
            /* top:25px; */
            left: 0;
            right: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .header.scrolled {
            background: rgba(26, 54, 93, 0.95);
            backdrop-filter: blur(10px);
        }

        .header.scrolled .nav a {
            color: var(--accent-white);
        }

        .header.scrolled .logo-text {
            color: var(--accent-white);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            gap: 12px;
        }

        .logo-icon {
            width: 50px;
            height: 50px;
            background: var(--honor-gradient);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }

        .logo-icon::before {
            content: '★';
            font-size: 24px;
            color: var(--accent-white);
            font-weight: bold;
        }

        .logo-icon::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 20px;
            height: 15px;
            background: var(--accent-red);
            clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
        }

        .logo-text {
            display: flex;
            flex-direction: column;
            line-height: 1.2;
        }

        .logo-main {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-navy);
            letter-spacing: 2px;
        }

        .logo-sub {
            font-size: 0.9rem;
            color: var(--text-light);
            font-weight: 400;
            letter-spacing: 1px;
            text-transform: uppercase;
        }

        .nav {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav a {
            text-decoration: none;
            color: var(--dark-gray);
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
            font-size: 16px !important;
        }

        .nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--accent-red);
            transition: width 0.3s ease;
        }

        .nav a:hover::after {
            width: 100%;
        }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            background: none;
            border: none;
            padding: 5px;
        }

        .mobile-menu-toggle span {
            width: 25px;
            height: 3px;
            background: var(--primary-navy);
            margin: 3px 0;
            transition: 0.3s;
        }

        /* Hero Section */
        .hero {
            background: var(--honor-gradient);
            color: var(--accent-white);
            padding: 140px 0 100px;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,0 1000,100"/></svg>') no-repeat bottom center;
            background-size: cover;
        }

        .hero-content {
            text-align: center;
            position: relative;
            z-index: 2;
        }

        .hero-badge {
            background: rgba(255, 255, 255, 0.2);
            color: var(--accent-white);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 2rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            font-size: 14.4px !important;
        }

        .hero h1 {
            /* font-size: clamp(2.5rem, 6vw, 4rem); */
             font-size: clamp(2.5rem, 6vw, 6rem);
            font-weight: 800;
            margin-bottom: 1.5rem;
            line-height: 1.1;
        }

        .hero-subtitle {
            /* font-size: clamp(1.1rem, 3vw, 1.3rem); */
            font-size: clamp(1.1rem, 3vw, 1.9rem);
            margin-bottom: 2.5rem;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-block !important;
            padding: 1rem 2rem !important;
            text-decoration: none !important;
            border-radius: 50px !important;
            font-weight: 600 !important;
            transition: all 0.3s ease !important;
            font-size: 18px !important;
            text-align: center !important;
            border: 2px solid transparent !important;
            cursor: pointer !important;
            min-width: 160px !important;
        }

        .btn-primary {
            background: var(--accent-red) !important;
            color: var(--accent-white) !important;
            box-shadow: 0 4px 15px rgba(197, 48, 48, 0.3) !important;
        }

        .btn-primary:hover {
            background: #a02626 !important;
            transform: translateY(-2px) !important;
            box-shadow: 0 8px 25px rgba(197, 48, 48, 0.4) !important;
        }

        .btn-secondary {
            background: transparent !important;
            color: var(--accent-white) !important;
            border-color: var(--accent-white) !important;
        }

        .btn-secondary:hover {
            background: var(--accent-white) !important;
            color: var(--primary-navy) !important;
        }

        /* Features Section */
        .features {
            padding: 100px 0;
            background: var(--light-gray);
        }

        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }

        .section-badge {
            background: rgba(26, 54, 93, 0.1);
            color: var(--primary-navy);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 1rem;
            font-size: 18px !important;
        }

        .section-header h2 {
            /* font-size: clamp(2rem, 4vw, 3rem); */
            font-size: clamp(2rem, 4vw, 5rem);
            margin-bottom: 1.5rem;
            color: var(--primary-navy);
            font-weight: 700;
        }

        .section-header p {
            /* font-size: 1.2rem; */
            font-size: 20px !important;
            color: var(--text-light);
            max-width: 700px;
            margin: 0 auto;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2.5rem;
        }

        .feature-card {
            background: var(--accent-white);
            padding: 3rem 2rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            border: 1px solid var(--medium-gray);
            position: relative;
            overflow: hidden;
        }

        .feature-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--honor-gradient);
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-lg);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: var(--honor-gradient);
            border-radius: 20px;
            margin: 0 auto 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: var(--accent-white);
            font-size: 30px !important;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--primary-navy);
            font-weight: 700;
            font-size: 24px !important;
        }

        .feature-card p {
            color: var(--text-light);
            line-height: 1.7;
            /* font-size: 1rem; */
            font-size: 16px !important;
        }

        /* Process Section */
        .process {
            padding: 100px 0;
            background: var(--accent-white);
        }

        .process-steps {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }

        .process-step {
            text-align: center;
            position: relative;
        }

        .process-step::after {
            content: '';
            position: absolute;
            top: 40px;
            right: -1.5rem;
            width: 3rem;
            height: 2px;
            background: var(--medium-gray);
            z-index: 1;
        }

        .process-step:last-child::after {
            display: none;
        }

        .step-number {
            width: 80px;
            height: 80px;
            background: var(--honor-gradient);
            color: var(--accent-white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            /* font-size: 1.5rem; */
            font-size: 21px;
            font-weight: 700;
            margin: 0 auto 1.5rem;
            position: relative;
            z-index: 2;
        }

        .process-step h3 {
            /* font-size: 1.3rem; */
            font-size: 20.8px !important;
            margin-bottom: 1rem;
            color: var(--primary-navy);
            font-weight: 600;
        }

        .process-step p {
            color: var(--text-light);
            line-height: 1.6;
            font-size: 16px !important;
        }

        /* Memorial Form Preview */
        .memorial-preview {
            padding: 100px 0;
            background: var(--light-gray);
        }

        .preview-container {
            display: grid;
            /* grid-template-columns: 1fr 1fr; */
            grid-template-columns: 1fr;
            gap: 4rem;
            align-items: center;
        }

        .preview-content h2 {
            /* font-size: clamp(2rem, 4vw, 2.8rem); */
            font-size: clamp(2rem, 4vw, 4.8rem);
            margin-bottom: 1.5rem;
            color: var(--primary-navy);
            font-weight: 700;
        }

        .preview-content p {
            color: var(--text-light);
            margin-bottom: 2rem;
            /* font-size: 1.1rem; */
            font-size: 17px !important;
            line-height: 1.7;
        }

        .memorial-form {
            background: var(--accent-white);
            padding: 2.5rem;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--medium-gray);
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: var(--primary-navy);
            font-weight: 600;
        }

        .form-control {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--medium-gray);
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary-navy);
        }

        /* CTA Section */
        .cta {
            padding: 80px 0;
            background: var(--honor-gradient);
            color: var(--accent-white);
            text-align: center;
        }

        .cta h2 {
            font-size: clamp(2rem, 4vw, 2.8rem);
            margin-bottom: 1.5rem;
            font-weight: 700;
        }

        .cta p {
            font-size: 1.2rem;
            margin-bottom: 2.5rem;
            opacity: 0.9;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Footer */
        .footer {
            background: var(--primary-navy);
            color: var(--accent-white);
            padding: 4rem 0 2rem;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 3rem;
            margin-bottom: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1.5rem;
            color: var(--accent-white);
            font-weight: 600;
            font-size: 18.72px !important;
        }

        .footer-section p,
        .footer-section a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            line-height: 1.8;
            font-size: 16px !important;
            transition: color 0.3s ease;
        }

        .footer-section a:hover {
            color: var(--accent-white);
        }

        .footer-bottom {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            color: rgba(255, 255, 255, 0.7);
        }
        /* Hero background slideshow */
.hero {
  position: relative;
  height: 100vh;
 
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2s ease, transform 6s ease;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}
/* .hero-slide:first-child .hero-content {
  display: none;
} */
 /* Hide hero overlay text ONLY for first slide */
.first-slide + .hero-content,
.first-slide.active ~ .hero-content {
  display: none;
}
/* Hide overlay when first slide active */
.hero.first-slide-active .hero-content {
  display: none;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  animation: fadeUp 1.5s ease forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap; /* ✅ Mobile friendly */
}
/* Parallax tweak */
.hero-slide {
  will-change: transform;
}
/* === HERELIES Checkout Styling === */

/* Container */
.herelies-checkout .card {
  border-radius: 1rem;
  overflow: hidden;
}

/* Card Headers */
.herelies-checkout .card-header {
  font-weight: 600;
  font-size: 1rem;
}

/* Billing & Shipping card */
.herelies-checkout .card-body {
  padding: 1.5rem;
}

/* Order Review section */
#order_review.card {
  margin-top: 1rem;
}

/* Primary Buttons (Place Order, etc.) */
.woocommerce #place_order,
.woocommerce .button,
.woocommerce button.button {
  background-color: #1e3a8a !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.woocommerce #place_order:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover {
  background-color: #3730a3 !important;
  color: #fff !important;
}

/* Success (notices, payment confirmed, etc.) */
.woocommerce-message {
  border: none !important;
  background: #10b981 !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Errors / Warnings */
.woocommerce-error {
  border: none !important;
  background: #ef4444 !important;
  color: #fff !important;
  border-radius: 0.5rem;
  padding: 1rem;
}

.woocommerce-info {
  border: none !important;
  background: #f59e0b !important;
  color: #fff !important;
  border-radius: 0.5rem;
  padding: 1rem;
}

/* Inputs */
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 0.65rem;
  font-size: 0.95rem;
}

.woocommerce input.input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  border-color: #1e3a8a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.2);
}

/* Review table */
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order-table th {
  font-weight: 600;
  color: #1e3a8a;
}
/* HERELIES Checkout: Place Order Button */
#place_order,
.woocommerce-checkout .button.alt {
    background-color: #198754 !important; /* HERELIES green */
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

#place_order:hover,
.woocommerce-checkout .button.alt:hover {
    background-color: #146c43 !important; /* Darker green on hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.woocommerce-checkout form #order_review, .woocommerce-checkout form #order_review_heading{
    width: 100% !important;
}
/* =========================
   Custom Buttons
========================= */
.btn-custom {
  background: linear-gradient(90deg, #ff4b2b, #ff416c);
  color: #fff !important;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: none;
  transition: all 0.3s ease;
}
.btn-custom:hover {
  background: linear-gradient(90deg, #ff416c, #ff4b2b);
  transform: translateY(-1px);
}

/* =========================
   Action Buttons (Table)
========================= */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  border: none;
  text-decoration: none !important;
  color: #fff !important;
  transition: all 0.2s ease;
}

.action-btn i {
  font-size: 14px;
}

/* Variants (match admin look) */
.action-btn.bg-primary { background-color: #0d6efd; }
.action-btn.bg-secondary { background-color: #6c757d; }
.action-btn.bg-success { background-color: #198754; }
.action-btn.bg-danger { background-color: #dc3545; }
.action-btn.bg-warning { background-color: #ffc107; color: #212529 !important; }

/* Hover effect */
.action-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================
   Custom Badges
========================= */
.badge-custom {
  display: inline-block;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 12px;
  line-height: 1;
  white-space: nowrap;
}

/* Variants */
.badge-custom.bg-success { background-color: #198754; color: #fff; }
.badge-custom.bg-warning { background-color: #ffc107; color: #212529; }
.badge-custom.bg-danger { background-color: #dc3545; color: #fff; }
.badge-custom.bg-info { background-color: #0dcaf0; color: #212529; }
.badge-custom.bg-secondary { background-color: #6c757d; color: #fff; }
/* =========================
   Mobile Menu Overlay
========================= */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* dimmed background */
  z-index: 1040; /* just below nav (1050) */
  display: none;
}
#menuOverlay.active {
  display: block;
}

/* =========================
   Responsive Adjustments
========================= */
@media (max-width: 768px) {
  .btn-custom {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    font-size: 16px;
  }

  .action-btn {
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .table thead {
    display: none; /* Mobile friendly tables */
  }
  .table tr {
    display: block;
    margin-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
  }
  .table td {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 14px;
  }
  .table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #666;
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

        /* Responsive Design */
        @media (max-width: 1024px) {
            .preview-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .process-step::after {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .nav {
                position: fixed;
                top: 0;
                right: -250px; /* start hidden on right */
                height: 100vh;
                width: 250px;
                background: var(--accent-white);
                flex-direction: column;
                justify-content: flex-start;
                align-items: flex-start;
                padding: 4rem 1.5rem;
                gap: 1.5rem;
                box-shadow: -2px 0 12px rgba(0,0,0,0.15);
                transition: right 0.3s ease-in-out; /* ✅ slide animation */
                z-index: 1050;
                }

                .nav.active {
                right: 0; /* slide into view */
                }


            .mobile-menu-toggle {
                display: flex;
            }

          .mobile-menu-toggle.active span:nth-child(1) {
                transform: rotate(45deg) translateY(8px);
            }
            .mobile-menu-toggle.active span:nth-child(2) {
                opacity: 0;
            }
            .mobile-menu-toggle.active span:nth-child(3) {
                transform: rotate(-45deg) translateY(-8px);
            }

.mobile-menu-toggle {
  position: relative;
  z-index: 1100; /* higher than nav (1050) */
}
.mobile-menu-toggle i {
  font-size: 15px !important;
  color: var(--primary-navy);
  display: none;
}
.mobile-menu-toggle.active .fa-times {
  display: inline;
}
.mobile-menu-toggle:not(.active) .fa-bars {
  display: inline;
}

            .hero {
                padding: 120px 0 80px;
            }

            .hero-buttons {
                flex-direction: column;
                align-items: center;
            }

            .features {
                padding: 80px 0;
            }

            .features-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .process {
                padding: 80px 0;
            }

            .process-steps {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            .memorial-preview {
                padding: 80px 0;
            }

            .memorial-form {
                padding: 2rem 1.5rem;
            }

            .footer-content {
                grid-template-columns: 1fr;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 15px;
            }

            .feature-card {
                padding: 2rem 1.5rem;
            }

            .hero {
                padding: 100px 0 60px;
            }

            .btn {
                width: 100%;
                max-width: 280px;
            }
        }

        /* Accessibility and Touch Optimizations */
        @media (hover: none) and (pointer: coarse) {
            .feature-card:hover {
                transform: none;
            }
            
            .btn:hover {
                transform: none;
            }
        }

        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Loading Animation */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-in {
            animation: fadeInUp 0.8s ease forwards;
        }