/* West Cork Pipe Engineering Ltd — wcpengineering.ie
   Static site. No external fonts, scripts, trackers or cookies.
   Scroll animations are pure CSS; browsers without support get the finished drawings. */

:root {
  --black: #0A0A0A;
  --char: #1C1B19;
  --red: #C8243A;
  --red-dark: #A51D30;
  --cream: #F4F1EA;
  --white: #FFFFFF;
  --muted: #6B675F;
  --muted-dark: #A39E95;
  --hair: #E6E1D6;
  --hair-dark: #34312C;

  --display: "Century Gothic", "Futura", "Avenir Next", "Avenir", "URW Gothic", "Trebuchet MS", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--char);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -9999px; background: var(--red); color: #fff; padding: 12px 18px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.kicker {
  font-family: var(--display); font-weight: 700;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.sub { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 14px 28px; border-radius: 999px;
  background: var(--red); color: #fff;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--red-dark); }
.more { color: var(--red); text-decoration: none; font-weight: 600; }
.more::after { content: " \203A"; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 56px; }
.site-header .mark img { width: 104px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .9rem; }
.site-nav .link { color: var(--muted); text-decoration: none; transition: color .15s ease; }
.site-nav .link:hover { color: var(--char); }
.site-nav .pill { background: var(--red); color: #fff; text-decoration: none; font-weight: 600; padding: 6px 16px; border-radius: 999px; }
.site-nav .pill:hover { background: var(--red-dark); }
@media (max-width: 560px) { .site-nav .link { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--black); color: #fff;
  min-height: min(84vh, 800px); display: flex; align-items: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 55%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .7) 45%, rgba(10, 10, 10, .3) 100%);
}
@media (max-width: 820px) {
  .hero::before { background: linear-gradient(180deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .72) 100%); }
}
.hero .wrap { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(72px, 12vw, 140px); }
.hero .kicker { color: rgba(255, 255, 255, .72); }
.hero h1 { font-size: clamp(2.4rem, 8vw, 5.25rem); line-height: 1.02; margin-top: 18px; max-width: 13ch; text-wrap: balance; }
.hero .lead { margin-top: 24px; max-width: 40ch; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, .86); line-height: 1.5; }
.hero .more { color: #fff; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.contact .ctas { justify-content: center; }

/* ---------- sections ---------- */
section { scroll-margin-top: 64px; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-title { font-size: clamp(2rem, 5vw, 3.25rem); text-align: center; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { border-radius: 24px; padding: clamp(28px, 4.5vw, 52px); }
.tile h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 14px; max-width: 16ch; }
.tile .sub { margin-top: 12px; max-width: 40ch; }
.tile ul { margin-top: 32px; }
.tile li { padding: 12px 0; border-top: 1px solid var(--hair); }
.tile-dark { background: var(--char); color: #fff; }
.tile-dark .kicker, .tile-dark .sub { color: var(--muted-dark); }
.tile-dark li { border-top-color: var(--hair-dark); }
.tile-light { background: var(--cream); }
.tile-light li { border-top-color: #DDD6C8; }

.photos { margin-top: 20px; }
.photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: var(--cream); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; margin: clamp(40px, 6vw, 64px) 0 0; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.facts div { border-top: 2px solid var(--char); padding-top: 18px; }
.facts div:first-child { border-top-color: var(--red); }
.facts dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- contact ---------- */
.contact { background: var(--cream); text-align: center; padding: clamp(80px, 11vw, 140px) 0; }
.contact h2 { font-size: clamp(2rem, 5vw, 3.25rem); }
.contact .sub { margin-top: 12px; font-size: 1.1rem; }
.contact .phone {
  display: block; width: fit-content; margin: clamp(32px, 5vw, 48px) auto 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.4rem, 9vw, 5rem); line-height: 1.05;
  text-decoration: none; letter-spacing: -0.01em; transition: color .2s ease;
}
.contact .phone:hover { color: var(--red); }
.contact .email { display: inline-block; margin-top: 12px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact .email:hover { color: var(--char); text-decoration: underline; text-underline-offset: 3px; }
.contact address { margin-top: 48px; font-style: normal; color: var(--muted); font-size: .95rem; line-height: 1.9; }

/* ---------- footer ---------- */
.site-footer { background: var(--white); color: var(--muted); padding: 40px 0 48px; font-size: .8125rem; border-top: 1px solid var(--hair); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
.site-footer .top img { width: 88px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--char); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .legal { margin-top: 20px; line-height: 1.7; max-width: 80ch; }
.site-footer .legal p + p { margin-top: 8px; }

/* ---------- privacy + 404 ---------- */
.page { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 110px); }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page .meta { margin: 12px 0 32px; color: var(--muted); font-size: .9rem; }
.page h2 { font-size: 1.25rem; margin: 40px 0 10px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page a { color: var(--red); }

/* =========================================================
   Motion. Only for browsers that support scroll-driven
   animation and visitors who haven't asked for less motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {

  @supports (animation-timeline: view()) {


    /* Gentle rise-in for headings and tiles. */
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
  }
}

@media print {
  .site-header, .btn, .hero-img { display: none !important; }
  body { color: #000; background: #fff; }
}
