/* ==========================================================
   CLOUD PATTERN CONSULTING — CSS Utilities
   Complete hand-written utility layer — no build step,
   no framework dependency, no console warnings.
   Works alongside style.css (does NOT reset it).
   ========================================================== */

/* Global link reset — remove browser default underline */
a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   DISPLAY
   ========================================================= */
.block         { display: block; }
.inline-block  { display: inline-block; }
.inline-flex   { display: inline-flex; }
.flex          { display: flex; }
.grid          { display: grid; }
.hidden        { display: none; }


/* =========================================================
   POSITION
   ========================================================= */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }

.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }

.-top-4      { top: -1rem; }
.-bottom-4   { bottom: -1rem; }
.-bottom-6   { bottom: -1.5rem; }
.-left-4     { left: -1rem; }
.-left-6     { left: -1.5rem; }
.-right-4    { right: -1rem; }


/* =========================================================
   Z-INDEX
   ========================================================= */
.z-10   { z-index: 10; }
.z-50   { z-index: 50; }
.-z-10  { z-index: -10; }


/* =========================================================
   OVERFLOW
   ========================================================= */
.overflow-hidden { overflow: hidden; }


/* =========================================================
   FLEXBOX
   ========================================================= */
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }

.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }

.order-1 { order: 1; }
.order-2 { order: 2; }

/* Group (for group-hover) */
.group { }


/* =========================================================
   GRID
   ========================================================= */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }


/* =========================================================
   GAP
   ========================================================= */
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }


/* =========================================================
   SPACING — PADDING
   ========================================================= */
.p-2  { padding: 0.5rem; }
.p-3  { padding: 0.75rem; }
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem;    padding-right: 1rem; }
.px-6 { padding-left: 1.5rem;  padding-right: 1.5rem; }
.px-8 { padding-left: 2rem;    padding-right: 2rem; }

.py-1   { padding-top: 0.25rem;   padding-bottom: 0.25rem; }
.py-2   { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-2\.5{ padding-top: 0.625rem;  padding-bottom: 0.625rem; }
.py-3   { padding-top: 0.75rem;   padding-bottom: 0.75rem; }
.py-4   { padding-top: 1rem;      padding-bottom: 1rem; }
.py-6   { padding-top: 1.5rem;    padding-bottom: 1.5rem; }
.py-10  { padding-top: 2.5rem;    padding-bottom: 2.5rem; }
.py-12  { padding-top: 3rem;      padding-bottom: 3rem; }
.py-14  { padding-top: 3.5rem;    padding-bottom: 3.5rem; }
.py-16  { padding-top: 4rem;      padding-bottom: 4rem; }
.py-24  { padding-top: 6rem;      padding-bottom: 6rem; }

.pt-4  { padding-top: 1rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-20 { padding-top: 5rem; }

.pb-0  { padding-bottom: 0; }
.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }


/* =========================================================
   SPACING — MARGIN
   ========================================================= */
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-0\.5 { margin-top: 0.125rem; }
.mt-2  { margin-top: 0.5rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }


/* =========================================================
   SIZING — WIDTH
   ========================================================= */
.w-3   { width: 0.75rem; }
.w-4   { width: 1rem; }
.w-5   { width: 1.25rem; }
.w-6   { width: 1.5rem; }
.w-8   { width: 2rem; }
.w-9   { width: 2.25rem; }
.w-10  { width: 2.5rem; }
.w-12  { width: 3rem; }
.w-14  { width: 3.5rem; }
.w-16  { width: 4rem; }
.w-20  { width: 5rem; }
.w-24  { width: 6rem; }
.w-32  { width: 8rem; }
.w-full { width: 100%; }


/* =========================================================
   SIZING — HEIGHT
   ========================================================= */
.h-3   { height: 0.75rem; }
.h-4   { height: 1rem; }
.h-5   { height: 1.25rem; }
.h-6   { height: 1.5rem; }
.h-8   { height: 2rem; }
.h-9   { height: 2.25rem; }
.h-10  { height: 2.5rem; }
.h-12  { height: 3rem; }
.h-14  { height: 3.5rem; }
.h-16  { height: 4rem; }
.h-20  { height: 5rem; }
.h-24  { height: 6rem; }
.h-32  { height: 8rem; }
.h-80  { height: 20rem; }
.h-96  { height: 24rem; }
.h-full { height: 100%; }

.h-\[2px\]   { height: 2px; }
.h-\[400px\] { height: 400px; }
.h-\[420px\] { height: 420px; }
.h-\[450px\] { height: 450px; }
.h-\[480px\] { height: 480px; }
.h-\[500px\] { height: 500px; }
.h-\[550px\] { height: 550px; }
.h-\[600px\] { height: 600px; }


/* =========================================================
   MAX-WIDTH
   ========================================================= */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }


/* =========================================================
   TYPOGRAPHY — SIZE & WEIGHT
   ========================================================= */
.text-xs   { font-size: 0.75rem;   line-height: 1rem; }
.text-sm   { font-size: 0.875rem;  line-height: 1.25rem; }
.text-base { font-size: 1rem;      line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem;  line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;   line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;    line-height: 2rem; }
.text-3xl  { font-size: 1.875rem;  line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;   line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;      line-height: 1; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-body     { font-family: "Ubuntu", system-ui, sans-serif; }

.italic    { font-style: italic; }
.uppercase { text-transform: uppercase; }

.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-wider  { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-justify { text-align: justify; }

.antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   TYPOGRAPHY — COLORS
   ========================================================= */
.text-white        { color: #ffffff; }
.text-white\/70    { color: rgba(255,255,255,0.70); }
.text-gray-400     { color: #9ca3af; }
.text-gray-500     { color: #6b7280; }
.text-gray-600     { color: #4b5563; }
.text-gray-700     { color: #374151; }
.text-gray-800     { color: #1f2937; }
.text-gray-900     { color: #111827; }
.text-primary-600  { color: #1B3D6F; }
.text-accent-400   { color: #B8A850; }
.text-green-600    { color: #16a34a; }
.text-red-500      { color: #ef4444; }


/* =========================================================
   BACKGROUNDS
   ========================================================= */
.bg-white          { background-color: #ffffff; }
.bg-white\/15      { background-color: rgba(255,255,255,0.15); }
.bg-dark           { background-color: #0F1E42; }
.bg-gray-50        { background-color: #f9fafb; }
.bg-gray-100       { background-color: #f3f4f6; }
.bg-gray-200       { background-color: #e5e7eb; }
.bg-gray-800       { background-color: #1f2937; }
.bg-green-50       { background-color: #f0fdf4; }
.bg-primary-50     { background-color: #eef4fc; }
.bg-primary-100    { background-color: #d5e2f5; }
.bg-primary-600    { background-color: #1B3D6F; }
.bg-primary-600\/10{ background-color: rgba(27,61,111,0.10); }
.bg-primary-400\/15{ background-color: rgba(77,127,199,0.15); }
.bg-accent-400     { background-color: #B8A850; }
.bg-accent-400\/10 { background-color: rgba(184,168,80,0.10); }
.bg-accent-400\/15 { background-color: rgba(184,168,80,0.15); }


/* =========================================================
   BORDERS
   ========================================================= */
.border   { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }

.border-gray-100    { border-color: #f3f4f6; }
.border-gray-300    { border-color: #d1d5db; }
.border-gray-800    { border-color: #1f2937; }
.border-primary-600 { border-color: #1B3D6F; }
.border-white\/10   { border-color: rgba(255,255,255,0.10); }

.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }


/* =========================================================
   SHADOWS
   ========================================================= */
.shadow-md  { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.10),  0 2px 4px -1px rgba(0,0,0,0.06); }
.shadow-lg  { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05); }
.shadow-xl  { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.10), 0 10px 10px -5px rgba(0,0,0,0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }


/* =========================================================
   OPACITY
   ========================================================= */
.opacity-60 { opacity: 0.6; }


/* =========================================================
   FILTERS
   ========================================================= */
.grayscale { filter: grayscale(100%); }
.fill-white { fill: #ffffff; }


/* =========================================================
   OBJECT FIT
   ========================================================= */
.object-cover   { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-top     { object-position: top; }


/* =========================================================
   FORMS
   ========================================================= */
.resize-none  { resize: none; }
.outline-none { outline: none; }

.focus\:border-primary-500:focus { border-color: #2B60AC; }
.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(43,96,172,0.20);
    outline: none;
}
.focus\:ring-primary-500\/20:focus {
    box-shadow: 0 0 0 2px rgba(43,96,172,0.20);
}


/* =========================================================
   CURSOR
   ========================================================= */
.cursor-pointer { cursor: pointer; }


/* =========================================================
   TRANSITIONS
   ========================================================= */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }


/* =========================================================
   SPACE-Y
   ========================================================= */
.space-y-2  > * + * { margin-top: 0.5rem; }
.space-y-3  > * + * { margin-top: 0.75rem; }
.space-y-6  > * + * { margin-top: 1.5rem; }
.space-y-16 > * + * { margin-top: 4rem; }


/* =========================================================
   SCROLL
   ========================================================= */
.scroll-smooth { scroll-behavior: smooth; }


/* =========================================================
   HOVER STATES
   ========================================================= */
.hover\:bg-accent-400:hover       { background-color: #B8A850; }
.hover\:bg-primary-600:hover      { background-color: #1B3D6F; }
.hover\:bg-primary-700:hover      { background-color: #163565; }
.hover\:border-green-400:hover    { border-color: #4ade80; }
.hover\:text-primary-600:hover    { color: #1B3D6F; }
.hover\:text-primary-700:hover    { color: #163565; }
.hover\:text-white:hover          { color: #ffffff; }
.hover\:shadow-lg:hover           { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.10), 0 4px 6px -2px rgba(0,0,0,0.05); }
.hover\:shadow-primary-600\/25:hover { box-shadow: 0 10px 15px -3px rgba(27,61,111,0.25); }
.hover\:opacity-100:hover         { opacity: 1; }
.hover\:grayscale-0:hover         { filter: grayscale(0); }


/* =========================================================
   GROUP-HOVER STATES
   ========================================================= */
.group:hover .group-hover\:bg-green-100  { background-color: #dcfce7; }
.group:hover .group-hover\:scale-110     { transform: scale(1.1); }
.group:hover .group-hover\:translate-x-1 { transform: translateX(0.25rem); }


/* =========================================================
   RESPONSIVE — sm (≥ 640px)
   ========================================================= */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:h-16     { height: 4rem; }
    .sm\:h-20     { height: 5rem; }
}


/* =========================================================
   RESPONSIVE — md (≥ 768px)
   ========================================================= */
@media (min-width: 768px) {
    .md\:block       { display: block; }
    .md\:inline-flex { display: inline-flex; }

    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .md\:p-10    { padding: 2.5rem; }
    .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
    .md\:text-4xl{ font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl{ font-size: 3rem;    line-height: 1; }
    .md\:text-3xl{ font-size: 1.875rem; line-height: 2.25rem; }
}


/* =========================================================
   RESPONSIVE — lg (≥ 1024px)
   ========================================================= */
@media (min-width: 1024px) {
    .lg\:block  { display: block; }
    .lg\:flex   { display: flex; }
    .lg\:hidden { display: none; }

    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }

    .lg\:h-20 { height: 5rem; }
    .lg\:h-24 { height: 6rem; }

    .lg\:order-1 { order: 1; }
    .lg\:order-2 { order: 2; }
}


/* =========================================================
   LUCIDE ICONS — stroke-based SVG icons
   Lucide renders <svg> with stroke, NOT fill.
   Ensure they display inline with text correctly.
   ========================================================= */
[data-lucide],
svg[data-lucide] {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Size classes apply to icons too */
.w-3[data-lucide],  .w-3 svg { width: 0.75rem; height: 0.75rem; }
.w-4[data-lucide],  .w-4 svg { width: 1rem;    height: 1rem; }
.w-5[data-lucide],  .w-5 svg { width: 1.25rem; height: 1.25rem; }
.w-6[data-lucide],  .w-6 svg { width: 1.5rem;  height: 1.5rem; }
.w-8[data-lucide],  .w-8 svg { width: 2rem;    height: 2rem; }

/* fill-white specifically for path-fill icons (not Lucide) */
.fill-white svg path { fill: #ffffff; }


/* FIX: py-2.5 and mt-0.5 — dot in class name needs CSS escape (already defined above) */


/* =========================================================
   EXTRA MISSING UTILITIES (from full audit)
   ========================================================= */

/* inset shorthand */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* pointer-events */
.pointer-events-none { pointer-events: none; }

/* select */
.select-none { user-select: none; }

/* image utilities */
img.object-cover   { object-fit: cover; }
img.object-contain { object-fit: contain; }
img.object-top     { object-position: top; }

/* aspect ratio */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* whitespace */
.whitespace-nowrap { white-space: nowrap; }

/* align */
.align-middle { vertical-align: middle; }

/* not- modifier fix: make sure images in utility containers don't break layout */
img { max-width: 100%; display: block; }

/* Smooth scroll on html */
html.scroll-smooth { scroll-behavior: smooth; }

/* border-style default for border utilities */
.border,
.border-2,
.border-t,
.border-y {
    border-style: solid;
}

/* bottom / top inset negative variants */
.-bottom-4 { bottom: -1rem; }
.-bottom-6 { bottom: -1.5rem; }
.-left-4   { left: -1rem; }
.-left-6   { left: -1.5rem; }
.-right-4  { right: -1rem; }
.-top-4    { top: -1rem; }
.-z-10     { z-index: -10; }

/* translate for group-hover */
.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* scale */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* pt-20 ensure navbar spacer works */
.pt-20 { padding-top: 5rem; }

/* nav-link base */
.nav-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
