/* Royal Clover Contracting Services - site styles (static build 2026-10-08) */
:root {
  --aubergine: #2a1446;
  --violet: #6b35c2;
  --violet-deep: #55289e;
  --bronze: #9a7b3e;
  --bronze-soft: #e9dfc9;
  --porcelain: #f5f4f8;
  --ink: #1d1a22;
  --muted: #5d5868;
  --line: #e4e1ea;
  --white: #ffffff;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --wrap: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet-deep); text-underline-offset: 3px; }
a:hover { color: var(--aubergine); }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--aubergine); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--serif); color: var(--aubergine); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.kicker { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--bronze); margin: 0 0 .4rem; }

/* Header */
.topbar { background: var(--aubergine); color: #eee7f7; font-size: .875rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { width: 230px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--violet); }
.nav .has-menu { position: relative; }
.nav .menu { display: none; position: absolute; top: 100%; left: -1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem 0; min-width: 240px; box-shadow: 0 18px 40px rgba(42,20,70,.12); }
.nav .has-menu:hover .menu, .nav .has-menu:focus-within .menu { display: block; }
.nav .menu a { display: block; padding: .45rem 1.1rem; font-weight: 400; }
.header-cta { display: flex; align-items: center; gap: .9rem; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .75rem; font: 500 .95rem var(--sans); color: var(--aubergine); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.5rem; border-radius: 999px; font: 600 .95rem/1.2 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); color: #fff; }
.btn-outline { border-color: var(--aubergine); color: var(--aubergine); background: transparent; }
.btn-outline:hover { background: var(--aubergine); color: #fff; }
.btn-light { background: #fff; color: var(--aubergine); }
.btn-light:hover { background: var(--bronze-soft); color: var(--aubergine); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* Hero */
.hero { position: relative; background: var(--aubergine); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,20,70,.92) 0%, rgba(42,20,70,.78) 42%, rgba(42,20,70,.15) 100%); }
.hero .wrap { position: relative; padding-top: clamp(4rem, 10vw, 8rem); padding-bottom: clamp(4rem, 10vw, 8rem); }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { color: #e6def3; }
.hero .kicker { color: #d9c49a; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2rem; padding: 0; list-style: none; color: #e6def3; font-size: .95rem; }
.hero-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d9c49a; margin-right: .55rem; vertical-align: middle; }
.page-hero { background: var(--porcelain); border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 3.2rem; padding-bottom: 3rem; }
.page-hero.with-image .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }
.page-hero figure { margin: 0; }
.page-hero figure img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #b3adbd; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.alt { background: var(--porcelain); }
.section.dark { background: var(--aubergine); color: #eee7f7; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split.media-left > :first-child { order: 0; }
.rule-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rule-list li { padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--line); position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 10px; height: 2px; background: var(--bronze); }
.section.dark .rule-list { border-color: rgba(255,255,255,.15); }
.section.dark .rule-list li { border-color: rgba(255,255,255,.15); }

/* Services index rows (not cards) */
.service-rows { border-top: 1px solid var(--line); }
.service-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.service-row img { border-radius: var(--radius-sm); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.service-row h3 { margin-bottom: .3rem; }
.service-row p { margin: 0; color: var(--muted); }
.service-row .go { font-weight: 600; color: var(--violet); white-space: nowrap; }
.service-row:hover h3 { color: var(--violet); }

/* Steps: real sequence */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.6rem 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--bronze); padding-top: 1rem; }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: 2.2rem; color: var(--bronze); line-height: 1; display: block; margin-bottom: .4rem; }
.steps strong { display: block; color: var(--aubergine); font-size: 1.05rem; margin-bottom: .25rem; }
.section.dark .steps strong { color: #fff; }

/* Gallery */
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.gallery-filters button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1.1rem; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.gallery-filters button[aria-pressed="true"] { background: var(--aubergine); color: #fff; border-color: var(--aubergine); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-grid figure { margin: 0; }
.gallery-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery-grid button:hover img { transform: scale(1.03); }
.gallery-grid figcaption { font-size: .88rem; color: var(--muted); padding: .5rem .1rem 0; }
.gallery-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.gallery-strip a:first-child { grid-row: span 2; }
.gallery-strip a { display: block; min-height: 180px; }
.lightbox { position: fixed; inset: 0; background: rgba(20,10,34,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 4rem 1rem 2rem; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: #e6def3; text-align: center; margin-top: .8rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; }
.lightbox .lb-next { right: 1rem; top: 50%; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--aubergine); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--bronze); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: .8rem 0 0; color: var(--muted); }

/* Facts table (government) */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 40%; color: var(--muted); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; list-style: none; margin: 0; }
.chips li { border: 1px solid var(--bronze); color: var(--aubergine); border-radius: 999px; padding: .3rem .9rem; font-size: .9rem; }

/* Article */
.article { font-size: 1.05rem; }
.article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul { padding-left: 1.2rem; }
.post-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.post-list li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.post-list a { text-decoration: none; }
.post-list h3 { margin-bottom: .3rem; }

/* Forms */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 500; font-size: .92rem; margin-bottom: .35rem; color: var(--aubergine); }
input, select, textarea { width: 100%; font: 400 1rem var(--sans); color: var(--ink); padding: .75rem .85rem; border: 1px solid #cfcad8; border-radius: var(--radius-sm); background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: 2px solid rgba(107,53,194,.25); outline-offset: 0; }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: .8rem; }
.notice { border-left: 4px solid var(--bronze); background: var(--porcelain); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* CTA band */
.cta-band { background: var(--aubergine); color: #eee7f7; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-top: 3.2rem; padding-bottom: 3.2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; }

/* Footer */
.site-footer { background: #1a0d2c; color: #cfc6dd; font-size: .93rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.site-footer h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: #fff; margin-bottom: .8rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #e6def3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-logo { background: #fff; border-radius: var(--radius-sm); padding: .6rem; display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 180px; }
.legal { border-top: 1px solid rgba(255,255,255,.12); }
.legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-top: 1.2rem; padding-bottom: 1.2rem; grid-template-columns: none; font-size: .85rem; color: #a99fb9; }

/* Mobile call bar */
.mobile-bar { display: none; }

@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: .5rem 20px 1rem; max-height: calc(100vh - 84px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav .has-menu > a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav .menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 .4rem .8rem; min-width: 0; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .split, .page-hero.with-image .wrap { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 140px minmax(0, 1fr); }
  .service-row .go { display: none; }
}
@media (max-width: 640px) {
  body { padding-bottom: 64px; }
  .brand img { width: 150px; }
  .site-header .wrap { min-height: 70px; }
  .topbar .email { display: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(42,20,70,.62) 0%, rgba(42,20,70,.9) 70%); }
  .hero h1 { max-width: none; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: .8rem; }
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-strip a:first-child { grid-column: span 2; grid-row: auto; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); }
  .mobile-bar a { padding: 1.05rem .5rem; text-align: center; font-weight: 600; text-decoration: none; }
  .mobile-bar a:first-child { color: var(--aubergine); }
  .mobile-bar a:last-child { background: var(--violet); color: #fff; }
}
.section.dark a, .cta-band a:not(.btn) { color: #e9dfc9; }
.section.dark a:hover { color: #fff; }
.service-row.no-img { grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 980px) { .service-row.no-img { grid-template-columns: 1fr; } }

/* Accessibility fixes (2026-10-08 review) */
html { scroll-padding-top: 130px; }
.kicker { color: #7a5f2a; }
.hero .kicker { color: #d9c49a; }
input, select, textarea { border-color: #8f8899; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }
.site-header .wrap { padding-top: .45rem; padding-bottom: .45rem; }
.brand img { width: 210px; }
.hero h1 { max-width: 18ch; }
.btn-outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--aubergine); }
.lightbox .lb-prev, .lightbox .lb-next { transform: translateY(-50%); }
.mobile-bar a:first-child { border-right: 1px solid var(--line); }
@media (max-width: 640px) {
  html { scroll-padding-top: 90px; }
  body { padding-bottom: 0; }
  .legal .wrap { padding-bottom: calc(1.2rem + 64px); }
  .brand img { width: 165px; }
  .topbar a, .crumbs a { display: inline-block; padding-top: .45rem; padding-bottom: .45rem; }
  .site-footer li a { display: inline-block; padding-top: .3rem; padding-bottom: .3rem; }
}
.legal .ai-note { flex-basis: 100%; }
.legal .ai-note a { color: #cfc6dd; text-decoration: underline; }
.hero-media::after { background: linear-gradient(90deg, rgba(42,20,70,.86) 0%, rgba(42,20,70,.62) 38%, rgba(42,20,70,.12) 70%, rgba(42,20,70,0) 100%); }
@media (max-width: 640px) { .hero-media::after { background: linear-gradient(180deg, rgba(42,20,70,.45) 0%, rgba(42,20,70,.82) 60%); } }

/* Gallery sections (2026-10-08): all work organized by type of project */
.gallery-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; padding: .6rem 0; }
.gallery-nav a { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .45rem 1rem; font: 500 .9rem var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; }
.gallery-nav a:hover, .gallery-nav a:focus-visible { background: var(--aubergine); color: #fff; border-color: var(--aubergine); }
.gallery-nav a span { color: var(--muted); font-weight: 400; margin-left: .25rem; }
.gallery-nav a:hover span, .gallery-nav a:focus-visible span { color: #d9cfe8; }
.gallery-section { scroll-margin-top: 140px; margin-bottom: 3rem; }
.gallery-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: .7rem; margin-bottom: 1.2rem; }
.gallery-section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.gallery-section-head p { margin: 0; color: var(--muted); font-size: .95rem; min-width: 0; }
.gallery-section-head a { color: var(--violet-deep); font-weight: 500; }
.gallery-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.gallery-card { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-left: 4px solid var(--bronze); border-radius: var(--radius-sm); background: #fff; color: var(--ink); text-decoration: none; min-width: 0; }
.gallery-card strong { font: 500 1.05rem var(--sans); }
.gallery-card span { color: var(--muted); font-size: .88rem; }
.gallery-card:hover, .gallery-card:focus-visible { border-left-color: var(--violet); box-shadow: 0 4px 16px rgba(42,20,70,.08); }
.legal .trade-note { flex-basis: 100%; }
@media (max-width: 640px) { .gallery-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; } .gallery-section { scroll-margin-top: 90px; } }