/* RODA Design and Build - site styles
   Colours and fonts match the RODA brand kit (site ink + ochre). */

:root {
  --ink: #141414;
  --paper: #F4F2EE;
  --concrete: #E3E0DA;
  --steel: #5E5C58;
  --ochre: #D39B2A;
  --ochre-press: #B8841F;
  --body: #3D3B38;
  --line: #D6D2CB;
  --line-2: #BDB9B2;
  --soft: #C9C6C0;
  --muted-dark: #A9A59E;
  --head: 'Barlow Semi Condensed', 'Roboto Condensed', 'Arial Narrow', 'DejaVu Sans Condensed', sans-serif;
  --text: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(24px, 5.5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1; }
p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 16px; background: var(--ochre); color: var(--ink); font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Logo ---------- */
.logo { display: block; flex: none; width: 52px; height: 52px; color: var(--ink); }
.logo svg { display: block; width: 100%; height: 100%; }
.footer-logo { width: 112px; height: auto; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a:not(.btn) { font-size: 17px; font-weight: 500; text-decoration: none; }
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline; text-decoration-color: var(--ochre);
  text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0;
  background: transparent; border: 1px solid var(--ink); color: var(--ink); cursor: pointer;
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 28px;
  background: var(--ochre); color: var(--ink);
  font-family: var(--text); font-size: 18px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; border: 0;
}
.btn:hover { background: var(--ochre-press); }
.btn svg { flex: none; }
.btn--sm { min-height: 48px; padding: 0 20px; font-size: 16px; gap: 10px; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding-bottom: 4px; border-bottom: 2px solid var(--ochre);
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.text-link:hover { border-bottom-color: var(--ink); }
.dark .text-link:hover { border-bottom-color: var(--paper); }

/* ---------- Shared section styles ---------- */
.section { padding-block: clamp(72px, 9vw, 120px); }
.dark { background: var(--ink); color: var(--paper); }
.alt { background: var(--concrete); }
.bar { width: 56px; height: 6px; background: var(--ochre); }
.num { font-size: 15px; font-weight: 600; color: var(--steel); }
.h1 { font-size: clamp(46px, 6vw, 84px); line-height: 0.98; }
.h2 { font-size: clamp(40px, 4.2vw, 56px); }
.h3 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--body); }
.dark .lead { color: var(--soft); }
.small { font-size: 16px; color: var(--muted-dark); }
.stack { display: flex; flex-direction: column; }
.tag { padding: 4px 10px; background: var(--ochre); color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.tag--quiet { background: transparent; color: var(--steel); border: 1px solid var(--line-2); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.hero-text { grid-column: span 7; display: flex; flex-direction: column; gap: 32px; }
.hero-text .lead { max-width: 620px; }

/* Photo hero: three photos fade slowly behind the text (6 seconds each) */
.hero--photo { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(88px, 11vw, 168px); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: hero-fade 18s infinite both;
}
.hero-media img:nth-child(2) { animation-delay: 6s; }
.hero-media img:nth-child(3) { animation-delay: 12s; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 20, 20, 0.9) 0%, rgba(20, 20, 20, 0.72) 48%, rgba(20, 20, 20, 0.35) 100%);
}
@keyframes hero-fade {
  0% { opacity: 0; }
  8.33% { opacity: 1; }
  33.33% { opacity: 1; }
  41.67% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; opacity: 0; }
  .hero-media img:first-child { opacity: 1; }
}

/* Closing section with a still photo behind it */
.cta--photo { position: relative; overflow: hidden; isolation: isolate; }
.cta-media { position: absolute; inset: 0; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 20, 0.8); }

/* ---------- Key facts strip ---------- */
.facts-wrap { border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 44px 32px 44px 40px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact-num { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.fact-num--word { font-size: clamp(32px, 3.4vw, 48px); }
.fact-label { font-size: 17px; color: var(--steel); }

/* ---------- Section heading row ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 48px; }

/* ---------- Service cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.card { display: flex; flex-direction: column; gap: 16px; padding: 32px 28px 40px; border-left: 1px solid var(--line); }
.card:nth-child(4n+1) { border-left: 0; padding-left: 0; }
.card:nth-child(4n) { padding-right: 0; }
.card p { font-size: 17px; color: var(--body); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Working with us (home, 2x2) ---------- */
.split-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.split-left { grid-column: span 4; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.split-left .lead { max-width: 360px; }
.split-right { grid-column: 6 / span 7; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.point { display: flex; flex-direction: column; gap: 14px; padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line-2); }
.point:nth-child(2n) { padding: 32px 0 40px 32px; border-left: 1px solid var(--line-2); }
.point:nth-last-child(-n+2) { border-bottom: 0; }
.point p { font-size: 17px; color: var(--body); }

/* ---------- Closing call to action ---------- */
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: end; }
.cta-text { grid-column: span 7; display: flex; flex-direction: column; gap: 24px; }
.cta-text .lead { max-width: 620px; }
.cta-action { grid-column: 9 / span 4; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cta-title { font-size: clamp(44px, 5vw, 72px); }

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }
.page-head .stack { gap: 24px; }
.page-head .h1 { font-size: clamp(44px, 5.5vw, 76px); }
.page-head .lead { max-width: 720px; }

/* ---------- Services list ---------- */
.services { border-top: 1px solid var(--ink); }
.service { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 16px; padding-block: 40px; border-bottom: 1px solid var(--line); }
.service:last-child { border-bottom: 0; }
.service-title { grid-column: span 5; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.service-body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 12px; }
.service-body .on-screen { font-size: 21px; font-weight: 500; line-height: 1.4; }
.service-body .detail { font-size: 17px; color: var(--body); }

/* ---------- Our work ---------- */
.glance { display: flex; flex-wrap: wrap; gap: 12px 40px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); font-size: 17px; color: var(--steel); }
.glance strong { font-family: var(--head); font-size: 32px; font-weight: 700; color: var(--ink); margin-right: 8px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.photo { display: flex; flex-direction: column; gap: 12px; }
.photo img, .photo .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo .ph { display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--concrete); color: var(--steel); font-size: 15px; font-weight: 600; text-align: center; }
.photo figcaption { font-size: 16px; font-weight: 600; }

/* ---------- Working with us page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--ink); }
.step-num { font-family: var(--head); font-weight: 700; font-size: 48px; line-height: 1; }
.step p { font-size: 17px; color: var(--body); }
.after-steps { margin-top: 40px; max-width: 760px; font-size: 18px; color: var(--body); }
.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.standard { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.standard p { font-size: 17px; color: var(--body); }
.band { display: flex; flex-direction: column; gap: 20px; }
.band-text { max-width: 900px; font-family: var(--head); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.contact-list { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.checklist { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.checklist li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.checklist li::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--ochre); transform: translateY(-2px); }
.checklist .opt { color: var(--steel); font-size: 16px; }
.contact-panel { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 28px; padding: 40px; }
.contact-panel .btn { width: 100%; }
.contact-item { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid #2E2D2B; }
.contact-item .label { font-size: 15px; font-weight: 600; color: var(--muted-dark); }
.contact-item a, .contact-item p { font-size: 18px; color: var(--paper); }
.contact-item a { text-decoration-color: var(--ochre); text-underline-offset: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid #2E2D2B; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; padding-block: 48px 32px; }
.footer-id { display: flex; align-items: center; gap: 20px; }
.footer-id p, .footer-contact { font-size: 15px; line-height: 1.6; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.footer-contact a { color: var(--soft); text-decoration: none; }
.footer-contact a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--ochre); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; padding-block: 0 48px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.footer-nav a { font-size: 15px; color: var(--soft); text-decoration: none; }
.footer-nav a:hover { color: var(--paper); }
.footer-copy { font-size: 14px; }

/* ================= Tablet ================= */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(n) { border-left: 1px solid var(--line); padding: 32px 0 40px 28px; }
  .card:nth-child(2n+1) { border-left: 0; padding: 32px 28px 40px 0; }
  .card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .split-left { grid-column: 1 / -1; margin-bottom: 40px; }
  .split-right { grid-column: 1 / -1; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-list { grid-column: 1 / -1; }
  .contact-panel { grid-column: 1 / -1; }
}

/* ================= Menu collapses ================= */
@media (max-width: 900px) {
  .header-inner { min-height: 72px; }
  .logo { width: 44px; height: 44px; }
  .menu-toggle { display: flex; }
  .js .site-nav { display: none; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .js .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .site-nav .btn { margin-top: 20px; min-height: 56px; }
  .hero-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .hero-text { grid-column: auto; }
  .hero-text { gap: 24px; }
  .hero-media::after { background: rgba(20, 20, 20, 0.7); }
  .cta-text, .cta-action { grid-column: 1 / -1; }
  .service-title, .service-body { grid-column: 1 / -1; }
  .steps, .standards { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { flex-direction: column; }
  .footer-contact { align-items: flex-start; text-align: left; }
}

/* ================= Phone ================= */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .btn { width: 100%; min-height: 56px; font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:first-child { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 16px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { flex-direction: column; gap: 6px; border-bottom: 0; }
  .fact-num { min-width: 96px; font-size: 48px; }
  .fact:last-child .fact-num { font-size: 36px; }
  .cards { grid-template-columns: 1fr; }
  .cards > .card:nth-child(n) { border-left: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
  .cards > .card:last-child { border-bottom: 0; }
  .points { grid-template-columns: 1fr; }
  .points > .point:nth-child(n) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .points > .point:last-child { border-bottom: 0; }
  .photos { grid-template-columns: 1fr; }
  .contact-panel { padding: 28px 24px; }
  .glance strong { font-size: 28px; }
}

/* Enlargeable image (layout plan) */
.photo-link { display: block; }
.photo-link:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.cap-link { margin-left: 8px; font-weight: 400; font-size: 15px; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.cap-link:hover { color: var(--ink); }
