/* Components: buttons, cards, client list, projects, steps, prices, forms, gallery */

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.3rem; border-radius: var(--radius-full);
  font-family: var(--font-heading); font-weight: 700; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--jds-red); color: #fff; }
.btn--primary:hover { background: var(--jds-red-bright); color: #fff; }
.btn--gold { background: var(--jds-gold); color: #1d1205; }
.btn--gold:hover { background: #ffc54a; color: #1d1205; }
.btn--outline { border-color: currentColor; color: var(--color-text); background: transparent; }
.btn--outline:hover { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.on-dark .btn--outline, .hero .btn--outline { color: #fff; }
.on-dark .btn--outline:hover, .hero .btn--outline:hover { background: #fff; color: var(--color-text); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.btn--lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ── Festoon of bulbs (decorative, brand colours) ──────── */
.festoon { position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none; }
.festoon path { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }
.festoon circle { filter: drop-shadow(0 0 5px currentColor); animation: bulb 3.2s ease-in-out infinite; }
@keyframes bulb { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .festoon circle { animation: none; } }

/* ── Who we work for ──────────────────────────────────── */
.clients { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; list-style: none; margin: 0; padding: 0; }
.clients li { display: flex; flex-direction: column; padding: 0.75rem 1.15rem; border: 1px solid var(--color-line); border-radius: var(--radius-md); background: #fff; min-width: 210px; }
.clients strong { font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.2; }
.clients span { font-size: 0.86rem; color: var(--color-text-light); }
.clients--council li { border-top: 4px solid var(--jds-green); }
.clients--commercial li { border-top: 4px solid var(--jds-orange); }
.client-groups { display: grid; gap: 1.6rem; }
.client-groups h3 { text-align: center; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-light); margin-bottom: 0.9rem; }

/* ── Cards ────────────────────────────────────────────── */
.card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-dark); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--color-text-light); }
.card__link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card__link::after { content: " →"; }

/* Project tiles */
.project-tile { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 3 / 4; background: var(--color-bg-dark); box-shadow: var(--shadow-md); }
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.project-tile:hover img { transform: scale(1.05); }
.project-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(8, 10, 24, 0.88)); }
.project-tile__text { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1rem; z-index: 1; }
.project-tile__text strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.15; }
.project-tile__text span { font-size: 0.9rem; color: #e6e1f2; }
.project-tile:hover { color: #fff; }

/* ── Steps ────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--spacing-md); list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; background: #fff; border-radius: var(--radius-md); padding: 1.4rem 1.3rem 1.3rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-line); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--jds-red); color: #fff; font-family: var(--font-heading); font-weight: 800; margin-bottom: 0.8rem; }
.steps li:nth-child(2)::before { background: var(--jds-orange); }
.steps li:nth-child(3)::before { background: var(--jds-green); }
.steps li:nth-child(4)::before { background: var(--color-text); }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { color: var(--color-text-light); margin: 0; font-size: 0.97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── Ticks list ───────────────────────────────────────── */
.ticks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.65rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--jds-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

/* ── Price table / price chips ────────────────────────── */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.price-table th { background: var(--color-bg-soft); font-family: var(--font-heading); font-size: 0.95rem; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table .note { display: block; font-weight: 400; font-size: 0.86rem; color: var(--color-text-light); }
.price-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.price-chips li { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-full); padding: 0.45rem 0.95rem; font-size: 0.95rem; }
.price-chips strong { color: var(--jds-red); }
.min-price { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.min-price div { background: var(--color-bg-dark); color: #fff; border-radius: var(--radius-md); padding: 1.1rem 1.3rem; }
.min-price span { display: block; font-size: 0.9rem; color: var(--color-on-dark-muted); }
.min-price strong { font-family: var(--font-heading); font-size: 2rem; color: var(--jds-gold); }

/* ── Notice ───────────────────────────────────────────── */
.notice { border-left: 4px solid var(--jds-orange); background: var(--color-bg-soft); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── Forms ────────────────────────────────────────────── */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.4rem, 3vw, 2.2rem); color: var(--color-text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label, .form-legend { font-weight: 700; font-size: 0.95rem; }
.form-field .opt { font-weight: 400; color: var(--color-text-light); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 0.75rem 0.85rem; border: 1.5px solid #CFC7D8; border-radius: var(--radius-sm); background: #fff; min-height: 48px;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--jds-red); box-shadow: 0 0 0 3px rgba(198, 33, 39, 0.15); }
.form-hint { font-size: 0.85rem; color: var(--color-text-light); margin: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border: 1.5px solid #CFC7D8; border-radius: var(--radius-full); font-size: 0.95rem; cursor: pointer; background: #fff; }
.choice input:checked + span { border-color: var(--jds-red); background: #FFF0EF; color: var(--jds-red); font-weight: 700; }
.choice input:focus-visible + span { outline: 3px solid var(--jds-gold); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status--ok { background: #E7F6EE; color: var(--jds-green-dark); }
.form-status--error { background: #FDECEC; color: var(--jds-red); }
.form-status--pending { background: var(--color-bg-soft); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.check input { width: 20px; height: 20px; margin-top: 0.15rem; flex: 0 0 auto; accent-color: var(--jds-red); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* Quote band (dark section with form) */
.quote-band__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--spacing-xl); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.contact-list .ico { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--jds-gold); font-weight: 800; }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.contact-list span { display: block; font-size: 0.88rem; color: var(--color-on-dark-muted); }
@media (max-width: 960px) { .quote-band__grid { grid-template-columns: 1fr; gap: var(--spacing-lg); } }

/* ── Gallery + lightbox ───────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filters button { border: 1.5px solid #CFC7D8; background: #fff; border-radius: var(--radius-full); padding: 0.5rem 1rem; font-weight: 700; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--color-text); color: #fff; border-color: var(--color-text); }
.gallery { columns: 3 260px; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; }
.gallery figure[hidden] { display: none; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius-md); overflow: hidden; }
.gallery img { width: 100%; transition: transform var(--transition-slow); }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.88rem; color: var(--color-text-light); padding: 0.45rem 0.1rem 0; }

.media-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.media-row > * { border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-dark); }
.media-row img, .media-row video { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.media-row button { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.media-row .media-row__video video { aspect-ratio: 3 / 4; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); max-height: 94vh; }
.lightbox::backdrop { background: rgba(6, 8, 18, 0.9); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: var(--radius-md); }
.lightbox figcaption { color: #fff; text-align: center; padding: 0.7rem 1rem 0; font-size: 0.95rem; }
.lightbox__close, .lightbox__nav { position: fixed; top: 1rem; right: 1rem; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.6rem; cursor: pointer; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1rem; right: auto; }
.lightbox__nav--next { right: 1rem; }

/* Project sections (Our work) */
.project { padding-block: var(--spacing-lg); border-top: 1px solid var(--color-line); }
.project:first-of-type { border-top: 0; }
.project__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.2rem; }
.project__head h2 { margin: 0; }
.project__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { display: inline-block; padding: 0.25rem 0.7rem; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 700; background: var(--color-bg-soft); border: 1px solid var(--color-line); }
.tag--green { background: #E7F6EE; border-color: #BFE6D0; color: var(--jds-green-dark); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--jds-red) 0%, #7d1217 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 0.3rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: #FBE3E3; }
.cta-band .btn--outline { color: #fff; }
.cta-band .btn--outline:hover { background: #fff; color: var(--jds-red); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
