/* Premium UI Components - Agency-Level Quality */

/* ============================================
   Enhanced Button System
   ============================================ */

.btn-primary,
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    isolation: isolate;
    font-family: var(--font-primary);
    pointer-events: auto;
    cursor: pointer;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    box-shadow: 0 4px 14px 0 rgba(32, 85, 135, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(32, 85, 135, 0.4);
    background: #205587;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(32, 85, 135, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    position: relative;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: left 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover::before {
    left: 0;
}

/* Match secondary buttons inside division cards to the primary hover aesthetic */
.division-card .btn-secondary {
    background: var(--color-accent);
    color: var(--color-text-inverse);
    border-color: var(--color-accent);
    box-shadow: 0 4px 14px 0 rgba(32, 85, 135, 0.3);
}

.division-card .btn-secondary::before {
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
                height 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.division-card .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(32, 85, 135, 0.4);
    background: #205587;
    color: var(--color-text-inverse);
}

.division-card .btn-secondary:hover::before {
    left: 50%;
    width: 300px;
    height: 300px;
}

.division-card .btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px 0 rgba(32, 85, 135, 0.3);
}

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

.division-card .btn-primary,
.division-card .btn-secondary {
    position: relative;
    z-index: 1;
}

/* ============================================
   Premium Card Enhancements
   ============================================ */

.division-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    overflow: visible;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.division-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(32, 85, 135, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.division-card:hover::after {
    opacity: 1;
}

.division-card.featured {
    border: 2px solid var(--color-accent);
    background: radial-gradient(circle at 20% 20%, rgba(0, 245, 255, 0.08), transparent 40%),
                linear-gradient(135deg, rgba(32, 85, 135, 0.03) 0%, rgba(255, 255, 255, 1) 100%);
}

.division-card.featured::after {
    background: radial-gradient(circle at 50% 50%, rgba(32, 85, 135, 0.16), transparent 60%);
}

.division-card h3 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.division-card h3 a {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-text-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.division-card:hover h3 a {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.division-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ============================================
   Enhanced Section Titles
   ============================================ */

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-accent) 50%, 
        transparent 100%);
    opacity: 0.6;
}

/* ============================================
   Premium Typography Hierarchy
   ============================================ */

h1, .h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

h2, .h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

h3, .h3 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Display Typography */
.display-large {
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.9;
    font-family: var(--font-heading);
}

.display-medium {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

/* ============================================
   Premium Spacing System
   ============================================ */

:root {
    --spacing-section: 8rem;
    --spacing-section-lg: 12rem;
    --spacing-component: 3rem;
}

/* ============================================
   Micro-interactions
   ============================================ */

.interactive-element {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.interactive-element::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, 
        rgba(32, 85, 135, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.interactive-element:hover {
    transform: scale(1.02);
}

.interactive-element:hover::before {
    opacity: 1;
}

