/* ============================================================
   ISEM — Design System
   ============================================================ */

:root {
  --ink: #14100f;
  --ink-soft: #2b2422;
  --wine: #89035d;
  --wine-dark: #5e0140;
  --wine-light: #ad2c7d;
  --gold: #b8955f;
  --paper: #ffffff;
  --offwhite: #faf7f6;
  --line: #e9e2df;
  --muted: #6f6663;

  --font-head: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--wine);
  color: #fff;
}
.btn-primary:hover { background: var(--wine-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}
.site-header.solid {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 24px rgba(20,16,15,0.08);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 34px; width: auto; }
.brand .logo-light { filter: brightness(0) invert(1); }
.brand .logo-dark { display: none; }
.site-header.solid .brand .logo-light { display: none; }
.site-header.solid .brand .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.site-header.solid .nav-links { color: var(--ink); }
.nav-links a { opacity: 0.9; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links a.active { color: var(--wine); opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.header-contact {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: #fff;
  text-align: right;
  line-height: 1.4;
}
.site-header.solid .header-contact { color: var(--ink-soft); }
.header-contact .phone { font-weight: 700; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all .25s;
}
.site-header.solid .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,16,15,0.55) 0%, rgba(20,16,15,0.72) 55%, rgba(20,16,15,0.92) 100%),
    linear-gradient(100deg, rgba(94,1,64,0.55) 0%, rgba(20,16,15,0.2) 45%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.hero-content .eyebrow { color: var(--gold); }
.hero-content .eyebrow::before { background: var(--gold); }
.hero h1 { color: #fff; max-width: 780px; }
.hero .lede { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 560px; margin: 20px 0 34px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-page {
  min-height: 46vh;
  padding-top: 40px;
}
.hero-page h1 { max-width: 640px; }

/* ---------- Values strip ---------- */
.values {
  background: var(--ink);
  color: #fff;
  padding: 46px 0;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 10px;
}
.value-item + .value-item { border-left: 1px solid rgba(255,255,255,0.14); }
.value-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
}
.value-item .label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}
.value-item .sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--ink); color: rgba(255,255,255,0.85); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .eyebrow::before { background: var(--gold); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.split-media { position: relative; }
.split-media img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
.split-media .frame {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.split-body ul.check {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.split-body ul.check li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.98rem;
}
.split-body ul.check li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  background: var(--wine);
  border-radius: 50%;
}

/* ---------- Service cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(20,16,15,0.1); }
.card .card-media { aspect-ratio: 4/3; overflow: hidden; }
.card .card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body .tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
}
.card-body p { color: var(--muted); font-size: 0.95rem; }
.card-body .card-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-body .card-link .arrow { transition: transform .2s; }
.card:hover .card-link .arrow { transform: translateX(4px); }

/* ---------- Detailed service block (services page) ---------- */
.service-block { padding: 80px 0; }
.service-block:nth-child(even) { background: var(--offwhite); }
.service-block .split { align-items: start; }
.service-block .num {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--line);
  line-height: 1;
  margin-bottom: 6px;
}
.footnote {
  font-size: 0.82rem;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-top: 22px;
}

/* ---------- Team ---------- */
.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}
.team-mini {
  text-align: center;
  color: inherit;
}
.team-mini-photo {
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 160px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--offwhite);
  transition: box-shadow .25s ease;
}
.team-mini:hover .team-mini-photo { box-shadow: 0 0 0 4px var(--offwhite), 0 0 0 6px var(--wine); }
.team-mini-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-mini h3 { font-size: 1rem; margin-bottom: 4px; }
.team-mini-role {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wine);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  background: #fff;
}
.team-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--offwhite);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; }
.team-role {
  color: var(--wine);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.team-cred {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.team-bio { font-size: 0.92rem; color: var(--muted); }

.team-lead { grid-column: span 1; }
.team-card, .team-featured { scroll-margin-top: 110px; }
.team-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 64px;
}
.team-featured .team-photo { margin-bottom: 0; aspect-ratio: 1/1; }

/* ---------- Partners / credibility ---------- */
.partners {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.partners img { max-height: 46px; width: auto; filter: grayscale(1); opacity: 0.7; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--wine-dark), var(--wine));
  color: #fff;
  text-align: center;
  padding: 90px 0;
}
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,0.85); margin: 18px auto 32px; text-align: center; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card + .contact-card { margin-top: 20px; }
.contact-card .label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 10px;
}
.contact-card .value { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.contact-card .value a:hover { color: var(--wine); }

.enquiry-note {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: var(--muted);
  font-size: 0.92rem;
  background: #fff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 30px; margin-bottom: 18px; }
.footer-brand p { max-width: 380px; font-size: 0.92rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.65);
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-item:nth-child(3) { border-left: none; }
  .team-mini-grid { grid-template-columns: repeat(4, 1fr); }
  .team-featured { grid-template-columns: 200px 1fr; padding: 28px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: var(--ink);
    padding: 24px 28px;
    gap: 18px;
    box-shadow: 0 16px 32px rgba(20,16,15,0.12);
  }
  .header-contact { display: none; }
  .nav-toggle { display: block; }
  .cards-3, .team-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-item:nth-child(2n) { border-left: none; }
  .team-mini-grid { grid-template-columns: repeat(3, 1fr); }
  section { padding: 64px 0; }
  .team-featured { grid-template-columns: 1fr; text-align: left; }
  .partners { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
