/* Rush Consulting – shared site styles */

/* Fonts: hosted on this site (no requests to Google) */
@font-face { font-family: 'Medula One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/medula-one-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }


:root {
  --deep: #123a48;        /* header, hero, footer */
  --teal: #2f748e;        /* brand teal: headings, buttons */
  --cyan: #00c2cb;        /* logo colour, accents on dark */
  --mint: #8bd7bb;
  --sky: #70d0e8;
  --sand: #f4ecd8;        /* light sections */
  --paper: #fffdf8;
  --ink: #1f2a30;         /* body text */
  --muted: #5b6b72;

  --display: 'Medula One', 'Impact', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }

h1, h2, h3 { line-height: 1.05; margin: 0 0 1rem; }

.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: var(--deep);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--cyan);
}

.brand img { width: 2.6rem; }

.brand-name {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
}

.brand-tag {
  display: block;
  font-family: var(--body);
  font-size: .7rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .6);
  margin-top: .15rem;
}

.site-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  padding: .45rem .8rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--deep);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    display: none;
  }

  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) 1rem;
  }

  .site-nav a {
    display: block;
    padding: .85rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .08); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--cyan);
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  transition: background .2s;
}

.btn:hover { background: #fff; }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--deep); }

/* ---------- Hero ---------- */

.hero {
  background: var(--deep);
  color: #fff;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 2rem;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.hero h1 {
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .78);
  max-width: 32rem;
  margin: 0 0 2rem;
}

.hex-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 30rem);
}

.hex-photo .hex {
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  overflow: hidden;
}

.hex-photo .hex img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* small brand hexagons around the photo */
.hex-photo::before,
.hex-photo::after {
  content: "";
  position: absolute;
  aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.hex-photo::before { width: 22%; background: var(--mint); left: -9%; bottom: 6%; }
.hex-photo::after  { width: 13%; background: var(--sky);  right: -4%; top: 4%; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hex-photo { width: min(78%, 20rem); order: -1; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sand { background: var(--sand); }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  color: var(--teal);
}

/* Motto band */

.motto .wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.motto blockquote {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.02;
  color: var(--teal);
}

.motto img { border-radius: 18px; }

@media (max-width: 760px) {
  .motto .wrap { grid-template-columns: 1fr; }
}

/* Who we are */

.about .wrap {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.about p {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
}

.expertise {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.expertise li {
  font-size: .9rem;
  font-weight: 500;
  color: var(--deep);
  background: var(--sand);
  border-left: 3px solid var(--mint);
  padding: .35rem .8rem;
}

@media (max-width: 760px) {
  .about .wrap { grid-template-columns: 1fr; }
  .about img { width: 60%; }
}

/* Closing call to action */

.cta {
  background: var(--teal);
  color: #fff;
  text-align: center;
}

.cta .section-title { color: #fff; margin-bottom: .75rem; }

.cta p {
  color: rgba(255, 255, 255, .85);
  margin: 0 auto 2rem;
  max-width: 34rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, .65);
  font-size: .85rem;
  padding: 1.5rem 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  justify-content: space-between;
}

.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--cyan); }

/* ---------- Inner pages ---------- */

.page-head {
  background: var(--deep);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.25rem);
  color: #fff;
  margin: 0 0 .5rem;
}

.page-head p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0;
}

/* What we do */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.service {
  border-top: 4px solid var(--mint);
  padding-top: 1.5rem;
}

.service img { width: 4rem; margin-bottom: 1rem; mix-blend-mode: multiply; }

.service h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--deep);
  margin-bottom: .75rem;
}

.service ul { margin: 0; padding-left: 1.1rem; }
.service li { margin-bottom: .5rem; }
.service li ul { margin-top: .5rem; list-style: circle; }

abbr[title] { text-decoration: underline dotted rgba(0,0,0,.35); cursor: help; }

@media (max-width: 860px) {
  .services { grid-template-columns: 1fr; }
}

/* E-learning */

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.25rem;
}

.course {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  background: #fff;
  border: 1px solid #e6dcc3;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
}

.course img { width: 3.5rem; }

.course h2 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--deep);
  margin: 0;
  flex-grow: 1;
}

.course .level { font-size: .85rem; color: var(--muted); margin: 0; }

.course .btn { padding: .6rem 1.2rem; font-size: .95rem; }

.note { color: var(--muted); font-size: .95rem; margin-top: 2rem; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-item { margin-bottom: 2rem; }

.contact-item h2 {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .4rem;
}

.contact-item p { margin: 0; font-size: 1.15rem; }

.contact-item .email {
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: var(--deep);
  word-break: break-word;
}

.contact-card { border-radius: 18px; max-height: 26rem; object-fit: cover; width: 100%; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { max-height: 14rem; }
}

/* Privacy / long text */

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; font-weight: 600; color: var(--deep); margin: 2.5rem 0 .75rem; line-height: 1.3; }
.prose h3 { font-size: 1.1rem; font-weight: 600; color: var(--teal); margin: 1.75rem 0 .5rem; line-height: 1.3; }
.prose p { margin: 0 0 1rem; }
.prose li { margin-bottom: .5rem; }

.toc {
  background: var(--sand);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.toc h2 { margin-top: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: .35rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc .sub { padding-left: 1.25rem; }
