/* =================================================================
   AMIG — Premium Design System (Fully Responsive)
   ================================================================= */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    /* ═══ BRAND COLORS (from AMIG logo) ═══ */
    --amig-primary:        #E31E24;   /* AMIG red — logo circle */
    --amig-primary-dark:   #B9161B;   /* Darker red for hover */
    --amig-primary-light:  #F4404A;   /* Lighter red for accents */
    --amig-accent:         #A8A9AD;   /* Logo silver/gray flame */
    --amig-accent-dark:    #8B8C90;   /* Darker silver */
    --amig-danger:         #C4161C;   /* Deep red */

    /* Neutral scale */
    --amig-dark:           #1A1A1A;   /* Near-black */
    --amig-dark-2:         #2A2A2A;
    --amig-gray-100:       #F8F9FA;
    --amig-gray-200:       #E5E7EB;
    --amig-gray-400:       #9CA3AF;
    --amig-gray-600:       #4B5563;
    --amig-gray-800:       #1F2937;
    --amig-white:          #FFFFFF;

    /* ═══ GRADIENTS (built from logo colors) ═══ */
    --gradient-brand:      linear-gradient(135deg, #E31E24 0%, #F4404A 100%);
    --gradient-accent:     linear-gradient(135deg, #E31E24 0%, #B9161B 100%);
    --gradient-dark:       linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    --gradient-header:     linear-gradient(135deg, #1A1A1A 0%, #4A0A0C 100%);

    /* Typography */
    --font-sans:           'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display:        'Playfair Display', Georgia, serif;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Shadows (using red tint) */
    --shadow-sm:  0 1px 3px rgba(227, 30, 36, 0.08);
    --shadow-md:  0 4px 12px rgba(227, 30, 36, 0.10);
    --shadow-lg:  0 12px 32px rgba(227, 30, 36, 0.15);
    --shadow-xl:  0 24px 56px rgba(227, 30, 36, 0.20);
    --shadow-glow: 0 0 40px rgba(227, 30, 36, 0.35);

    /* Transitions */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    --header-h: 72px;
}

/* ─── Base ──────────────────────────────────────────────────── */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    font-family: var(--font-sans);
    color: var(--amig-gray-800);
    background: var(--amig-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding-top: var(--header-h);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--amig-primary);
    transition: color 0.2s var(--ease-out);
}

a:hover {
    color: var(--amig-primary-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--amig-dark);
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

.display-5 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--amig-gray-600);
}

/* ─── Container Max-Width Fix (prevent overflow) ────────────── */
.container,
.container-fluid {
    padding-left: clamp(1rem, 3vw, 1.5rem);
    padding-right: clamp(1rem, 3vw, 1.5rem);
}

/* ─── Section Headings ─────────────────────────────────────── */
.section-heading {
    position: relative;
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.02em;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 4px;
}

.section-heading.text-start::after {
    left: 0;
    transform: none;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--amig-accent);
    margin-bottom: 0.5rem;
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    transition: all 0.3s var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-brand);
    border-color: transparent;
    color: var(--amig-white);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--gradient-brand);
    color: var(--amig-white);
    box-shadow: 0 12px 32px rgba(11, 94, 215, 0.35);
}

.btn-danger {
    background: var(--gradient-accent);
    border-color: transparent;
    color: var(--amig-white);
}

.btn-danger:hover {
    color: var(--amig-white);
    box-shadow: 0 12px 32px rgba(244, 166, 35, 0.35);
}

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

.btn-outline-primary:hover {
    background: var(--amig-primary);
    color: var(--amig-white);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    background: transparent;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--amig-primary);
    border-color: #fff;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.0625rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Mobile: full-width buttons */
@media (max-width: 575.98px) {
    .btn-lg {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    .amig-hero__cta .btn {
        width: 100%;
    }
}

/* ─── Cards ────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--amig-white);
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    transition: transform 0.6s var(--ease-out);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ═════════════════════════════════════════════════════════════
   NAVBAR
   ═════════════════════════════════════════════════════════════ */
.amig-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--amig-gray-200);
    transition: padding 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    width: 100%;
}

.amig-navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.amig-navbar .navbar-brand img {
    height: 48px;
    width: auto;
    transition: height 0.3s var(--ease-out);
}

.amig-navbar.scrolled .navbar-brand img {
    height: 40px;
}

.amig-nav-link {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--amig-gray-800) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s var(--ease-out);
    position: relative;
}

.amig-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--amig-accent);
    transition: width 0.3s var(--ease-out);
}

.amig-nav-link:hover::after,
.amig-nav-link.active::after {
    width: 24px;
}

.amig-nav-link:hover,
.amig-nav-link.active {
    color: var(--amig-primary) !important;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 240px;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 500;
    color: var(--amig-gray-800);
    transition: all 0.2s var(--ease-out);
    white-space: normal;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--amig-gray-100);
    color: var(--amig-primary);
}

/* Mobile navbar adjustments */
@media (max-width: 991.98px) {
    .amig-navbar {
        padding: 0.5rem 0;
    }

    .amig-navbar .navbar-brand img {
        height: 40px;
    }

    .amig-navbar .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem 0;
        border-top: 1px solid var(--amig-gray-200);
        max-height: calc(100vh - var(--header-h) - 24px);
        overflow-y: auto;
    }

    .amig-nav-link {
        padding: 0.75rem 0.5rem !important;
        border-bottom: 1px solid var(--amig-gray-100);
    }

    .amig-nav-link::after {
        display: none;
    }

    .dropdown-menu {
        box-shadow: none;
        background: var(--amig-gray-100);
        margin-top: 0 !important;
        padding: 0.25rem 0;
        border-radius: var(--radius-sm);
    }

    .dropdown-item {
        padding: 0.6rem 1.5rem;
        font-size: 0.875rem;
    }

    .amig-navbar .nav-item.ms-lg-3 {
        margin-top: 1rem !important;
        margin-left: 0 !important;
    }

    .amig-navbar .nav-item.ms-lg-3 .btn {
        width: 100%;
    }
}

/* ═════════════════════════════════════════════════════════════
   PAGE HEADER
   ═════════════════════════════════════════════════════════════ */
.site-header {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.site-header__media {
    position: relative;
    width: 100%;
    height: clamp(220px, 32vw, 480px);
}

.site-header__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.site-header__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.5) 0%,
        rgba(15, 23, 42, 0.2) 40%,
        rgba(15, 23, 42, 0.7) 100%
    );
    pointer-events: none;
}

.site-header__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(1rem, 3vw, 2.5rem);
    z-index: 2;
}

.site-header__breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 500;
    animation: fadeInUp 0.7s var(--ease-out) both;
}

.site-header__breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.site-header__breadcrumb li + li::before {
    content: "›";
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2em;
    font-weight: 300;
}

.site-header__breadcrumb a {
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s var(--ease-out);
}

.site-header__breadcrumb a:hover {
    color: var(--amig-accent);
}

.site-header__breadcrumb li:last-child span {
    color: var(--amig-accent);
    font-weight: 700;
}

.site-header__title {
    margin: 0.75rem 0 0;
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 3.25rem);
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
    line-height: 1.15;
    max-width: 20ch;
}

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

/* Mobile header */
@media (max-width: 575.98px) {
    .site-header__breadcrumb li:first-child span {
        display: none;
    }

    .site-header__title {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .site-header__breadcrumb li {
        max-width: 45vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* ═════════════════════════════════════════════════════════════
   HOME — HERO SLIDER
   ═════════════════════════════════════════════════════════════ */
.amig-hero {
    position: relative;
    width: 100%;
    height: clamp(500px, 78vh, 820px);
    overflow: hidden;
}

.amig-hero .uk-slideshow,
.amig-hero .uk-slideshow-items,
.amig-hero .uk-slideshow-items > li {
    height: 100%;
}

.amig-hero__slide {
    position: relative;
    height: 100%;
}

.amig-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.amig-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.78) 0%,
        rgba(15, 23, 42, 0.45) 50%,
        rgba(15, 23, 42, 0.15) 100%
    );
}

.amig-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(2rem, 8vh, 6rem);
    z-index: 3;
    color: #fff;
}

.amig-hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amig-accent);
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--amig-accent);
    border-radius: 100px;
    margin-bottom: 1rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.1s both;
}

.amig-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5.5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    color: #fff;
    max-width: 16ch;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.2s both;
}

.amig-hero__text {
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 52ch;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}

.amig-hero__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}

.amig-hero__slider-nav a {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
    color: #fff;
}

.amig-hero__slider-nav a:hover {
    background: var(--amig-accent);
    border-color: var(--amig-accent);
    transform: scale(1.1);
}

/* Hide slider nav on small screens */
@media (max-width: 767.98px) {
    .amig-hero__slider-nav {
        display: none;
    }
}

/* Hero scroll indicator */
.amig-hero__scroll {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    animation: bounceDown 2s ease-in-out infinite;
}

.amig-hero__scroll span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.amig-hero__scroll span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--amig-accent);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

@keyframes scrollDot {
    0%, 100% { top: 8px; opacity: 1; }
    50%      { top: 20px; opacity: 0.4; }
}

/* Hide scroll indicator on small screens */
@media (max-width: 575.98px) {
    .amig-hero__scroll {
        display: none;
    }
}

/* ═════════════════════════════════════════════════════════════
   SECTIONS
   ═════════════════════════════════════════════════════════════ */
.amig-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
}

.amig-section--muted {
    background: var(--amig-gray-100);
}

.amig-section--dark {
    background: var(--gradient-dark);
    color: #fff;
}

.amig-section--dark h2,
.amig-section--dark h3,
.amig-section--dark h4 {
    color: #fff;
}

/* About */
.amig-about__intro {
    max-width: 780px;
    margin: 0 auto 3rem;
    text-align: center;
}

.amig-about__intro p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--amig-gray-600);
    line-height: 1.8;
}

/* Management */
.amig-manager-card {
    background: var(--amig-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--amig-primary);
    transition: all 0.4s var(--ease-out);
    height: 100%;
}

.amig-manager-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--amig-accent);
}

.amig-manager-card h3 {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: 0.25rem;
}

.amig-manager-card small {
    display: block;
    color: var(--amig-accent);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

/* ─── Service Cards ─────────────────────────────────────────── */
.amig-service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out);
    display: block;
    text-decoration: none;
    width: 100%;
}

.amig-service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    color: inherit;
}

.amig-service-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.amig-service-card:hover img {
    transform: scale(1.1);
}

.amig-service-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0) 0%,
        rgba(15, 23, 42, 0.4) 50%,
        rgba(15, 23, 42, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 3vw, 2rem);
    color: #fff;
    transition: background 0.4s var(--ease-out);
}

.amig-service-card:hover .amig-service-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(11, 94, 215, 0.1) 0%,
        rgba(11, 94, 215, 0.6) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
}

.amig-service-card__title {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.amig-service-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--amig-accent);
    color: #fff;
    margin-top: 1rem;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.3s var(--ease-out);
}

.amig-service-card:hover .amig-service-card__arrow {
    transform: translateX(0);
    opacity: 1;
}

/* ─── Project Cards ─────────────────────────────────────────── */
.amig-project-card {
    background: var(--amig-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--ease-out);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.amig-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.amig-project-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--amig-gray-100);
}

.amig-project-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.amig-project-card:hover .amig-project-card__media img {
    transform: scale(1.08);
}

.amig-project-card__year {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--amig-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.amig-project-card__body {
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amig-project-card__title {
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    margin-bottom: 0.25rem;
}

.amig-project-card__meta {
    font-size: 0.875rem;
    color: var(--amig-gray-400);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.amig-project-card__meta i {
    color: var(--amig-accent);
    margin-right: 0.35rem;
}

.amig-project-card__summary {
    color: var(--amig-gray-600);
    font-size: 0.9375rem;
    line-height: 1.65;
    flex-grow: 1;
    margin: 0.5rem 0 1rem;
}

/* ─── Clients Slider ────────────────────────────────────────── */
.amig-clients {
    padding: clamp(2rem, 5vw, 4rem) 0;
    border-top: 1px solid var(--amig-gray-200);
    border-bottom: 1px solid var(--amig-gray-200);
}

.amig-client-logo {
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s var(--ease-out);
    padding: 0.75rem;
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin: 0 auto;
}

.amig-client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* ─── Certificates ──────────────────────────────────────────── */
.amig-certificates {
    background: var(--gradient-dark);
    padding: clamp(2rem, 5vw, 3rem) 0;
    color: #fff;
}

.amig-certificates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    justify-items: center;
}

.amig-certificates img {
    /* max-height: 80px; */
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s var(--ease-out);
}

.amig-certificates img:hover {
    opacity: 1;
}

/* ═════════════════════════════════════════════════════════════
   TAB LIST (About / Career / Projects)
   ═════════════════════════════════════════════════════════════ */
.amig-tablist {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.amig-tablist__item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--amig-gray-600);
    background: var(--amig-white);
    border-radius: var(--radius-md);
    border-left: 4px solid transparent;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
}

.amig-tablist__item:hover {
    color: var(--amig-primary);
    border-left-color: var(--amig-primary-light);
    transform: translateX(4px);
}

.amig-tablist__item.active {
    color: var(--amig-primary);
    background: var(--amig-gray-100);
    border-left-color: var(--amig-primary);
    box-shadow: var(--shadow-md);
}

.amig-tablist__item .badge {
    margin-left: auto;
}

/* Mobile tab list — horizontal scroll */
@media (max-width: 991.98px) {
    .amig-tablist {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.25rem 0 0.75rem;
        margin-bottom: 1.5rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
    }

    .amig-tablist::-webkit-scrollbar {
        display: none;
    }

    .amig-tablist__item {
        flex-shrink: 0;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .amig-tablist__item:hover {
        transform: none;
        border-left-color: transparent;
        border-bottom-color: var(--amig-primary-light);
    }

    .amig-tablist__item.active {
        border-left-color: transparent;
        border-bottom-color: var(--amig-primary);
    }
}

/* ═════════════════════════════════════════════════════════════
   FORMS (Contact / Hire)
   ═════════════════════════════════════════════════════════════ */
.amig-form-card {
    background: var(--amig-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-lg);
}

.amig-form-card .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--amig-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.amig-form-card .form-control,
.amig-form-card .form-select {
    border: 2px solid var(--amig-gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    transition: all 0.2s var(--ease-out);
    background: var(--amig-gray-100);
    color: var(--amig-gray-800);
}

.amig-form-card .form-control:focus,
.amig-form-card .form-select:focus {
    border-color: var(--amig-primary);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
    background: var(--amig-white);
}

.amig-form-card .form-control.is-invalid {
    border-color: var(--amig-danger);
}

.amig-form-card textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ─── Contact Cards ─────────────────────────────────────────── */
.amig-contact-card {
    background: var(--amig-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-md);
    height: 100%;
    transition: all 0.3s var(--ease-out);
}

.amig-contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.amig-contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.amig-contact-card h5 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.amig-map-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.amig-map-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ═════════════════════════════════════════════════════════════
   CAREER — JOB LISTINGS
   ═════════════════════════════════════════════════════════════ */
.amig-job-card {
    background: var(--amig-white);
    border-radius: var(--radius-lg);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--amig-primary);
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amig-job-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--amig-accent);
}

.amig-job-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.amig-job-card__code {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    background: var(--amig-gray-100);
    color: var(--amig-gray-600);
    border-radius: 100px;
    text-transform: uppercase;
}

.amig-job-card__title {
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    margin: 0;
    flex-grow: 1;
}

.amig-job-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--amig-gray-600);
}

.amig-job-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.amig-job-card__meta i {
    color: var(--amig-accent);
}

/* Mobile: stack header */
@media (max-width: 575.98px) {
    .amig-job-card__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .amig-job-card .btn {
        width: 100%;
    }
}

/* ─── Badges ────────────────────────────────────────────────── */
.amig-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.amig-badge--success {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.amig-badge--danger {
    background: rgba(230, 57, 70, 0.12);
    color: var(--amig-danger);
}

.amig-badge--warning {
    background: rgba(244, 166, 35, 0.12);
    color: var(--amig-accent-dark);
}

/* ═════════════════════════════════════════════════════════════
   SERVICES DETAIL
   ═════════════════════════════════════════════════════════════ */
.amig-service-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    background: var(--amig-gray-100);
}

.amig-service-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amig-service-feature {
    display: flex;
    gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
    background: var(--amig-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
    height: 100%;
}

.amig-service-feature:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.amig-service-feature__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
}

/* ─── Sidebar Cards ─────────────────────────────────────────── */
.amig-sidebar-card {
    background: var(--amig-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.amig-sidebar-card__header {
    padding: 1rem 1.25rem;
    background: var(--amig-dark);
    color: #fff;
}

.amig-sidebar-card__header h5 {
    color: #fff;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.amig-sidebar-card__body {
    padding: 1.25rem;
}

.amig-related-service {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background 0.2s var(--ease-out);
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.amig-related-service:hover {
    background: var(--amig-gray-100);
    color: inherit;
}

.amig-related-service img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.amig-related-service strong {
    font-size: 0.9375rem;
    line-height: 1.3;
}

.amig-related-service small {
    font-size: 0.75rem;
    line-height: 1.4;
}

/* ─── CTA Card ──────────────────────────────────────────────── */
.amig-cta-card {
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 4vw, 2rem);
    color: #fff;
    text-align: center;
}

.amig-cta-card h4 {
    color: #fff;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

/* Mobile CTA alignment fix */
@media (max-width: 575.98px) {
    .amig-cta-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .amig-cta-card .row > [class*="col-"] {
        text-align: center !important;
    }
}

/* ═════════════════════════════════════════════════════════════
   FOOTER
   ═════════════════════════════════════════════════════════════ */
.amig-footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem;
    margin-top: clamp(2rem, 5vw, 4rem);
}

.amig-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 3rem);
}

.amig-footer__title {
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.amig-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--amig-accent);
}

.amig-footer p,
.amig-footer address {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.amig-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

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

.amig-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
}

.amig-footer__socials {
    display: flex;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.amig-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.3s var(--ease-out);
}

.amig-footer__socials a:hover {
    background: var(--amig-accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Center footer on mobile */
@media (max-width: 575.98px) {
    .amig-footer__grid {
        text-align: center;
    }

    .amig-footer__title {
        display: inline-block;
    }

    .amig-footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .amig-footer__socials {
        justify-content: center;
    }
}

/* ═════════════════════════════════════════════════════════════
   UTILITIES
   ═════════════════════════════════════════════════════════════ */
.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.text-accent {
    color: var(--amig-accent) !important;
}

.bg-gradient-brand {
    background: var(--gradient-brand);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

/* Prevent text overflow */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Global Mobile Fixes ──────────────────────────────────── */
@media (max-width: 767.98px) {
    /* Prevent horizontal scroll from any oversized elements */
    .row {
        --bs-gutter-x: 1rem;
    }

    /* Sections padding reduction */
    .amig-section {
        padding: 3rem 0;
    }

    /* Headings clamp tighter */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    /* Card grid */
    .row.g-5 {
        --bs-gutter-y: 1.5rem;
    }
}

/* Very small screens */
@media (max-width: 399.98px) {
    :root {
        --header-h: 60px;
    }

    .amig-navbar .navbar-brand img {
        height: 34px;
    }

    .amig-hero {
        height: 460px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }

    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }

    .amig-service-card {
        aspect-ratio: 3 / 4;
    }
}

/* Prevent body scroll when offcanvas is open (Bootstrap 5) */
body.offcanvas-open,
body.modal-open {
    overflow: hidden;
}

/* ─── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .site-header__image,
    .amig-hero__scroll,
    .amig-hero__scroll span::before {
        animation: none !important;
    }

    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── Print ─────────────────────────────────────────────────── */
@media print {
    .amig-navbar,
    .amig-footer,
    .site-header,
    .amig-hero__scroll,
    .amig-hero__slider-nav {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
    }

    .amig-section {
        padding: 1rem 0 !important;
    }
}

a{
    text-decoration: none !important;
}

/* ═════════════════════════════════════════════════════════════
   BRAND TINTS (AMIG red accents)
   ═════════════════════════════════════════════════════════════ */

/* Red divider between sections */
.amig-section--brand-divider {
    border-top: 3px solid var(--amig-primary);
}

/* Signature red left-border utility */
.border-brand-left {
    border-left: 4px solid var(--amig-primary);
}

/* Reddish hover for links */
.amig-link-brand {
    color: var(--amig-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s var(--ease-out);
}

.amig-link-brand:hover {
    color: var(--amig-primary-dark);
    border-bottom-color: var(--amig-primary);
}

/* Red underline for headers (like logo circle) */
.amig-underline-brand {
    position: relative;
    padding-bottom: 0.5rem;
}

.amig-underline-brand::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--amig-primary);
    border-radius: 2px;
}

/* Badge with brand color */
.amig-badge--brand {
    background: var(--amig-primary);
    color: #fff;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-block;
}

/* Silver/gray accent (like logo flame) */
.text-silver {
    color: var(--amig-accent) !important;
}

.bg-silver {
    background-color: var(--amig-accent) !important;
}

/* Red glow for focused CTA */
.amig-cta-card {
    background: var(--gradient-brand);
    box-shadow: var(--shadow-glow);
}


/* =================================================================
   HERO SLIDER — Cover Image Fix
   ================================================================= */

.amig-hero {
    position: relative;
    width: 100%;
    height: clamp(500px, 78vh, 820px);
    overflow: hidden;
}

/* UKit slideshow — full height */
.amig-hero .uk-slideshow,
.amig-hero .uk-slideshow-items {
    height: 100%;
    width: 100%;
}

/* Each slide — position relative for uk-cover */
.amig-hero .uk-slideshow-items > li {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* The image itself — absolute + cover */
.amig-hero .uk-slideshow-items > li > img,
.amig-hero .amig-hero__image,
.amig-hero img[uk-cover] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
}

/* UKit's uk-cover creates an inner div — make it fill */
.amig-hero .uk-cover-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.amig-hero .uk-cover-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
}

/* Overlay above image */
.amig-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.80) 0%,
        rgba(74, 10, 12, 0.50) 50%,
        rgba(227, 30, 36, 0.15) 100%
    );
    pointer-events: none;
}

/* Content above overlay */
.amig-hero__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(2rem, 8vh, 6rem);
    z-index: 3;
    color: #fff;
}

/* Slider nav buttons */
.amig-hero__slider-nav {
    z-index: 4;
}

/* Scroll indicator */
.amig-hero__scroll {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

/* ─── Mobile adjustments ─── */
@media (max-width: 767.98px) {
    .amig-hero {
        height: 70vh;
        min-height: 480px;
    }
}

@media (max-width: 575.98px) {
    .amig-hero {
        height: 100vh;
        height: calc(var(--vh-real, 1vh) * 100);
        min-height: 500px;
        max-height: 750px;
    }

    .amig-hero__slider-nav {
        display: none;
    }

    .amig-hero__title {
        font-size: 1.75rem;
    }
}