/* ============================================================
   AGT Group of Institutions — Design System & Common Stylesheet
   Linked by all pages; works alongside Tailwind CDN
   ============================================================ */

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
    --color-primary: #E7BE2E;        /* logo gold */
    --color-primary-hover: #C9A11F;

    --color-secondary: #16244D;      /* deep navy from logo */
    --color-secondary-dark: #101B3A;

    --color-bg-light: #F8FAFC;
    --color-surface: #FFFFFF;

    --color-text: #22304D;
    --color-text-muted: #64748B;

    --color-accent-light: #F8E8A6;   /* soft gold tint for sections */
    --color-border: #D6DCE5;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Montserrat', 'Inter', sans-serif;

    --container-max: 1280px;
    --section-py: clamp(3rem, 6vw, 5rem);

    --radius-sm: .375rem;
    --radius-md: .5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --shadow-card: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
    --shadow-card-hover: 0 4px 12px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);

    --transition-base: 200ms ease;
    --transition-smooth: 300ms cubic-bezier(.4,0,.2,1);
}

/* ---------- Base Reset & Font ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-hover); }

/* ---------- Hero Overlay (index page hero banner) ---------- */
.hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(26, 37, 66, 0.95) 0%,
        rgba(26, 37, 66, 0.80) 50%,
        rgba(26, 37, 66, 0.40) 100%
    );
}

/* ---------- Consistent Section Spacing ---------- */
.section-padding {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
}

/* ---------- Global Container ---------- */
.global-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .global-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
    .global-container { padding-left: 2rem; padding-right: 2rem; }
}

/* ---------- Page Hero (sub pages) ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    padding: 5rem 1rem;
    background-color: var(--color-secondary);
    text-align: center;
}
.page-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}
.page-hero .hero-overlay-full {
    position: absolute;
    inset: 0;
    background: rgba(26, 37, 66, 0.85);
}

/* ---------- Section Heading System ---------- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.section-label::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
}

/* ---------- Card Hover Effect ---------- */
.card-lift {
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

/* ---------- Button System ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}
.btn-primary {
    background: var(--color-primary);
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(196, 154, 68, 0.3);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(196, 154, 68, 0.4);
}
.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}
.btn-secondary:hover {
    background: #0f1830;
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}
.btn-outline:hover {
    background: #fff;
    color: var(--color-secondary);
}

/* ---------- Smooth Image Loading ---------- */
img {
    image-rendering: auto;
}
img[loading="lazy"] {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ---------- Logo Constraints ---------- */
.header-logo img,
.custom-logo-link img,
img.custom-logo {
    height: 100px !important;
    width: auto !important;
    max-height: 100px !important;
    object-fit: contain;
}

/* ---------- Focus Styles (Accessibility) ---------- */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- Print Styles ---------- */
@media print {
    nav, .mobile-menu, footer { display: none !important; }
    body { color: #000; background: #fff; }
}
