/* ==========================================================================
   AIX Marine Solutions — aixmrs.com
   Palette and type follow the AIX brand deck: navy / cream / signal orange,
   Franklin Gothic (Libre Franklin on the web).
   ========================================================================== */

:root {
  --hull:   #0b1733;   /* deep hull navy — headers, dark sections            */
  --steel:  #35456e;   /* brand slate navy — secondary surfaces              */
  --slate:  #5c77be;   /* mid blue — muted text on dark                      */
  --signal: #fe7700;   /* AIX orange — used like a safety marking, sparingly */
  --ice:    #b9deff;   /* pale blue — quiet accents on dark                  */
  --paper:  #f6f0ec;   /* brand cream — page background                      */
  --ink:    #14181f;   /* body text                                          */
  --muted:  #56606f;   /* secondary text on light                            */
  --rule:   #d8cfc7;   /* hairlines on cream                                 */
  --rule-d: rgba(185, 222, 255, .22);

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Franklin Gothic Book", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* --- type scale ---------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; }
p  { margin: 0 0 1rem; max-width: 68ch; }

.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--muted); }
.dark .lead { color: var(--ice); }

.tagline { color: var(--muted); }
.dark .tagline { color: rgba(255,255,255,.72); }

/* --- layout -------------------------------------------------------------- */

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.dark { background: var(--hull); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.steel { background: var(--steel); color: #fff; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .75rem; }
.section-head p:last-child { margin-bottom: 0; }

/* a short orange rule that sits above a section title */
.mark { display: block; width: 44px; height: 4px; background: var(--signal); margin-bottom: 1.25rem; }

/* --- header / nav -------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--hull);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 84px;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 50px; width: auto; }
.brand span { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255,255,255,.3);
  color: #fff; padding: .5rem .75rem; font: inherit; font-size: .875rem; cursor: pointer;
}

.nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: .35rem 0;
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: .9375rem; font-weight: 500;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: #fff; border-bottom-color: rgba(255,255,255,.35); }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--signal); }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block; padding: .8rem 1.4rem;
  font-weight: 600; font-size: .9375rem; text-decoration: none;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--signal); color: #16202e; border-color: var(--signal); }
.btn-primary:hover { background: #ff8c26; border-color: #ff8c26; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-dark { border-color: var(--hull); color: var(--hull); }
.btn-dark:hover { background: var(--hull); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--signal); outline-offset: 3px;
}

/* --- hero ---------------------------------------------------------------- */

.hero { background: var(--hull); color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; }
.hero-copy { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem)
                     clamp(3rem, 6vw, 5.5rem) max(1.25rem, calc(50vw - var(--wrap) / 2)); }
.hero-copy h1 { margin-bottom: 1.25rem; }
.hero-copy p { color: rgba(255,255,255,.78); max-width: 46ch; font-size: 1.0625rem; }
.hero-media { position: relative; min-height: 320px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the three places AIX actually works — real information, not decoration */
.theatres { border-top: 1px solid var(--rule-d); margin-top: 2.5rem; padding-top: 1.5rem; }
.theatres dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; }
.theatres dt { font-weight: 700; font-size: .9375rem; color: var(--ice); margin-bottom: .2rem; }
.theatres dd { margin: 0; font-size: .875rem; line-height: 1.45; color: rgba(255,255,255,.65); }

/* --- lifecycle (a genuine sequence, so it is numbered) ------------------- */

.stages { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stage { background: var(--paper); padding: 1.75rem clamp(1.25rem, 2.5vw, 2rem); }
.stage-no {
  font-size: .8125rem; font-weight: 700; color: var(--signal);
  font-variant-numeric: tabular-nums; margin-bottom: .5rem;
}
.stage h3 { margin-bottom: .75rem; }
.stage ul { margin: 0; padding-left: 1.1rem; }
.stage li { margin-bottom: .3rem; font-size: .9375rem; color: var(--muted); }

@media (min-width: 760px)  { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .stages { grid-template-columns: repeat(5, 1fr); } }

/* --- scope blocks (services page) --------------------------------------- */

.scope { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 900px) {
  .scope { grid-template-columns: 1fr 1fr; }
  .scope--flip .scope-media { order: -1; }
}
.scope + .scope { margin-top: clamp(3rem, 7vw, 5.5rem); }
.scope-media img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 2px; }
.scope h2 { margin-bottom: 1rem; }
.scope ul { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.scope li { padding: .6rem 0; border-top: 1px solid var(--rule); font-size: .9688rem; }
.scope li:last-child { border-bottom: 1px solid var(--rule); }

/* where a scope is carried out */
.tag {
  display: inline-block; margin-left: .5rem; padding: .1rem .45rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .02em;
  color: var(--steel); border: 1px solid var(--rule); border-radius: 2px;
  vertical-align: 1px; white-space: nowrap;
}

/* --- plain grids --------------------------------------------------------- */

.grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.grid > * { background: var(--paper); padding: 1.5rem; }
.dark .grid { background: var(--rule-d); border-color: var(--rule-d); }
.dark .grid > * { background: var(--hull); }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.cell h4 { margin-bottom: .4rem; }
.cell p { font-size: .9375rem; color: var(--muted); margin: 0; }
.dark .cell p { color: rgba(255,255,255,.7); }

/* --- statement band ------------------------------------------------------ */

.statement { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 860px) { .statement { grid-template-columns: 1fr 1.15fr; } }
.statement dt { font-weight: 700; color: var(--ice); margin-bottom: .3rem; }
.statement dd { margin: 0 0 1.5rem; color: rgba(255,255,255,.82); max-width: 52ch; }
.statement dd:last-child { margin-bottom: 0; }

/* --- locations ----------------------------------------------------------- */

.place { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 880px) { .place { grid-template-columns: .9fr 1.1fr; } }
.place + .place { margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--rule); }
.place img { width: 100%; height: 320px; object-fit: cover; border-radius: 2px; }
.place address { font-style: normal; margin: 1rem 0 0; line-height: 1.7; }

.partners { display: grid; gap: 1px; background: var(--rule-d); border: 1px solid var(--rule-d); }
@media (min-width: 560px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .partners { grid-template-columns: repeat(5, 1fr); } }
.partner { background: var(--hull); padding: 1.5rem; }
.partner strong { display: block; font-size: 1.0625rem; }
.partner span { font-size: .875rem; color: var(--ice); }

/* --- contact form -------------------------------------------------------- */

.form { display: grid; gap: 1.1rem; max-width: 620px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 2px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); }
.form-note { font-size: .875rem; color: var(--muted); }

.contact-split { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-split { grid-template-columns: 1fr 1fr; } }

/* --- call to action ------------------------------------------------------ */

.cta { background: var(--steel); color: #fff; }
.cta h2 { margin-bottom: .75rem; }
.cta p { color: rgba(255,255,255,.82); }

/* --- footer -------------------------------------------------------------- */

.site-footer { background: var(--hull); color: rgba(255,255,255,.72); font-size: .9375rem; }
.site-footer .wrap { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer img { height: 62px; width: auto; margin-bottom: 1.1rem; }
.site-footer h4 { color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.colophon {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .875rem; color: rgba(255,255,255,.55);
}

/* --- page banner (inner pages) ------------------------------------------ */

.banner { background: var(--hull); color: #fff; padding-block: clamp(3rem, 7vw, 5rem); }
.banner h1 { max-width: 20ch; margin-bottom: 1rem; }
.banner p { color: rgba(255,255,255,.78); max-width: 56ch; margin-bottom: 0; }

/* --- responsive nav ------------------------------------------------------ */

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--hull); border-bottom: 1px solid rgba(255,255,255,.12);
    display: none; padding: .5rem 0 1.25rem;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul { flex-direction: column; gap: 0; width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
  .nav a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a[aria-current="page"] { border-bottom-color: var(--signal); }
  .site-header .wrap { position: relative; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-inline: 1.25rem; }
  .hero-media { min-height: 260px; order: -1; }
  .theatres dl { grid-template-columns: 1fr; gap: 1rem; }
}

/* --- grids sitting on the steel band ------------------------------------- */

.steel .grid { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.18); }
.steel .grid > * { background: var(--steel); }
.steel .cell h4 { color: #fff; }
.steel .cell p { color: rgba(255,255,255,.76); }
.steel .lead { color: rgba(255,255,255,.84); }
.steel h2, .steel h3 { color: #fff; }
.dark .cell h4 { color: #fff; }
.dark .scope li { border-color: var(--rule-d); }
.dark .tag { color: var(--ice); border-color: var(--rule-d); }

/* --- named contact -------------------------------------------------------- */

.site-footer .person { margin-top: 1.1rem; line-height: 1.7; }
.site-footer .person strong { display: block; color: #fff; }

.person-card {
  border: 1px solid var(--rule); border-left: 4px solid var(--signal);
  border-radius: 2px; padding: 1.25rem 1.5rem; background: #fff;
}
.person-card h3 { margin-bottom: .15rem; }
.person-card .role { color: var(--muted); font-size: .9375rem; margin-bottom: .9rem; }
.person-card .person-lines { margin: 0; line-height: 1.8; font-weight: 500; }
