/*
Theme Name: ReGo
Theme URI: https://regodeals.com
Description: Child theme for ReGo — the verified resale marketplace for prepaid bookings, tickets & vouchers.
Author: ReGo
Template: astra
Version: 1.1.0
*/

/* ===== Design tokens ===== */
:root {
  --rego-teal: #0F766E;
  --rego-teal-dark: #115E59;
  --rego-teal-deep: #0B4F4A;
  --rego-amber: #F59E0B;
  --rego-amber-dark: #D97706;
  --rego-red: #E11D48;
  --rego-green: #16A34A;
  --rego-green-deep: #15803D;
  --rego-bg: #F8FAFC;
  --rego-text: #0F172A;
  --rego-muted: #64748B;
  --rego-border: #E2E8F0;
  --rego-radius: 16px;
  --rego-shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --rego-shadow-md: 0 8px 24px rgba(15,23,42,.10);
  --rego-shadow-lg: 0 16px 40px rgba(15,23,42,.14);
}

/* ===== Header logo — constrain custom_logo size ===== */
.site-header .custom-logo,
.site-header img.custom-logo,
.site-brand-container .custom-logo,
header.site-header img {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain;
}

/* ===== LAYOUT FIX =====
   Astra's .ast-container inside #content is display:flex, so our full-width
   sections would render side-by-side. Force them block & full width. */
#content .ast-container,
#content > .ast-container {
  display: block;
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}
.rego-hero,
.rego-trust,
.rego-section,
.rego-cta {
  display: block;
  width: 100%;
  float: none;
  clear: both;
}
/* our own inner containers get the centered max-width back */
.rego-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ===== Base ===== */
.rego-site-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===== Top banner ===== */
.rego-banner {
  background: linear-gradient(90deg, #0B4F4A 0%, #0F766E 100%);
  color: #fff;
  padding: 10px 0;
  font-size: .92rem;
  text-align: center;
}
.rego-banner__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rego-banner a { color: #FDE68A; font-weight: 700; text-decoration: none; }
.rego-banner a:hover { text-decoration: underline; }

/* ===== Badges ===== */
.rego-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .01em;
  padding: 4px 12px; border-radius: 999px; line-height: 1.4;
}
.rego-badge svg { width: 13px; height: 13px; flex: 0 0 auto; }
.rego-badge--verified { background: #ECFDF5; color: #15803D; border: 1px solid #86EFAC; }
.rego-badge--verified svg { color: #16A34A; }
.rego-badge--pending { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }

/* ===== Buttons ===== */
.rego-btn {
  display: inline-block; color: #fff !important; font-weight: 700;
  padding: 14px 28px; border-radius: 12px; border: none; cursor: pointer;
  text-decoration: none !important; transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  font-size: 1rem;
}
.rego-btn:hover { transform: translateY(-2px); }
.rego-btn--amber { background: var(--rego-amber); box-shadow: 0 4px 14px rgba(245,158,11,.35); }
.rego-btn--amber:hover { background: var(--rego-amber-dark); }
.rego-btn--teal { background: var(--rego-teal); }
.rego-btn--teal:hover { background: var(--rego-teal-dark); }
.rego-btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff !important; }
.rego-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ===== HERO ===== */
.rego-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(11,79,74,.88) 0%, rgba(15,118,110,.82) 55%, rgba(13,148,136,.78) 100%),
    url('/wp-content/uploads/rego-brand/rego-hero-bg.jpg') center center / cover no-repeat;
  color: #fff; padding: 96px 24px 88px; text-align: center;
}
.rego-hero__inner { max-width: 820px; margin: 0 auto; }
.rego-hero__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #99F6E4; margin: 0 0 20px;
  padding: 6px 14px; border: 1px solid rgba(153,246,228,.35); border-radius: 999px;
}
.rego-hero__title {
  color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.12;
  font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; font-family: inherit;
}
.rego-hero__sub { color: #D1FAE5; font-size: 1.18rem; line-height: 1.6; max-width: 620px; margin: 0 auto 34px; }
.rego-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.rego-hero__trustline {
  margin-top: 40px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  color: #99F6E4; font-size: .85rem; font-weight: 600;
}
.rego-hero__trustline svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; }

/* ===== TRUST BAND ===== */
.rego-trust { background: #fff; border-bottom: 1px solid var(--rego-border); }
.rego-trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 24px; }
.rego-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.rego-trust__mark {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  background: #ECFDF5; color: #15803D; font-weight: 900; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px #86EFAC;
}
.rego-trust__mark svg { width: 22px; height: 22px; }
.rego-trust__item strong { display: block; font-size: 1.02rem; color: var(--rego-text); }
.rego-trust__item p { margin: 3px 0 0; color: var(--rego-muted); font-size: .92rem; line-height: 1.5; }

/* ===== SECTIONS ===== */
.rego-section { padding: 72px 24px; }
.rego-section--alt { background: var(--rego-bg); }
.rego-section__head { text-align: center; max-width: 660px; margin: 0 auto 44px; }
.rego-section__title { font-size: 2rem; font-weight: 800; color: var(--rego-text); letter-spacing: -.02em; }
.rego-section__sub { color: var(--rego-muted); font-size: 1.06rem; margin-top: 10px; line-height: 1.55; }
.rego-section__more { text-align: center; margin-top: 36px; }

/* ===== CATEGORY TILES ===== */
.rego-catgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.rego-cattile {
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center;
  padding: 32px 20px; background: #fff; border: 1px solid var(--rego-border); border-radius: var(--rego-radius);
  text-align: center; text-decoration: none !important; color: var(--rego-text);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.rego-cattile:hover {
  border-color: var(--rego-teal); box-shadow: var(--shadow-md, var(--rego-shadow-md));
  transform: translateY(-4px);
}
.rego-cattile__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: #F0FDFA; color: var(--rego-teal);
  transition: background .2s ease, color .2s ease;
}
.rego-cattile:hover .rego-cattile__icon { background: var(--rego-teal); color: #fff; }
.rego-cattile__icon svg { width: 26px; height: 26px; }
.rego-cattile__name { font-weight: 700; font-size: 1rem; line-height: 1.3; }

/* ===== STEPS ===== */
.rego-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.rego-step {
  background: #fff; border: 1px solid var(--rego-border); border-radius: var(--rego-radius);
  padding: 26px 22px; box-shadow: var(--rego-shadow-sm);
}
.rego-step__num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--rego-teal); color: #fff; font-weight: 800; font-size: 1.05rem; margin-bottom: 14px;
}
.rego-step h3 { font-size: 1.08rem; margin: 0 0 7px; color: var(--rego-text); }
.rego-step p { margin: 0; color: var(--rego-muted); font-size: .93rem; line-height: 1.55; }

/* ===== FINAL CTA ===== */
.rego-cta {
  position: relative;
  background:
    linear-gradient(120deg, rgba(15,118,110,.88), rgba(11,79,74,.90)),
    url('/wp-content/uploads/rego-brand/rego-cta-bg.jpg') center center / cover no-repeat;
  color: #fff; padding: 80px 24px; text-align: center;
}
.rego-cta__title { color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.rego-cta__sub { color: #CCFBF1; max-width: 560px; margin: 14px auto 30px; font-size: 1.08rem; line-height: 1.55; }

/* ===== Archive / category nav ===== */
.rego-archive { padding: 48px 24px 64px; }
.rego-archive__head { text-align: center; margin-bottom: 24px; }
.rego-archive__head h1 { margin-bottom: 6px; font-size: 2rem; font-weight: 800; }
.rego-lead { color: var(--rego-muted); font-size: 1.05rem; }
.rego-cats { margin: 8px 0 28px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rego-cats a {
  padding: 8px 16px; border: 1px solid var(--rego-border); border-radius: 999px;
  font-size: .9rem; font-weight: 600; color: var(--rego-text); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.rego-cats a:hover, .rego-cats a.rego-cats__all { background: var(--rego-teal); color: #fff; border-color: var(--rego-teal); }

/* ===== Cards grid ===== */
.rego-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.rego-card {
  background: #fff; border: 1px solid var(--rego-border); border-radius: var(--rego-radius);
  overflow: hidden; box-shadow: var(--rego-shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.rego-card:hover { box-shadow: var(--rego-shadow-md); transform: translateY(-3px); }
.rego-card__link { text-decoration: none !important; color: inherit; display: block; }
.rego-card__img { position: relative; }
.rego-card__img img { width: 100%; height: 190px; object-fit: cover; display: block; }
.rego-card__body { padding: 16px 18px 20px; }
.rego-card__title { font-size: 1.05rem; margin: 10px 0 5px; line-height: 1.3; color: var(--rego-text); }
.rego-card__loc, .rego-card__cat { color: var(--rego-muted); font-size: .86rem; margin: 0 0 4px; }
.rego-card__price { margin-top: 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.rego-price { font-weight: 800; color: var(--rego-teal); font-size: 1.18rem; }
.rego-price--original { text-decoration: line-through; color: var(--rego-muted); font-weight: 500; }
.rego-save { color: var(--rego-red); font-weight: 700; }
.rego-empty { color: var(--rego-muted); padding: 30px 0; }

/* ===== Single listing ===== */
.rego-single { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
.rego-single__head h1 { margin: 14px 0 6px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.rego-single__meta { color: var(--rego-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.rego-single__price { margin: 20px 0; display: flex; gap: 12px; align-items: baseline; }
.rego-single__price .rego-price { font-size: 1.7rem; }
.rego-single__img img { width: 100%; border-radius: var(--rego-radius); margin: 8px 0 20px; }
.rego-single__content { margin: 20px 0; line-height: 1.7; }
.rego-single__report {
  background: #F0FDFA; border: 1px solid #99F6E4; border-radius: 12px;
  padding: 18px 22px; margin: 22px 0;
}
.rego-single__report h2 { margin: 0 0 8px; font-size: 1.05rem; }
.rego-single__report p { margin: 0; }
.rego-single__contact { margin-top: 28px; }

/* ===== Forms ===== */
.rego-form p { margin-bottom: 15px; }
.rego-form label { font-weight: 600; font-size: .92rem; }
.rego-input, .rego-form input[type="text"], .rego-form input[type="email"],
.rego-form input[type="number"], .rego-form select, .rego-form textarea {
  width: 100%; max-width: 520px; padding: 11px 13px;
  border: 1px solid var(--rego-border); border-radius: 10px; font-size: .95rem; font-family: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rego-input:focus, .rego-form input:focus, .rego-form select:focus, .rego-form textarea:focus {
  border-color: var(--rego-teal); box-shadow: 0 0 0 3px rgba(15,118,110,.12); outline: none;
}
.rego-notice { padding: 13px 18px; border-radius: 10px; font-weight: 600; }
.rego-notice--success { background: #ECFDF5; color: #15803D; border: 1px solid #86EFAC; }
.rego-notice--error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* ===== Footer ===== */
.rego-footer {
  background: #0B2E2B; color: #A7C4C0; padding: 64px 24px 32px; font-size: .93rem;
}
.rego-footer__inner { max-width: 1200px; margin: 0 auto; }
.rego-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.rego-footer__col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 14px; }
.rego-footer__brand { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rego-footer__brand svg { width: 26px; height: 26px; color: #5EEAD4; }
.rego-footer__tagline { line-height: 1.6; margin: 0 0 16px; max-width: 300px; }
.rego-footer__col ul { list-style: none; margin: 0; padding: 0; }
.rego-footer__col li { margin-bottom: 9px; }
.rego-footer__col a { color: #A7C4C0; text-decoration: none; transition: color .15s ease; }
.rego-footer__col a:hover { color: #5EEAD4; }
.rego-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #6E918B;
}
.rego-footer__bottom a { color: #6E918B; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .rego-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rego-trust__grid { grid-template-columns: 1fr; }
  .rego-hero { padding: 60px 18px 56px; }
  .rego-section { padding: 48px 18px; }
  .rego-cta { padding: 56px 18px; }
  .rego-footer__grid { grid-template-columns: 1fr; gap: 26px; }
  .rego-footer__bottom { flex-direction: column; }
}