/* ============================================================
   SJB Systems — styles.css
   ============================================================ */

/* ---- Self-hosted Inter font ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

/* ---- Custom Properties ---- */
:root {
  --navy:         #0d1b2a;
  --navy-mid:     #152639;
  --blue-dark:    #1a3a5c;
  --blue:         #1e5c8a;
  --blue-mid:     #2874a8;
  --blue-accent:  #3498c8;
  --blue-pale:    #e8f4fb;
  --blue-light:   #f0f8ff;
  --white:        #ffffff;
  --off-white:    #f8fafc;
  --text:         #0d1b2a;
  --text-mid:     #475569;
  --text-light:   #94a3b8;
  --border:       #e2e8f0;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07);
  --shadow:       0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:    0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
  --radius:       8px;
  --radius-lg:    12px;
  --ease:         0.25s ease;
  --container:    1200px;
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue-accent);
  color: var(--white);
  border-color: var(--blue-accent);
}
.btn-primary:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(52,152,200,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--ease), box-shadow var(--ease);
}
.header--scrolled {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 16px rgba(0,0,0,.25);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--blue-accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--ease);
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); }
.nav__cta {
  background: var(--blue-accent) !important;
  color: var(--white) !important;
  padding: .45rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background var(--ease) !important;
}
.nav__cta:hover { background: var(--blue-mid) !important; }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}
.nav__burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger--open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(13,27,42,.93) 0%,
    rgba(13,27,42,.78) 50%,
    rgba(26,58,92,.60) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 800px;
}
.hero__available {
  display: inline-block;
  background: rgba(52,152,200,.2);
  border: 1px solid rgba(52,152,200,.45);
  color: #90d4f5;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.hero__content h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero__content h1 em {
  font-style: normal;
  color: var(--blue-accent);
}
.hero__sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.72);
  margin-bottom: 2rem;
  font-weight: 400;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 2.5rem;
}
.hero__pills span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.82);
  font-size: .8rem;
  padding: .3rem .8rem;
  border-radius: 20px;
  font-weight: 500;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 1;
}
.hero__scroll span {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.hero__scroll-bar {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollpulse 2.4s ease infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: .4; }
  50%       { opacity: 1; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section        { padding: 5.5rem 0; }
.section-alt    { background: var(--blue-pale); }
.section-dark   { background: var(--navy); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: .4rem;
}
.section-header .section-desc {
  color: var(--text-mid);
  max-width: 620px;
  margin: .9rem auto 0;
  font-size: .95rem;
}
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.about-text p {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}
.about-text p:last-of-type { margin-bottom: 0; }
.clearance-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f0f8ff;
  border: 1px solid rgba(52,152,200,.2);
  border-left: 3px solid var(--blue-accent);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.75rem;
}
.clearance-badge {
  flex-shrink: 0;
  background: var(--blue-dark);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 4px;
  white-space: nowrap;
}
.clearance-box p {
  font-size: .9rem;
  color: var(--text-mid);
  margin: 0 !important;
}
.director-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  background: var(--blue-pale);
  border-left: 4px solid var(--blue-accent);
  border-radius: var(--radius);
}
.director-panel__name strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.director-panel__name span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--blue);
}
.director-panel p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin: 0;
}
@media (min-width: 768px) {
  .director-panel {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }
  .director-panel__name { flex-shrink: 0; min-width: 200px; }
}
.about-quals h3 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.qual-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.qual-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.qual-icon {
  flex-shrink: 0;
  background: var(--blue-pale);
  border: 1px solid rgba(52,152,200,.2);
  color: var(--blue-mid);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .05em;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  text-align: center;
}
.qual-item strong {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
}
.qual-item span {
  font-size: .82rem;
  color: var(--text-mid);
}
.about-location {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-mid);
  font-size: .88rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about-location svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue-accent);
}

/* ============================================================
   EXPERTISE / SKILLS
   ============================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow var(--ease), transform var(--ease);
}
.skill-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.skill-card__icon {
  width: 44px;
  height: 44px;
  background: var(--blue-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.skill-card__icon svg { width: 22px; height: 22px; color: var(--blue-accent); }
.skill-card h3 {
  font-size: .97rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.skill-card ul { display: flex; flex-direction: column; gap: .5rem; }
.skill-card li {
  font-size: .86rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.skill-card li::before {
  content: '';
  position: absolute;
  left: 0; top: .56em;
  width: 5px; height: 5px;
  background: var(--blue-accent);
  border-radius: 50%;
  opacity: .6;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}
.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
/* Photo cards */
.project-card--photo .project-card__header {
  height: 200px;
  overflow: hidden;
}
.project-card--photo .project-card__header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.project-card--photo:hover .project-card__header img { transform: scale(1.04); }

/* Gradient cards */
.project-card--gradient .project-card__header {
  height: 200px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  overflow: hidden;
}
.project-card__pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,.03) 0px,
    rgba(255,255,255,.03) 1px,
    transparent 1px,
    transparent 12px
  );
}
.project-card__label {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.9);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Gradient colours per programme */
.project-card--submarine .project-card__header  { background: linear-gradient(135deg, #0a1628 0%, #0d2a4a 60%, #0a3060 100%); }
.project-card--evtol     .project-card__header  { background: linear-gradient(135deg, #0f2a42 0%, #1a4a70 60%, #1e5c8a 100%); }
.project-card--civil     .project-card__header  { background: linear-gradient(135deg, #0e2840 0%, #154060 60%, #1a5580 100%); }
.project-card--hawk      .project-card__header  { background: linear-gradient(135deg, #0a1e36 0%, #122a4a 60%, #163558 100%); }
.project-card--bizjet    .project-card__header  { background: linear-gradient(135deg, #0d2038 0%, #16344e 60%, #1c4268 100%); }

/* Card body */
.project-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tag {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: .55rem;
}
.project-card__body h3 {
  font-size: 1.07rem;
  font-weight: 700;
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.project-client {
  display: block;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: .8rem;
  font-style: italic;
}
.project-card__body > p {
  font-size: .89rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.project-card__body ul {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.project-card__body li {
  font-size: .82rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.project-card__body li::before {
  content: '';
  position: absolute;
  left: 0; top: .56em;
  width: 4px; height: 4px;
  background: var(--blue-accent);
  border-radius: 50%;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contact-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: .5rem 0 1rem;
}
.contact-intro > p {
  color: rgba(255,255,255,.68);
  font-size: .98rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-accent);
  margin-bottom: 2rem;
  transition: color var(--ease);
}
.contact-email:hover { color: #7dd3f5; }
.contact-email svg { width: 18px; height: 18px; }
.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.contact-tags span {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.65);
  font-size: .77rem;
  padding: .28rem .7rem;
  border-radius: 20px;
  font-weight: 500;
}
.contact-form-wrap {
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  letter-spacing: .01em;
}
.form-group label span { color: rgba(255,255,255,.3); font-weight: 400; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: .72rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: .92rem;
  transition: border-color var(--ease), background var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.22); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
  background: rgba(255,255,255,.07);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-status {
  margin-top: 1rem;
  font-size: .88rem;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status--success {
  background: rgba(52,199,89,.12);
  border: 1px solid rgba(52,199,89,.25);
  color: #4ade80;
}
.form-status--error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.22);
  color: #f87171;
}
#submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #070f18;
  color: rgba(255,255,255,.45);
  padding: 2rem 0 1.5rem;
  font-size: .82rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
}
.footer-logo span { color: var(--blue-accent); }
.footer-legal {
  width: 100%;
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  margin-top: .25rem;
}
.footer-credits a {
  color: rgba(255,255,255,.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--ease);
}
.footer-credits a:hover { color: var(--white); }
.credits-toggle {
  background: none;
  border: none;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  transition: color var(--ease);
  cursor: pointer;
}
.credits-toggle:hover { color: var(--white); }
.image-credits {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 1.5rem;
  padding: 1.5rem 0 .5rem;
}
.image-credits h4 {
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.image-credits li { margin-bottom: .4rem; }
.image-credits a {
  color: rgba(255,255,255,.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.image-credits a:hover { color: rgba(255,255,255,.8); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .about-grid      { grid-template-columns: 1.2fr 1fr; }
  .contact-grid    { grid-template-columns: 1fr 1.15fr; }
}

@media (min-width: 1024px) {
  .nav__burger { display: none; }
}

@media (max-width: 1023px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--ease), opacity var(--ease);
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .nav__links--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links li { width: 100%; }
  .nav__links a   { display: block; padding: .5rem 0; font-size: 1rem; }
  .nav__cta       { text-align: center; padding: .6rem 1.2rem !important; }
}

@media (max-width: 768px) {
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .section { padding: 4rem 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: 1fr; }
  .hero__content h1 { font-size: 2rem; }
}
