/*
 Theme Name:  BQCIS Verify Child
 Theme URI:   https://verify.bqcis.com
 Description: Minimal child theme for the verification subdomain
 Author:      BQCIS
 Template:    twentytwentyfive
 Version:     1.0.0
 Text Domain: bqcis-verify-child
*/

/* --- BRAND TOKENS --- */
:root {
  --bqcis-blue: #005f9e;
  --bqcis-gold: #d4a017;
  --bqcis-gray: #1f2937;
}

/* --- GLOBAL STYLES --- */
body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #f7f9fb;
  color: #1f2937;
  font-variant-ligatures: contextual;
  margin: 0;
  padding: 0;
}

/* --- HEADER --- */
header,
.wp-block-template-part {
  border-bottom: 2px solid var(--bqcis-blue);
}

/* --- BUTTONS --- */
.wp-element-button,
.wp-block-button__link {
  background: var(--bqcis-blue);
  border-radius: 8px;
  padding: 10px 18px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background: #004878;
}

/* --- UTILITY CLASSES --- */
.bqcis-lead {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: #111827;
}



/* Force flat edges for all verification images */
.bqcis-blank-page img,
img {
  border-radius: 0 !important;
}





/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply to main elements */
header, .verify-box, .cards-section {
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
}

/* Staggered fade timing */
header { animation-delay: 0.1s; }
.verify-box { animation-delay: 0.4s; }
.cards-section { animation-delay: 0.8s; }










/* ============================================================
   BQCIS | Verification Portal Cards (Style Overlay Layout)
   Clean Final Version – November 2025
   ============================================================ */

/* --- Base Card Container --- */
.flat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0; /* flat edges */
  box-shadow: none; /* remove curvature shadow for SGS look */
  transition: transform 0.3s ease;
}

/* --- Default Image Styling (darkened idle state) --- */
.flat-card img {
  width: 100%;
  height: 45vh;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.55) contrast(1.05); /* darker base tone, no opacity */
}

/* --- Hover: Brighten + Zoom --- */
.flat-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) contrast(1.1);
}

/* --- Overlay Wrapper (text layer) --- */
.flat-card .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
  padding: 1.2rem 1rem 1.4rem 1rem;
  text-align: left;
  transform: translateY(0);
  transition: transform 0.35s ease, background 0.35s ease;
}

/* --- Hover: Stronger Overlay Illumination --- */
.flat-card:hover .caption {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  transform: translateY(-6px);
}

/* --- Title & Text Styling --- */
.flat-card .caption h4 {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--bqcis-cream);
  margin-bottom: 0.25rem;
  letter-spacing: 0.3px;
}

.flat-card .caption p {
  font-size: 0.9rem;
  color: var(--bqcis-cream);
  opacity: 0.95;
  line-height: 1.45;
}

/* --- Subtle Fade-In on Load --- */
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.flat-card {
  animation: fadeInCard 1.2s ease forwards;
  opacity: 0;
}

/* --- Responsive Heights --- */
@media (max-width: 1200px) {
  .flat-card img { height: 40vh; }
}
@media (max-width: 768px) {
  .flat-card img { height: 35vh; }
}
@media (max-width: 480px) {
  .flat-card img { height: 30vh; }
  .flat-card .caption { padding: 0.9rem 0.75rem; }
}




/* --- BQCIS Verification Results Styling --- */

/* 1. Adjust Result Box Width & Style */
.bqcis-result-box {
    /* Mimic your verify-box style */
    background: rgba(0, 20, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem; /* rounded-xl */
    padding: 2.5rem; /* p-10 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    text-align: center;
    color: var(--bqcis-cream);
    
    /* This centers the box and gives it the same width as your form */
    max-width: 52rem; /* This is the key for width (max-w-lg) */
    margin-left: auto;
    margin-right: auto;
}

/* Style all headers */
.bqcis-result-box h3 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600; /* font-semibold */
    margin-bottom: 1.5rem; /* mb-6 */
    color: var(--bqcis-cream);
}

/* 2. Make Failure Text Red */
.bqcis-result-box h3.failure-title {
    color: #FC8181; /* A light, visible red */
}
.bqcis-result-box p.failure-message {
    color: #FC8181; /* A light, visible red */
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* 3. Layout for QR Code (Moves it to the right) */

/* This new wrapper uses flexbox */
.result-layout-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on small screens */
    justify-content: space-between; /* Pushes details left, QR right */
    align-items: center;
    text-align: left;
    gap: 1.5rem;
}

/* The details list */
.result-layout-wrapper dl {
    flex-grow: 1; /* Allows details to take up available space */
}


.result-layout-wrapper dl div {
    display: grid;
    grid-template-columns: max-content 1fr; /* <-- THIS IS THE NEW FIX */
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}


.result-layout-wrapper dt {
    font-weight: 600;
    color: #cbd5e0; /* Lighter color for label */
}
.result-layout-wrapper dd {
    font-weight: 500;
}

/* The QR code wrapper */
.qr-code-wrapper {
    flex-shrink: 0; /* Prevents QR code from shrinking */
    padding-left: 1rem; /* A little space from the details */
}
.qr-code-wrapper img {
    background: white;
    padding: 6px;
    border-radius: 4px;
}

/* Status text colors */
.status-valid { color: #48BB78; font-weight: 700; }
.status-expired { color: #FC8181; font-weight: 700; }
.status-revoked { color: #F6AD55; font-weight: 700; }

/* Buttons wrapper for consistent spacing */
.buttons-wrapper {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Button styles (you can customize) */
.bqcis-btn-secondary,
.bqcis-btn-download {
    background: var(--bqcis-blue);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
}
.bqcis-btn-secondary {
    background: #4A5568; /* Gray */
}
.bqcis-btn-secondary:hover {
    background: #2D3748; /* Darker gray */
}
.bqcis-btn-download:hover {
    background-color: #004d80; /* Darker blue */
}








/* === BQCIS Header Spacing Override === */
header img {
  height: 10rem;          /* bigger logo */
  margin-top: 40px;       /* push logo down */
  margin-bottom: 25px;    /* gap below logo */
  transform: none;        /* reset unwanted shift */
}

header h1 {
  margin-top: 0;          /* remove default crowding */
  margin-bottom: 10px;    /* small space before tagline */
}

header p {
  margin-top: 5px;        /* balance tagline spacing */
}





/* === BQCIS Spacing Override: Verify Box → Explore Cards === */
.cards-section {
  margin-top: 100px !important;  /* increase space between verify box and cards */
}








/* === BQCIS Override: Explore Verification Services Heading Color === */
.cards-section h3 {
  color: var(--bqcis-blue) !important; /* switch to navy blue font */
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.15); /* subtle contrast on light zones */
}


