/* ============================================================
   RED SAND SUPPLIES - STYLESHEET  (design refresh v2)
   Brand: RSS green + RSS red | Type: Barlow (display) + Inter
   ============================================================ */

:root {
  --green: #0e6b2f;
  --green-dark: #094d21;
  --green-deep: #0c2415;
  --green-light: #e9f4ed;
  --red: #c4130b;
  --red-dark: #9c0f08;
  --ink: #16211b;
  --grey: #5b665f;
  --line: #e1e8e3;
  --bg: #f6f8f6;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(12, 36, 21, .07), 0 4px 14px rgba(12, 36, 21, .05);
  --shadow-lg: 0 8px 30px rgba(12, 36, 21, .16);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Barlow", "Segoe UI", system-ui, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar ---------- */
.topbar { background: var(--green-deep); color: #cfe2d6; font-size: .8rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; flex-wrap: wrap; gap: 4px 16px; padding-top: 5px; padding-bottom: 5px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: #8fd4a8; }
.topbar .tb-contact { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- header / nav ---------- */
header.site { background: var(--white); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 50; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; }
.logo { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.logo img.logo-img { height: 84px; width: auto; }
.logo .logo-mark { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; letter-spacing: -1px; border: 3px solid var(--green-dark); flex: none; }
.logo .logo-text { line-height: 1.12; }
.logo .logo-text b { color: var(--red); font-size: 1.3rem; display: block; font-family: var(--font-head); font-weight: 800; letter-spacing: .2px; }
.logo .logo-text span { color: var(--green-dark); font-size: .62rem; text-transform: uppercase; letter-spacing: .9px; font-weight: 600; }

nav.main { display: flex; align-items: center; gap: 2px; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; padding: 10px 11px; border-radius: 8px; position: relative; }
nav.main a:hover { color: var(--green-dark); background: var(--green-light); }
nav.main a.active { color: var(--green-dark); }
nav.main a.active::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--red); }
nav.main a.cta { background: var(--red); color: #fff; margin-left: 10px; padding: 12px 18px; border-radius: 9px; box-shadow: 0 2px 8px rgba(196, 19, 11, .3); }
nav.main a.cta:hover { background: var(--red-dark); color: #fff; }
nav.main a.cta.active::after { display: none; }
nav.main a .badge { background: #fff; color: var(--red); border-radius: 10px; font-size: .68rem; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; display: none; font-weight: 800; }
nav.main a .badge.on { display: inline-block; }

.burger { display: none; background: none; border: 2px solid var(--line); border-radius: 9px; padding: 9px 11px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 3px; background: var(--green-dark); margin: 4px 0; border-radius: 2px; }

/* products dropdown */
.nav-item.has-sub { position: relative; display: inline-block; }
.nav-item.has-sub .caret { font-size: .7em; opacity: .6; }
.nav-item.has-sub .sub { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-lg); min-width: 200px; padding: 8px; display: none; z-index: 55; }
.nav-item.has-sub:hover .sub, .nav-item.has-sub.open-sub .sub { display: block; }
.nav-item.has-sub .sub a { display: block; text-transform: none; letter-spacing: 0; font-size: .9rem; padding: 10px 13px; border-radius: 8px; }
.nav-item.has-sub .sub a.sub-active { background: var(--green-light); color: var(--green-dark); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(100deg, rgba(7, 38, 19, .94) 0%, rgba(9, 65, 30, .84) 46%, rgba(9, 77, 33, .38) 100%), url("../images/hero-yard.jpg") center 60%/cover no-repeat, linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; position: relative; }
.hero .wrap { padding: 96px 24px 104px; position: relative; z-index: 1; max-width: 1160px; }
.hero .kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(196, 19, 11, .95); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin: 20px 0 14px; font-weight: 800; letter-spacing: -.5px; max-width: 640px; }
.hero h1 .accent { color: #ffb4ae; }
.hero p.lead { max-width: 540px; font-size: 1.12rem; color: #dcefe3; font-weight: 400; }
.hero .actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.page-hero { background: linear-gradient(115deg, var(--green-deep) 0%, var(--green-dark) 55%, #11602c 100%); color: #fff; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .05); }
.page-hero .wrap { padding: 58px 24px; position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.3px; }
.page-hero h1::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin-top: 14px; }
.page-hero p { color: #cfe2d6; max-width: 660px; margin-top: 14px; font-size: 1.02rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 13px 24px; border-radius: 9px; font-weight: 700; text-decoration: none; border: none; cursor: pointer; font-size: .85rem; font-family: var(--font); letter-spacing: .03em; text-transform: uppercase; transition: transform .14s, box-shadow .14s, background .14s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(196, 19, 11, .3); }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border: 2px solid rgba(255, 255, 255, .55); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { background: #fff; color: var(--green-dark); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-sm { padding: 9px 15px; font-size: .74rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- sections ---------- */
section.block { padding: 76px 0; }
section.block.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.sec-head .eyebrow, .eyebrow { display: block; color: var(--red); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; font-family: var(--font); }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--green-deep); font-weight: 800; letter-spacing: -.3px; }
.sec-head h2 em { color: var(--red); font-style: normal; }
.sec-head p { color: var(--grey); margin-top: 12px; font-size: 1rem; }
.rule { width: 56px; height: 4px; background: var(--red); border-radius: 2px; margin: 16px auto 0; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.swatch { position: relative; overflow: hidden; }
.card .swatch { height: 172px; }
.card .swatch .cat-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .95); color: var(--green-dark); font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.card .body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.card h3 { color: var(--green-deep); font-size: 1.14rem; font-weight: 700; }
.card p { color: var(--grey); font-size: .89rem; flex: 1; line-height: 1.55; }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; }

.svc { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; transition: transform .18s, box-shadow .18s; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc .ic { width: 54px; height: 54px; border-radius: 14px; background: var(--green-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.svc .ic svg { stroke: var(--green); }
.svc h3 { color: var(--green-deep); margin-bottom: 9px; font-size: 1.12rem; font-weight: 700; }
.svc p { color: var(--grey); font-size: .9rem; }
.svc ul { margin: 14px 0 0 18px; color: var(--grey); font-size: .88rem; }
.svc ul li { margin: 5px 0; }
.svc ul li::marker { color: var(--red); }

/* how it works strip */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.stepc { text-align: center; padding: 10px 18px; }
.stepc .n { width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(196, 19, 11, .3); }
.stepc h3 { color: var(--green-deep); font-size: 1.1rem; margin-bottom: 6px; }
.stepc p { color: var(--grey); font-size: .89rem; }

/* stat strip */
.stats { background: var(--green-deep); color: #fff; position: relative; }
.stats::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--green)); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 42px 24px; text-align: center; }
.stats b { display: block; font-size: 2.6rem; color: #fff; font-family: var(--font-head); font-weight: 800; line-height: 1.1; }
.stats span { color: #9fc4ac; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* CTA band */
.cta-band { background: linear-gradient(115deg, var(--red-dark), var(--red)); color: #fff; }
.cta-band .wrap { padding: 52px 24px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.cta-band h2 { font-size: 1.8rem; font-weight: 800; }
.cta-band p { color: #ffd9d6; margin-top: 4px; }

/* ---------- forms ---------- */
.panel { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .84rem; color: var(--ink); display: block; margin-bottom: 6px; }
label .req { color: var(--red); }
input, select, textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; font-family: var(--font); font-size: .95rem; background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 107, 47, .13); }
textarea { resize: vertical; min-height: 100px; }
.hint { font-size: .78rem; color: var(--grey); margin-top: 4px; }
.form-msg { border-radius: 10px; padding: 15px 17px; margin-top: 16px; font-size: .92rem; display: none; }
.form-msg.ok { display: block; background: var(--green-light); color: var(--green-dark); border: 1px solid #bcdcc8; }
.form-msg.err { display: block; background: #fdecea; color: var(--red-dark); border: 1px solid #f3c0bc; }

/* ---------- calculator ---------- */
.calc-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.calc-result { background: linear-gradient(150deg, var(--green-deep), var(--green-dark)); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.calc-result h3 { color: #9fc4ac; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font); font-weight: 700; }
.calc-result .big { font-size: 3rem; font-weight: 800; margin: 6px 0 2px; font-family: var(--font-head); line-height: 1; }
.calc-result .big small { font-size: 1.2rem; font-weight: 600; color: #9fc4ac; }
.calc-result .sub { color: #cfe2d6; font-size: .9rem; margin-bottom: 10px; }
.calc-result hr { border: none; border-top: 1px solid rgba(255, 255, 255, .18); margin: 18px 0; }
.calc-note { background: #fff8e8; border: 1px solid #eedfb0; color: #7a5c12; border-radius: 10px; padding: 14px 16px; font-size: .86rem; margin-top: 18px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.toggle input { width: auto; }

/* ---------- quote basket ---------- */
.basket-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.basket-table th { text-align: left; color: var(--grey); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 9px 10px; border-bottom: 2px solid var(--line); }
.basket-table td { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.basket-table td input, .basket-table td select { padding: 8px 10px; }
.basket-table .del { background: none; border: none; color: var(--red); cursor: pointer; font-size: 1.1rem; font-weight: 700; }
.basket-empty { text-align: center; color: var(--grey); padding: 34px 12px; }
.qty-cell { max-width: 110px; }
.unit-cell { max-width: 120px; }
.step-num { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; align-items: center; justify-content: center; font-weight: 800; margin-right: 12px; font-size: .95rem; font-family: var(--font-head); flex: none; }
h2.step { display: flex; align-items: center; color: var(--green-deep); font-size: 1.3rem; margin-bottom: 18px; font-weight: 800; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 25, 15, .6); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(2px); }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: var(--radius); max-width: 600px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal .pm-media { display: flex; gap: 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.modal .pm-shot { flex: 1; height: 200px; position: relative; overflow: hidden; margin: 0; background: var(--green-light); }
.modal .pm-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.modal .pm-shot figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(12, 36, 21, .75); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.modal .pm-shot + .pm-shot { border-left: 2px solid #fff; }
.modal .body { padding: 26px; }
.modal h3 { color: var(--green-deep); font-size: 1.5rem; margin-bottom: 8px; font-weight: 800; }
.modal .close { position: sticky; top: 10px; float: right; margin: 10px; background: rgba(255, 255, 255, .92); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.15rem; cursor: pointer; font-weight: 700; color: var(--ink); z-index: 2; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.modal ul { margin: 10px 0 16px 18px; color: var(--grey); font-size: .92rem; }
.modal ul li::marker { color: var(--red); }
.modal .add-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: var(--green-light); padding: 15px; border-radius: 11px; }
.modal .add-row > div { flex: 1; min-width: 110px; }

/* toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(90px); background: var(--green-deep); color: #fff; padding: 14px 24px; border-radius: 11px; box-shadow: var(--shadow-lg); transition: transform .28s; z-index: 200; font-weight: 600; font-size: .92rem; }
#toast.show { transform: translateX(-50%) translateY(0); }
#toast a { color: #ffd28f; }

/* ---------- about / misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two-col h2 { color: var(--green-deep); font-size: 2rem; margin-bottom: 14px; font-weight: 800; letter-spacing: -.3px; }
.two-col p { color: var(--grey); margin-bottom: 11px; font-size: .96rem; }
.check-list { list-style: none; margin-top: 16px; }
.check-list li { padding-left: 32px; position: relative; margin: 10px 0; color: var(--ink); font-weight: 600; font-size: .94rem; }
.check-list li::before { content: "\2713"; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; background: var(--green); color: #fff; border-radius: 50%; font-size: .7rem; display: flex; align-items: center; justify-content: center; }
.timeline { border-left: 3px solid var(--green); margin: 20px 0 0 8px; padding-left: 26px; }
.timeline .tl { margin-bottom: 22px; position: relative; }
.timeline .tl::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; background: var(--red); border-radius: 50%; border: 2px solid #fff; }
.timeline b { color: var(--green-deep); font-family: var(--font-head); font-size: 1.02rem; }
.timeline p { color: var(--grey); font-size: .9rem; }

/* faq */
.faq-item { background: var(--white); border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; font-weight: 700; color: var(--green-deep); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: .98rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-size: 1.5rem; font-weight: 700; flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .a { padding: 0 22px 20px; color: var(--grey); font-size: .94rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.info-line { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.info-line .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--green-light); display: flex; align-items: center; justify-content: center; }
.info-line b { display: block; color: var(--green-dark); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-family: var(--font); }
.info-line a { color: var(--ink); text-decoration: none; font-weight: 500; }
.info-line a:hover { color: var(--green); }

/* ---------- footer ---------- */
footer.site { background: var(--green-deep); color: #9fc4ac; margin-top: 80px; font-size: .9rem; position: relative; }
footer.site::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--green)); }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding: 54px 24px 34px; }
footer.site h4 { color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; font-family: var(--font); }
footer.site a { color: #9fc4ac; text-decoration: none; display: block; margin: 7px 0; }
footer.site a:hover { color: #fff; }
footer.site .foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; padding: 18px; font-size: .78rem; color: #6f8f7c; }
footer.site .foot-bottom a { display: inline; color: #9fc4ac; }
footer.site .foot-logo { color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 10px; font-family: var(--font-head); }
footer.site .foot-logo em { color: #ff6f66; font-style: normal; }

/* ---------- customer portal ---------- */
.pill { display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.pill-received { background: #fff3cd; color: #7a5c12; }
.pill-scheduled { background: #d7e8fb; color: #1c4e89; }
.pill-on_truck { background: #ffe3cc; color: #8a4a10; }
.pill-delivered { background: var(--green-light); color: var(--green-dark); }
.pill-cancelled { background: #f3d2d0; color: var(--red-dark); }
.pill-pending { background: #eee; color: #555; }

.timeline-track { display: flex; gap: 0; margin: 10px 0 4px; }
.tstep { flex: 1; text-align: center; font-size: .7rem; color: #9aa8a0; position: relative; padding-top: 17px; font-weight: 500; }
.tstep i { display: block; width: 12px; height: 12px; border-radius: 50%; background: #d5ded8; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.tstep::before { content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: #d5ded8; }
.tstep:first-child::before { display: none; }
.tstep.done { color: var(--green-dark); font-weight: 700; }
.tstep.done i { background: var(--green); }
.tstep.done::before { background: var(--green); }

.ptabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 26px; }
.ptabs button { border: 1.5px solid var(--line); background: #fff; padding: 10px 17px; border-radius: 999px; font-weight: 600; font-size: .84rem; cursor: pointer; font-family: var(--font); color: var(--ink); transition: all .12s; }
.ptabs button:hover { border-color: var(--green); }
.ptabs button.on { background: var(--green); border-color: var(--green); color: #fff; }

.order-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 14px; }
.order-card .oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.order-card .oc-ref { font-weight: 800; color: var(--green-deep); font-family: var(--font-head); font-size: 1.05rem; }
.order-card .oc-items { color: var(--grey); font-size: .92rem; margin: 7px 0; }
.order-card .oc-meta { font-size: .8rem; color: var(--grey); display: flex; gap: 16px; flex-wrap: wrap; }

.price-note { font-size: .78rem; color: var(--grey); }
.line-total { font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.grand-total { display: flex; justify-content: space-between; align-items: center; background: var(--green-deep); color: #fff; border-radius: 11px; padding: 15px 20px; margin-top: 14px; font-weight: 800; font-family: var(--font-head); font-size: 1.05rem; }

.table-scroll { }

/* mobile call-to-action bar (injected by app.js, phones only) */
.mcta { display: none; }

/* floating note (Quarry Direct, products page) */
.float-note { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100vw - 32px)); background: #fff; border: 1.5px solid var(--green); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 18px; font-size: .88rem; color: var(--ink); z-index: 80; transition: opacity .4s; }
.float-note b { color: var(--green-dark); }

/* cartage job cards */
.job-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.job-card .jc-img { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--green-dark), var(--green)); display: flex; align-items: center; justify-content: center; }
.job-card .jc-img svg { stroke: rgba(255,255,255,.5); }
.job-card .jc-body { padding: 20px; }
.job-card h3 { color: var(--green-deep); font-size: 1.12rem; margin-bottom: 8px; }
.job-card p { color: var(--grey); font-size: .9rem; }

/* ---------- reviews ---------- */
.rev-summary { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin: 0 auto 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 30px; max-width: 620px; }
.rev-summary .score { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--green-deep); line-height: 1; }
.rev-summary .rs-mid { text-align: left; }
.rev-summary .rs-count { color: var(--grey); font-size: .9rem; margin-top: 2px; }
.rev-summary .rs-count b { color: var(--ink); }
.rev-summary .g-logo { height: 30px; width: auto; }
.rev-summary .rs-divide { width: 1px; align-self: stretch; background: var(--line); }

.stars { color: #fbbc04; font-size: 1rem; letter-spacing: 2px; line-height: 1; }

.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rev { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 13px; transition: transform .18s, box-shadow .18s; }
.rev:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rev-top { display: flex; align-items: center; gap: 12px; }
.rev-av { width: 44px; height: 44px; border-radius: 50%; flex: none; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; }
.rev-id { flex: 1; min-width: 0; line-height: 1.25; }
.rev-id b { color: var(--green-deep); font-size: .98rem; display: block; }
.rev-id .rev-meta { color: var(--grey); font-size: .78rem; }
.rev-top .g-mark { width: 22px; height: 22px; flex: none; }
.rev p { color: var(--ink); font-size: .93rem; line-height: 1.62; margin: 0; }
.rev .rev-body { color: var(--grey); }
.rev-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .rev-grid { grid-template-columns: repeat(2, 1fr); }
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .calc-layout, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  nav.main { position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: var(--white); flex-direction: column; align-items: stretch; padding: 84px 18px 20px; box-shadow: var(--shadow-lg); transition: right .25s; z-index: 60; overflow-y: auto; }
  nav.main.open { right: 0; }
  nav.main a { padding: 14px 14px; font-size: .88rem; }
  nav.main a.active::after { left: 14px; right: auto; width: 26px; }
  nav.main a.cta { margin-left: 0; text-align: center; }
  .nav-item.has-sub { display: block; }
  .nav-item.has-sub .sub { position: static; box-shadow: none; border: none; border-left: 3px solid var(--green-light); border-radius: 0; margin-left: 14px; padding: 0; }
  .nav-item.has-sub.open-sub .sub { display: block; }
  .float-note { bottom: 64px; }
  .burger { display: block; z-index: 70; }
  footer.site .wrap { grid-template-columns: 1fr; gap: 26px; }
  .hero .wrap { padding: 68px 24px 76px; }
  header.site .wrap { min-height: 74px; }
  .logo img.logo-img { height: 62px; }
}

@media (max-width: 700px) {
  input, select, textarea { font-size: 16px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .basket-table { min-width: 480px; }
  .basket-table th, .basket-table td { padding: 8px 6px; }
  .topbar .tb-hours { display: none; }
  .mcta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; box-shadow: 0 -4px 16px rgba(10, 30, 18, .25); }
  .mcta a { flex: 1; text-align: center; padding: 15px 8px; font-weight: 800; font-size: .92rem; text-decoration: none; color: #fff; letter-spacing: .03em; }
  .mcta a.call { background: var(--green-dark); }
  .mcta a.quote { background: var(--red); }
  body { padding-bottom: 52px; }
  footer.site { margin-bottom: 0; }
  section.block { padding: 46px 0; }
  .panel { padding: 22px 18px; }
  .modal .add-row > div { min-width: 90px; }
}

@media (max-width: 560px) {
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .rev-summary { padding: 20px; gap: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .cta-band .wrap { flex-direction: column; text-align: center; }
  .logo .logo-text { display: none; }
}

@media print {
  header.site, footer.site, .topbar, .cta-band, .burger, .mcta { display: none; }
}
