/* ============================================================
   TACC v2 — homepage stylesheet
   Near-clone of the editorial "trusted advisor" aesthetic:
   serif headings + light sans body, slate base, orange accent.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
	--base: #2d3b45;
	--base-80: rgba(45, 59, 69, .8);
	--base-60: rgba(45, 59, 69, .6);

	--orange: #ec5823;
	--orange-dark: #d34612;
	--orange-light: #ff7c4d;

	--plum: #48303d;

	--mid-grey: #abb1b5;
	--light-grey: #ebebed;
	--paper: #ffffff;

	--font-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--font-sans: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1280px;
	--gutter: clamp(1rem, 3vw, 2.5rem);

	--ease: cubic-bezier(.4, 0, .2, 1);
	--shadow: 0 8px 16px rgba(0, 0, 0, .1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 350;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--base);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-variant-numeric: lining-nums proportional-nums;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
	font-family: var(--font-serif);
	font-weight: 400;
	line-height: 1.06;
	margin: 0 0 .5em;
	letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.5rem, 7.5vw, 7rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
p { margin: 0 0 1.1em; }

.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--base); color: #fff; padding: .75rem 1rem;
}
.skip-link:focus { left: 0; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: 900px; }

.eyebrow {
	font-family: var(--font-sans);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 1.25rem;
}
.rule { border: 0; border-top: 1px solid var(--light-grey); margin: 0; }
.rule--dark { border-color: rgba(255, 255, 255, .18); }

/* ---------- Arrow link (clip-path style square) ---------- */
.arrow-link {
	display: inline-flex;
	align-items: center;
	gap: .6rem;
	font-weight: 500;
	transition: color .15s var(--ease);
}
.arrow-link .ico {
	position: relative;
	width: 1.35em; height: 1.35em;
	border: 1px solid var(--orange);
	display: inline-grid; place-items: center;
	flex: 0 0 auto;
	transition: background .15s var(--ease), border-color .15s var(--ease);
}
.arrow-link .ico::before {
	content: "";
	width: .42em; height: .42em;
	border-right: 1.5px solid var(--orange);
	border-top: 1.5px solid var(--orange);
	transform: rotate(45deg) translate(-1px, 1px);
	transition: border-color .15s var(--ease);
}
.arrow-link:hover { color: var(--orange); }
.arrow-link:hover .ico { background: var(--orange); border-color: var(--orange); }
.arrow-link:hover .ico::before { border-color: #fff; }
.arrow-link--light .ico { border-color: var(--orange-light); }
.arrow-link--light .ico::before { border-color: var(--orange-light); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
	font-family: var(--font-sans); font-weight: 500; font-size: .95rem;
	padding: .85rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 2px;
	transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--ghost { border-color: var(--base); color: var(--base); }
.btn--ghost:hover { background: var(--base); color: #fff; }
.btn--light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--light:hover { background: #fff; color: var(--base); }

/* ---------- Announcement bar ---------- */
.announcement {
	background: var(--plum);
	color: #fff;
	font-size: .85rem;
	font-weight: 350;
	position: relative;
	z-index: 60;
}
.announcement .container {
	display: flex; align-items: center; gap: 1rem;
	padding-block: .7rem;
}
.announcement__msg { margin: 0; opacity: 1; transition: opacity .3s var(--ease); }
.announcement__msg.is-fading { opacity: 0; }
.announcement__msg a { color: var(--orange-light); text-decoration: underline; }
.announcement__close {
	margin-left: auto;
	background: none; border: 0; color: #fff; opacity: .7;
	font-size: 1.1rem; line-height: 1; padding: .25rem;
}
.announcement__close:hover { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--light-grey);
}
.header__inner {
	display: flex; align-items: center; gap: 2rem;
	min-height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; flex: 0 0 auto; }
.brand__logo { height: 34px; width: auto; border-radius: 4px; }
.brand__partner { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__partner img { height: 34px; width: auto; border-radius: 4px; }
.brand__name {
	font-family: var(--font-serif); font-size: 1.15rem; font-weight: 500;
	color: var(--base); white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
	background: none; border: 0; padding: .5rem 0;
	font-family: var(--font-sans); font-size: .95rem; font-weight: 400;
	color: var(--base); display: inline-flex; align-items: center; gap: .35rem;
	transition: color .15s var(--ease);
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--orange); }
.nav__link .chev {
	width: .38em; height: .38em;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translate(-1px, -1px);
}

/* Dropdown */
.dropdown {
	position: absolute; top: calc(100% + .6rem); left: -1.25rem;
	min-width: 280px; background: #fff;
	border: 1px solid var(--light-grey);
	box-shadow: var(--shadow);
	padding: .6rem;
	display: none;
}
.nav__item.is-open .dropdown { display: block; }
.dropdown a {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding: .7rem .8rem;
	font-size: .95rem; transition: background .12s var(--ease), color .12s var(--ease);
}
.dropdown a:hover { background: var(--light-grey); color: var(--orange); }
.dropdown a small { color: var(--mid-grey); font-size: .78rem; display: block; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang { position: relative; }
.lang__toggle {
	background: none; border: 1px solid var(--light-grey); color: var(--base);
	padding: .4rem .7rem; font-size: .8rem; font-weight: 500;
	display: inline-flex; align-items: center; gap: .4rem; border-radius: 2px;
}
.lang__toggle:hover { border-color: var(--mid-grey); }
.lang__menu {
	position: absolute; right: 0; top: calc(100% + .5rem);
	background: #fff; border: 1px solid var(--light-grey); box-shadow: var(--shadow);
	min-width: 150px; padding: .4rem; display: none;
}
.lang.is-open .lang__menu { display: block; }
.lang__menu button {
	display: block; width: 100%; text-align: left; background: none; border: 0;
	padding: .55rem .7rem; font-size: .85rem; color: var(--base);
}
.lang__menu button:hover { background: var(--light-grey); }
.lang__menu button.is-active { color: var(--orange); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--base); margin: 5px 0; transition: .2s var(--ease); }

.mobile-nav { display: none; border-top: 1px solid var(--light-grey); background: #fff; padding: 1rem var(--gutter) 1.5rem; }
.mobile-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--light-grey); font-size: 1rem; }
.mobile-nav a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6.5rem); }
.hero__grid { display: block; }
.hero h1 { margin-bottom: .35em; }
.hero__lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--base-80); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }

/* ---------- Intro statement ---------- */
.statement { padding-block: clamp(3rem, 6vw, 5.5rem); }
.statement__text {
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 3.2vw, 2.6rem);
	line-height: 1.25; max-width: 22em; margin: 0;
}
.statement__meta { margin-top: 2.5rem; }

/* ---------- Numbered sections ---------- */
.section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--grey { background: var(--light-grey); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head p { color: var(--base-80); }

.numbered { border-top: 1px solid var(--light-grey); }
.numbered__item {
	display: grid; grid-template-columns: 4rem 1fr 1.15fr; gap: clamp(1rem, 3vw, 2.5rem);
	align-items: start;
	padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
	border-bottom: 1px solid var(--light-grey);
}
.numbered__num {
	font-family: var(--font-serif); font-size: 1.5rem; color: var(--orange); line-height: 1;
}
.numbered__item h3 { margin-bottom: .35em; }
.numbered__item p { color: var(--base-80); margin-bottom: 1rem; }
.numbered__item .arrow-link { font-size: .92rem; }

/* ---------- Stats ---------- */
.stats { padding-block: clamp(3rem, 6vw, 5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat__num { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; color: var(--base); }
.stat__label { font-size: .88rem; color: var(--mid-grey); margin-top: .5rem; }

/* ---------- CTA ---------- */
.cta { background: var(--base); color: #fff; padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.75); max-width: 34em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.cta__contact { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .85rem; }
.cta__contact a { border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .2rem; }
.cta__contact a:hover { border-color: var(--orange-light); color: var(--orange-light); }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--light-grey); padding-block: clamp(2.5rem, 5vw, 4rem); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer__tagline { font-family: var(--font-serif); font-size: 1.6rem; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .9rem; }
.footer__nav a:hover { color: var(--orange); }
.footer__bottom {
	margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--light-grey);
	display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
	font-size: .82rem; color: var(--mid-grey);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
	.nav { display: none; }
	.nav-toggle { display: block; }
	.mobile-nav.is-open { display: block; }
	.cta__grid { grid-template-columns: 1fr; gap: 2rem; }
	.stats__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
}

@media (max-width: 782px) {
	.numbered__item { grid-template-columns: 2.5rem 1fr; }
	.numbered__item p { grid-column: 2 / -1; }
	.brand__name { display: none; }
	.brand__partner img { height: 28px; }
	.footer__grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.reveal { opacity: 1; transform: none; filter: none; }
}
