/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --color-nav: #242e34;
  --color-primary: #2f6fe4;
  --color-primary-dark: #1a56c4;
  --color-text: #242e34;
  --color-white: #ffffff;
  --color-teal: #1fb6c9;
  --color-orange: #ff9a3c;
  --color-pink: #d63a8f;
  --color-grey-light: #f5f6f7;
  --color-border: #e0e3e8;

  --font-body: 'Inter', 'Source Sans Pro', sans-serif;
  --font-heading: 'Inter', 'Source Sans Pro', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);

  --nav-height: 72px;
  --container: 1200px;
  --gutter: 1.5rem;
}

/* =========================================================
   Base reset & typography
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
}

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

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: 2px; }

img { display: block; max-width: 100%; height: auto; }

ul, ol { list-style: none; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section--blue {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--dark {
  background-color: var(--color-nav);
  color: var(--color-white);
}

.text-center { text-align: center; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: opacity 0.2s, background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; }

.btn-primary {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
}

.btn-pink {
  background-color: var(--color-pink);
  color: var(--color-white);
  border-color: var(--color-pink);
}

.btn-blue {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-nav);
  opacity: 1;
}

/* =========================================================
   Header & navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-nav);
  color: var(--color-white);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}

.main-nav a:hover { opacity: 0.8; }

.main-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta { flex-shrink: 0; }

.drawer-toggle {
  display: none;
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
}

.drawer-toggle:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }

.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger-icon span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* =========================================================
   Mobile drawer
   ========================================================= */
.drawer-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-nav);
  color: var(--color-white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s;
  overflow-y: auto;
}

.drawer.is-open { transform: translateX(0); }

.drawer-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.drawer-close {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.drawer-close:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }

.drawer-nav ul {
  display: flex;
  flex-direction: column;
}

.drawer-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  min-height: 44px;
}

.drawer-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.drawer-cta {
  margin-top: 1.5rem;
}

.drawer-contact {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.drawer-contact h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}

.drawer-contact p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer-nav-bar {
  background-color: var(--color-primary);
  padding: 1rem 0;
}

.footer-nav-bar ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.footer-nav-bar li {
  display: flex;
  align-items: center;
}

.footer-nav-bar a {
  color: var(--color-white);
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
}

.footer-nav-bar a:hover { opacity: 0.8; }

.footer-nav-bar li + li::before {
  content: "|";
  color: rgba(255, 255, 255, 0.6);
}

.site-footer {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-address {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-address strong {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.footer-center {
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.75; }

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text);
  text-align: center;
}

.footer-copy p { margin-bottom: 0.25rem; }

.footer-copy a { text-decoration: underline; }

.footer-logo-col {
  text-align: right;
}

.footer-logo-col img {
  max-width: 180px;
  margin-left: auto;
  margin-bottom: 0.75rem;
}

.footer-logo-col p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.footer-logo-col a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =========================================================
   Hero / Banner
   ========================================================= */
.hero {
  width: 100%;
  min-height: 400px;
  max-height: 480px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

/* =========================================================
   Home sections
   ========================================================= */
.section-intro {
  padding: 4rem var(--gutter);
  text-align: center;
}

.section-intro .intro-logo {
  max-width: 300px;
  margin: 0 auto 2rem;
}

.section-intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section-intro p {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  color: var(--color-text);
}

.section-intro .btn { margin-top: 2rem; }

.section-services {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem var(--gutter);
  text-align: center;
}

.section-services h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.section-services p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.section-services .btn { margin-top: 2rem; }

.section-specialisms {
  background-color: var(--color-white);
  padding: 4rem var(--gutter);
  display: flex;
  justify-content: center;
}

.specialisms-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.specialisms-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.specialisms-card p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
}

.specialisms-card .btn { margin-top: 2rem; }

/* =========================================================
   Page banner (inner pages)
   ========================================================= */
.page-banner {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 3rem var(--gutter);
  text-align: center;
}

.page-banner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.page-banner p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  opacity: 0.95;
}

.page-banner .btn { margin-top: 1.5rem; }

/* =========================================================
   Content sections
   ========================================================= */
.content-section {
  padding: 4rem var(--gutter);
}

.content-section .container { max-width: 860px; }

.content-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.content-section h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 1rem;
  color: var(--color-text);
}

.content-section p {
  color: var(--color-text);
  font-size: 1rem;
}

.content-section .btn { margin-top: 1.5rem; }

/* =========================================================
   About team cards
   ========================================================= */
.team-grid {
  padding: 4rem var(--gutter);
}

.team-grid .container { max-width: 960px; }

.team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  margin-bottom: 4rem;
  align-items: start;
}

.team-member:last-child { margin-bottom: 0; }

.team-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.team-photo img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.team-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}

.team-info h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.team-contact {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.team-contact a {
  color: var(--color-primary);
  font-size: 0.9rem;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.team-info .contact-detail {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.team-info .contact-detail span {
  font-weight: 600;
  margin-right: 0.25rem;
}

.team-bio {
  margin-top: 1rem;
}

.team-bio p {
  font-size: 0.975rem;
  color: var(--color-text);
}

/* =========================================================
   Services page
   ========================================================= */
.services-nav {
  background-color: var(--color-grey-light);
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--color-border);
}

.services-nav .container { max-width: 900px; }

.services-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.services-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 1.25rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-primary);
  transition: background-color 0.2s, color 0.2s;
}

.services-nav a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.service-block {
  padding: 3.5rem var(--gutter);
  border-bottom: 1px solid var(--color-border);
}

.service-block:last-child { border-bottom: none; }

.service-block .container { max-width: 860px; }

.service-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.service-block--alt {
  background-color: var(--color-grey-light);
}

.services-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

/* Career advisory section */
.career-advisory {
  background-color: var(--color-nav);
  color: var(--color-white);
  padding: 4rem var(--gutter);
  text-align: center;
}

.career-advisory h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  margin-bottom: 1.25rem;
}

.career-advisory p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  opacity: 0.9;
}

.career-advisory .btn { margin-top: 2rem; }

/* =========================================================
   Why Us accordion
   ========================================================= */
.why-list {
  padding: 4rem var(--gutter);
}

.why-list .container { max-width: 860px; }

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:first-child {
  border-top: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--color-text);
  min-height: 60px;
}

.accordion-trigger h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.accordion-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s;
  margin-left: 1rem;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-body-inner {
  padding-bottom: 1.25rem;
}

.accordion-body-inner p {
  color: var(--color-text);
  font-size: 0.975rem;
}

/* =========================================================
   Specialisms page
   ========================================================= */
.specialism-list {
  padding: 4rem var(--gutter);
}

.specialism-list .container { max-width: 860px; }

.specialism-item {
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 0;
}

.specialism-item:first-child {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.specialism-item:last-child {
  border-bottom: none;
}

.specialism-item h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

/* =========================================================
   EDI page
   ========================================================= */
.edi-section {
  padding: 4rem var(--gutter);
}

.edi-section .container { max-width: 800px; }

.edi-section p { font-size: 1.05rem; }

/* =========================================================
   Testimonials page
   ========================================================= */
.testimonials-section {
  padding: 4rem var(--gutter);
}

.testimonials-section .container { max-width: 900px; }

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.testimonial-card:last-child { margin-bottom: 0; }

.testimonial-header {
  margin-bottom: 1.5rem;
}

.testimonial-header h3 {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.testimonial-header h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
}

.testimonial-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.testimonial-logos img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.testimonial-body p {
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text);
}

/* =========================================================
   Contact page
   ========================================================= */
.contact-section {
  padding: 4rem var(--gutter);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.contact-person {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.contact-person:last-child {
  border-bottom: none;
}

.contact-person h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.contact-person p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--color-text);
}

.contact-person strong {
  font-weight: 600;
}

.contact-form-col h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* =========================================================
   Form styles
   ========================================================= */
.site-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-pink);
  margin-left: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 111, 228, 0.15);
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.form-note a {
  text-decoration: underline;
  color: var(--color-primary);
}

/* =========================================================
   Privacy page
   ========================================================= */
.privacy-section {
  padding: 4rem var(--gutter);
}

.privacy-section .container { max-width: 820px; }

.privacy-section h2 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.privacy-section h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.privacy-section p { font-size: 0.975rem; }

.privacy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-section ul li { margin-bottom: 0.35rem; font-size: 0.975rem; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1023px) {
  .main-nav,
  .header-cta {
    display: none;
  }

  .drawer-toggle { display: flex; }

  /* drawer-overlay is always display:block, toggled via opacity/pointer-events */

  .team-member {
    grid-template-columns: 1fr;
  }

  .team-photo img {
    width: 160px;
    height: 160px;
  }

  .services-pair {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-logo-col {
    text-align: center;
  }

  .footer-logo-col img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-address strong { display: inline; }
}

@media (max-width: 600px) {
  :root { --gutter: 1rem; }

  .section-intro h1,
  .page-banner h1 {
    font-size: 1.5rem;
  }

  .footer-nav-bar ul {
    gap: 0;
  }

  .footer-nav-bar a {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
  }

  .hero img { height: 280px; }

  .specialisms-card {
    padding: 2rem 1.25rem;
  }

  .team-photo img {
    width: 140px;
    height: 140px;
  }
}
