:root {
    --iem-purple: #2D3091;
    --iem-pink: #E91E63;
    --iem-gold: #FFD700;
    --navy: #3730A3;
    --navy-dark: #312E81;
    --navy-light: #6366F1;
    --gold: #F472B6;
    --gold-hover: #DB2777;
    --gold-light: #FBCFE8;
    --accent-magenta: #DB2777;
    --accent-blue: #6366F1;
    --white: #F8FAFC;
    --off-white: #F1F5F9;
    --section-light: #F8FAFC;
    --gray-100: #E2E8F0;
    --gray-200: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-600: #64748B;
    --gray-800: #1E293B;
    --text-dark: #3730A3;
    --text-body: #475569;
    --shadow-sm: 0 2px 8px rgba(55, 48, 163, 0.08);
    --shadow-md: 0 4px 20px rgba(55, 48, 163, 0.12);
    --shadow-lg: 0 8px 40px rgba(55, 48, 163, 0.16);
    --shadow-gold: 0 4px 24px rgba(244, 114, 182, 0.25);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-blur: blur(10px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --section-pad: clamp(40px, 6vw, 60px);
    --card-pad: clamp(20px, 4vw, 28px);
    --gap-grid: clamp(24px, 4vw, 32px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@property --cta-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 60px;
    overflow-x: hidden;
    max-width: 100vw;
}

body:not(.home) .popup,
body:not(.home) .modal,
body:not(.home) .popup-overlay,
body:not(.home) .admission-popup-overlay,
body:not(.home) .overlay {
    display: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: #ffffff;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*,
*:focus,
*:active {
    -webkit-tap-highlight-color: transparent !important;
}

*:focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px !important;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--white);
    padding: 12px 24px;
    z-index: 100000;
    border-radius: 0 0 8px 8px;
    font-weight: bold;
    text-decoration: none;
    transition: top 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.skip-link:focus-visible {
    top: 0;
}

nav a,
nav a:focus,
nav a:active,
nav a:visited {
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.navbar img,
.navbar a img,
header img,
.logo img,
.logo a,
header a {
    border: none !important;
}

p,
h1,
h2,
h3,
h4,
h5,
h6,
.text-wrap-fix {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img,
video,
iframe,
table,
canvas,
input,
textarea,
select {
    max-width: 100%;
}

input,
textarea,
select {
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(45, 48, 145, 0.1), transparent 50%), radial-gradient(circle at bottom right, rgba(233, 30, 99, 0.05), transparent 50%);
    z-index: -2;
    pointer-events: none;
}

::selection {
    background: var(--gold);
    color: #fff;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--off-white);
}

::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
[type='button'],
[type='submit'] {
    -webkit-appearance: none;
    appearance: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-weight: 700;
}

h1 {
    font-size: clamp(32px, 5vw, 60px);
}

h2 {
    font-family: 'Playfair Display', serif !important;
    color: #402dcf !important;
    font-weight: 700;
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -0.015em;
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

h3 {
    font-size: clamp(22px, 3vw, 26px);
}

p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: clamp(16px, 2vw, 18px);
    max-width: 650px;
}

#mouse-follower {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(233, 30, 99, 0.05) 0%, transparent 60%);
    will-change: background;
}

@media (max-width:480px) {
    h1 {
        font-size: clamp(24px, 7vw, 36px) !important;
    }

    h2 {
        font-size: clamp(20px, 5.5vw, 28px) !important;
    }
}

:root {
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --section-pad: clamp(40px, 8vw, 100px);
    --card-pad: clamp(20px, 4vw, 32px);
    --gap-grid: clamp(20px, 4vw, 40px);
    --touch-target: 48px;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
    -webkit-text-size-adjust: antialiased;
}

body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe,
svg,
canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.75rem, 4vw + 1rem, 3.5rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.25rem, 3vw + 0.5rem, 2rem);
    line-height: 1.3;
}

p,
li {
    font-size: clamp(1rem, 1vw + 0.875rem, 1.125rem);
    line-height: 1.6;
}

a,
button,
[role="button"],
input[type="submit"] {
    min-height: var(--touch-target);
    padding: 12px 24px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.floating-actions-stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
    z-index: 9999;
    pointer-events: none;
    align-items: center;
}

.floating-actions-stack>* {
    pointer-events: auto;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
}

@media (max-width:768px) {
    .floating-actions-stack {
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        right: max(16px, env(safe-area-inset-right, 16px));
        gap: 12px;
    }

    .container,
    section,
    header,
    footer {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .grid,
    [class*="-grid"],
    [class*="grid-"] {
        grid-template-columns: 1fr !important;
        gap: var(--space-6);
    }

    .btn,
    [class*="-btn"]:not(.whatsapp-float):not(.):not(.back-to-top):not(#audioToggleBtn) {
        width: 100%;
        justify-content: center;
    }

    * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .glass-card,
    [class*="-glass-"] {
        background: rgba(255, 255, 255, 0.95) !important;
    }

    #audioToggleBtn,
    .back-to-top {
        width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        font-size: 20px !important;
    }
}

@media (max-width:1024px) and (min-width:769px) {
    .floating-actions-stack {
        bottom: 20px;
        right: 20px;
        gap: 14px;
    }

    .grid,
    [class*="-grid"],
    [class*="grid-"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}