/* ==========================================================================
   Shamrock PCs — core stylesheet
   One file, no frameworks, no external fonts. Fast on Irish mobile networks.
   ========================================================================== */

:root {
  --bg:        #0a0d0b;
  --bg-2:      #101512;
  --surface:   #151c18;
  --surface-2: #1c2520;
  --line:      #26332c;

  --green:     #2fbf71;
  --green-hi:  #4ade8a;
  --green-dim: #1d7a48;
  --gold:      #f0b429;

  --text:      #e9f0eb;
  --muted:     #97a89e;
  --faint:     #6d7d74;

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1180px;

  --shadow:    0 10px 30px rgba(0, 0, 0, .45);
  --ring:      0 0 0 3px rgba(47, 191, 113, .35);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

a { color: var(--green-hi); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; font-weight: 750; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1rem; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #04140b; padding: 10px 16px; font-weight: 700;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 13, 11, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; gap: 20px;
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span i { color: var(--green); font-style: normal; }

.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a {
  color: var(--muted); padding: 8px 13px; border-radius: 8px;
  font-size: .95rem; font-weight: 600;
}
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--green-hi); }

.nav-toggle {
  display: none; margin-left: auto;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 40px; border-radius: 9px; cursor: pointer; font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px; margin: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { text-align: center; margin-top: 6px; }
}

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: .97rem; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #04140b; }
.btn-primary:hover { background: var(--green-hi); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-dim); background: var(--surface); }
.btn-sm { padding: 9px 15px; font-size: .89rem; }
.btn-block { width: 100%; }

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

.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 460px at 78% 8%, rgba(47, 191, 113, .17), transparent 62%),
    radial-gradient(700px 400px at 12% 92%, rgba(47, 191, 113, .09), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 46px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 34px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(47, 191, 113, .11); border: 1px solid rgba(47, 191, 113, .3);
  color: var(--green-hi); font-size: .82rem; font-weight: 700;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
  letter-spacing: .02em;
}
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 56ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .9rem; color: var(--muted); }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--green); flex: none; }

/* ---------- Sections ---------- */

.section { padding: clamp(52px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Product cards ---------- */

.grid-cards {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--green-dim); transform: translateY(-3px); }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--green); color: #04140b;
}
.badge.gold  { background: var(--gold); color: #241800; }
.badge.grey  { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 4px; }
.card-tag { font-size: .82rem; color: var(--green-hi); font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .05em; }

.spec-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: .91rem; }
.spec-list li {
  display: flex; gap: 10px; padding: 5px 0;
  border-bottom: 1px dashed rgba(38, 51, 44, .8);
  color: var(--muted);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list b { color: var(--text); font-weight: 600; flex: 1; text-align: right; }
.spec-list .k { min-width: 62px; color: var(--faint); }

.price-row { display: flex; align-items: baseline; gap: 10px; margin: auto 0 14px; }
.price { font-size: 1.72rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.price-was { font-size: .95rem; color: var(--faint); text-decoration: line-through; }
.price-note { font-size: .78rem; color: var(--faint); margin: -8px 0 14px; }

/* ---------- Filter bar ---------- */

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px; margin-bottom: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.chip {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 15px; border-radius: 999px; font-size: .88rem; font-weight: 650; cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--green-dim); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #04140b; }
.filters select {
  margin-left: auto; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 13px; font: inherit; font-size: .88rem;
}
@media (max-width: 620px) { .filters select { margin-left: 0; width: 100%; } }

.result-count { color: var(--faint); font-size: .9rem; margin-bottom: 18px; }

/* ---------- Feature / step grids ---------- */

.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.feature .ico {
  width: 42px; height: 42px; border-radius: 11px; margin-bottom: 15px;
  display: grid; place-items: center;
  background: rgba(47, 191, 113, .12); color: var(--green-hi);
}
.feature .ico svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .93rem; }

.step { position: relative; padding-left: 54px; }
.step .n {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: var(--green); color: #04140b;
}
.step h3 { margin-bottom: 5px; font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Tables ---------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .93rem; }
table.tbl th, table.tbl td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--text); font-weight: 700; background: var(--surface); }
table.tbl td { color: var(--muted); }
table.tbl tr:last-child td { border-bottom: 0; }

/* ---------- Accordion (FAQ) ---------- */

.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary {
  cursor: pointer; padding: 17px 22px; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; color: var(--green); font-size: 1.35rem; font-weight: 400; flex: none; }
.acc details[open] summary::after { content: "\2013"; }
.acc summary:hover { background: var(--surface-2); }
.acc .acc-body { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }
.acc .acc-body p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3.4vw, 34px);
}
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .89rem; font-weight: 650; margin-bottom: 6px; }
.field label .req { color: var(--green); }
.field .hint { font-size: .8rem; color: var(--faint); margin-top: 5px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font: inherit; font-size: .95rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-dim); }
::placeholder { color: var(--faint); }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-error {
  background: rgba(220, 68, 68, .13); border: 1px solid rgba(220, 68, 68, .42);
  color: #ffb4b4; border-radius: var(--radius-sm);
  padding: 12px 15px; margin: 0 0 14px; font-size: .9rem; line-height: 1.5;
}

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 4px; flex: none; width: 16px; height: 16px; accent-color: var(--green); }

.budget-scale { display: flex; flex-wrap: wrap; gap: 9px; }
.budget-scale label {
  flex: 1 1 130px; text-align: center; cursor: pointer;
  padding: 11px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); font-size: .88rem; font-weight: 650; margin: 0;
}
.budget-scale input { position: absolute; opacity: 0; pointer-events: none; }
.budget-scale input:checked + span { color: var(--green-hi); }
.budget-scale label:has(input:checked) { border-color: var(--green); background: rgba(47, 191, 113, .1); }

/* ---------- Configurator ---------- */

.cfg { display: grid; grid-template-columns: 1fr 370px; gap: 30px; align-items: start; }
@media (max-width: 940px) { .cfg { grid-template-columns: 1fr; } }

.cfg-parts {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(18px, 3vw, 28px);
}

.cfg-row {
  display: grid; grid-template-columns: 1fr 260px; gap: 18px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.cfg-row:first-child { padding-top: 0; }
.cfg-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 700px) { .cfg-row { grid-template-columns: 1fr; gap: 9px; } }

.cfg-label label { display: block; font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.cfg-help { display: block; font-size: .84rem; color: var(--faint); line-height: 1.45; }

.cfg-row select { width: 100%; }
.cfg-row select option.opt-off { color: #5a6660; }

/* Sticky running total */
.cfg-summary { position: sticky; top: 86px; }
@media (max-width: 940px) { .cfg-summary { position: static; } }

.cfg-summary-inner {
  background: linear-gradient(160deg, rgba(47, 191, 113, .10), rgba(47, 191, 113, .02));
  border: 1px solid rgba(47, 191, 113, .3);
  border-radius: var(--radius); padding: 24px;
}
.cfg-summary-inner h2 { font-size: 1.2rem; margin-bottom: 16px; }

.cfg-list { list-style: none; margin: 0 0 18px; padding: 0; font-size: .86rem; }
.cfg-list li {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 8px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px dashed rgba(38, 51, 44, .9);
}
.cfg-list li:last-child { border-bottom: 0; }
.cfg-k { color: var(--faint); font-size: .78rem; }
.cfg-v { color: var(--text); line-height: 1.35; }
.cfg-p { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.cfg-lead {
  font-size: .82rem; line-height: 1.5; margin: 0 0 12px;
  padding: 9px 12px 9px 30px; border-radius: var(--radius-sm); position: relative;
}
.cfg-lead::before {
  position: absolute; left: 11px; top: 9px; font-weight: 800;
}
.cfg-lead-in {
  background: rgba(47, 191, 113, .12); border: 1px solid rgba(47, 191, 113, .32); color: var(--green-hi);
}
.cfg-lead-in::before { content: "✓"; }
.cfg-lead-order {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.cfg-lead-order::before { content: "↻"; color: var(--faint); }

/* Grey out combinations that can't work */
.cfg-row select option:disabled,
.cfg-row select optgroup:disabled { color: #55605a; }

.cfg-warn {
  font-size: .84rem; line-height: 1.5; margin: 0 0 8px;
  padding: 10px 13px; border-radius: var(--radius-sm);
}
.cfg-warn-bad { background: rgba(220, 68, 68, .13); border: 1px solid rgba(220, 68, 68, .4); color: #ffb4b4; }
.cfg-warn-tip { background: rgba(240, 180, 41, .10); border: 1px solid rgba(240, 180, 41, .3); color: #f3ce7e; }

.cfg-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 16px; margin-top: 4px; border-top: 1px solid rgba(47, 191, 113, .3);
}
.cfg-total span { color: var(--muted); font-size: .9rem; }
.cfg-total strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.cfg-total-note { font-size: .78rem; color: var(--faint); margin: 8px 0 18px; line-height: 1.5; }

.cfg-summary button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Split layout (form + sidebar) ---------- */

.split { display: grid; grid-template-columns: 1.35fr .65fr; gap: 34px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Callouts ---------- */

.note {
  border-left: 3px solid var(--green); background: var(--surface);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted); font-size: .93rem; margin: 0 0 20px;
}
.note strong { color: var(--text); }
.note.gold { border-left-color: var(--gold); }

.cta-band {
  background: linear-gradient(135deg, rgba(47, 191, 113, .13), rgba(47, 191, 113, .04));
  border: 1px solid rgba(47, 191, 113, .26);
  border-radius: var(--radius); padding: clamp(28px, 4.5vw, 48px); text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 24px; }

/* ---------- Prose ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose > p { color: var(--muted); }

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

.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--line);
  padding: 52px 0 30px; margin-top: 0; font-size: .92rem;
}
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 38px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

.site-footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green-hi); }
.site-footer p { color: var(--muted); }

.foot-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--faint); font-size: .86rem;
}

.pay-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pay-row span {
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 11px; border-radius: 7px; font-size: .78rem; color: var(--muted); font-weight: 650;
}

/* ---------- Utilities ---------- */

.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 34px; }
.hide { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
