/* ==========================================================================
   ELMECH Engineering — layout and components
   Depends on theme.css for design tokens.
   Mobile-first. Everything here works without JavaScript.
   ========================================================================== */

/* Reset -------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--base-content);
  background: var(--base-100);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }

p { margin: 0; }

a { color: var(--secondary); text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* --primary-strong, not --primary: link text on a light background needs 4.5:1. */
a:hover { color: var(--primary-strong); }

/* Visible focus for keyboard users. Never remove this. */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Skip link — first thing a screen reader or keyboard user reaches. */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--secondary);
  color: var(--secondary-content);
  font-weight: 700;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Layout ------------------------------------------------------------------- */

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

@media (min-width: 640px) {
  .container { padding-inline: 2rem; }
}

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--alt { background: var(--base-200); }

.section__head {
  max-width: 48rem;
  margin-bottom: 3rem;
}
.section__head--center { margin-inline: auto; text-align: center; }

/* Small uppercase text, so it needs the accessible variant by default. The
   .page-head rule below restores --primary where the background is navy. */
.eyebrow {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.125rem;
  margin-top: 1rem;
  color: var(--base-content);
}

/* Standalone intro paragraph above a page's main content. */
.lead--intro {
  max-width: 46rem;
  margin-bottom: 3rem;
}

/* Centred link or button closing a section. */
.section__action {
  margin-top: 2rem;
  text-align: center;
}

/* Header and navigation ---------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  background: var(--secondary);
  color: var(--secondary-content);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-height);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--secondary-content);
  text-decoration: none;
}
.nav__brand:hover { color: var(--primary); }
/* The logo is an SVG wordmark on a transparent ground, sitting on the navy
   header. Height is fixed so the header does not reflow while it loads. */
.nav__logo { height: 2.25rem; width: auto; display: block; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav__toggle:hover { background: rgb(255 255 255 / 0.1); }
.nav__toggle svg { width: 1.5rem; height: 1.5rem; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.nav__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: var(--secondary-content);
  text-decoration: none;
  border-radius: var(--radius);
}
.nav__link:hover { color: var(--primary); background: rgb(255 255 255 / 0.08); }
.nav__link[aria-current="page"] { color: var(--primary); }

/* The contact link is a filled button in the header, as on the existing site.
   --primary against --secondary is 4.7:1, but this puts navy text on the light
   blue instead, which is 4.9:1 and reads as a button rather than a link. */
.nav__link--cta {
  background: var(--primary);
  color: var(--secondary);
  padding-inline: 1.125rem;
}
.nav__link--cta:hover {
  background: var(--base-100);
  color: var(--secondary);
}
.nav__link--cta[aria-current="page"] { color: var(--secondary); }

/* MaintIQ is ELMECH's own product, not just another menu item, so its tab is a
   gradient "badge" with a spark mark and glow in MaintIQ's own sky-blue - set
   apart from both the plain links and the light-blue Contact button. */
.nav__link--maintiq {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-inline: 0.15rem;
  padding-inline: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18), 0 6px 16px rgb(14 165 233 / 0.4);
}
.nav__link--maintiq::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2l2.3 6.5L20.8 11l-6.5 2.3L12 19.8 9.7 13.3 3.2 11l6.5-2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nav__link--maintiq:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.3), 0 8px 22px rgb(14 165 233 / 0.55);
}
.nav__link--maintiq[aria-current="page"] { color: #ffffff; }

/* Mobile: the toggle reveals the menu. With JS off the menu is always visible
   (see the no-js rule at the bottom of this file), so navigation still works. */
.nav__menu[data-open="true"] {
  display: flex;
  flex-direction: column;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 0.5rem 1rem 1rem;
  background: var(--secondary);
  border-bottom: 2px solid var(--primary);
}

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    position: static;
    padding: 0;
    background: none;
    border: 0;
  }
}

/* Push page content clear of the fixed header. */
.site-main { padding-top: var(--nav-height); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* --accent-strong, not --accent: white button text needs 4.5:1. */
.btn--primary {
  background: var(--accent-strong);
  color: var(--accent-content);
}
.btn--primary:hover {
  background: var(--accent-strong-hover);
  color: var(--accent-content);
}

.btn--outline {
  border-color: currentColor;
  background: transparent;
  color: var(--secondary);
}
.btn--outline:hover { background: var(--secondary); color: var(--secondary-content); }

/* White button for use on the navy hero, matching the existing site. Navy on
   white is 10.35:1, so this is the highest-contrast button on the site. */
.btn--light {
  background: var(--base-100);
  color: var(--secondary);
}
.btn--light:hover { background: var(--base-200); color: var(--secondary); }

/* On the dark hero the outline button needs light contrast. */
.hero .btn--outline { color: var(--secondary-content); border-color: rgb(255 255 255 / 0.75); }
.hero .btn--outline:hover { background: var(--secondary-content); color: var(--secondary); border-color: var(--secondary-content); }

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

/* Full-bleed navy panel, edge to edge with no white margin either side. */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(78vh, 41rem);
  margin-inline: 0;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  padding-inline: 1rem;
  background: linear-gradient(135deg, rgba(0, 43, 85, 0.85) 0%, rgba(0, 43, 85, 0.85) 100%), url(/assets/img/logo-hero.webp) center / cover no-repeat;
  color: var(--secondary-content);
  text-align: center;
  overflow: hidden;
}

/* Layers behind the hero text ---------------------------------------------- */

.hero__motif,
.hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0;
}

.hero__motif {
  /* Scaled to fill the navy panel width rather than sitting inset with empty
     space either side. Percentage tracks the hero, so it stays proportional
     across breakpoints; the 26rem floor keeps mobile unchanged and the 108rem
     cap stops it growing absurdly on ultra-wide screens. The square motif
     overflows the panel vertically and is clipped by the hero's overflow. */
  width: clamp(26rem, 108%, 108rem);
  height: auto;
  color: var(--primary);
  animation: motif-in 2800ms ease-out 100ms forwards;
}

@keyframes motif-in {
  from { opacity: 0; scale: 0.86; rotate: -10deg; }
  to   { opacity: 0.30; scale: 1; rotate: 0deg; }
}

/* The oversized wordmark is set as live text rather than an image: it stays
   crisp at any size, costs nothing to download, and picks up Manrope from the
   page. An SVG loaded through <img> could not use the webfont at all. */
.hero__watermark {
  width: 100%;
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 0.9;
  white-space: nowrap;
  animation: watermark-in 2400ms ease-out 500ms forwards;
}

.hero__watermark-main {
  display: block;
  font-size: clamp(4rem, 15.5vw, 15rem);
  letter-spacing: 0.06em;
  color: #ffffff;
}

/* The blue M, as on the logo. */
.hero__watermark-main .m { color: var(--primary); }

.hero__watermark-sub {
  display: block;
  margin-top: 0.15em;
  /* Sits to the right, under the second half of the wordmark. */
  padding-inline-start: 32%;
  font-size: clamp(1.6rem, 6.2vw, 6rem);
  letter-spacing: 0.24em;
  color: #ffffff;
}

@keyframes watermark-in {
  from { opacity: 0; scale: 1.06; }
  to   { opacity: 0.16; scale: 1; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
}

/* Staged reveal, after the background layers have begun to appear. These are
   CSS animations rather than JavaScript, so they run with scripting disabled. */
.hero h1,
.hero .hero__summary,
.hero .hero__actions {
  opacity: 0;
  animation: hero-in 900ms ease-out forwards;
}

.hero h1              { margin-bottom: 1.25rem; animation-delay: 1100ms; }
.hero .hero__summary  { animation-delay: 1450ms; }
.hero .hero__actions  { animation-delay: 1750ms; }

@keyframes hero-in {
  from { opacity: 0; translate: 0 1.25rem; }
  to   { opacity: 1; translate: 0 0; }
}

.hero__summary {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Sector strip -------------------------------------------------------------
   Full-bleed navy bar directly under the hero, as on the existing site, with
   the four sectors laid out as icon-and-label pairs rather than cards. */

.sector-strip {
  background: var(--secondary);
  color: var(--secondary-content);
  padding-block: 1.5rem;
}

.sector-strip .sectors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem clamp(1.5rem, 5vw, 4.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.sector-strip .sector {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--secondary-content);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  text-align: left;
}

.sector-strip .sector svg {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  color: var(--secondary-content);
  opacity: 0.95;
}

/* Anyone who has asked for less motion gets the finished state immediately.
   The global reduced-motion rule near the top of this file clamps durations,
   but these need their end state set explicitly or they would stay at
   opacity 0. */
@media (prefers-reduced-motion: reduce) {
  .hero__motif { animation: none; opacity: 0.30; }
  .hero__watermark { animation: none; opacity: 0.16; }
  .hero h1,
  .hero .hero__summary,
  .hero .hero__actions {
    animation: none;
    opacity: 1;
    translate: none;
  }
}

/* Why ELMECH with image and grid ------------------------------------------ */

.why-elmech {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .why-elmech { grid-template-columns: 1fr 1fr; }
}

.why-elmech__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.why-elmech__content h2 {
  color: var(--secondary);
  margin-bottom: 2rem;
}

.why-elmech__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.why-elmech__item {
  padding: 1.5rem 0;
}

.why-elmech__title {
  color: var(--primary);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.why-elmech__title-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--primary);
}

.why-elmech__item p {
  color: var(--base-content);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* About page hero layout --------------------------------------------------- */

.about-hero {
  padding-block: clamp(2rem, 6vw, 3.5rem);
}

.about-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .about-hero__grid { grid-template-columns: 0.85fr 1.15fr; }
  /* Sticky only in the two-column layout, where the image column trails the
     taller text column. On one column (mobile) sticky makes the image float
     over the text below it, so it stays a normal stacked block there. */
  .about-hero__image { position: sticky; top: 120px; }
}

.about-hero__image {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.about-hero__content .eyebrow {
  margin-bottom: 0.25rem;
}

.about-hero__content h1 {
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.about-hero__content h2 {
  color: var(--secondary);
  font-size: 1.125rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

.about-hero__subtitle {
  color: var(--primary);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.about-hero__content p {
  color: var(--base-content);
  margin-bottom: 0.85rem;
  line-height: 1.65;
  font-size: 0.9875rem;
}

.about-hero__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.about-hero__list li {
  margin-bottom: 0.85rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--base-content);
  line-height: 1.65;
  font-size: 0.9875rem;
}

.about-hero__list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.625rem;
  margin-top: 0.25rem;
}

/* Inner page header -------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: linear-gradient(135deg, var(--secondary) 0%, #002b55 100%);
  color: var(--secondary-content);
}
.page-head .eyebrow { color: var(--primary); }

.page-head--hero {
  padding-block: clamp(4rem, 12vw, 8rem);
  background: linear-gradient(135deg, rgba(0, 43, 85, 0.85) 0%, rgba(0, 43, 85, 0.85) 100%), url(/assets/img/logo-hero.webp) center / cover no-repeat;
  display: flex;
  align-items: center;
  min-height: 320px;
}

.page-head--hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

/* Long-form text ----------------------------------------------------------- */

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.5rem; color: var(--secondary); }
.prose h3 { margin-top: 2rem; color: var(--secondary); }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }

/* Cards and grids ---------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.card {
  padding: 1.25rem;
  background: var(--base-100);
  border: 1px solid var(--base-300);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card__title-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--primary);
}

.card p  { color: var(--base-content); opacity: 0.85; flex-grow: 1; font-size: 0.95rem; }

.card__link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color var(--transition-base);
}
.card__link:hover { color: var(--primary-strong); }

/* Sector tags under a service card ----------------------------------------- */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.tag {
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--base-300);
  border-radius: 999px;
  background: var(--base-200);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--base-content);
}

/* On the alternate-background section the tags need the opposite surface. */
.section--alt .tag { background: var(--base-100); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--secondary);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

/* Sector strip ------------------------------------------------------------- */

.sectors {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.sector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--base-100);
  border: 1px solid var(--base-300);
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--secondary);
}
.sector svg { width: 2rem; height: 2rem; color: var(--primary); }

/* Contact page ------------------------------------------------------------- */

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 18rem 1fr; gap: 3rem; }
}

.contact-details h2,
.contact-form-wrap h2 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.contact-details h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* Small text on white, so the accessible variant. */
  color: var(--primary-strong);
  margin-top: 1.25rem;
  margin-bottom: 0.375rem;
}

.contact-details address { font-style: normal; }
.contact-details p { margin-bottom: 0; font-size: 0.95rem; }

/* Form --------------------------------------------------------------------- */

.form { max-width: 38rem; }

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font: inherit;
  color: inherit;
  background: var(--base-100);
  border: 1px solid var(--base-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.field input:focus,
.field textarea:focus { border-color: var(--primary); }

.field textarea { resize: vertical; min-height: 7rem; }

/* Only styled as invalid once the field has been touched, so the form does not
   look broken the moment it loads. */
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--error); }

.field__error {
  min-height: 0;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--error);
}
.field__error:empty { display: none; }

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.75rem;
}
.field--check input { width: 1.125rem; height: 1.125rem; margin-top: 0.25rem; }
.field--check label { margin: 0; font-weight: 400; font-size: 0.9rem; }

.form-note { margin-top: 0.75rem; font-size: 0.8125rem; opacity: 0.7; }

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border-inline-start: 4px solid transparent;
}
.form-status:empty { display: none; }
.form-status[data-state="success"] {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-color: var(--success);
}
.form-status[data-state="error"] {
  background: color-mix(in srgb, var(--error) 10%, transparent);
  border-color: var(--error);
}

button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.contact-map {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.08);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.contact-map__link {
  padding: 1rem;
  background: var(--base-200);
  text-align: center;
  margin: 0;
}

.contact-map__link a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

.contact-map__link a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Services detail sections ------------------------------------------------- */

.services-detail {
  padding-block: 0;
}

.service-block {
  padding-block: clamp(3rem, 8vw, 5rem);
}

.service-block:nth-child(even) {
  background: var(--base-200);
}

.service-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }

  .service-block--text-first .service-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .service-block--image-first .service-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .service-block--image-first .service-image {
    order: -1;
  }
}

.service-content h2 {
  color: var(--secondary);
  margin-bottom: 1.25rem;
  font-size: 1.75rem;
}

.service-content p {
  color: var(--base-content);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 1.5rem;
}

.service-list li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--base-content);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.service-list li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.625rem;
  margin-top: 0.25rem;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Call to action ----------------------------------------------------------- */

.cta {
  padding-block: clamp(3rem, 8vw, 5rem);
  background: var(--secondary);
  color: var(--secondary-content);
  text-align: center;
}
.cta h2 { margin-bottom: 1rem; }
.cta p  { margin-bottom: 2rem; opacity: 0.9; }

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

.site-footer {
  padding-block: 3rem 1.5rem;
  background: #002b55;
  color: var(--secondary-content);
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-bottom: 2rem;
}

.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
  color: var(--primary);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a  { color: var(--secondary-content); text-decoration: none; }
.site-footer a:hover { color: var(--primary); text-decoration: underline; }

/* Icon sitting inline with text, nudged onto the baseline. */
.icon-inline { vertical-align: -3px; }

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  opacity: 0.8;
}

/* Content pending from the client. Deliberately conspicuous so it cannot ship
   by accident. Remove this rule once docs/CONTENT-REQUEST.md is answered. */
.placeholder {
  background: #fff3cd;
  color: #664d03;
  padding: 0.0625rem 0.375rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.875em;
}
.site-footer .placeholder,
.hero .placeholder,
.cta .placeholder { background: #ffe08a; color: #3d2c00; }

/* Scroll reveal ------------------------------------------------------------ */

/* Only applied when JS is present — the .js class is set by nav.js. Without it
   content is simply visible, which is the correct no-JS behaviour. */
.js .reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity var(--transition-slow) ease-out,
    transform var(--transition-slow) ease-out;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Without JavaScript the mobile menu cannot be toggled, so show it inline. */
html:not(.js) .nav__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
html:not(.js) .nav__toggle { display: none; }
