@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --bg:#080909;
  --panel:#121416;
  --panel2:#191c1f;
  --text:#f5f5f5;
  --muted:#b8bec6;
  --red:#c62828;
  --red2:#8f1515;
  --line:rgba(255,255,255,.12);
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  background:radial-gradient(circle at top, #202326 0, #080909 45%, #050505 100%);
  color:var(--text);
  font-family:Inter, Arial, sans-serif;
}
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }

.topbar {
  background:#050505;
  border-bottom:1px solid var(--line);
  font-size:.85rem;
  color:#d8d8d8;
}
.topbar-inner {
  max-width:1180px;
  margin:auto;
  padding:.55rem 1rem;
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
}
.main-header {
  background:rgba(8,9,9,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:20;
}
.header-inner {
  max-width:1180px;
  margin:auto;
  padding:.85rem 1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
}
.brand {
  display:flex;
  align-items:center;
  gap:.8rem;
}
.brand img {
  width:64px;
  height:64px;
  object-fit:cover;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.25);
}
.brand strong {
  display:block;
  font-family:Oswald, sans-serif;
  font-size:1.65rem;
  letter-spacing:.02em;
}
.brand span {
  display:block;
  color:#d8d8d8;
  font-size:.85rem;
}
.desktop-nav {
  display:flex;
  align-items:center;
  gap:1.1rem;
  color:#e7e7e7;
  font-weight:700;
  font-size:.92rem;
}
.desktop-nav a:hover { color:#fff; }
.header-actions {
  display:flex;
  gap:.6rem;
}
.header-actions a,
.btn,
button {
  border:0;
  cursor:pointer;
  font-weight:800;
  border-radius:999px;
  padding:.8rem 1rem;
  background:#262a2e;
  color:#fff;
}
.quote-btn,
.btn.primary {
  background:linear-gradient(135deg, var(--red), var(--red2));
}
.menu-toggle {
  display:none;
  font-size:1.3rem;
  padding:.55rem .8rem;
}
.mobile-nav {
  display:none;
  background:#0b0c0d;
  border-bottom:1px solid var(--line);
  padding:1rem;
}
.mobile-nav.open { display:grid; gap:.8rem; }
.ticker-wrap {
  overflow:hidden;
  background:linear-gradient(90deg,#0b0b0b,#252525,#0b0b0b);
  border-bottom:1px solid var(--line);
}
.ticker {
  display:flex;
  width:max-content;
  gap:3rem;
  padding:.65rem 0;
  animation:ticker 32s linear infinite;
  color:#f2f2f2;
  font-weight:900;
  letter-spacing:.08em;
  font-size:.82rem;
}
.ticker span { white-space:nowrap; }
@keyframes ticker {
  from { transform:translateX(100vw); }
  to { transform:translateX(-100%); }
}

.section {
  max-width:1180px;
  margin:auto;
  padding:5rem 1rem;
}
.hero {
  min-height:78vh;
  position:relative;
  display:flex;
  align-items:center;
  background:
    linear-gradient(90deg, rgba(0,0,0,.88), rgba(0,0,0,.58), rgba(0,0,0,.16)),
    url('/images/hero/hero.jpg') center/cover no-repeat;
}
.hero-inner {
  max-width:1180px;
  width:100%;
  margin:auto;
  padding:5rem 1rem;
}
.badge {
  display:inline-flex;
  padding:.55rem .85rem;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-weight:900;
  color:#fff;
}
h1,h2,h3 {
  font-family:Oswald, sans-serif;
  text-transform:uppercase;
  line-height:1.02;
  margin:0;
}
h1 {
  font-size:clamp(3rem, 8vw, 6.5rem);
  max-width:870px;
  margin:1rem 0;
}
h2 {
  font-size:clamp(2.1rem, 5vw, 4rem);
  margin-bottom:1rem;
}
h3 { font-size:1.5rem; }
p {
  color:var(--muted);
  line-height:1.65;
}
.hero p {
  max-width:690px;
  font-size:1.12rem;
}
.hero-actions,
.cta-row {
  display:flex;
  gap:.8rem;
  flex-wrap:wrap;
  margin-top:1.5rem;
}
.trust-grid,
.card-grid,
.service-grid,
.review-grid,
.contact-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1rem;
}
.trust-card,
.card,
.service-card,
.review-card,
.contact-card,
.form-card {
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:24px;
  padding:1.25rem;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
}
.trust-card strong {
  display:block;
  font-family:Oswald, sans-serif;
  font-size:1.25rem;
}
.trust-card span { color:var(--muted); }

.split {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:2rem;
  align-items:center;
}
.split img,
.service-card img,
.gallery img,
.before-after img {
  border-radius:24px;
  border:1px solid var(--line);
}
.service-grid { grid-template-columns:repeat(3,1fr); }
.service-card img {
  width:100%;
  height:250px;
  object-fit:cover;
  margin-bottom:1rem;
}
.service-card ul {
  color:#d9d9d9;
  padding-left:1.1rem;
  line-height:1.8;
}
.gallery {
  display:flex;
  gap:1rem;
  overflow:hidden;
  mask-image:linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.gallery-track {
  display:flex;
  gap:1rem;
  animation:slide 45s linear infinite;
}
.gallery img {
  width:310px;
  height:220px;
  object-fit:cover;
  flex:0 0 auto;
}
@keyframes slide {
  from { transform:translateX(0); }
  to { transform:translateX(-50%); }
}
.before-after {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
.before-after img {
  width:100%;
  height:260px;
  object-fit:cover;
}
.label {
  margin:.5rem 0 1.2rem;
  color:#fff;
  font-weight:900;
}
.review-grid { grid-template-columns:repeat(3,1fr); }
.review-card p { color:#f1f1f1; }
.stars { color:#fff; font-weight:900; letter-spacing:.08em; }
.cta-band {
  background:
    linear-gradient(135deg, rgba(198,40,40,.25), rgba(0,0,0,.8)),
    url('/images/gallery/collage.jpg') center/cover no-repeat;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
form {
  display:grid;
  gap:1rem;
}
input,select,textarea {
  width:100%;
  padding:1rem;
  border-radius:16px;
  border:1px solid var(--line);
  background:#0c0d0f;
  color:#fff;
  font:inherit;
}
textarea { min-height:150px; }
.form-layout {
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:1.5rem;
}
.calc-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.25rem;
}
.site-footer {
  background:#050505;
  border-top:1px solid var(--line);
  padding:4rem 1rem 1rem;
}
.footer-grid {
  max-width:1180px;
  margin:auto;
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:2rem;
}
.footer-logo {
  width:95px;
  border-radius:18px;
  margin-bottom:1rem;
}
.site-footer a,
.site-footer span {
  display:block;
  color:#c7c7c7;
  margin:.45rem 0;
}
.footer-bottom {
  max-width:1180px;
  margin:2rem auto 0;
  padding-top:1rem;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:1rem;
  flex-wrap:wrap;
  color:#999;
}
.footer-bottom div {
  display:flex;
  gap:1rem;
}
.legal {
  max-width:900px;
}
.legal h2 { margin-top:2rem; font-size:2rem; }

@media (max-width:900px) {
  .desktop-nav,
  .header-actions { display:none; }
  .menu-toggle { display:block; }
  .hero { min-height:auto; }
  .trust-grid,
  .service-grid,
  .review-grid,
  .contact-grid,
  .calc-grid,
  .footer-grid,
  .split,
  .form-layout {
    grid-template-columns:1fr;
  }
  h1 { font-size:3.3rem; }
  .topbar-inner { justify-content:center; text-align:center; }
}


/* individual heights after scale */
.calc-card-real:nth-child(1) .calc-frame {
  height: 1020px !important;
}

.calc-card-real:nth-child(2) .calc-frame {
  height: 1100px !important;
}

.calc-card-real:nth-child(3) .calc-frame {
  height: 760px !important;
}

.calc-card-real:nth-child(4) .calc-frame {
  height: 1100px !important;
}

@media (max-width: 900px) {
  .calc-grid-real {
    grid-template-columns: 1fr !important;
  }

  .calc-frame {
    transform: scale(.9);
    width: 112%;
    margin-left: -6%;
  }
}



/* tighten bottom spacing after removing footer */
.calc-frame {
    margin-bottom:-40px !important;
}


/* tighten bottom spacing after removing footer */
.calc-frame {
    margin-bottom:-40px !important;
}


/* remove the extra dark gap under cropped calculators */
.calc-card-real:nth-child(1),
.calc-card-real:nth-child(2),
.calc-card-real:nth-child(3),
.calc-card-real:nth-child(4) {
  padding-bottom: 1rem !important;
}


/* SAFE HEADER/FOOTER/CALCULATOR RESET */

.site-header{
  position:sticky;
  top:0;
  z-index:1000;
}

.main-header{
  background:
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)),
    url('/images/hero/header.jpg') center/cover no-repeat;
}

.brand img,
.footer-logo{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:50%;
  display:block;
}

.site-footer{
  display:block;
}

.calc-note{
  background:linear-gradient(135deg, rgba(198,40,40,.16), rgba(0,0,0,.86));
  border:1px solid rgba(255,255,255,.10);
  border-radius:24px;
  padding:2rem;
  max-width:1000px;
  margin:auto;
}

#inch-calculator-icw{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
}

#inch-calculator-icwf{
  display:none !important;
}



/* FENCE CALCULATOR DARK MODE */
.form-card:has(#inch-calculator-icw) {
  background: linear-gradient(180deg, #090909, #020202) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

#inch-calculator-icw,
#inch-calculator-icw * {
  font-family: Inter, Arial, sans-serif !important;
}

#inch-calculator-icw {
  background: #050505 !important;
  color: #f5f5f5 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.12) !important;
}

#inch-calculator-icw div,
#inch-calculator-icw section,
#inch-calculator-icw form,
#inch-calculator-icw table,
#inch-calculator-icw fieldset {
  background-color: #050505 !important;
  color: #f5f5f5 !important;
  border-color: rgba(255,255,255,.15) !important;
}

#inch-calculator-icw label,
#inch-calculator-icw span,
#inch-calculator-icw p,
#inch-calculator-icw strong,
#inch-calculator-icw th,
#inch-calculator-icw td {
  color: #f5f5f5 !important;
}

#inch-calculator-icw input,
#inch-calculator-icw select,
#inch-calculator-icw textarea {
  background: #111 !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: none !important;
}

#inch-calculator-icw input::placeholder {
  color: #aaa !important;
}

#inch-calculator-icw button,
#inch-calculator-icw input[type="button"],
#inch-calculator-icw input[type="submit"] {
  background: linear-gradient(135deg, #c62828, #7d1010) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
}

#inch-calculator-icwh {
  background: linear-gradient(135deg, #111, #050505) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

#inch-calculator-icwf {
  display: none !important;
}



/* LIGHTER FENCE CALCULATOR + HIDE BOTTOM BUTTONS */

#inch-calculator-icw {
  background: #111111 !important;
  color: #f3f3f3 !important;
}

/* make sections dark gray instead of pitch black */
#inch-calculator-icw div,
#inch-calculator-icw section,
#inch-calculator-icw form,
#inch-calculator-icw table,
#inch-calculator-icw fieldset {
  background-color: #111111 !important;
  color: #f3f3f3 !important;
}

/* results area */
#inch-calculator-icw td,
#inch-calculator-icw tr,
#inch-calculator-icw tbody {
  background:#161616 !important;
}

/* bottom external buttons/footer */
#inch-calculator-icwf,
#inch-calculator-icwi,
#inch-calculator-icwl,
#inch-calculator-icwb,
a[href*="inchcalculator.com"] {
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  height:0 !important;
  max-height:0 !important;
  overflow:hidden !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}

/* crop remaining bottom gap */
#inch-calculator-icw {
  padding-bottom: 0 !important;
}



/* MAC'S DO ALL POLISH PASS — LESS GRAY, STRONGER BRAND */

:root {
  --bg: #050505 !important;
  --panel: #090909 !important;
  --panel2: #101010 !important;
  --text: #ffffff !important;
  --muted: #d0d0d0 !important;
  --red: #d32121 !important;
  --red2: #7d1010 !important;
  --line: rgba(255,255,255,.10) !important;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(150,20,20,.18), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.05), transparent 20%),
    linear-gradient(180deg, #020202 0%, #070707 42%, #020202 100%) !important;
  color: #fff !important;
}

p,
li,
span,
small {
  color: #d7d7d7;
}

/* header and footer share the branded wood image */
.main-header,
.site-footer {
  background:
    linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.82)),
    url('/images/hero/header.jpg') center/cover no-repeat !important;
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(255,255,255,.14) !important;
  box-shadow: inset 0 35px 80px rgba(0,0,0,.75);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(211,33,33,.16), transparent 35%),
    linear-gradient(180deg, rgba(0,0,0,.20), rgba(0,0,0,.82));
  pointer-events: none;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

.topbar {
  background: #020202 !important;
}

.ticker-wrap {
  background:
    linear-gradient(90deg, #020202, #18100f, #2a0909, #18100f, #020202) !important;
}

/* main headline color */
h1 {
  color: #fff !important;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 45%, #ff3b3b 82%, #b51616 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
}

h2 {
  color: #ffffff !important;
}

h3 {
  color: #ffffff !important;
}

/* cards: black/red instead of washed gray */
.trust-card,
.card,
.service-card,
.review-card,
.contact-card,
.form-card,
.calculator-card,
.calc-note {
  background:
    linear-gradient(180deg, rgba(12,12,12,.97), rgba(2,2,2,.98)) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  box-shadow:
    0 22px 60px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.04) !important;
}

.trust-card:hover,
.service-card:hover,
.review-card:hover,
.contact-card:hover,
.form-card:hover,
.calculator-card:hover {
  border-color: rgba(211,33,33,.32) !important;
}

/* calculator cards blend with site instead of gray blocks */
.clark-calculator,
.calc-results {
  background:
    linear-gradient(180deg, #111 0%, #070707 100%) !important;
  border-color: rgba(255,255,255,.10) !important;
}

.clark-calculator input,
.clark-calculator select {
  background: #080808 !important;
  border-color: rgba(255,255,255,.16) !important;
}

/* stronger buttons */
.btn.primary,
.quote-btn {
  background: linear-gradient(135deg, #e02b2b, #8a1111) !important;
  box-shadow: 0 10px 28px rgba(211,33,33,.28) !important;
}

.btn:not(.primary),
.header-actions a {
  background: rgba(0,0,0,.55) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* logo pop */
.brand img,
.footer-logo {
  background: #050505 !important;
  border: 2px solid rgba(211,33,33,.75) !important;
  box-shadow: 0 0 0 4px rgba(0,0,0,.45), 0 10px 24px rgba(0,0,0,.55);
}

