/*
 * AikQadam public website.
 *
 * A small layer on top of Bootstrap 5 - no extra UI framework. It exists so the public site
 * reads as aikqadam.com rather than as the ABP admin application: warmer palette, more
 * generous spacing, softer cards, and a serif display face for headings.
 *
 * Photo-free by design: the space a profile picture would occupy is given to the QR code
 * (.aq-qr), which is the visual anchor of every profile card.
 */

/*
 * Palette taken from the brand banner (wwwroot/images/brand/aikqadam-promo.jpg) so the site
 * and the artwork read as one piece:
 *   #0f343a - the banner's own background. Used for the hero band and the footer, which is
 *             what lets a fixed-width banner sit inside a full-bleed section with no seam.
 *   #b59258 - the banner's ornamental gold. Used for rules and dividers.
 *   #c2a163 - the same gold lifted for text on the dark band (5.5:1 against #0f343a).
 * If the banner is ever replaced, re-sample it and update these three together.
 */
:root {
    --aq-primary: #17635f;
    --aq-primary-deep: #0f343a;
    --aq-primary-hover: #124f4c;
    --aq-accent: #c2a163;
    --aq-accent-soft: #b59258;
    --aq-ink: #1e2b2e;
    --aq-muted: #6b7280;
    --aq-surface: #ffffff;
    --aq-canvas: #f6f4ef;
    --aq-border: #e6e1d6;
    --aq-radius: 14px;
}

/* Sticky footer: main takes the slack so the footer sits at the bottom of short pages,
   and header/footer never shrink, so they cannot be squashed on tall ones. */
body.aq-public {
    background-color: var(--aq-canvas);
    color: var(--aq-ink);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.aq-public > header,
body.aq-public > footer {
    flex-shrink: 0;
}

body.aq-public main {
    flex: 1 0 auto;
    min-width: 0;
}

.aq-public h1, .aq-public h2, .aq-public h3, .aq-public .aq-display {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -0.01em;
}

/* ---------- Header / navigation ---------- */

/* The gold hairline echoes the banner's ornamental border. */
.aq-navbar {
    background-color: var(--aq-surface);
    border-bottom: 1px solid var(--aq-border);
    box-shadow: inset 0 -3px 0 -2px var(--aq-accent-soft);
}

.aq-brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--aq-primary);
    text-decoration: none;
}

/*
 * The navbar brand is the supplied logo lockup. It is a framed cream panel, so it is sized by
 * height and left to find its own width - the intrinsic width/height attributes on the tag
 * reserve the right space before it loads, so the navbar does not jump.
 */
.aq-brand img {
    display: block;
    height: 48px;
    width: auto;
    max-width: 100%;
    border-radius: 6px;
}

@media (max-width: 575.98px) {
    .aq-brand img {
        height: 40px;
    }
}

.aq-footer-mark {
    width: 46px;
    height: 46px;
    border-radius: 8px;
}

/* ---------- Supplied header / footer banners ---------- */

.aq-brand-banner {
    position: relative;
    max-width: 1200px;
    margin: 1.5rem auto 0;
    border-radius: var(--aq-radius);
    overflow: hidden;
    border: 1px solid rgba(181, 146, 88, 0.4);
}

.aq-brand-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Sits exactly on the "Get Started" button drawn into the artwork. Percentages of the banner,
 * not pixels: the image scales proportionally, so the hit area tracks it at every width.
 * Measured from the source sheet - if the banner artwork is ever re-cut, re-measure these.
 */
.aq-brand-banner-cta {
    position: absolute;
    left: 82.21%;
    top: 56.96%;
    width: 10.46%;
    height: 24.68%;
    border-radius: 6px;
}

.aq-brand-banner-cta:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.aq-navbar .nav-link {
    color: var(--aq-ink);
    font-weight: 500;
    padding-inline: 0.85rem;
}

.aq-navbar .nav-link:hover,
.aq-navbar .nav-link.active {
    color: var(--aq-primary);
}

/* ---------- Buttons ---------- */

.btn-aq-primary {
    background-color: var(--aq-primary);
    border-color: var(--aq-primary);
    color: #fff;
}

.btn-aq-primary:hover, .btn-aq-primary:focus {
    background-color: var(--aq-primary-hover);
    border-color: var(--aq-primary-hover);
    color: #fff;
}

/* The gold call to action, for the one primary action on the dark hero band. */
.btn-aq-gold {
    background-color: var(--aq-accent);
    border-color: var(--aq-accent);
    color: #14231f;
    font-weight: 600;
}

.btn-aq-gold:hover, .btn-aq-gold:focus {
    background-color: #d4b374;
    border-color: #d4b374;
    color: #14231f;
}

.btn-aq-outline {
    border-color: var(--aq-primary);
    color: var(--aq-primary);
    background-color: transparent;
}

.btn-aq-outline:hover, .btn-aq-outline:focus {
    background-color: var(--aq-primary);
    color: #fff;
}

/* ---------- Hero ---------- */

/*
 * A compact two-column hero: the brand banner on the left, the quick search on the right.
 *
 * The banner is the primary visual, but it is deliberately not full-bleed - at 1456px wide it
 * dominated large screens and pushed everything else below the fold. Constrained to its own
 * column it keeps its aspect ratio (width:100% + height:auto, never a fixed height) while the
 * horizontal space goes to the search panel instead.
 *
 * The section keeps the banner's own teal, so the artwork sits on a ground that matches its
 * background and the gold hairline is what defines its edge.
 */
.aq-hero {
    background-color: #103136;
    color: #fff;
    padding: 2.25rem 0 2.75rem;
}

/* Positioning context for the action bar; not clipped, so the bar can flow below on mobile. */
.aq-hero-media {
    position: relative;
    max-width: 700px;
    margin-inline: auto;
}

.aq-hero-figure {
    display: block;
    overflow: hidden;
    border-radius: var(--aq-radius);
    border: 1px solid rgba(181, 146, 88, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.aq-hero-figure img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Small screens: the buttons sit under the image, so they can never cover the couple or the
 * wordmark on a narrow portrait crop.
 */
.aq-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

/*
 * From lg up there is room to lift them onto the lower edge of the image. The scrim is what
 * makes them readable there - the lower third of the artwork is pale clothing, and a gold
 * button on cream would not carry. It fades in from fully transparent, so it never shows as
 * a hard band across the picture.
 */
@media (min-width: 992px) {
    .aq-hero-actions {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        margin-top: 0;
        justify-content: center;
        padding: 3.25rem 1rem 1.15rem;
        border-bottom-left-radius: var(--aq-radius);
        border-bottom-right-radius: var(--aq-radius);
        background: linear-gradient(180deg,
            rgba(16, 49, 54, 0) 0%,
            rgba(16, 49, 54, 0.78) 55%,
            rgba(16, 49, 54, 0.94) 100%);
    }
}

/* ---------- Cards ---------- */

/*
 * Deliberately NOT height:100%. Several pages stack two cards in one column (the profile
 * detail page, How It Works); if every card demanded the full column height, the stack would
 * overflow its container and run underneath the footer. Pages that want an equal-height row
 * of cards opt in with Bootstrap's .h-100 on the individual card.
 */
.aq-card {
    background: var(--aq-surface);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
}

.aq-section {
    padding: 3.5rem 0;
}

.aq-section-title {
    margin-bottom: 0.4rem;
}

.aq-section-sub {
    color: var(--aq-muted);
    margin-bottom: 2rem;
}

/* ---------- QR code: the photo-free profile anchor ---------- */

/*
 * The tile is tinted by gender so a profile reads as male or female at a glance.
 *
 * The tint has to agree with the colours the SVG itself is drawn in - see
 * ProfileQrCodeGenerator.QrCodePalette, which is the source of truth. The padding below sits
 * between the tile edge and the code's own quiet zone, so a mismatch would show as a visible
 * ring. Keep --aq-qr-tint identical to that palette's light colour.
 *
 * Colour is never the only cue: every card and profile header also states the gender in
 * words, so this reads the same to someone who cannot distinguish the two tints.
 */
.aq-qr {
    display: block;
    width: 100%;
    max-width: 132px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    padding: 6px;
    background: var(--aq-qr-tint, #fff);
    border: 1px solid var(--aq-qr-edge, var(--aq-border));
    border-radius: 10px;
}

.aq-qr-male {
    --aq-qr-tint: #eef4fb;
    --aq-qr-edge: #b6cfe8;
}

.aq-qr-female {
    --aq-qr-tint: #fdf2f6;
    --aq-qr-edge: #eec2d4;
}

.aq-qr-lg {
    max-width: 210px;
}

.aq-qr-caption {
    font-size: 0.72rem;
    color: var(--aq-muted);
    text-align: center;
    margin-top: 0.4rem;
}

/* The gender pill on a profile card, tinted to agree with that profile's QR code. */
.aq-badge-male {
    background: #eef4fb;
    color: #123a6b;
    font-weight: 500;
}

.aq-badge-female {
    background: #fdf2f6;
    color: #8a1f4d;
    font-weight: 500;
}

/* ---------- Profile card ---------- */

.aq-profile-card {
    background: var(--aq-surface);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.aq-profile-card:hover {
    box-shadow: 0 6px 22px rgba(15, 52, 58, 0.12);
    border-color: var(--aq-accent-soft);
    transform: translateY(-2px);
}

.aq-profile-id {
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--aq-primary);
}

.aq-profile-facts {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.88rem;
}

.aq-profile-facts li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.28rem 0;
    border-bottom: 1px dashed var(--aq-border);
}

.aq-profile-facts li:last-child {
    border-bottom: 0;
}

.aq-profile-facts .aq-label {
    color: var(--aq-muted);
    white-space: nowrap;
}

.aq-profile-facts .aq-value {
    text-align: right;
    font-weight: 500;
}

/* ---------- Filters ---------- */

.aq-filters {
    background: var(--aq-surface);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius);
    padding: 1.15rem;
}

.aq-filters .form-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--aq-muted);
    margin-bottom: 0.2rem;
}

.aq-filters .form-select,
.aq-filters .form-control {
    font-size: 0.9rem;
}

@media (min-width: 992px) {
    .aq-filters-sticky {
        position: sticky;
        top: 1rem;
    }
}

/* ---------- Steps ---------- */

.aq-step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--aq-primary-deep);
    border: 2px solid var(--aq-accent-soft);
    color: var(--aq-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

/* ---------- Footer ---------- */

/* Same teal as the banner, so the page opens and closes on the brand colour. */
.aq-footer {
    background: var(--aq-primary-deep);
    color: rgba(255, 255, 255, 0.82);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 3px solid var(--aq-accent-soft);
}

.aq-footer h6 {
    color: var(--aq-accent);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.9rem;
}

.aq-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    display: block;
    padding: 0.18rem 0;
    font-size: 0.92rem;
}

.aq-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.aq-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    margin-top: 2rem;
    padding-top: 1.2rem;
    font-size: 0.85rem;
}

/* ---------- Misc ---------- */

.aq-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--aq-muted);
}

.aq-empty i {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 0.75rem;
    display: block;
}

.aq-badge-soft {
    background: rgba(23, 99, 95, 0.1);
    color: var(--aq-primary);
    font-weight: 500;
}

/* Section headings carry a small gold rule, matching the hero. */
.aq-section-title::after {
    content: "";
    display: block;
    width: 3rem;
    height: 2px;
    margin: 0.75rem auto 0;
    background: var(--aq-accent-soft);
}

.aq-section-title:not(.text-center)::after {
    margin-inline: 0;
}

.aq-prose p {
    line-height: 1.75;
    color: #374151;
}

.aq-prose h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

/* ---------- Quick share ---------- */

/*
 * The share control on profile cards and the profile detail page. The menu is a plain
 * Bootstrap dropdown; these rules only size the compact icon-only toggle used on a card,
 * where the header row has no space for a label.
 */
.aq-share-toggle {
    --bs-btn-padding-x: 0.45rem;
    --bs-btn-padding-y: 0.15rem;
    line-height: 1.2;
}

/* A quiet tertiary button: no border until it is hovered, so it never competes with the
   card's own "View profile" action. */
.btn-aq-ghost {
    border-color: transparent;
    color: var(--aq-muted);
    background-color: transparent;
}

.btn-aq-ghost:hover, .btn-aq-ghost:focus {
    border-color: var(--aq-border);
    color: var(--aq-primary);
    background-color: rgba(23, 99, 95, 0.06);
}

.aq-share-menu {
    font-size: 0.88rem;
    border-color: var(--aq-border);
    border-radius: var(--aq-radius);
    box-shadow: 0 6px 22px rgba(15, 52, 58, 0.12);
    padding-block: 0.35rem;
}

.aq-share-menu .dropdown-item {
    padding-block: 0.45rem;
}

.aq-share-menu .dropdown-item:active {
    background-color: var(--aq-primary);
}

/* WhatsApp brand green - the icon is the only thing carrying it, so the item still reads
   as part of the menu rather than as an advert. */
.aq-share-whatsapp {
    color: #25d366;
}

.aq-share-menu .dropdown-item:active .aq-share-whatsapp {
    color: #fff;
}

/* The card header keeps the gender pill and the share button on one line. */
.aq-share-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
