/* ==========================================================================
   LineLive Technical Documentation — site styles

   THE BRAND COLOURS AND FONTS ARE ALL IN THE BLOCK DIRECTLY BELOW.
   Change a value there and it updates everywhere on the site at once.
   ========================================================================== */

:root {
  --navy:          #1B2844;   /* main dark blue */
  --navy-deep:     #111A2C;   /* footer, slightly darker */
  --gold:          #C9A87C;   /* accent — buttons, rules, small caps */
  --white:         #FFFFFF;
  --grey-bg:       #F9FAFB;   /* pale grey section background */
  --grey-card:     #FAFAFB;   /* card background */
  --border:        #DEE1E8;
  --text:          #1B2844;   /* body text on light backgrounds */
  --text-muted:    #525F7A;   /* softer body text */
  --danger:        #B3261E;   /* error messages */

  --font-display:  'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container:     1280px;
  --nav-h:         8rem;
}

/* ==========================================================================
   BASE
   ========================================================================== */

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; margin: 0; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.center { margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy);
  padding: .75rem 1.25rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Icons -------------------------------------------------------------- */

svg[viewBox] {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-xs { width: .875rem; height: .875rem; }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 1.5rem;  height: 1.5rem; }
.icon-lg { width: 2rem;    height: 2rem; }
.icon-xl { width: 3rem;    height: 3rem; display: block; }
.gold { color: var(--gold); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--white); color: var(--navy); }
.btn-sm  { font-size: .75rem; padding: .625rem 1.5rem; }
.btn-lg  { font-size: .9375rem; padding: 0 2rem; height: 3.5rem; }
.btn-block { width: 100%; height: 3rem; font-size: .875rem; }
.btn:disabled { opacity: .7; cursor: progress; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(27, 40, 68, 0);
  border-bottom: 1px solid rgba(201, 168, 124, 0);
  backdrop-filter: blur(4px);
  transition: background-color .3s, border-color .3s;
}
.nav.is-scrolled {
  background: rgba(27, 40, 68, .98);
  border-bottom-color: rgba(201, 168, 124, .2);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 4rem; width: auto; object-fit: contain; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .025em;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color .2s;
}
.nav-links > a:hover { color: var(--white); }
.nav-links > a.is-active { color: var(--gold); }
.nav-links > a.btn { color: var(--navy); }

/* Mobile menu -------------------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform .3s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* A class selector outranks the browser's own [hidden] rule, so the
   closed state has to be stated explicitly or the menu never hides. */
.nav-mobile[hidden] { display: none; }

.nav-mobile {
  background: rgba(27, 40, 68, .98);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav-mobile a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 1rem;
}
.nav-mobile a:last-child { border-bottom: 0; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 40, 68, .8);
}
.hero-inner { position: relative; z-index: 2; max-width: 56rem; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.hero-eyebrow .rule { display: block; width: 3rem; height: 1px; background: var(--gold); }

.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 2rem;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-lede {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, .8);
  max-width: 42rem;
  margin-bottom: 3rem;
}

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 0;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-marks li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding-inline: 1.25rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  border-right: 1px solid rgba(255, 255, 255, .2);
}
.hero-marks li:first-child { padding-left: 0; }
.hero-marks li:last-child { border-right: 0; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding-block: 6rem; }
.section-tight { padding-top: 0; }
.section-white { background: var(--white); }
.section-grey  { background: var(--grey-bg); }
.section-navy  {
  background: var(--navy);
  color: var(--white);
  border-block: 1px solid rgba(255, 255, 255, .1);
}

.section-head { max-width: 48rem; margin-bottom: 4rem; }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); color: var(--navy); }
.section-navy .section-head h2 { color: var(--white); }
.section-sub { margin-top: 1.5rem; color: var(--text-muted); font-size: 1.125rem; }

.eyebrow {
  color: var(--gold);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gap-wide { gap: 4rem; }

/* Service cards ------------------------------------------------------ */

.card {
  background: var(--grey-card);
  border: 1px solid var(--border);
  padding: 2rem;
  height: 100%;
  transition: background-color .3s, box-shadow .3s;
}
.card:hover { background: var(--white); box-shadow: 0 20px 40px -12px rgba(27, 40, 68, .18); }
.card h3 { font-size: 1.25rem; color: var(--navy); margin: 1.5rem 0 1rem; }
.card p { color: var(--text-muted); line-height: 1.7; }

.banner {
  margin-top: 4rem;
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
}
.banner h3 { font-size: 1.25rem; color: var(--gold); margin-bottom: .5rem; }
.banner p { color: rgba(255, 255, 255, .8); max-width: 42rem; }

/* Sector tiles ------------------------------------------------------- */

.tile {
  position: relative;
  height: 18rem;
  margin: 0;
  overflow: hidden;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s ease;
}
.tile:hover img { transform: scale(1.05); }
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    var(--navy) 0%,
    rgba(27, 40, 68, .5) 50%,
    rgba(27, 40, 68, .05) 100%);
}
.tile figcaption { position: absolute; inset: auto 1.5rem 1.5rem; z-index: 2; }
.tile h3 { font-size: 1.25rem; color: var(--white); margin-bottom: .5rem; }
.tile-rule {
  display: block; height: 2px; width: 0;
  background: var(--gold);
  transition: width .5s ease;
}
.tile:hover .tile-rule { width: 100%; }

/* Credential lists --------------------------------------------------- */

.client-list {
  list-style: none;
  counter-reset: client;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.client-list li {
  counter-increment: client;
  display: flex; align-items: center; gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .9);
}
.client-list li::before {
  content: "0" counter(client);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.project-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
}
.project-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: 1.125rem; font-weight: 300;
  color: rgba(255, 255, 255, .8);
}
.project-list svg { margin-top: .25rem; }

.photo-strip { margin-top: 4rem; }
.photo { position: relative; height: 12rem; margin: 0; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.photo:hover img { transform: scale(1.05); }
.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent);
}
.photo figcaption {
  position: absolute; inset: auto .75rem .75rem; z-index: 2;
  font-size: .75rem; font-weight: 300;
  letter-spacing: .05em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

/* About -------------------------------------------------------------- */

.prose { max-width: 56rem; margin-inline: auto; }
.prose h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--navy); margin: 2rem 0 2.5rem; }
.prose p {
  font-size: 1.125rem; line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.prose p:last-child { margin-bottom: 0; }

/* Quote panel -------------------------------------------------------- */

.narrow { max-width: 48rem; margin-inline: auto; }

.panel { border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(27, 40, 68, .08); }
.panel-head { background: var(--navy); color: var(--white); padding: 2rem; }
.panel-head h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.panel-head p { color: rgba(255, 255, 255, .7); }
.panel-body { padding: 2rem; background: var(--white); }

.dot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.dot-list li { display: flex; align-items: center; gap: 1rem; color: var(--navy); }
.dot-list li::before {
  content: ""; flex-shrink: 0;
  width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--gold);
}
.panel-note {
  margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--navy); line-height: 1.7;
}

/* ==========================================================================
   CONTACT + FORM
   ========================================================================== */

.contact-grid { max-width: 72rem; margin-inline: auto; }
.contact-title { font-size: clamp(1.75rem, 4vw, 2.25rem); margin-bottom: 2rem; }
.contact-lede {
  font-size: 1.125rem; font-weight: 300;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 3rem;
}

.contact-details { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2rem; }
.contact-details li { display: flex; align-items: flex-start; gap: 1rem; }
.contact-details address { font-style: normal; font-weight: 300; color: rgba(255, 255, 255, .9); }
.contact-details a {
  font-weight: 300; color: rgba(255, 255, 255, .9);
  text-decoration: none; transition: color .2s;
}
.contact-details a:hover { color: var(--gold); }

.form-card { background: var(--white); color: var(--navy); padding: 2rem; }

.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.field-row .field { margin-bottom: 0; }
.field-row + .field-row, .field-row + .field { margin-top: 1.5rem; }

.field label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy);
}
.field input, .field textarea {
  width: 100%;
  padding: .625rem .75rem;
  border: 1px solid #D1D5DB;
  border-radius: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9CA3AF; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201, 168, 124, .35);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }

.field-error { color: var(--danger); font-size: .8125rem; min-height: 0; }
.field-error:empty { display: none; }

/* The spam trap must never be visible or focusable. */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: 3rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer img { height: 2.5rem; width: auto; object-fit: contain; }
.footer p { color: rgba(255, 255, 255, .4); font-size: .875rem; font-weight: 300; }

/* ==========================================================================
   TOAST MESSAGES
   ========================================================================== */

.toasts {
  position: fixed;
  z-index: 100;
  right: 1rem; bottom: 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  max-width: min(24rem, calc(100vw - 2rem));
}
.toast {
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  box-shadow: 0 10px 30px rgba(27, 40, 68, .18);
  padding: 1rem 1.25rem;
  animation: toast-in .3s ease;
}
.toast-error { border-left-color: var(--danger); }
.toast strong { display: block; font-size: .9375rem; margin-bottom: .25rem; }
.toast span { font-size: .875rem; color: var(--text-muted); line-height: 1.5; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(.75rem); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   SCROLL-IN ANIMATION
   Elements fade up as they come into view. data-delay="1|2|3" staggers them.
   ========================================================================== */

/* IMPORTANT: content is visible by default. The fade is only switched on
   once JavaScript has confirmed it can actually drive it, by putting
   .reveals-enabled on <html>. If the script fails to load, or the browser
   has no IntersectionObserver, the page simply shows everything rather
   than hiding the whole site behind an animation that never runs. */

.reveals-enabled .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveals-enabled .reveal.is-visible { opacity: 1; transform: none; }
.reveals-enabled .reveal[data-delay="1"] { transition-delay: .1s; }
.reveals-enabled .reveal[data-delay="2"] { transition-delay: .2s; }
.reveals-enabled .reveal[data-delay="3"] { transition-delay: .3s; }
.reveals-enabled .reveal[data-delay="4"] { transition-delay: .4s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .gap-wide { gap: 3rem; }
}

@media (max-width: 900px) {
  :root { --nav-h: 5.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 3rem; }
  .nav:not(.is-scrolled) { background: rgba(27, 40, 68, .9); }
}

@media (max-width: 768px) {
  .section { padding-block: 4rem; }
  .section-head { margin-bottom: 2.5rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-4 { gap: .75rem; }
  .project-list { grid-template-columns: 1fr; gap: 1.25rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-marks li { border-right: 0; padding-inline: 0; padding-right: 1.25rem; }
  .form-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tile { height: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
