/* Create Academy x NYUAD — tokens lifted from creategroup.me (colors.scss / fonts.scss / critical.scss) */
@font-face { font-family: 'Alexandria'; src: url('../fonts/Alexandria-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url('../fonts/Alexandria-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url('../fonts/Alexandria-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Alexandria'; src: url('../fonts/Alexandria-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
    --primary: #052757;
    --primary-dark: #131e2b;
    --primary-light: #3e5b7d;
    --orange: #eb6c25;
    --white: #fff;
    --black: #1b1a19;
    --grey-400: #5b5b5b;
    --grey-300: #a3a3a3;
    --grey-200: #e0e0e0;
    --error: #c20618;
    --gutter: 4.167vw;
    --section-y: clamp(64px, 11vh, 140px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Alexandria', sans-serif; font-weight: 300; color: var(--black); background: var(--white); overflow-x: hidden; line-height: 1.4; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, fieldset { margin: 0; padding: 0; border: 0; }
ul { list-style: none; }
[hidden] { display: none !important; }
strong { font-weight: 500; }

.container { max-width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 767px) { .container { padding-inline: 20px; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--black); color: var(--white); padding: 8px 16px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }

/* Type scale (fonts.scss) */
.type-1 { font-size: clamp(40px, 5.6vw, 104px); font-weight: 300; line-height: 1.05; }
.type-3 { font-size: clamp(28px, 3.3vw, 64px); font-weight: 300; line-height: 1.2; }
.type-6 { font-size: clamp(20px, 2vw, 32px); font-weight: 300; line-height: 1.3; }
.type-8 { font-size: clamp(15px, calc(14px + 0.5vw), 24px); font-weight: 300; line-height: 1.5; }

/* Buttons (critical.scss .c-button) */
.c-button {
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--black); color: var(--white); border: 1px solid var(--black);
    padding: 0.9rem 2.5rem; border-radius: 999px; line-height: 1; text-align: center;
    font: inherit; font-size: clamp(13px, calc(12px + 0.4vw), 16px); font-weight: 400;
    transition: all ease-in-out 0.3s;
}
.c-button:hover, .c-button:focus-visible { background: transparent; color: var(--black); }
.c-button--light { background: var(--white); color: var(--black); border-color: var(--white); }
.c-button--light:hover, .c-button--light:focus-visible { background: transparent; color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Section heading (generic1.scss) */
.c-section-heading {
    display: flex; align-items: flex-start; text-transform: uppercase;
    font-size: clamp(18px, 1.666vw, 32px); font-weight: 500; line-height: 1.2;
    margin-bottom: clamp(32px, 6vh, 80px);
}
/* in mobile margin bottom is 32 */
@media (max-width: 767px) { .c-section-heading { margin-bottom: 32px; } }
.c-section-heading .ellipse { flex-shrink: 0; width: clamp(14px, 1.04vw, 24px); aspect-ratio: 1; border-radius: 999px; background: var(--orange); margin-right: 12px; margin-top: calc(0.6em - clamp(7px, 0.52vw, 12px)); }
.c-desc-txt { font-size: clamp(24px, 2.5vw, 64px); font-weight: 300; line-height: 1.2; max-width: 70%; }
@media (max-width: 1200px) { .c-desc-txt { max-width: 100%; } }

/* Header */
.c-header { position: fixed; inset: 0 0 auto; z-index: 10; padding-block: clamp(20px, 3vh, 40px); transition: background-color .3s ease, padding .3s ease, box-shadow .3s ease; }
.c-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c-header .logo img { width: clamp(120px, 11.8vw, 226px); height: auto; }
.c-header .logo-dark { display: none; }
/* scrolled state: white blurred bar, dark logo, dark button (header.scss .header-inner) */
.c-header.is--sticky { padding-block: clamp(12px, 1.8vh, 20px); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.c-header.is--sticky .logo-light { display: none; }
.c-header.is--sticky .logo-dark { display: block; }
.c-header.is--sticky .c-button--light { background: var(--black); color: var(--white); border-color: var(--black); }
.c-header.is--sticky .c-button--light:hover, .c-header.is--sticky .c-button--light:focus-visible { background: transparent; color: var(--black); }
/* header CTA: full text on desktop, icon-only circle on tablet portrait and phones */
.header-cta .ico { display: none; width: 20px; height: 20px; }
@media (max-width: 1024px) {
    .header-cta { width: 44px; height: 44px; padding: 0; border-radius: 999px; }
    .header-cta .txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .header-cta .ico { display: block; }
}

/* Hero (services-inner-pg.scss .c-services-pg) */
.c-hero {
    position: relative; isolation: isolate; min-height: 100svh; display: flex; align-items: flex-end;
    color: var(--white); overflow: hidden; padding-block: clamp(96px, 14vh, 180px) clamp(48px, 11vh, 140px);
}
.c-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%),
                linear-gradient(180deg, rgba(0,0,0,0) 27%, rgba(0,0,0,.55) 100%),
                rgba(0,0,0,.3);
}
.c-hero .container { width: 100%; position: relative; z-index: 2; }
.c-hero .bg-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 767px) { .c-hero .bg-img { object-position: 64% 30%; } } /* portrait crop: keep the head and laptop screen in frame */
.c-hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: clamp(12px, 0.9vw, 16px); font-weight: 500; margin-bottom: 24px; }
.c-hero .eyebrow .x { color: var(--orange); margin-inline: 6px; }
.c-hero h1 { max-width: 14ch; text-wrap: balance; }
.c-hero .sub { max-width: 44rem; margin-block: clamp(20px, 3vh, 40px) clamp(28px, 4vh, 48px); }

/* Sections */
section:not(.c-hero) { padding-block: var(--section-y); }
.is--dark { background: var(--black); color: var(--white); }

.c-about .cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); margin-top: clamp(32px, 6vh, 72px); }
/* .c-about .cols in mobile will have max 32px margin-top */
@media (max-width: 767px) { .c-about .cols { margin-top: 32px; } }
.c-about .pull { margin-top: clamp(40px, 8vh, 96px); padding-left: clamp(16px, 2vw, 32px); border-left: 3px solid var(--orange); max-width: 40ch; }
/* in mobile margin top is 32px */
@media (max-width: 767px) { .c-about .pull { margin-top: 32px; } }
@media (max-width: 900px) { .c-about .cols { grid-template-columns: 1fr; } }

.c-offer .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(16px, 1.5vw, 28px); }
.c-offer .card {
    border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: clamp(24px, 2vw, 40px);
    display: flex; flex-direction: column; gap: 16px; transition: border-color .3s ease, transform .3s ease;
}
.c-offer .card:hover { border-color: var(--orange); transform: translateY(-4px); }
.c-offer .card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.c-offer .card-icon { width: 36px; height: 36px; color: var(--orange); transition: transform .3s ease; }
.c-offer .card:hover .card-icon { transform: translateY(-2px) scale(1.05); }
.c-offer .num { color: var(--grey-300); font-weight: 500; font-size: 13px; letter-spacing: .1em; }
.c-offer h3 { font-size: clamp(20px, 1.5vw, 28px); font-weight: 500; line-height: 1.2; }
.c-offer p { font-size: clamp(14px, 0.95vw, 18px); line-height: 1.55; color: rgba(255,255,255,.8); }

.c-why { border-top: 1px solid var(--grey-200); overflow: hidden; }
.c-why { position: relative; }
:root { --why-pattern-w: clamp(320px, 34vw, 560px); }
.c-why .why-text { position: relative; z-index: 1; margin-left: calc(var(--why-pattern-w) * 0.8348 - var(--gutter) + clamp(56px, 7vw, 130px)); }
.c-why p { max-width: 24ch; }
/* circles pattern from creategroup.me/brandpulsereport: big, flush with the section's top-left corner, clipped by the section */
/* offset by ~half a circle so the pattern reads as a seamless tile cut by the edges, not a placed graphic */
.why-pattern { position: absolute; top: calc(var(--why-pattern-w) * -0.1675); left: calc(var(--why-pattern-w) * -0.165); bottom: 0; width: var(--why-pattern-w); background: url('../images/circles-repeated-tile.svg') 0 0 / var(--why-pattern-w) auto repeat-y; pointer-events: none; }
@media (max-width: 1024px) {
    .c-why .why-text { width: auto; margin-left: 0; }
    .why-pattern { display: none; } /* tablet portrait and phones: text only */
}

/* Register (contact-form.scss patterns) */
.c-register { background: #f6f6f5; }
.c-register .container { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 120px); align-items: start; }
.c-register .intro { position: sticky; top: clamp(120px, 14vh, 160px); }
.c-register .intro .c-section-heading { margin-bottom: clamp(20px, 3vh, 32px); }
.c-register .intro .type-6 { max-width: 24ch; }
.c-register .fair { position: relative; margin-top: clamp(28px, 4vh, 40px); display: grid; gap: 6px; padding: 30px 32px 40px; border-radius: 12px; background: var(--black); color: var(--white); max-width: 480px; min-height: 210px; border-left: 4px solid var(--orange); overflow: hidden; }
.c-register .fair > span { position: relative; z-index: 1; }
.fair-deco { position: absolute; right: -24px; bottom: -70px; width: 280px; height: auto; opacity: .35; pointer-events: none; }
.fair-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--orange); }
.fair-date { font-size: clamp(26px, 2.2vw, 36px); font-weight: 300; line-height: 1.1; }
.fair-note { font-size: 14px; color: var(--grey-300); margin-top: 6px; max-width: 62%; }
@media (max-width: 900px) { .c-register .container { grid-template-columns: 1fr; } .c-register .intro { position: static; } .success { grid-column: auto; } }

.form { display: flex; flex-direction: column; gap: clamp(28px, 4vh, 48px); }
.field { display: flex; flex-direction: column; gap: 12px; }
.field label, .field legend { font-size: clamp(15px, 1.05vw, 20px); font-weight: 400; line-height: 1.3; }
.field legend { margin-bottom: 14px; padding: 0; } /* legends ignore flex gap */
.req { color: var(--orange); font-weight: 600; }
.opt { color: var(--grey-400); font-size: .85em; }
input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%; font: inherit; font-size: clamp(15px, 1.05vw, 20px); color: var(--black);
    background: transparent; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; padding: 12px 0; outline: none;
    transition: border-color .3s ease;
}
textarea { resize: vertical; min-height: 3.5em; }
.select-wrap { position: relative; }
.select-wrap select {
    width: 100%; font: inherit; font-size: clamp(15px, 1.05vw, 20px); color: var(--black); background: transparent; border: 0; border-bottom: 1px solid var(--black); border-radius: 0;
    padding: 12px 36px 12px 0; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.select-wrap select:invalid { color: var(--grey-300); }
.select-wrap select:focus { border-bottom-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
.major-other { margin-top: 16px; display: grid; gap: 8px; }
.major-other label { font-size: 14px; color: var(--grey-400); }
.combo-item.is-create { color: var(--orange); font-weight: 500; }
.combo-item.is-create::before { content: '+'; margin-right: 10px; font-size: 17px; line-height: 1; }

/* searchable combobox (enhances .select-wrap select) */
.combo { position: relative; }
.combo .combo-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.combo-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer;
    font: inherit; font-size: clamp(15px, 1.05vw, 20px); color: var(--black); background: transparent; border: 0; border-bottom: 1px solid var(--black); border-radius: 0; padding: 12px 0; min-height: 48px;
}
.select-wrap.is-enhanced::after { display: none; }
.combo-btn::after { content: ''; flex-shrink: 0; width: 11px; height: 11px; margin-right: 8px; border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: translateY(-3px) rotate(45deg); transition: transform .2s ease; }
.combo.is-open .combo-btn::after { transform: translateY(3px) rotate(-135deg); }
.combo-btn:focus-visible { outline: none; border-bottom-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
.combo-text.is-placeholder { color: var(--grey-300); }
.combo.is-invalid .combo-btn { border-bottom-color: var(--error); box-shadow: 0 1px 0 var(--error); }
.combo-error { color: var(--error); font-size: 14px; margin-top: 8px; }
.combo-pop { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border: 1px solid var(--grey-200); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .12); overflow: hidden; }
.combo-search { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--grey-200); border-radius: 0; outline: none; background: var(--white); color: var(--black); -webkit-appearance: none; appearance: none; }
.combo-search::placeholder { color: var(--grey-300); }
.combo-list { list-style: none; margin: 0; padding: 6px 0; max-height: min(320px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.combo-group { padding: 12px 16px 4px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-400); }
.combo-item { padding: 11px 16px; min-height: 44px; display: flex; align-items: center; font-size: 15px; cursor: pointer; }
.combo-item mark { background: none; color: var(--orange); font-weight: 500; }
.combo-item.is-active { background: #f6f6f5; }
.combo-item[aria-selected="true"] { font-weight: 500; }
.combo-item[aria-selected="true"]::after { content: ''; margin-left: auto; width: 6px; height: 11px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); }
.combo-empty { padding: 16px; color: var(--grey-400); font-size: 14px; }
@media (max-width: 767px) { .combo-list { max-height: 45vh; } }

.select-wrap::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--black); border-bottom: 1.5px solid var(--black); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
input::placeholder, textarea::placeholder { color: var(--grey-300); }
/* underline fields: no outline ring, the underline itself thickens and turns orange on focus */
input:not([type=checkbox]):not([type=radio]):focus-visible, textarea:focus-visible { outline: none; }
input:focus, textarea:focus { border-bottom-color: var(--orange); box-shadow: 0 1px 0 var(--orange); }
input:user-invalid, textarea:user-invalid { border-bottom-color: var(--error); }

/* radio chips: same pill language as .c-button */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; line-height: 1;
    padding: 0 20px; border-radius: 999px; border: 1px solid var(--black);
    font-size: clamp(13px, 0.9vw, 16px); font-weight: 400; cursor: pointer; transition: all .3s ease; user-select: none;
}
.chip:hover span { background: rgba(27,26,25,.06); }
.chip input:checked + span { background: var(--black); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }

/* checkboxes (contact-form.scss .option-label) */
.options { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.option { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 44px; font-size: clamp(14px, 1vw, 18px); font-weight: 400; }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option .checkmark {
    flex-shrink: 0; width: 24px; height: 24px; border: 1px solid var(--primary-dark); border-radius: 4px;
    display: flex; align-items: center; justify-content: center; transition: all .3s ease; background: var(--white);
}
.option input:checked ~ .checkmark { border-color: var(--orange); }
.option input:checked ~ .checkmark::before { content: url('../images/icons/check-mark.svg'); display: block; line-height: 0; }
.option input:focus-visible ~ .checkmark { outline: 2px solid var(--orange); outline-offset: 3px; }
.options.is-invalid .checkmark { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-size: 15px; }
.form-error a { text-decoration: underline; }
.c-submit { align-self: flex-start; }
.c-submit:disabled { opacity: .5; pointer-events: none; }

.success { grid-column: 2; padding: clamp(32px, 4vw, 64px); border-radius: 12px; background: var(--white); border: 1px solid var(--grey-200); }
.success-head { display: flex; align-items: center; gap: clamp(14px, 1.4vw, 22px); margin-bottom: 20px; }
.success-icon { flex-shrink: 0; width: clamp(44px, 3.6vw, 64px); height: clamp(44px, 3.6vw, 64px); border-radius: 999px; background: #e4f3ea; color: #2e8b57; display: grid; place-items: center; }
.success-icon svg { width: 50%; height: 50%; }
.success h2 { margin: 0; line-height: 1.1; }
.success p { max-width: 50ch; }
.success .c-button { margin-top: 28px; }
.c-button--ghost { background: transparent; color: var(--black); }
.c-button--ghost:hover, .c-button--ghost:focus-visible { background: var(--black); color: var(--white); }

/* Footer (dark-footer.scss) */
.c-dark-footer { background: var(--black); color: var(--white); padding-block: clamp(48px, 9vh, 110px); border-top: 1px solid var(--white); }
.c-dark-footer .footer-logo { width: clamp(140px, 11.8vw, 226px); height: auto; margin-bottom: clamp(32px, 6vh, 72px); }
.c-dark-footer .wrapper { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.c-dark-footer .nav-list { display: flex; flex-direction: column; gap: 8px; }
.c-dark-footer .list-link { display: inline-block; padding-block: 8px; font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; transition: opacity .3s ease; }
.c-dark-footer .list-link:hover { opacity: .6; }
.c-dark-footer .social-icons { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.25vw, 24px); }
.c-dark-footer .social-icon {
    display: flex; align-items: center; justify-content: center; background: var(--white); border-radius: 999px;
    width: clamp(44px, 3.75vw, 72px); height: clamp(44px, 3.75vw, 72px); transition: all .4s ease; overflow: hidden;
}
.c-dark-footer .social-icon:hover { filter: invert(100%) brightness(200%); box-shadow: inset 0 0 0 1px var(--black); }
.c-dark-footer .social-icon img { width: clamp(14px, 1.25vw, 24px); height: auto; }
.c-dark-footer .terms { margin-top: clamp(32px, 6vh, 72px); font-size: 14px; color: var(--grey-300); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
