/*
Theme Name: NCUK Global
Theme URI: https://example.com/ncuk-global
Author: Your Name
Author URI: https://example.com
Description: A professional WordPress theme inspired by global university pathway organisations. Features mega menu, hero slider, statistics counters, testimonials carousel, and full customizer support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ncuk-global
Tags: education, university, custom-menu, featured-images, full-width-template, sticky-post, theme-options, custom-colors, custom-logo, responsive-layout
*/

/* ========================================
   CSS CUSTOM PROPERTIES
======================================== */
:root {
    --color-primary:       #003087;
    --color-primary-dark:  #002060;
    --color-primary-light: #1a4fa0;
    --color-accent:        #e8002d;
    --color-accent-hover:  #c0001f;
    --color-purple:        #5c2d8e;
    --color-teal:          #007a73;
    --color-white:         #ffffff;
    --color-off-white:     #f7f8fc;
    --color-light-gray:    #e8ecf0;
    --color-mid-gray:      #c0c8d2;
    --color-text:          #1a1a2e;
    --color-text-muted:    #5a6375;
    --color-border:        #d6dbe4;

    --font-primary:   'Inter', 'Segoe UI', Arial, sans-serif;
    --font-heading:   'Poppins', 'Segoe UI', Arial, sans-serif;

    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-full: 999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,.1);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
    --shadow-xl:  0 20px 60px rgba(0,0,0,.16);

    --transition: .25s ease;
    --max-width:  1280px;
    --header-h:   80px;
}

/* ========================================
   RESET & BASE
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ========================================
   UTILITY CLASSES
======================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 80px 0; }
.section-padding--lg { padding: 112px 0; }

.text-center { text-align: center; }
.text-white  { color: var(--color-white) !important; }
.bg-blue     { background: var(--color-primary); }
.bg-off-white { background: var(--color-off-white); }
.bg-dark     { background: var(--color-primary-dark); }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: .9375rem;
    line-height: 1;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-accent);
    color: var(--color-white);
    border: 2px solid var(--color-accent);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255,255,255,.7);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

.btn--outline-blue {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn--outline-blue:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn--white {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}
.btn--white:hover {
    background: var(--color-off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--sm  { padding: 10px 22px; font-size: .875rem; }
.btn--lg  { padding: 18px 40px; font-size: 1.0625rem; }

.btn svg  { width: 18px; height: 18px; flex-shrink: 0; }

/* ========================================
   SECTION HEADINGS
======================================== */
.section-label {
    display: inline-block;
    font-size: .8125rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 620px;
    margin: 0 auto 48px;
}

.section-header { margin-bottom: 56px; }

/* ========================================
   CARDS
======================================== */
.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ========================================
   GRID UTILITIES
======================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ========================================
   ACCESSIBILITY
======================================== */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }
