/* ==========================================================================
   andystfort.com – premium layer (Phase 3)
   Loaded after the Varkala theme and custom.css. Keeps the theme, its fonts
   and the cream + gold palette; refines spacing, depth and motion.
   ========================================================================== */

:root {
    --af-cream: #FBF8F1;
    --af-sand: #F6F1E4;
    --af-sand-deep: #EDE4CB;
    --af-ink: #15130F;
    --af-ink-2: #1E1B16;
    --af-gold: #BCAC76;          /* decorative gold (fills, lines, on dark) */
    --af-gold-ink: #7A6A36;      /* readable gold for text/links on cream */
    --af-text: #15130F;
    --af-text-muted: #4A4436;
    --af-line: rgba(21, 19, 15, .12);
    --af-radius: 18px;
    --af-radius-lg: 28px;
    --af-ease: cubic-bezier(.2, .7, .2, 1);
    --af-topbar-h: 44px;

    --bs-body-bg: var(--af-cream);
    --bs-body-color: var(--af-text);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
    background-color: var(--af-cream);
    color: var(--af-text);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--af-gold); color: var(--af-ink); }

h1, .h1 { font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.25rem, 4.5vw, 4rem); }
h2, .h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
h3, .h3, h4, .h4 { letter-spacing: -.015em; }
h5.text-uppercase, h6.text-uppercase { letter-spacing: .18em; font-size: .8rem; font-weight: 700; color: var(--af-gold-ink); }

.site-main a:where(:not(.btn, .card, .nav-link, .dropdown-item, .page-link, .af-work, .af-tile, .af-link-gold, .af-more, .af-plain)) {
    color: var(--af-gold-ink);
    text-decoration: underline;
    text-decoration-color: rgba(188, 172, 118, .5);
    text-underline-offset: 3px;
    transition: color .25s ease, text-decoration-color .25s ease;
}
.site-main a:where(:not(.btn, .card, .nav-link, .dropdown-item, .page-link, .af-work, .af-tile, .af-link-gold, .af-more, .af-plain)):hover {
    color: var(--af-ink);
    text-decoration-color: var(--af-gold);
}

.text-muted { color: var(--af-text-muted) !important; }
hr { border-color: var(--af-line); opacity: 1; }

:focus-visible { outline: 2px solid var(--af-gold); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Header: top bar scrolls away, navbar stays (sticky, frosted)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: calc(-1 * var(--af-topbar-h));
    z-index: 1030;
}

.site-header .top-bar {
    min-height: var(--af-topbar-h);
    display: flex;
    align-items: center;
    background: var(--af-ink);
    color: #E9E2CC;
    font-weight: 400;
    letter-spacing: .03em;
    box-shadow: none !important;
}
.site-header .top-bar > .container-fluid { padding-top: 0 !important; padding-bottom: 0 !important; }
.site-header .top-bar a:not(.dropdown-item),
.site-header .top-bar .btn,
.site-header .top-bar .dropdown-toggle { color: #E9E2CC !important; }
.site-header .top-bar .border-right { border-right: 0 !important; }
.site-header .top-bar .btn {
    padding: .3rem .95rem;
    border: 1px solid rgba(233, 226, 204, .35);
    background: transparent;
    box-shadow: none !important;
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.site-header .top-bar .btn:hover,
.site-header .top-bar .btn:focus-visible,
.site-header .top-bar .btn.show {
    border-color: var(--af-gold);
    color: var(--af-gold) !important;
    background: transparent;
}
.site-header .top-bar .dropdown-menu { min-width: 11rem; margin-top: .5rem !important; }
.site-header .top-bar .dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .85rem;
    color: var(--af-ink) !important;
    font-weight: 500;
    letter-spacing: 0;
}
.site-header .top-bar .dropdown-item:hover,
.site-header .top-bar .dropdown-item:focus { background: var(--af-sand); color: var(--af-ink) !important; }
.site-header .top-bar .text-md-center strong { color: var(--af-gold); font-weight: 600; }
.site-header .top-bar .svg-icon { color: var(--af-gold); }

.site-header .navbar,
.site-header .navbar.bg-light {
    background-color: rgba(251, 248, 241, .85) !important;
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--af-line) !important;
    box-shadow: none !important;
    padding-top: .65rem;
    padding-bottom: .65rem;
}
.site-header .navbar-brand img { height: 52px; width: auto; }

.site-header .navbar-nav .nav-link {
    position: relative;
    color: #3B362C !important;
    font-weight: 500;
    letter-spacing: .01em;
}
.site-header .navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    left: var(--bs-navbar-nav-link-padding-x, .5rem);
    right: var(--bs-navbar-nav-link-padding-x, .5rem);
    bottom: .35rem;
    height: 1px;
    background: var(--af-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s var(--af-ease);
}
.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .active > .nav-link,
.site-header .navbar-nav .nav-link.active { color: var(--af-ink) !important; }
.site-header .navbar-nav .nav-link:hover::before,
.site-header .navbar-nav .active > .nav-link::before,
.site-header .navbar-nav .nav-link.active::before { transform: scaleX(1); }

.site-header .dropdown-menu {
    border: 1px solid var(--af-line);
    border-radius: 14px;
    box-shadow: 0 24px 48px -24px rgba(21, 19, 15, .35);
    padding: .5rem;
}
.site-header .dropdown-item { border-radius: 10px; }
.site-header .dropdown-item:hover { background: var(--af-sand); color: var(--af-ink); }

/* --------------------------------------------------------------------------
   Main area (replaces the fixed-height Swiper wrapper)
   -------------------------------------------------------------------------- */
.site-main {
    padding-top: 2.5rem;
    padding-bottom: 6rem;
    min-height: 60vh;
}
.site-breadcrumb .breadcrumb { font-size: .8125rem; margin-bottom: 2rem; }
.site-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: var(--af-gold); }
.site-breadcrumb .breadcrumb-item.active { color: var(--af-ink); }

/* The old inner scroll boxes are no longer needed: pages now grow and scroll normally. */
.blog-content,
.home-content,
.custom-content {
    max-height: none !important;
    overflow: visible !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .7rem 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary {
    background-color: var(--af-gold);
    border-color: var(--af-gold);
    color: var(--af-ink);
}
.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: var(--af-gold);
    border-color: var(--af-gold);
    color: var(--af-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(122, 106, 54, .55);
}
.btn-outline-primary,
.btn-outline-dark {
    color: var(--af-ink);
    border-color: rgba(21, 19, 15, .3);
    background: transparent;
}
.btn-outline-primary:hover,
.btn-outline-dark:hover {
    background-color: var(--af-ink);
    border-color: var(--af-ink);
    color: var(--af-cream);
}
.btn-dark {
    background-color: var(--af-ink);
    border-color: var(--af-ink);
    color: var(--af-cream);
}
.btn-dark:hover {
    background-color: var(--af-ink);
    color: var(--af-cream);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(21, 19, 15, .55);
}

/* --------------------------------------------------------------------------
   Cards: calm lift instead of the old 8–15% zoom
   -------------------------------------------------------------------------- */
.site-main .card {
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius) !important;
    background: var(--af-sand);
    overflow: hidden;
    transition: transform .45s var(--af-ease), box-shadow .45s ease, border-color .45s ease, background-color .45s ease;
}
.site-main .card:hover {
    transform: translateY(-6px);
    background: #FFFFFF;
    border-color: var(--af-gold);
    box-shadow: 0 28px 50px -28px rgba(21, 19, 15, .35);
}
.site-main .card .card-img-top,
.site-main .card img {
    transition: transform .8s var(--af-ease);
}
.site-main .card:hover .card-img-top,
.site-main .card:hover > img {
    transform: scale(1.04);
}

/* Modals: no hover zoom */
.modal .modal-content {
    border: 0;
    border-radius: var(--af-radius-lg) !important;
    background: var(--af-cream);
    box-shadow: 0 40px 80px -30px rgba(21, 19, 15, .45);
}
.modal .modal-content:hover { transform: none; }

/* Forms */
.site-main .form-control,
.site-main .form-select {
    border-radius: 12px;
    border-color: rgba(21, 19, 15, .18);
    background-color: #FFFFFF;
}
.site-main .form-control:focus,
.site-main .form-select:focus {
    border-color: var(--af-gold);
    box-shadow: 0 0 0 .2rem rgba(188, 172, 118, .25);
}

/* --------------------------------------------------------------------------
   Reusable premium sections (used by the redesigned pages)
   -------------------------------------------------------------------------- */
.af-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--af-gold-ink);
}
.af-band-dark .af-eyebrow { color: var(--af-gold); }
.af-lead { font-size: 1.2rem; line-height: 1.65; color: var(--af-text-muted); }
.af-rule {
    height: 1px;
    border: 0;
    background: linear-gradient(90deg, var(--af-gold), rgba(188, 172, 118, 0));
    opacity: 1;
}
.af-band-dark {
    background: var(--af-ink);
    color: #F3EEDF;
}
.af-band-dark h2, .af-band-dark h3 { color: #F3EEDF; }
.af-panel {
    border-radius: var(--af-radius-lg);
    background: var(--af-sand-deep);
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
}
.af-panel-dark { background: var(--af-ink); color: #F3EEDF; }
.af-panel-dark h2 { color: #F3EEDF; }

/* --------------------------------------------------------------------------
   Logo in page bodies: the navbar already shows it, so hide the big one
   -------------------------------------------------------------------------- */
.site-main p:has(> img[src*="logo_transparent_background"]),
.site-main div:has(> p:only-child > img[src*="logo_transparent_background"]) {
    display: none;
}

/* --------------------------------------------------------------------------
   Home page (Phase 3, Batch 2)
   -------------------------------------------------------------------------- */
.af-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.af-section { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.af-section-title { max-width: 760px; font-size: clamp(2rem, 3.5vw, 3rem); }

.af-hero { padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.af-hero-title {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.75rem, 6.5vw, 5.25rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.af-hero .btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }

.af-band-dark h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.af-subhead { margin: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.af-link-gold { color: var(--af-gold); font-weight: 600; text-decoration: none; transition: color .25s ease; }
.af-link-gold:hover { color: #F3EEDF; }

.af-work {
    display: block;
    height: 100%;
    border: 1px solid rgba(243, 238, 223, .12);
    border-radius: var(--af-radius);
    overflow: hidden;
    background: var(--af-ink-2);
    color: #F3EEDF;
    text-decoration: none;
    transition: transform .45s var(--af-ease), box-shadow .45s ease, border-color .45s ease;
}
.af-work:hover {
    color: #F3EEDF;
    transform: translateY(-6px);
    border-color: rgba(188, 172, 118, .6);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.af-work-media { aspect-ratio: 16 / 10; overflow: hidden; }
.af-work-media-wide { aspect-ratio: 16 / 9; }
.af-work-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--af-ease); }
.af-work:hover .af-work-media img { transform: scale(1.04); }
.af-work-body { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.1rem 1.25rem; }
.af-work-title { display: block; font-weight: 600; }
.af-work-sub { display: block; font-size: .8125rem; color: #B9B19A; }

.af-arrow { display: inline-block; transition: transform .35s ease, color .35s ease; }
.af-work:hover .af-arrow { transform: translate(3px, -3px); color: var(--af-gold); }

.af-tile {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    height: 100%;
    padding: 2rem;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    background: var(--af-sand);
    color: var(--af-ink);
    text-decoration: none;
    transition: background-color .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease;
}
.af-tile:hover {
    color: var(--af-ink);
    background: #FFFFFF;
    border-color: var(--af-gold);
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -28px rgba(21, 19, 15, .35);
}
.af-tile-label { font-size: .8125rem; font-weight: 700; color: var(--af-gold-ink); }
.af-tile-text { font-size: 1.15rem; line-height: 1.45; font-weight: 600; }
.af-tile .af-arrow { margin-top: auto; font-size: 1.35rem; }
.af-tile:hover .af-arrow { transform: translateX(4px); }

.af-panel-text { max-width: 640px; }
.af-panel h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }

/* --------------------------------------------------------------------------
   Services offered (Phase 3, Batch 3)
   -------------------------------------------------------------------------- */
.af-page-head { padding-top: clamp(1rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.af-page-title {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}
.af-page-head .af-lead { max-width: 460px; }

.af-svc,
.af-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 2rem;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    background: var(--af-sand);
    scroll-margin-top: 110px;
    transition: transform .45s var(--af-ease), box-shadow .45s ease, border-color .45s ease, background-color .45s ease;
}
.af-svc:hover,
.af-svc:target,
.af-card:hover,
.af-card:target {
    transform: translateY(-6px);
    background: #FFFFFF;
    border-color: var(--af-gold);
    box-shadow: 0 28px 50px -28px rgba(21, 19, 15, .35);
}
.af-svc-num { font-size: .875rem; font-weight: 700; color: var(--af-gold-ink); transition: color .35s ease; }
.af-svc:hover .af-svc-num { color: var(--af-gold); }
.af-svc-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.af-svc-summary { margin: 0; flex-grow: 1; font-size: .975rem; line-height: 1.65; color: var(--af-text-muted); }
.af-svc-meta { display: grid; gap: .65rem; margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--af-line); }
.af-svc-meta div { display: flex; justify-content: space-between; gap: 1rem; font-size: .875rem; }
.af-svc-meta dt { flex-shrink: 0; font-weight: 500; white-space: nowrap; color: var(--af-text-muted); }
.af-svc-meta dd { margin: 0; font-weight: 600; text-align: end; }
.af-svc-more,
.af-more {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .25rem;
    padding: .6rem 1.15rem;
    border: 1px solid rgba(21, 19, 15, .25);
    border-radius: 999px;
    background: transparent;
    color: var(--af-ink);
    font-size: .875rem;
    font-weight: 600;
    transition: gap .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.af-svc:hover .af-svc-more,
.af-svc-more:focus-visible,
.af-card:hover .af-more,
.af-more:focus-visible { gap: .85rem; background: var(--af-ink); border-color: var(--af-ink); color: var(--af-cream); }
.af-svc-note { margin: 1.75rem 0 0; font-size: .875rem; color: var(--af-text-muted); }

.af-svc-modal .modal-header,
.af-svc-modal .modal-footer { border: 0; padding: 1.75rem 2rem; }
.af-svc-modal .modal-header { align-items: flex-start; padding-bottom: .5rem; }
.af-svc-modal .modal-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.2; }
.af-svc-modal .modal-body { padding: 1rem 2rem; }
.af-svc-modal .modal-footer { gap: .75rem; padding-top: .5rem; }
.af-svc-desc { color: var(--af-text-muted); line-height: 1.7; }
.af-svc-h { margin-bottom: 1rem; font-size: .8125rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--af-gold-ink); }
.af-check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.af-check li { position: relative; padding-left: 1.75rem; line-height: 1.5; }
.af-check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: .95rem;
    height: .55rem;
    border-left: 2px solid var(--af-gold);
    border-bottom: 2px solid var(--af-gold);
    transform: rotate(-45deg) scale(.8);
}
.af-svc-facts { margin: 0; padding: 1.5rem; border-radius: var(--af-radius); background: var(--af-sand); display: grid; gap: 1.1rem; }
.af-svc-facts dt { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--af-gold-ink); }
.af-svc-facts dd { margin: .25rem 0 0; font-weight: 600; line-height: 1.45; }

.af-steps { counter-reset: af-step; }
.af-step {
    height: 100%;
    padding: 2rem 0 0;
    border-top: 1px solid rgba(243, 238, 223, .18);
    transition: border-color .45s ease;
}
.af-step:hover { border-top-color: var(--af-gold); }
.af-step-num { display: block; margin-bottom: 1.25rem; font-size: .875rem; font-weight: 700; color: var(--af-gold); }
.af-step h3 { margin-bottom: .75rem; font-size: 1.35rem; }
.af-step p { margin: 0; line-height: 1.65; color: #CFC7AF; }
.af-panel-dark .af-lead { color: #CFC7AF; }

/* --------------------------------------------------------------------------
   About, Portfolio, Blog, Testimonies, Release notes (Phase 3, Batch 4)
   -------------------------------------------------------------------------- */
/* Shared card parts */
.af-card-top { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.af-card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--af-gold-ink); }
.af-card-title { margin: 0; font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; }
.af-card-title a { color: var(--af-ink); text-decoration: none; }
.af-card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.af-card-text { margin: 0; flex-grow: 1; font-size: .975rem; line-height: 1.65; color: var(--af-text-muted); }
.af-card-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    margin-top: auto;
    padding-top: 1.1rem;
    border-top: 1px solid var(--af-line);
    font-size: .875rem;
    color: var(--af-text-muted);
}
.af-card-foot a { position: relative; z-index: 1; }
.af-plain { color: var(--af-gold-ink); font-weight: 600; text-decoration: none; transition: color .25s ease; }
.af-plain:hover { color: var(--af-ink); }
.af-chip {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    border: 1px solid var(--af-line);
    border-radius: 999px;
    background: var(--af-cream);
    font-size: .75rem;
    font-weight: 600;
    color: var(--af-text-muted);
}
.af-chip-gold { border-color: var(--af-gold); background: var(--af-gold); color: var(--af-ink); }
.af-card .af-more { margin-top: 0; }
.af-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.af-card:hover .af-arrow { transform: translateX(4px); color: var(--af-gold-ink); }
.af-panel-dark .btn-outline-light { color: #F3EEDF; border-color: rgba(243, 238, 223, .35); background: transparent; }
.af-panel-dark .btn-outline-light:hover { color: var(--af-ink); border-color: #F3EEDF; background: #F3EEDF; }

/* Pagination */
.site-main .pagination { gap: .75rem; }
.site-main .pagination .page-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.25rem;
    border: 1px solid rgba(21, 19, 15, .25);
    border-radius: 999px !important;
    background: transparent;
    color: var(--af-ink);
    font-size: .875rem;
    font-weight: 600;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.site-main .pagination .page-link:hover { background: var(--af-ink); border-color: var(--af-ink); color: var(--af-cream); }

/* About us: values */
/* Rows with lines: the line is drawn inside the gutters so it lines up with the text */
.af-value,
.af-release { position: relative; margin-top: 0; }
.af-value::before,
.af-release::before,
.af-value:last-child::after,
.af-release:last-child::after {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--bs-gutter-x) * .5);
    right: calc(var(--bs-gutter-x) * .5);
    height: 1px;
    background: var(--af-line);
}
.af-value:last-child::after,
.af-release:last-child::after { top: auto; bottom: 0; }
.af-value { padding: clamp(.5rem, 2.5vw, 1.5rem) 0 clamp(2rem, 4vw, 3rem); }
.af-value-num { display: block; margin-bottom: .75rem; font-size: .875rem; font-weight: 700; color: var(--af-gold-ink); }
.af-value h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.af-value p { font-size: 1.075rem; line-height: 1.75; color: var(--af-text-muted); }
.af-value p:last-child { margin-bottom: 0; }
@media (min-width: 992px) { .af-value-label { position: sticky; top: 110px; } }
.af-signature { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed rgba(188, 172, 118, .6); }
.af-signature span { display: block; color: var(--af-text-muted); }
.af-signature strong { display: block; margin-top: .25rem; font-size: 1.15rem; color: var(--af-ink); }

/* Testimonies */
.af-stars { display: inline-flex; gap: .15rem; font-size: 1rem; letter-spacing: .05em; color: var(--af-gold); }
.af-stars .is-off { color: rgba(21, 19, 15, .15); }
.af-quote-text {
    position: relative;
    margin: 0;
    flex-grow: 1;
    padding-top: 1.75rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--af-ink);
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.af-quote-text::before {
    content: "\201C";
    position: absolute;
    top: -.6rem;
    left: -.15rem;
    font-size: 3.5rem;
    line-height: 1;
    color: var(--af-gold);
}
.af-person { display: flex; align-items: center; gap: .75rem; }
.af-avatar {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--af-ink);
    color: var(--af-gold);
    font-weight: 700;
    text-transform: uppercase;
}
.af-person strong { display: block; color: var(--af-ink); line-height: 1.2; }
.af-person small { display: block; color: var(--af-text-muted); }
.af-modal-quote { font-size: 1.15rem; line-height: 1.75; color: var(--af-ink); }

/* Release notes: timeline */
.af-release { padding: clamp(.25rem, 2vw, 1rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); }
.af-release-version { display: block; font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; }
.af-release-date { display: block; margin: .25rem 0 .75rem; font-size: .875rem; color: var(--af-text-muted); }
.af-release.is-latest .af-release-version { color: var(--af-gold-ink); }

/* --------------------------------------------------------------------------
   Remaining pages: blog article, comments, forms, confirmations, legal,
   profiles, tech news (Phase 3, Batch 5)
   -------------------------------------------------------------------------- */
.af-page-title-sm { max-width: 980px; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.08; }
.af-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; margin: 0; font-size: .9rem; color: var(--af-text-muted); }
.af-meta > * + *::before { content: "·"; margin-right: 1.25rem; color: var(--af-gold); }
.af-meta a { color: var(--af-gold-ink); font-weight: 600; text-decoration: none; }

/* Blog article */
.af-article { max-width: 780px; }
.af-article p,
.af-article li { font-size: 1.075rem; line-height: 1.8; color: var(--af-text) !important; }
.af-article p strong { display: inline-block; margin-top: 1rem; font-size: 1.2rem; letter-spacing: -.01em; }
.af-article ul,
.af-article ol { padding-left: 1.25rem; }
.af-article hr { margin: 2rem 0; }
.af-article img { max-width: 100%; height: auto; border-radius: var(--af-radius); }
.af-article .box {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--af-radius);
    background: var(--af-ink);
    overflow-x: auto;
}
.af-article .box code,
.af-article .box pre { margin: 0; color: #E9E2CC; font-size: .875rem; line-height: 1.6; white-space: pre; }
.af-article [data-aos] { opacity: 1 !important; transform: none !important; }

/* Comments */
.af-comment-list { display: grid; gap: 1.25rem; max-width: 860px; }
.af-comment { padding: 1.75rem; }
.af-comment .af-quote-text { -webkit-line-clamp: unset; display: block; padding-top: 0; font-size: 1rem; }
.af-comment .af-quote-text::before { content: none; }
.af-comment-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.af-empty {
    max-width: 860px;
    padding: 2.5rem;
    border: 1px dashed rgba(188, 172, 118, .7);
    border-radius: var(--af-radius);
    color: var(--af-text-muted);
    text-align: center;
}

/* Forms */
.af-form-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius-lg);
    background: #FFFFFF;
    box-shadow: 0 30px 60px -40px rgba(21, 19, 15, .35);
}
.af-form-card .form-floating > label { color: var(--af-text-muted); }
.af-form-card small { color: var(--af-text-muted); }
.af-aside {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--af-radius-lg);
    background: var(--af-sand);
}
.af-aside h2 { font-size: 1.5rem; }
.af-aside hr { border: 0; border-top: 1px solid rgba(21, 19, 15, .12); background: none; opacity: 1; }
.af-social { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.af-social a {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(21, 19, 15, .2);
    border-radius: 50%;
    color: var(--af-ink);
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.af-social a:hover { background: var(--af-ink); border-color: var(--af-ink); color: var(--af-gold); transform: translateY(-2px); }

/* Confirmation pages */
.af-success-icon {
    display: inline-grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: var(--af-gold);
    color: var(--af-ink);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Legal pages */
.af-prose { max-width: 820px; }
.af-prose h2 {
    margin: 2.75rem 0 .85rem;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--af-gold-ink);
}
.af-prose h2:first-child { margin-top: 0; }
.af-prose p,
.af-prose li { font-size: 1.025rem; line-height: 1.8; color: var(--af-text-muted); }

/* Profiles */
.af-profile-card { padding: clamp(1.5rem, 4vw, 2.25rem); border: 1px solid var(--af-line); border-radius: var(--af-radius-lg); background: #FFFFFF; }
.af-profile-card .af-avatar { width: 4rem; height: 4rem; font-size: 1.5rem; }
.af-profile-card h2 { margin: 0; font-size: 1.5rem; }
.af-stat-list { margin: 1.5rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--af-line); }
.af-stat-list li { border-bottom: 1px solid var(--af-line); }
.af-stat-list a,
.af-stat-list span.af-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem .25rem;
    color: var(--af-ink);
    text-decoration: none;
    transition: color .25s ease, padding .25s ease;
}
.af-stat-list a:hover { color: var(--af-gold-ink); padding-left: .5rem; }
.af-stat-list .af-chip { min-width: 2.5rem; justify-content: center; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--af-ink);
    color: #B9B19A;
}
footer .text-muted,
footer .text-gray-500 { color: #B9B19A !important; }
footer .text-dark,
footer h6 { color: var(--af-gold) !important; letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; font-weight: 700; }
footer a,
footer .text-reset { color: #E9E2CC !important; transition: color .25s ease; }
footer a:hover { color: var(--af-gold) !important; }
footer .block-toggler { color: #E9E2CC !important; }
footer > div + div { border-top: 1px solid rgba(243, 238, 223, .1); }

/* --------------------------------------------------------------------------
   Motion: AOS "zoom-in" (used across the views) becomes an elegant fade-up
   -------------------------------------------------------------------------- */
[data-aos="zoom-in"],
[data-aos="fade-up"] {
    transform: translate3d(0, 28px, 0);
}
[data-aos="zoom-in"][data-aos="zoom-in"].aos-animate {
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991.98px) {
    .site-header .navbar-nav .nav-link::before { display: none; }
    .site-main { padding-top: 1.5rem; }
}
